#ifndef BLM_MACROS_H #define BLM_MACROS_H #define LOCAL static #ifndef OK #define OK (0) #endif #ifndef ERROR #define ERROR (-1) #endif #ifndef NULL #define NULL ('\0') #endif #define BLM_NUM_OP_MODES (4) #define BLM_STARTING (0) #define BLM_CALIBRATING (1) #define BLM_CALIBRATION_DONE (2) #define BLM_RUNNING (3) #define BLM_NUM_CAL_MODES (3) #define BLM_CAL_IDLE (0) #define BLM_CAL_RQST (1) #define BLM_CAL_DONE (2) #define BLM_NUM_CHANNELS_ON_BOARD (4) /* Expect 4, but 2 and 1 BLMs may exist */ #define BLM_FIFO_SIZE (65536) /* The number of 16 bit words in 1 FIFO */ #define BLM_SAMPLE_SIZE (512) /* The maximum size of a sample from the FIFO */ /* waveform types */ #define BLM_RAW (0) #define BLM_SCALAR (1) #define BLM_PROCESSED (2) #endif