#ifndef PAC_MACROS_H #define PAC_MACROS_H #define LOCAL static #ifndef OK #define OK (0) #endif #ifndef ERROR #define ERROR (-1) #endif #ifndef NULL #define NULL ('\0') #endif #define PAC_NUM_OP_MODES (6) #define PAC_STARTING (0) #define PAC_CALIBRATING (1) #define PAC_CALIBRATION_DONE (2) #define PAC_CHANGING_WFS (3) #define PAC_CHANGING_CWFS (4) #define PAC_RUNNING (5) #define PAC_NUM_CAL_MODES (3) #define PAC_CAL_IDLE (0) #define PAC_CAL_RQST (1) #define PAC_CAL_DONE (2) #define PAC_NUM_TRIG_MODES (3) #define PAC_EXT_TRIG_MODE (0) #define PAC_INT_TRIG_MODE (1) #define PAC_CPU_TRIG_MODE (2) #define PAC_NUM_WFS (5) #define PAC_WF_1 (0) #define PAC_WF_2 (1) #define PAC_WF_3 (2) #define PAC_WF_4 (3) #define PAC_WF_5 (4) #define PAC_NUM_CWFS (5) #define PAC_CWF_1 (0) #define PAC_CWF_2 (1) #define PAC_CWF_3 (2) #define PAC_CWF_4 (3) #define PAC_CWF_5 (4) #define PAC_MAX_FILENAME_LENGTH (100) #define PAC_I_DATA (0) #define PAC_Q_DATA (1) #define PAC_I_CAL (2) #define PAC_Q_CAL (3) #define PAC_I_REF (4) #define PAC_Q_REF (5) #define PAC_I_CALREF (6) #define PAC_Q_CALREF (7) #define PAC_I_FPGA (8) #define PAC_Q_FPGA (9) #define SPAC_I_REF (10) #define SPAC_Q_REF (11) #define PAC_I_DIAG (12) #define PAC_Q_DIAG (13) #define PAC_DISABLE (1) #define PAC_ENABLE (0) #define PAC_FPGA_SIZE (2048) #endif