source: hvcontrol/src/HVConfig.h@ 98

Last change on this file since 98 was 93, checked in by ogrimm, 15 years ago
Added writing of slow data
File size: 882 bytes
Line 
1
2#ifndef HVCONFIG_H_SEEN
3#define HVCONFIG_H_SEEN
4
5#include <time.h>
6#include <string.h>
7#include <stdlib.h>
8#include <stdio.h>
9
10#define MAX_COM_SIZE 1000
11#define MAX_NUM_HVBOARDS 20
12#define NUM_CHAINS 4
13#define NUM_CHANNELS 32
14#define BUFFER_LENGTH 256
15
16#define MIN_TIMEOUT 0.01
17#define MAX_TIMEOUT 5.0
18
19#define MIN_RATE 0.01
20#define MAX_RATE 50.0
21
22
23class HVConfig {
24
25 public:
26
27 HVConfig(const char *);
28 ~HVConfig();
29
30 int NumHVBoards;
31 int USBDeviceNumber[MAX_NUM_HVBOARDS];
32
33 int fCCPort;
34
35 bool TestMode;
36
37 char fLogFile[BUFFER_LENGTH];
38 char fSlowDir[BUFFER_LENGTH];
39 char** fUSBDevice;
40
41 char fPixMapTable[BUFFER_LENGTH];
42
43 float fTimeOut;
44 float fStatusRefreshRate;
45
46 int DACMin;
47 int DACMax;
48
49 float fHVCalibOffset;
50 float fHVCalibSlope;
51
52 unsigned int fHVMaxDiff;
53};
54
55bool ReadCard(const char *, void *, char, FILE *, unsigned int=1);
56
57#endif
Note: See TracBrowser for help on using the repository browser.