/****************************************************************************** * Module: Llrf fcom * Filename: fcomLlrf.h * Author: Shantha Condamoor * Created: 24-Feb-2014 * Description: * Fcom related to LLRF Readback FCOM PV processing ******************************************************************************/ #ifndef FCOM_BLM_H #define FCOM_BLM_H #include #include #include "drvLlrfPad.h" #define LCLS_XTCAV_NG /* Build for LCLS XTCAV stations HXR and SXR */ typedef struct { float pavg; float aavg; float pavg2; float aavg2; } FcomBlobLlrfData_t; #define NUM_AVG_FCOM_DATA 4 /* fcom id for (station, channel) */ #define NUM_SECTIONS 1 /* DMPH=0, LI24=1, LI21=2, IN20=3 . Currently only DMPH is supported */ #define NUM_DEVICES 1 /* Currently DMPH IOC supports only one device TCAV:DMPH:360 */ int fcomLlrfInit(void); void fcomLlrfProcXtcav(LlrfStation station, double pavg, double aavg, double pavg2, double aavg2); /* Section; set by startup script */ extern int gLlrfSection; void llrfFcomTask(void *arg); #endif