#include #include #include #include #include #include #include #include "drvPadDataProc.h" #include "devPadDataProc.h" #include "drvLlrf.h" #include #define KLY21_1 "KLY21_1" int kly21_1DataProcInit(void) { rf_klys_station_t *pKlys = llrfGetFeedbackStation(LLRF_KLY21_1); if(!pKlys) return -1; printf("%s: station pointer (%8p)\n", KLY21_1, (void *) pKlys); int i; char str[16]; for(i=0; iphase_offset_correction[i], DOUBLE); devPadDataProc_show(KLY21_1, str); sprintf(str, "PWR_SCL_CH%d", i); addDevParam(KLY21_1, str, &pKlys->power_scale_factor[i], DOUBLE); devPadDataProc_show(KLY21_1, str); sprintf(str, "VOL_SCL_CH%d", i); addDevParam(KLY21_1, str, &pKlys->voltage_scale_factor[i], DOUBLE); devPadDataProc_show(KLY21_1, str); sprintf(str, "QAVG_CH%d", i); addDevParam(KLY21_1, str, &pKlys->Q[i], SHORT); devPadDataProc_show(KLY21_1, str); sprintf(str, "IAVG_CH%d", i); addDevParam(KLY21_1, str, &pKlys->I[i], SHORT); devPadDataProc_show(KLY21_1, str); sprintf(str, "PHASE_CH%d", i); addDevParam(KLY21_1, str, &pKlys->phase[i], DOUBLE); devPadDataProc_show(KLY21_1, str); sprintf(str, "SUMSQ_CH%d", i); addDevParam(KLY21_1, str, &pKlys->sumsq[i], DOUBLE); devPadDataProc_show(KLY21_1, str); sprintf(str, "AMPL_CH%d", i); addDevParam(KLY21_1, str, &pKlys->ampl[i], DOUBLE); devPadDataProc_show(KLY21_1, str); sprintf(str, "PWR_CH%d", i); addDevParam(KLY21_1, str, &pKlys->power[i], DOUBLE); devPadDataProc_show(KLY21_1, str); } return 0; } epicsRegisterFunction(kly21_1DataProcInit);