source: Idarraga/mpxdataconverter/mpx_dm_consts.h

Last change on this file was 26, checked in by idarraga, 13 years ago
File size: 4.7 KB
Line 
1/**
2 *  Author: John Idarraga <idarraga@cern.ch>
3 *  Universite de Montreal
4 *
5 */
6
7// definitions included from pixelman_common
8#include "PixelMan_common.h"
9
10#define MAX_FRAME_ROW 256
11#define MAX_FRAME_COL 256
12#define MAX_FRAME_OCC 65536
13
14
15
16#define META_DATA_LINE_SIZE 512
17#define ACTUAL_VALUE_OFFSET 2
18
19#define ACQ_MODE_STRING                   "Acq mode"
20#define ACQ_MODE_EXTRA                    "(\"Acquisition mode\")"
21#define ACQ_MODE_CODE                     10
22
23#define ACQ_TIME_STRING                   "Acq time"
24#define ACQ_TIME_EXTRA                    "(\"Acquisition time [s]\")"
25#define ACQ_TIME_CODE                     20
26
27#define APPLIED_FILTERS_STRING            "Applied filters"
28#define APPLIED_FILTERS_EXTRA             "(\"Names of filters which were applied to frame\")"
29#define APPLIED_FILTERS_CODE              30
30
31#define AUTO_ERASE_INTERVAL_STRING        "Auto Erase interval"
32#define AUTO_ERASE_INTERVAL_EXTRA         "(\"In triggered mode autoerase matrix after [s]\")"
33#define AUTO_ERASE_INTERVAL_CODE          40
34
35#define AUTOERASE_INTERVAL_COUNTER_STRING "Autoerase interval counter"
36#define AUTOERASE_INTERVAL_COUNTER_EXTRA  "(\"Autoerase interval counter\")"
37#define AUTOERASE_INTERVAL_COUNTER_CODE   50
38
39#define BS_ACTIVE_STRING                  "BS active"
40#define BS_ACTIVE_EXTRA                   "(\"Back side preamp. enabled\")"
41#define BS_ACTIVE_CODE                    60
42
43#define CHIPBOARDID_STRING                "ChipboardID"
44#define CHIPBOARDID_EXTRA                 "(\"Medipix or chipboard ID\")"
45#define CHIPBOARDID_CODE                  70
46
47#define COINC_LIVE_TIME_STRING            "Coinc live time"
48#define COINC_LIVE_TIME_EXTRA             "(\"Last coincidence live time [s]\")"
49#define COINC_LIVE_TIME_CODE              80
50
51#define COINCIDENCE_DELAY_STRING          "Coincidence delay"
52#define COINCIDENCE_DELAY_EXTRA           "(\"Maximum coincidence delay (1=min, 256=max [=64us])\")"
53#define COINCIDENCE_DELAY_CODE            90
54
55#define COINCIDENCE_MODE_STRING           "Coincidence mode"
56#define COINCIDENCE_MODE_EXTRA            "(\"Coinc Mode: On/Off=0x01, TrgInLevel=0x02, Notify=0x04, NotifInitLevel=0x08, NotifyValid=0x10, NotifyByPulse=0x20\")"
57#define COINCIDENCE_MODE_CODE             100
58
59#define COUNTERS_STRING                   "Counters"
60#define COUNTERS_EXTRA                    "(\"Counts: Triggers, Valid coinc, Invalid coinc\")"
61#define COUNTERS_CODE                     110
62
63#define DACS_STRING                       "DACs"
64#define DACS_EXTRA                        "(\"DACs values of all chips\")"
65#define DACS_CODE                         120
66
67#define HV_STRING                         "HV"
68#define HV_EXTRA                          "(\"Bias Voltage [V]\")"
69#define HV_CODE                           130
70
71#define HW_TIMER_STRING                   "Hw timer"
72#define HW_TIMER_EXTRA                    "(\"Hw timer mode\")"
73#define HW_TIMER_CODE                     140
74
75#define INTERFACE_STRING                  "Interface"
76#define INTERFACE_EXTRA                   "(\"Medipix interface\")"
77#define INTERFACE_CODE                    160
78
79#define MPX_CLOCK_STRING                  "Mpx clock"
80#define MPX_CLOCK_EXTRA                   "(\"Medipix clock [MHz]\")"
81#define MPX_CLOCK_CODE                    180
82
83#define MPX_TYPE_STRING                   "Mpx type"
84#define MPX_TYPE_EXTRA                    "(\"Medipix type (1-2.1, 2-MXR, 3-TPX)\")"
85#define MPX_TYPE_CODE                     200
86
87#define POLARITY_STRING                   "Polarity"
88#define POLARITY_EXTRA                    "(\"Detector polarity (0 negative, 1 positive)\")"
89#define POLARITY_CODE                     220
90
91#define START_TIME_STRING                 "Start time"
92#define START_TIME_EXTRA                  "(\"Acquisition start time\")"
93#define START_TIME_CODE                   240
94
95#define START_TIME_S_STRING               "Start time (string)"
96#define START_TIME_S_EXTRA                "(\"Acquisition start time (string)\")"
97#define START_TIME_S_CODE                 260
98
99#define TIMEPIX_CLOCK_STRING              "Timepix clock"
100#define TIMEPIX_CLOCK_EXTRA               "(\"Timepix clock (0-3: 10MHz, 20MHz, 40MHz, 80MHz)\")"
101#define TIMEPIX_CLOCK_CODE                280
102
103#define TRIGGER_TIME_STRING               "Triger time"
104#define TRIGGER_TIME_EXTRA                "(\"Last trigger time [s]\")"
105#define TRIGGER_TIME_CODE                 300
106
107
108#define TYPE_256x256_STRING  "256x256_FORMAT"
109#define TYPE_XYC_STRING      "XYC_FORMAT"
110#define TYPE_XC_STRING       "XC_FORMAT"
111
112#define CHARS_INLINE_256x256_FORMAT  516
113#define CHARS_INLINE_XYC_FORMAT      18+5 /* trying to meet the
114                                             maximun lenght in the
115                                             case of XYC format. 5 is
116                                             just an offset */
117
118#define FRAME_TYPE_STRING "format = "
Note: See TracBrowser for help on using the repository browser.