#ifndef BCC_MACROS_H #define BCC_MACROS_H #define LOCAL static #ifndef OK #define OK (0) #endif #ifndef ERROR #define ERROR (-1) #endif #ifndef NULL #define NULL ('\0') #endif #define BCC_NUM_OP_MODES (4) #define BCC_STARTING (0) #define BCC_CALIBRATING (1) #define BCC_CALIBRATION_DONE (2) #define BCC_RUNNING (3) #define BCC_NUM_CAL_MODES (3) #define BCC_CAL_IDLE (0) #define BCC_CAL_RQST (1) #define BCC_CAL_DONE (2) #define BCC_NUM_CHANNELS_ON_BOARD (4) /* Expect 4, but 2 and 1 BCCs may exist */ #define BCC_FIFO_SIZE (65536) /* The number of 16 bit words in 1 FIFO */ #define BCC_SAMPLE_SIZE (512) /* The maximum size of a sample from the FIFO */ /* waveform types */ #define BCC_RAW (0) #define BCC_SCALAR (1) #define BCC_PROCESSED (2) #endif