#include #include #include #include #include static long LL16bitInit(subRecord *psub) { return 0; /* nothing todo */ } static long LL16bitAmpl(subRecord *psub) { short a = psub->a; psub->val = (double)a / 32768.; return 0; } static long LL16bitPhase(subRecord *psub) { short a = psub->a; psub->val = (double)a / 32768. * 180.; return 0; } static long LL16bitVolt(subRecord *psub) { short a = psub->a; psub->val = (double)a / 32768. * 5.; return 0; } static long LL16bitBoolean(subRecord *psub) { short a = psub->a; psub->val = a?1.:0.; } epicsRegisterFunction(LL16bitInit); epicsRegisterFunction(LL16bitAmpl); epicsRegisterFunction(LL16bitPhase); epicsRegisterFunction(LL16bitVolt); epicsRegisterFunction(LL16bitBoolean);