/* ****************************************************************************** * Modification history * Mod: Shantha Condamoor 11-Nov-2013 * Changed LLRF_KLY21_1 to LLRF_LSRDIAG as this slot (20) is now used * for Coherent 2 Laser Diagnostics PAD by ioc-in20-rf02 **************************************************************************** */ #ifndef LLRF_MACROS_H #define LLRF_MACROS_H #define LOCAL static #ifndef OK #define OK (0) #endif #ifndef ERROR #define ERROR (-1) #endif #ifndef NULL #define NULL ('\0') #endif #define LLRF_NUM_SAMPLES 512 #define PAD_NUM_CHANNELS_ON_BOARD (4) #define PAD_NUM_CHANNELS_LSR_FB (1) #define PAD_NUM_CHANNELS_GUN_FB (4) #define PAD_NUM_CHANNELS_L0A_FB (2) #define PAD_NUM_CHANNELS_L0B_FB (2) #define PAD_NUM_CHANNELS_L1S_FB (4) #define PAD_NUM_CHANNELS_L1X_FB (2) #define PAD_NUM_CHANNELS_TC0_FB (2) #define PAD_NUM_CHANNELS_TC3_FB (2) #define PAD_NUM_CHANNELS_KLY24_1 (4) #define LLRF_STATION_NUM_TYPES (24) /* Multicasting group: ioc-in20-rf03-padg */ #define LLRF_KLY_L1S (1) #define LLRF_KLY_L0A (2) #define LLRF_KLY_L0B (3) #define LLRF_KLY_L1X (4) /* Multicasting group: ioc-in20-rf05-padg */ #define LLRF_KLY_DGN (1) #define LLRF_KLY_TC0 (2) #define LLRF_KLY_GUN (3) /* Multicasting group: Unused. */ #define LLRF_KLY_L2 (1) /* Multicasting group: ioc-dmp1-rf01-padg for LCLS or ioc-li20-rf01-padg for FACET */ #define LLRF_XTCAVA (1) #define LLRF_XTCAVB (2) #define LLRF_KLY_XTCAV (3) /* Multicasting group: ioc-in20-rf01-padg for LCLS or ioc-as01-rf01-padg for ASTA */ #define LLRF_LSR (1) #define LLRF_GUN (2) #define LLRF_L0A (3) #define LLRF_L0B (4) #define LLRF_L1S (5) #define LLRF_L1X (6) #define LLRF_TCAV0 (7) #define LLRF_TCAV3 (8) #define LLRF_PCAV1 (9) /* MC group: ioc-li24-rf02-padg; used in llrf6RF11App */ #define LLRF_PCAV2 (10) /* MC group: ioc-li24-rf02-padg; used in llrf6RF11App */ #define LLRF_PCAV3 (11) /* MC group: ioc-li24-rf03-padg; used in llrf6RF14App */ #define LLRF_PCAV4 (12) /* MC group: ioc-li24-rf02-padg; used in llrf6RF11App */ #define LLRF_KLY24_1 (13) /* MC group: ioc-li24-rf01-padg; referred in kly24_1DataProc.c used in llrf6RF02App */ #define LLRF_KLY24_2 (14) /* MC group: ioc-li24-rf01-padg; referred in kly24_2DataProc.c used in llrf6RF02App */ #define LLRF_KLY24_3 (15) /* MC group: ioc-li24-rf01-padg; referred in kly24_2DataProc.c used in llrf6RF02App */ #define LLRF_S29 (16) /* MC group: ioc-li24-rf01-padg; referred in s29DataProc.c used in llrf6RF02App */ #define LLRF_S30 (17) /* MC group: ioc-li24-rf01-padg; referred in s30DataProc.c used in llrf6RF02App */ #define LLRF_L2REF (18) /* MC group: ioc-li24-rf01-padg; referred in l2refDataProc.c used in llrf6RF02App */ #define LLRF_S24REF (19) /* MC group: ioc-li24-rf01-padg; referred in s24refDataProc.c used in llrf6RF02App */ #define LLRF_IN20REF (19) /* Multicasting group: ioc-in20-rf01-padg */ #define LLRF_LSRDIAG (20) /* Multicasting group: ioc-in20-rf02-padg */ #define LLRF_INTRLK (20) /* Multicasting group: ioc-dmp1-rf01-padg or ioc-li20-rf01-padg or ioc-as01-rf01-padg */ #define LLRF_GN2 (21) #define LLRF_KLY24_5 (22) /* Multicasting group: ioc-li24-rf02-padg or ioc-as01-rf01 Kly Diag PAD @ TS01 in ASTA */ #define PI (3.1415926535897932385) /* Compiler option to specify which stations to build the LLRF6 application for */ /* #define LLRF_LSR_NG #define LLRF_GUN_NG #define LLRF_GN2_NG #define LLRF_L0A_NG #define LLRF_L0B_NG #define LLRF_TCAV0_NG #define LLRF_L1S_NG #define LLRF_L1X_NG #define LLRF_PCAV1_NG #define LLRF_PCAV2_NG #define LLRF_KLY21_1_NG #define LLRF_TCAV3_NG #define LLRF_PCAV3_NG #define LLRF_PCAV4_NG #define LLRF_KLY_GUN_NG #define LLRF_KLY_L0A_NG #define LLRF_KLY_L0B_NG #define LLRF_KLY_TCAV0_NG #define LLRF_KLY_L1S_NG #define LLRF_KLY_L1X_NG #define LLRF_KLY_24_1_NG #define LLRF_KLY_24_2_NG #define LLRF_KLY_24_3_NG #define LLRF_KLY_TCAV3_NG #define LLRF_XTCAVA_NG #define LLRF_XTCAVB_NG */ /* #define LLRF_LSR68_NG */ /* Build for LCLS Coherent 1 and ASTA 68MHz Laser station */ /* #define LLRF_LSR119_NG */ /* Build for LCLS 119MHz Thales Laser station */ /* #define LLRF_LSRDIAG_NG */ /* Build for LCLS 68MHz Laser 2 Diagnostics station formerly Thales Laser Station */ # define LLRF_LSR_SOURCE_TYPES (2) /* 0,1,2 */ #define LSR_2856_MHZ_SOURCE (0) /*#define LSR_68_MHZ_SOURCE (1) #define LSR_119_MHZ_SOURCE (1) */ #define LSR_2805_MHZ_SOURCE (2) /* comment out line below if fiducial processing needs to be included upon every fiducial */ /* #define FIDUCIAL_BLOB 1 */ #endif