//#define TEST #define ORIG #define INCLUDE_CAMAC //#define TEST_TDC_BUFFERING #define TEST_ADC_CLEAR #define TEST_SCALER #ifdef ORIG # define WWHILE weight_while(0) #else # define WWHILE #endif #define LOOP_WAIT_CNT 200 //time-out delay #define TIMEOUT 60 #define DATA_UNIT_SIZE 1 //#define DATA_UNIT_SIZE sizeof(int) // CAMAC #define INTREG 2 #define ENABLE_INTREG (1 << (INTREG - 1)) #define OUTREG 3 #define ADC 20 #define TDC_KAIZU1 5 #define TDC_KAIZU2 6 #define TDC2277_RICH2_N 6 #define TDC2277_RICH2B 11 #define TDC2277_RICH2E TDC2277_RICH2B+TDC2277_RICH2_N-1 #define TDC2277_MCP_N 3 #define TDC2277_MCPB 8 #define TDC2277_MCPE TDC2277_MCPB+TDC2277_MCP_N-1 #define TDC2277_MWPC 17 #define SCALER 4 #define SCALER_NCH 4 // ================ // LeCroy 2277 status word 01111 1100 0000 0000 #define LC2277_CSTOP_BOTHEDGE 0x7c00 #define MAX_MWPC_BUFFSIZ 32*16 #define MAX_TDC_BUFFSIZ TDC2277_RICH2_N*32*16 // VME #define A_INT 0x2000 #define A_ADC 0x1000 #define S_INT 0x10 #define S_ADC 0x20 #define A16D16 "/dev/vme16d16" #define A_DSP 0x6000 // <-- #define S_DSP 0x32 // <--