/************************************************************************* $Archive: /PACS/OnBoard/Det.h $ $Revision: 1.11 $ $Date: 2009/04/23 13:51:12 $ $Author: amazy $ $Log: Det.h,v $ Revision 1.11 2009/04/23 13:51:12 amazy 6.029 * * 10 3/14/06 4:31p Pacs Egse * Version 6.001 * Cleaned and commented *************************************************************************/ #define DET_H /* ENUM : Detectors **************** AUTHOR : AMazy USE : used to identify the detectors. It appears at many places in the code. */ enum Detectors { BLUE_SPEC = 1, RED_SPEC = 2, BOL = 4, BOL_BLUE = 5, BOL_RED = 6, DETECTOR_MASK = BLUE_SPEC | RED_SPEC | BOL, }; /* ENUM : DetReceiverOptions ************************* AUTHOR : Amazy USE : this enumeration is used in the bits field Options (member of DecRecParams and BolRecParams). */ enum DetReceiverOptions { K_BMASK_DET_REC_OPTIONS_FORWARD_DATA = 0x00000000, // forward data to the packet encoder K_BMASK_DET_REC_OPTIONS_DELETE_DATA = 0x00000004, // or delete them here K_BMASK_DET_REC_OPTIONS_DATA_OPERATION = 0x00000004, K_BMASK_DET_REC_OPTIONS_DEFAULT = K_BMASK_DET_REC_OPTIONS_DELETE_DATA, }; /* ENUM : DetReceiverStatus ************************ AUTHOR : Amazy USE : this enumeration is used in the bits field Status (member of DecRecParams and BolRecParams). */ enum DetReceiverStatus { K_BMASK_SIMULATION_DATA = 0x00100000, K_BMASK_REAL_READOUTS = 0x00000000, K_BMASK_SIMULATED_READOUTS = 0x00100000, // send the simulated readout to the packet encoders K_BMASK_SIMULATION_TIMING = 0x00200000, K_BMASK_REAL_TIMING = 0x00000000, // use real timing when sending simulated data K_BMASK_SIMULATED_TIMING = 0x00200000, // use simulated timing when sending simulated data K_BMASK_SIMULATION = K_BMASK_SIMULATION_DATA | K_BMASK_SIMULATION_TIMING, };