ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcdcsLISA.hpp
Go to the documentation of this file.
1
8#ifndef ngcdcsLISA_H
9#define ngcdcsLISA_H
10
11
12#ifndef __cplusplus
13#error This is a C++ include file and cannot be used from plain C
14#endif
15
16#include <ngc/core/ngcbAddr.h>
17#include <ngc/core/ngcbMOD.hpp>
19
20
24#define ngcdcsLISA_MAX_INITFILES 8
25
29#define ngcdcsLISA_REV0 0x00100000
30
34class ngcdcsLISA: public ngcbMOD
35{
36public:
39
42
45
48
50 char gainMap[256];
51
54
57
59 int numRg;
60
62 int chan[12];
63
65 explicit ngcdcsLISA(const ngcb_route_t &r);
66
68 ngcdcsLISA(ngcbIFC *ifc, const ngcb_route_t &r);
69
71 virtual ~ngcdcsLISA();
72
74 void Reset();
75
77 int Enable(int check = 1);
78
80 int Disable();
81
83 int Selftest();
84
86 int AtStop();
87
89 int AfterStop();
90
92 int AtStart();
93
95 int AutoStart();
96
98 void WrAddrCB(int addr, const int *buffer, int size);
99
101 int SetupKey(const char *key, const int *idx, const char *value,
102 int *status = NULL);
103
105 int StatusKey(const char *key, const int *idx, char *value,
106 int *status = NULL);
107
108protected:
109
110private:
112 int *gain_;
113
115 void Init_();
116
118 int ResetCamera_();
119
121 int ChanSetup_();
122
124 int RowGroupSetup_();
125
127 int LdGain_(const char *fileName);
128
130 int LdGain_(const char *buffer, size_t size);
131
133 void DefaultGain_();
134
136 int GainSetup_();
137
139 int GainSetup_rev0_();
140};
141
142#endif
Definition ngcbIFC.hpp:760
ngcbMOD(const ngcbMOD &other)
Copy constructor.
Definition ngcbMOD.cpp:43
int AutoStart()
Function to be executed after read-out start.
Definition ngcdcsLISA.cpp:236
int StatusKey(const char *key, const int *idx, char *value, int *status=NULL)
Status.
Definition ngcdcsLISA.cpp:466
char gainMap[256]
Gain map.
Definition ngcdcsLISA.hpp:50
void WrAddrCB(int addr, const int *buffer, int size)
WRADDR call-back.
Definition ngcdcsLISA.cpp:246
int AfterStop()
Function to be executed after read-out stop.
Definition ngcdcsLISA.cpp:212
void Reset()
Align software state after reset.
Definition ngcdcsLISA.cpp:76
int AtStart()
Function to be executed before read-out start.
Definition ngcdcsLISA.cpp:221
int SetupKey(const char *key, const int *idx, const char *value, int *status=NULL)
Setup.
Definition ngcdcsLISA.cpp:269
ngcdcsLISA(const ngcb_route_t &r)
Constructor with route.
Definition ngcdcsLISA.cpp:31
int rgAddrTop
Row-Group address (top)
Definition ngcdcsLISA.hpp:53
virtual ~ngcdcsLISA()
Destructor.
Definition ngcdcsLISA.cpp:47
int autoStart
Automatic immediate start.
Definition ngcdcsLISA.hpp:47
int chan[12]
Channel-enabled flags.
Definition ngcdcsLISA.hpp:62
int numRg
Number of row-groups.
Definition ngcdcsLISA.hpp:59
char initFile[ngcdcsLISA_MAX_INITFILES][256]
Register initialization files.
Definition ngcdcsLISA.hpp:41
int AtStop()
Function to be executed before read-out stop.
Definition ngcdcsLISA.cpp:203
ngcdcsSEQ * seq
Associated sequencer.
Definition ngcdcsLISA.hpp:38
int Enable(int check=1)
Call-back at transition to operational state.
Definition ngcdcsLISA.cpp:81
int Selftest()
Execute selftest.
Definition ngcdcsLISA.cpp:195
char resetFile[ngcdcsLISA_MAX_INITFILES][256]
Register reset files.
Definition ngcdcsLISA.hpp:44
int Disable()
Call-back at transition to not operational state.
Definition ngcdcsLISA.cpp:172
int rgAddrBot
Row-Group address (bottom)
Definition ngcdcsLISA.hpp:56
Definition ngcdcsSEQ.hpp:582
#define ngcdcsLISA_MAX_INITFILES
Definition ngcdcsLISA.hpp:24
Definition ngcbIFC.hpp:78