33 #define LIB_VERSION "3.0" 37 #define HISTCHAN 65536 // number of histogram channels 38 #define TTREADMAX 131072 // 128K event records 44 #define FEATURE_DLL 0x0001 45 #define FEATURE_TTTR 0x0002 46 #define FEATURE_MARKERS 0x0004 47 #define FEATURE_LOWRES 0x0008 48 #define FEATURE_TRIGOUT 0x0010 50 #define FLAG_FIFOFULL 0x0003 //T-modes 51 #define FLAG_OVERFLOW 0x0040 //Histomode 52 #define FLAG_SYSERROR 0x0100 //Hardware problem 61 #define DISCRMIN 0 //mV 62 #define DISCRMAX 800 //mV 64 #define OFFSETMIN 0 //ps 65 #define OFFSETMAX 1000000000 //ps 67 #define SYNCOFFSMIN -99999 //ps 68 #define SYNCOFFSMAX 99999 //ps 70 #define CHANOFFSMIN -8000 //ps 71 #define CHANOFFSMAX 8000 //ps 73 #define ACQTMIN 1 //ms 74 #define ACQTMAX 360000000 //ms (100*60*60*1000ms = 100h) 76 #define PHR800LVMIN -1600 //mV 77 #define PHR800LVMAX 2400 //mV 79 #define HOLDOFFMAX 210480 //ns 84 #define WARNING_INP0_RATE_ZERO 0x0001 85 #define WARNING_INP0_RATE_TOO_LOW 0x0002 86 #define WARNING_INP0_RATE_TOO_HIGH 0x0004 88 #define WARNING_INP1_RATE_ZERO 0x0010 89 #define WARNING_INP1_RATE_TOO_HIGH 0x0040 91 #define WARNING_INP_RATE_RATIO 0x0100 92 #define WARNING_DIVIDER_GREATER_ONE 0x0200 93 #define WARNING_TIME_SPAN_TOO_SMALL 0x0400 94 #define WARNING_OFFSET_UNNECESSARY 0x0800