#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 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 LLRF_STATION_NUM_TYPES (12) #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) #define LLRF_PCAV2 (10) #define LLRF_PCAV3 (11) #define LLRF_PCAV4 (12) #define PI (3.14159) #define LSR_2856_MHZ_SOURCE (0) #define LSR_119_MHZ_SOURCE (1) #define LSR_2805_MHZ_SOURCE (2) #endif