ngc 1.4.0
 
Loading...
Searching...
No Matches
ngcdcsLISA.hpp
Go to the documentation of this file.
1
7#ifndef ngcdcsLISA_H
8#define ngcdcsLISA_H
9
10
11#ifndef __cplusplus
12#error This is a C++ include file and cannot be used from plain C
13#endif
14
15#include <ngc/core/ngcbAddr.h>
16#include <ngc/core/ngcbMOD.hpp>
18
19
23#define ngcdcsLISA_MAX_INITFILES 8
24
28#define ngcdcsLISA_REV0 0x00100000
29
33class ngcdcsLISA: public ngcbMOD
34{
35public:
38
41
44
46 char gainMap[256];
47
50
53
55 int numRg;
56
58 int chan[12];
59
61 explicit ngcdcsLISA(const ngcb_route_t &r);
62
64 ngcdcsLISA(ngcbIFC *ifc, const ngcb_route_t &r);
65
67 virtual ~ngcdcsLISA();
68
70 void Reset();
71
73 int Enable(int check = 1);
74
76 int Disable();
77
79 int Selftest();
80
82 int AtStop();
83
85 int AfterStop();
86
88 int AtStart();
89
91 int AutoStart();
92
94 void WrAddrCB(int addr, const int *buffer, int size);
95
97 int SetupKey(const char *key, const int *idx, const char *value,
98 int *status = NULL);
99
101 int StatusKey(const char *key, const int *idx, char *value,
102 int *status = NULL);
103
104protected:
105
106private:
108 int *gain_;
109
111 void Init_();
112
114 int ResetCamera_();
115
117 int ChanSetup_();
118
120 int RowGroupSetup_();
121
123 int LdGain_(const char *fileName);
124
126 int LdGain_(const char *buffer, size_t size);
127
129 void DefaultGain_();
130
132 int GainSetup_();
133
135 int GainSetup_rev0_();
136};
137
138#endif
Definition ngcbIFC.hpp:754
ngcbMOD(const ngcbMOD &other)
Copy constructor.
Definition ngcbMOD.cpp:43
int AutoStart()
Function to be executed after read-out start.
Definition ngcdcsLISA.cpp:213
int StatusKey(const char *key, const int *idx, char *value, int *status=NULL)
Status.
Definition ngcdcsLISA.cpp:421
char gainMap[256]
Gain map.
Definition ngcdcsLISA.hpp:46
void WrAddrCB(int addr, const int *buffer, int size)
WRADDR call-back.
Definition ngcdcsLISA.cpp:223
int AfterStop()
Function to be executed after read-out stop.
Definition ngcdcsLISA.cpp:189
void Reset()
Align software state after reset.
Definition ngcdcsLISA.cpp:71
int AtStart()
Function to be executed before read-out start.
Definition ngcdcsLISA.cpp:198
int SetupKey(const char *key, const int *idx, const char *value, int *status=NULL)
Setup.
Definition ngcdcsLISA.cpp:246
ngcdcsLISA(const ngcb_route_t &r)
Constructor with route.
Definition ngcdcsLISA.cpp:30
int rgAddrTop
Row-Group address (top)
Definition ngcdcsLISA.hpp:49
virtual ~ngcdcsLISA()
Destructor.
Definition ngcdcsLISA.cpp:46
int autoStart
Automatic immediate start.
Definition ngcdcsLISA.hpp:43
int chan[12]
Channel-enabled flags.
Definition ngcdcsLISA.hpp:58
int numRg
Number of row-groups.
Definition ngcdcsLISA.hpp:55
char initFile[ngcdcsLISA_MAX_INITFILES][256]
Register initialization file.
Definition ngcdcsLISA.hpp:40
int AtStop()
Function to be executed before read-out stop.
Definition ngcdcsLISA.cpp:180
ngcdcsSEQ * seq
Associated sequencer.
Definition ngcdcsLISA.hpp:37
int Enable(int check=1)
Call-back at transition to operational state.
Definition ngcdcsLISA.cpp:76
int Selftest()
Execute selftest.
Definition ngcdcsLISA.cpp:172
int Disable()
Call-back at transition to not operational state.
Definition ngcdcsLISA.cpp:167
int rgAddrBot
Row-Group address (bottom)
Definition ngcdcsLISA.hpp:52
Definition ngcdcsSEQ.hpp:574
#define ngcdcsLISA_MAX_INITFILES
Definition ngcdcsLISA.hpp:23
Definition ngcbIFC.hpp:72