Defs.h
00001 #ifndef DEFS 00002 #define DEFS 00003 00004 #define NUM_TARGETS 4 // Number of target chips 00005 #define NUM_CHANNELS 16 // Number of channels 00006 #define NUM_TOTAL_CHANNELS NUM_TARGETS*NUM_CHANNELS //64 00007 #define NUM_ROWS 8 // Rows per channel 00008 #define NUM_COLS 32 // Columns per row 00009 #define SAMPLES_PER_COL 64 //Amount of values per signal 00010 #define SAMPLES_PER_ROW NUM_COLS*NUM_ROWS 00011 #define NUM_SAMPLES SAMPLES_PER_COL 00012 #define DATASIZE NUM_CHANNELS * NUM_SAMPLES 00013 #define BUFFERSIZE 4140 //Size of buffer, need 5 more values due to headers and stuff. 00014 00015 //#define VOLTS_PER_COUNT 0.001 * 2.7782 // old value: 0.001 * 0.6184 00016 #define VOLTS_PER_COUNT 0.001 * 0.6184 00017 00018 00019 #define DEFAULT_PEDESTAL_VALUE 256 00020 00021 00022 #define DISABLE_SYNC_USB_MASK 0x00000001 00023 #define ENABLE_SYNC_USB_MASK 0x00010001 00024 #define SOFT_TRIG_MASK 0x00000002 00025 #define TRIG_THRESH_MASK 0x00000003 00026 #define ENABLE_PED_MASK 0x00010004 00027 #define DISABLE_PED_MASK 0x00000004 00028 #define PED_ROW_COL_MASK 0x00000005 00029 #define WBIAS_MASK 0x00000006 00030 #define TRIG_POLARITY_POS 0x00000007 00031 #define TRIG_POLARITY_NEG 0x00010007 00032 #define TERM_MASK 0x00070008 00033 00034 00035 #define TERM_100_OHMS_SHIFT 18 00036 #define TERM_1K_OHMS_SHIFT 17 00037 #define TERM_10K_OHMS_SHIFT 16 00038 #define TRIG_THRESH_SHIFT 16 00039 #define WBIAS_SHIFT 16 00040 #define PED_COL_SHIFT 20 00041 #define PED_ROW_SHIFT 25 00042 00043 00044 #define SAMPLING_SPEED_MASK 0x0006 00045 00046 #endif
Generated on Tue Nov 24 19:04:59 2009 for CREAM TEA -- MCP/TARGET Readout by
1.3.9.1