ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcdcsCFG.hpp
Go to the documentation of this file.
1
8#ifndef ngcdcsCFG_H
9#define ngcdcsCFG_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/ngcbIFC.hpp>
17#include <ngc/core/ngcdcsAO.hpp>
19
20/*
21 * Built-in configurations
22 */
23#define ngcdcsCFG_FILE 0 //< configuration from file
24#define ngcdcsCFG_FEB 1 //< one front-end-basic board
25#define ngcdcsCFG_OPT 2 //< optical system with one FEB
26#define ngcdcsCFG_ASIC 3 //< ASIC
27#define ngcdcsCFG_AO 4 //< AO camera
28#define ngcdcsCFG_NGSD 5 //< NGSD
29
35 char name[128];
36
38 char env[32];
39
41 char host[64];
42
44 char srv[64];
45
47 char type[64];
48
50 char setup[64];
51
54
57
59 int master;
60
62 int skip;
63
65 int chain;
66
69
72
75 strcpy(name, "/dev/ngc0_com"); // default device
76 env[0] = '\0'; // use default environment name
77 host[0] = '\0'; // no host - interface is local
78 srv[0] = '\0'; // use default driver interface process
79 type[0] = '\0'; // default type
80 setup[0] = '\0'; // use default setup
81 backPlane = 1; // default is first back-plane
82 sideLink = 0; // no side link
83 master = 0; // no master
84 skip = 0; // direct connection
85 chain = 0; // direct connection
86 netTimeout = -2; // apply default timeout
87 }
88};
89
95 char voltageInitFile[256];
96
98 char voltageFile[256];
99
102
104 double diodeBias;
105
107 int ilck;
108
110 voltageFile[0] = '\0'; // no voltage file given
111 voltageInitFile[0] = '\0'; // no initialization file given
112 preampOffset = 0.0; // zero offset
113 diodeBias = 0.0; // zero bias
114 ilck = 0; // interlock disabled
115 }
116};
117
123 int devIdx;
124
127
130
132 int maxDc;
133
136
139
141 int ilck;
142
145
147 double margin;
148
150 double calMax;
151
153 char group[64];
154
156 char name[64];
157
159 char spec[64];
160
163 devIdx = 0;
164 route.numHdr = 1;
165 route.hdr[0] = 0x2;
166 maxClk = ngcbCLDC_FEB_MAX_CLK; // default maximum
167 maxDc = 64; // default maximum (TBD)
168 autoEnable = 0; // no auto-enable
169 autoDisable = 0; // no auto-disable
170 autoCal = 0; // no auto-calibration
171 ilck = 0; // interlock disabled
172 margin = 0.0; // maximum margin (0.0 = disabled)
173 calMax = ngcdcsCLDC_CAL_MAX; // default maximum correction value
174 group[0] = '\0'; // no group assigned
175 name[0] = '\0'; // no name assigned
176 spec[0] = '\0'; // no type specifier
177 }
178};
179
185 char clkFile[256];
186
189
192
195
198
200 int cvtExt;
201
204
207
210 clkFile[0] = '\0'; // no clock-file given
211 timeFactor = 1; // no global mutliplier
212 timeAdd = 0; // no global add-value
213 continuous = 0; // non-continuous mode
214 runCtrl = 1; // external run-signal
215 cvtExt = 1; // external convert
216 syncExt = 1; // external SYNC-pulse
217 autoStop = 1; // automatic stop
218 }
219};
220
227
230
232 double clock;
233
236
238 char group[64];
239
241 char name[64];
242
244 char spec[64];
245
248 devIdx = 0;
249 route.numHdr = 1;
250 route.hdr[0] = 0x2;
251 clock = 10e-9; // default clock is 10 nanoseconds
252 softMon = 0; // no soft-monitor
253 group[0] = '\0'; // no group assigned
254 name[0] = '\0'; // no name assigned
255 spec[0] = '\0'; // no type specifier
256 }
257};
258
264 int delay;
265
267 double offset;
268
271
274
277
280
283
286
289
291 int clamp;
292
294 int filter;
295
298 delay = 0; // no conversion strobe delay
299 offset = 0.0; // no offset
300 enable = -1; // enable all
301 simMode = ngcbADC_SIM_NUMBERS; // simulate channel numbers
302 opMode = ngcbADC_MODE_NORMAL; // normal mode (no simulation)
303 packetSize = 0; // let system choose
304 packetCnt = 0; // no data from down-link
305 convert1 = 1; // conversion on strobe 1
306 convert2 = 0; // no conversion on strobe 2
307 clamp = 0; // no clamp
308 filter = 0; // filter = 0.5us
309 }
310};
311
318
321
323 int num;
324
327
330
333
335 char group[64];
336
338 char name[64];
339
341 char spec[64];
342
345 devIdx = 0;
346 route.numHdr = 1;
347 route.hdr[0] = 0x2;
348 num = 4; // 4 ADC units on board
349 bitPix = 16; // 16-bit ADC
350 firstInChain = 1; // first module in the chain
351 packetCnt = 0; // no data from down-link
352 group[0] = '\0'; // no group assigned
353 name[0] = '\0'; // no name assigned
354 spec[0] = '\0'; // no type specifier
355 }
356};
357
363 int devIdx;
364
367
369 char name[64];
370
372 char spec[64];
373
376 devIdx = 0;
377 route.numHdr = 1;
378 route.hdr[0] = 0x2;
379 name[0] = '\0'; // no name assigned
380 spec[0] = '\0'; // no type specifier
381 }
382};
383
390
393
396
398 char group[64];
399
401 char name[64];
402
404 char spec[64];
405
407 double version;
408
411 devIdx = 0;
412 route.numHdr = 1;
413 route.hdr[0] = 0x2;
414 numChan = 4; // four channels
415 version = 3.0; // version 3.0
416 group[0] = '\0'; // no group assigned
417 name[0] = '\0'; // no name assigned
418 spec[0] = '\0'; // no type specifier
419 }
420};
421
428
431
433 char name[64];
434
436 char spec[64];
437
440 devIdx = 0;
441 route.numHdr = 1;
442 route.hdr[0] = 0x2;
443 name[0] = '\0';
444 spec[0] = '\0';
445 }
446};
447
454
457 int i;
458 for (i=0;i<ngcdcsNGC2_MAX_INITFILES;i++) initFile[i][0] = '\0';
459 }
460};
461
468
471
473 char name[64];
474
476 char spec[64];
477
480 devIdx = 0;
481 route.numHdr = 1;
482 route.hdr[0] = 0x2;
483 name[0] = '\0';
484 spec[0] = '\0';
485 }
486};
487
494
496 int delay[42];
497
499 double vsph[4];
500
502 double viph[4];
503
505 int nx;
506
508 int ny;
509
512
514 int hwRev;
515
517 double reDelay[8];
518
520 double feDelay[8];
521
524
527
530
531 // HV-channel map
532 int hvChan[4];
533
536
539 int i;
540
541 for (i=0;i<ngcdcsAO_MAX_INITFILES;i++) initFile[i][0] = '\0';
542 nx = 240;
543 ny = 240;
544 master = 0;
545 hwRev = 1;
546
547 for (i=0;i<42;i++)
548 {
549 delay[i] = 0; // no delay
550 }
551 for (i=0;i<4;i++)
552 {
553 vsph[i] = 0.0; // all levels are zero
554 viph[i] = 0.0; // all levels are zero
555 }
556 for (i=0;i<8;i++)
557 {
558 reDelay[i] = 0.0; // no delay on rising edges
559 feDelay[i] = 0.0; // no delay on falling edges
560 }
561
562 hvChan[0] = 0;
563 hvChan[1] = 2;
564 hvChan[2] = 4;
565 hvChan[3] = 6;
566
567 shpWidth = 9;
568 }
569};
570
577
580
582 char name[64];
583
585 char spec[64];
586
589 devIdx = 0;
590 route.numHdr = 1;
591 route.hdr[0] = 0x2;
592 name[0] = '\0';
593 spec[0] = '\0';
594 }
595};
596
603
605 char gainMap[256];
606
609
612
614 int numRg;
615
617 int chan[12];
618
622 int i;
623 for (i=0;i<ngcdcsLISA_MAX_INITFILES;i++) initFile[i][0] = '\0';
624 gainMap[0] = '\0';;
625 rgAddrTop = 0;
626 rgAddrBot = 0;
627 numRg = 100;
628 for (i=0;i<12;i++) chan[i] = 1;
629 }
630};
631
638
641
643 char name[64];
644
646 char spec[64];
647
649 double extRef;
650
653 devIdx = 0;
654 route.numHdr = 1;
655 route.hdr[0] = 0x2;
656 name[0] = '\0';
657 spec[0] = '\0';
658 extRef = 0.0;
659 }
660};
661
667 int devIdx;
668
671
673 char name[64];
674
676 char spec[64];
677
680 devIdx = 0;
681 route.numHdr = 1;
682 route.hdr[0] = 0x2;
683 name[0] = '\0'; // no name assigned
684 spec[0] = '\0'; // no type specifier
685 }
686};
687
693 int devIdx;
694
697
699 char name[64];
700
702 char spec[64];
703
706 devIdx = 0;
707 route.numHdr = 1;
708 route.hdr[0] = 0x2;
709 name[0] = '\0'; // no name assigned
710 spec[0] = '\0'; // no type specifier
711 }
712};
713
719 int devIdx;
720
723
725 int id;
726
728 char name[64];
729
731 char spec[64];
732
735 devIdx = 0;
736 route.numHdr = 1;
737 route.hdr[0] = 0x2;
738 id = 0;
739 name[0] = '\0';
740 spec[0] = '\0';
741 }
742};
743
747#define ngcdcsREG_READ 1
748
752#define ngcdcsREG_WRITE 2
753
760
763
766
768 int mask;
769
771 int shift;
772
775
777 char name[64];
778
780 char value[256];
781
783 int access;
784
787 devIdx = 0;
788 address = 0x0;
789 mask = 0xffffffff;
790 shift = 0;
791 mirror = 0x0;
792 name[0] = '\0';
793 value[0] = '\0';
795 }
796};
797
803 char frame[32];
804
806 char param[32];
807
810
813 frame[0] = '\0';
814 param[0] = '\0';
815 acq[0] = 0; // all processes
816 acq[1] = -1; // list termination
817 }
818
820 int Valid(int idx) {
821 int i;
822 for (i=0;i<ngcdcsACQ_MAX_PROC;i++)
823 {
824 if ((acq[i] == 0) || (acq[i] == idx)) return (1);
825 else if (acq[i] == -1) break;
826 }
827 return (0);
828 }
829};
830
834#define ngcdcsMAX_FRAME_PARAM (ngcdcsMAX_FRAME_TYPES * ngcdcsACQ_MAX_PROC)
835
840 char name[64]; //< Command name
841 char cmd[128]; //< Command alias
842
844 ngcdcs_alias_t() {name[0] = '\0'; cmd[0] = '\0';}
845};
846
850#define ngcdcsMAX_ALIAS 32
851
856 char serNo[80]; //< Serial number
857 int serNoX; //< Serial number differs
858 char serNoTrans[80]; //< Transition board serial number
859 int serNoTransX; //< Transition board serial number differs
860 char serNoBack[80]; //< Backplane serial number
861 int serNoBackX; //< Backplane serial number differs
862 char type[64]; //< Board type
863 int typeX; //< Board type differs
864 int version; //< Version
865 int versionX; //< Version differs
866 char revision[32]; //< Revision
867 int revisionX; //< Revision differs
868
871
873 void Clear() {
874 serNo[0] = '\0'; serNoTrans[0] = '\0'; serNoBack[0] = '\0';
875 serNoX = 0; serNoTransX = 0; serNoBackX = 0;
876 type[0] = '\0'; typeX = 0;
877 version = 0x0; versionX = 0;
878 revision[0] = '\0'; revisionX = 0;
879 }
880
882 int Compare() {
883 return (serNoX || serNoTransX || serNoBackX || typeX || versionX ||
884 revisionX);
885 }
886};
887
892 int numBoard; //< Number of boards
893 int numBoardX; //< Number of boards differs
894 char serNo[80]; //< Serial number
895 int serNoX; //< Serial number differs
896 char revision[32]; //< Revision
897 int revisionX; //< Revision differs
899
902
904 void Clear() {
905 int i;
906 numBoard = 0; numBoardX = 0;
907 revisionX = 0; serNoX = 0;
908 revision[0] = '\0'; serNo[0] = '\0';
909 for (i=0;i<ngcdcsCTRL_MAX_BOARD;i++) board[i].Clear();
910 }
911
913 int Compare() {
914 int i;
915 int x = numBoardX;
916 for (i=0;i<numBoard;i++) x = x || board[i].Compare();
917 return (x);
918 }
919};
920
925 int numDev; //< Number of devices
926 int numDevX; //< Number of devices differs
927 ngcdcs_refdev_t dev[ngcdcsCTRL_MAX_DEV]; //< Reference devices
928
931
933 void Clear() {
934 int i;
935 numDev = 0; numDevX = 0;
936 for (i=0;i<ngcdcsCTRL_MAX_DEV;i++) dev[i].Clear();
937 }
938
940 int Compare() {
941 int i;
942 int x = numDevX;
943 for (i=0;i<numDev;i++) x = x || dev[i].Compare();
944 return (x);
945 }
946};
947
954
957
960
963
966
969
972
975
978
981
984
987
990
993
996
999
1002
1005
1008
1011
1014
1017
1020
1023
1026
1029
1032
1035
1038
1041
1044
1046 int sim;
1047
1050
1053
1056
1059
1062
1065
1068
1070 char detCfgFile[256];
1071
1073 char fileName[256];
1074
1076 char dsup[256];
1077
1080
1083
1086
1089
1091 int led;
1092
1095
1098
1101
1104
1106 char macro[256];
1107
1109
1112 numDev = 0;
1113 numCldcMod = 0;
1114 numSeqMod = 0;
1115 numAdcMod = 0;
1116 numScaMod = 0;
1117 numShutterMod = 0;
1118 numPreampMod = 0;
1119 numNgc2Mod = 0;
1120 numAoMod = 0;
1121 numLisaMod = 0;
1122 numNgsdMod = 0;
1123 numTecMod = 0;
1124 numGeosnapMod = 0;
1125 numAcqMod = 0;
1126 numTccdMod = 0;
1127 sim = 0;
1128 fitsBlock = 16;
1129 extFits = 1;
1132 oneFile = 1;
1133 autoOnline = 0;
1134 autoStart = 0;
1135 memset(detCfgFile, 0, sizeof(detCfgFile));
1136 memset(fileName, 0, sizeof(fileName));
1137 detCfgFile[0] = '\0';
1138 fileName[0] = '\0';
1139 dsup[0] = '\0';
1140 polling = 0;
1141 pollInterval = 1000;
1142 procMon = 1;
1143 largeFile = 0;
1144 led = 1;
1145 rtdDb = 0;
1146 macro[0] = '\0';
1147 ditPrecision = 0;
1148 }
1149};
1150
1154#define ngcdcsMAX_RM 32
1155
1161 int id;
1162
1164 char name[64];
1165
1167 char desc[256];
1168
1171
1174
1176 char dsup[256];
1177
1179 explicit ngcdcs_rm_t(int n = -1) {
1180 int i;
1181 id = n;
1182 if (id >= 0) sprintf(name, "Mode%d", id);
1183 else name[0] = '\0';
1184 desc[0] = '\0';
1185 for (i=0;i<ngcdcsCTRL_MAX_SEQ;i++) seqPrg[i][0] = '\0';
1186 for (i=0;i<ngcdcsACQ_MAX_PROC;i++) acqProc[i][0] = '\0';
1187 dsup[0] = '\0';
1188 }
1189};
1190
1197
1200
1203
1206
1209
1212
1215
1218
1221
1223 char name[32];
1224
1226 char id[32];
1227
1230
1233
1236
1239
1242
1245
1247 char fileName[256];
1248
1250 char dsup[256];
1251
1254
1257
1260 int i;
1261 for (i=0;i<ngcdcsACQ_MAX_PROC;i++) {splitX[i] = 0; splitY[i] = 0;}
1262 numDet = 1;
1263 numReadMod = 0;
1264 rmDefault = 0;
1265 numOutput = 4;
1266 strcpy(name, "DET-NAME");
1267 strcpy(id, "DET-ID");
1268 memset(fileName, 0, sizeof(fileName));
1269 fileName[0] = '\0';
1270 dsup[0] = '\0';
1271 haveChipIndex = 0;
1272 }
1273
1274};
1275
1276#endif
Definition ngcdcsAO.hpp:190
#define ngcbCLDC_FEB_MAX_CLK
Definition ngcbAddr.h:335
#define ngcbADC_SIM_NUMBERS
Definition ngcbAddr.h:415
#define ngcbADC_MODE_NORMAL
Definition ngcbAddr.h:413
#define ngcdcsACQ_MAX_PROC
Definition ngcdcsACQ.hpp:71
#define ngcdcsAO_MAX_INITFILES
Definition ngcdcsAO.hpp:41
#define ngcdcsMAX_ALIAS
Definition ngcdcsCFG.hpp:850
#define ngcdcsREG_WRITE
Definition ngcdcsCFG.hpp:752
#define ngcdcsREG_READ
Definition ngcdcsCFG.hpp:747
#define ngcdcsMAX_RM
Definition ngcdcsCFG.hpp:1154
#define ngcdcsMAX_FRAME_PARAM
Definition ngcdcsCFG.hpp:834
#define ngcdcsCLDC_CAL_MAX
Definition ngcdcsCLDC.hpp:44
#define ngcdcsCTRL_MAX_PREAMP
Definition ngcdcsCTRL.hpp:47
#define ngcdcsCTRL_MAX_CLDC
Definition ngcdcsCTRL.hpp:43
#define ngcdcsCTRL_MAX_SEQ
Definition ngcdcsCTRL.hpp:44
#define ngcdcsCTRL_MAX_GEOSNAP
Definition ngcdcsCTRL.hpp:53
#define ngcdcsCTRL_MAX_SCA
Definition ngcdcsCTRL.hpp:54
#define ngcdcsCTRL_MAX_ADCMOD
Definition ngcdcsCTRL.hpp:45
#define ngcdcsCTRL_MAX_BOARD
Definition ngcdcsCTRL.hpp:62
#define ngcdcsCTRL_MAX_TEC
Definition ngcdcsCTRL.hpp:52
#define ngcdcsCTRL_MAX_REG
Definition ngcdcsCTRL.hpp:57
#define ngcdcsCTRL_MAX_NGSD
Definition ngcdcsCTRL.hpp:51
#define ngcdcsCTRL_MAX_DEV
Definition ngcdcsCTRL.hpp:56
#define ngcdcsCTRL_MAX_NGC2
Definition ngcdcsCTRL.hpp:48
#define ngcdcsCTRL_MAX_SHUTTER
Definition ngcdcsCTRL.hpp:46
#define ngcdcsCTRL_MAX_AO
Definition ngcdcsCTRL.hpp:49
#define ngcdcsCTRL_MAX_LISA
Definition ngcdcsCTRL.hpp:50
#define ngcdcsEXP_NAMING_REQUEST
Definition ngcdcsEXP.hpp:80
#define ngcdcsEXP_FORMAT_SINGLE
Definition ngcdcsEXP.hpp:69
#define ngcdcsMAX_DET
Definition ngcdcsFINFO.hpp:30
#define ngcdcsLISA_MAX_INITFILES
Definition ngcdcsLISA.hpp:24
#define ngcdcsNGC2_MAX_INITFILES
Definition ngcdcsNGC2.hpp:23
Definition ngcbIFC.hpp:78
Definition ngcdcsACQ_DATA.hpp:25
Definition ngcdcsCFG.hpp:315
char group[64]
Optional group.
Definition ngcdcsCFG.hpp:335
int devIdx
Device index.
Definition ngcdcsCFG.hpp:317
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:320
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:338
ngcdcs_adc_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:344
int firstInChain
First in chain.
Definition ngcdcsCFG.hpp:329
int num
Number of ADCs on board.
Definition ngcdcsCFG.hpp:323
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:341
int bitPix
Number of bits per pixel (16, 18, ...)
Definition ngcdcsCFG.hpp:326
int packetCnt
Packet routing length.
Definition ngcdcsCFG.hpp:332
Definition ngcdcsCFG.hpp:262
ngcdcs_adc_dcf_t()
Constructor.
Definition ngcdcsCFG.hpp:297
int clamp
Clamp.
Definition ngcdcsCFG.hpp:291
int delay
Default conversion strobe delay.
Definition ngcdcsCFG.hpp:264
int packetCnt
Default packet routing length.
Definition ngcdcsCFG.hpp:282
int packetSize
Default packet size.
Definition ngcdcsCFG.hpp:279
double offset
Default offset.
Definition ngcdcsCFG.hpp:267
int convert1
Conversion on strobe 1.
Definition ngcdcsCFG.hpp:285
int filter
Filter.
Definition ngcdcsCFG.hpp:294
int simMode
Simulation mode.
Definition ngcdcsCFG.hpp:273
int opMode
Operation mode.
Definition ngcdcsCFG.hpp:276
int convert2
Conversion on strobe 2.
Definition ngcdcsCFG.hpp:288
int enable
Number of enabled ADCs on board.
Definition ngcdcsCFG.hpp:270
Definition ngcdcsAO.hpp:80
Definition ngcdcsCFG.hpp:839
char cmd[128]
Definition ngcdcsCFG.hpp:841
ngcdcs_alias_t()
Constructor.
Definition ngcdcsCFG.hpp:844
char name[64]
Definition ngcdcsCFG.hpp:840
Definition ngcdcsCFG.hpp:465
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:470
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:473
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:476
int devIdx
Device index.
Definition ngcdcsCFG.hpp:467
ngcdcs_ao_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:479
Definition ngcdcsCFG.hpp:491
double vsph[4]
3-level-clock voltage levels S-phase
Definition ngcdcsCFG.hpp:499
char initFile[ngcdcsAO_MAX_INITFILES][256]
Register initialization files.
Definition ngcdcsCFG.hpp:493
int shpWidth
SHP-width (ALICE)
Definition ngcdcsCFG.hpp:535
int ny
Image transfer y-dimension.
Definition ngcdcsCFG.hpp:508
int hwRev
Hardware revision (0=protoype, 1=reshaped)
Definition ngcdcsCFG.hpp:514
int delay[42]
Delay (in ticks)
Definition ngcdcsCFG.hpp:496
double reDelay[8]
Rising edge calibration delays (in ticks)
Definition ngcdcsCFG.hpp:517
int master
Synchronization master flag.
Definition ngcdcsCFG.hpp:511
double viph[4]
3-level-clock voltage levels I-phase
Definition ngcdcsCFG.hpp:502
ngcdcs_afe_t afe
AFE control.
Definition ngcdcsCFG.hpp:526
double feDelay[8]
Falling edge calibration delays (in ticks)
Definition ngcdcsCFG.hpp:520
int hvChan[4]
Definition ngcdcsCFG.hpp:532
ngcdcsAO_RMP rmp
ALICE regions, masks, patterns.
Definition ngcdcsCFG.hpp:529
ngcdcs_ao_dcf_t()
Constructor.
Definition ngcdcsCFG.hpp:538
int nx
Image transfer x-dimension.
Definition ngcdcsCFG.hpp:505
ngcdcs_aocal_t calib[4]
High voltage calibration.
Definition ngcdcsCFG.hpp:523
Definition ngcdcsAO.hpp:99
Definition ngcdcsFINFO.hpp:35
Definition ngcdcsCFG.hpp:121
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:156
double margin
Margin for voltage check (in volts)
Definition ngcdcsCFG.hpp:147
char group[64]
Optional group.
Definition ngcdcsCFG.hpp:153
int maxDc
Maximum number of biases.
Definition ngcdcsCFG.hpp:132
ngcdcs_cldc_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:162
int devIdx
Device index.
Definition ngcdcsCFG.hpp:123
int ilck
Enable/disable external interlock.
Definition ngcdcsCFG.hpp:141
int maxClk
Maximum number of clocks.
Definition ngcdcsCFG.hpp:129
double calMax
Voltage calibration limit (in volts)
Definition ngcdcsCFG.hpp:150
int autoDisable
Disable during setup.
Definition ngcdcsCFG.hpp:138
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:159
int autoCal
Calibrate at on-line.
Definition ngcdcsCFG.hpp:144
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:126
int autoEnable
Enable at on-line.
Definition ngcdcsCFG.hpp:135
Definition ngcdcsCFG.hpp:93
double diodeBias
Diode bias.
Definition ngcdcsCFG.hpp:104
int ilck
Enable/disable external interlock.
Definition ngcdcsCFG.hpp:107
double preampOffset
Preamplifier offset.
Definition ngcdcsCFG.hpp:101
char voltageInitFile[256]
Voltage initialization file.
Definition ngcdcsCFG.hpp:95
char voltageFile[256]
Voltage file to load.
Definition ngcdcsCFG.hpp:98
ngcdcs_cldc_dcf_t()
Definition ngcdcsCFG.hpp:109
ngcdcs_cldc_dcf_t cldc[ngcdcsCTRL_MAX_CLDC]
CLDC module detector configuration.
Definition ngcdcsCFG.hpp:1199
int numReadMod
Number of read-out modes.
Definition ngcdcsCFG.hpp:1241
char dsup[256]
Default parameter setup file (optional)
Definition ngcdcsCFG.hpp:1250
char name[32]
Detector system name.
Definition ngcdcsCFG.hpp:1223
ngcdcs_adc_dcf_t adc[ngcdcsCTRL_MAX_ADCMOD]
ADC module detector configuration.
Definition ngcdcsCFG.hpp:1202
ngcdcs_ngc2_dcf_t ngc2[ngcdcsCTRL_MAX_NGC2]
NGC2 basic module detector configuration.
Definition ngcdcsCFG.hpp:1205
ngcdcs_win_t win
Default window.
Definition ngcdcsCFG.hpp:1253
int numOutput
Total number of outputs.
Definition ngcdcsCFG.hpp:1229
int splitY[ngcdcsACQ_MAX_PROC]
FITS extensions splitting Y.
Definition ngcdcsCFG.hpp:1235
ngcdcs_win_t acqWin[ngcdcsACQ_MAX_PROC]
Default acquisition window.
Definition ngcdcsCFG.hpp:1256
ngcdcs_seq_dcf_t seq[ngcdcsCTRL_MAX_SEQ]
Sequencer module detector configuration.
Definition ngcdcsCFG.hpp:1196
char fileName[256]
Optional filename.
Definition ngcdcsCFG.hpp:1247
int numDet
Number of detectors in mosaic.
Definition ngcdcsCFG.hpp:1217
ngcdcs_chip_t chip[ngcdcsMAX_DET]
Chip information.
Definition ngcdcsCFG.hpp:1214
int rmDefault
Default read-out mode.
Definition ngcdcsCFG.hpp:1244
ngcdcs_ao_dcf_t ao[ngcdcsCTRL_MAX_AO]
AO camera module detector configuration.
Definition ngcdcsCFG.hpp:1211
int splitX[ngcdcsACQ_MAX_PROC]
FITS extensions spltting X.
Definition ngcdcsCFG.hpp:1232
ngcdcs_lisa_dcf_t lisa[ngcdcsCTRL_MAX_LISA]
LISA camera module detector configuration.
Definition ngcdcsCFG.hpp:1208
ngcdcs_rm_t rm[ngcdcsMAX_RM]
Read-out modes.
Definition ngcdcsCFG.hpp:1238
int haveChipIndex
Expicit chip index present.
Definition ngcdcsCFG.hpp:1220
ngcdcs_detcfg_t()
Constructor.
Definition ngcdcsCFG.hpp:1259
Definition ngcdcsCFG.hpp:33
char host[64]
Host where physical interface resides.
Definition ngcdcsCFG.hpp:41
int chain
Chain length from last node to FE.
Definition ngcdcsCFG.hpp:65
int master
Master device.
Definition ngcdcsCFG.hpp:59
ngcdcs_dev_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:74
ngcb_route_t cfgRoute
Configuration route.
Definition ngcdcsCFG.hpp:71
char srv[64]
Optional driver interface process name.
Definition ngcdcsCFG.hpp:44
char type[64]
Optional interface type.
Definition ngcdcsCFG.hpp:47
int sideLink
Switch to sidelink.
Definition ngcdcsCFG.hpp:56
char setup[64]
Optional interface setup.
Definition ngcdcsCFG.hpp:50
int backPlane
Back-plane id.
Definition ngcdcsCFG.hpp:53
char name[128]
Device name.
Definition ngcdcsCFG.hpp:35
char env[32]
Environment name.
Definition ngcdcsCFG.hpp:38
int skip
Number of route nodes to skip.
Definition ngcdcsCFG.hpp:62
int netTimeout
Network timeout (seconds)
Definition ngcdcsCFG.hpp:68
Definition ngcdcsCFG.hpp:801
ngcdcs_fmp_t()
Constructor.
Definition ngcdcsCFG.hpp:812
char frame[32]
Frame-name.
Definition ngcdcsCFG.hpp:803
int acq[ngcdcsACQ_MAX_PROC+1]
Acquisition process list.
Definition ngcdcsCFG.hpp:809
int Valid(int idx)
Check if there is a valid list entry.
Definition ngcdcsCFG.hpp:820
char param[32]
Parameter-name.
Definition ngcdcsCFG.hpp:806
Definition ngcdcsCFG.hpp:691
ngcdcs_geosnap_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:705
int devIdx
Device index.
Definition ngcdcsCFG.hpp:693
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:702
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:699
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:696
Definition ngcdcsCFG.hpp:574
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:579
int devIdx
Device index.
Definition ngcdcsCFG.hpp:576
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:585
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:582
ngcdcs_lisa_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:588
Definition ngcdcsCFG.hpp:600
ngcdcs_lisa_dcf_t()
Definition ngcdcsCFG.hpp:621
int rgAddrTop
Row-Group address (top)
Definition ngcdcsCFG.hpp:608
int numRg
Number of row-groups.
Definition ngcdcsCFG.hpp:614
int chan[12]
Channels.
Definition ngcdcsCFG.hpp:617
int rgAddrBot
Row-Group address (bottom)
Definition ngcdcsCFG.hpp:611
char initFile[ngcdcsLISA_MAX_INITFILES][256]
Register initialization files.
Definition ngcdcsCFG.hpp:602
char gainMap[256]
Gain map.
Definition ngcdcsCFG.hpp:605
Definition ngcdcsCFG.hpp:425
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:430
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:433
int devIdx
Device index.
Definition ngcdcsCFG.hpp:427
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:436
ngcdcs_ngc2_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:439
Definition ngcdcsCFG.hpp:451
ngcdcs_ngc2_dcf_t()
Constructor.
Definition ngcdcsCFG.hpp:456
char initFile[ngcdcsNGC2_MAX_INITFILES][256]
Register initialization files.
Definition ngcdcsCFG.hpp:453
Definition ngcdcsCFG.hpp:635
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:643
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:646
ngcdcs_ngsd_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:652
double extRef
External reference voltage.
Definition ngcdcsCFG.hpp:649
int devIdx
Device index.
Definition ngcdcsCFG.hpp:637
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:640
Definition ngcdcsCFG.hpp:387
int devIdx
Device index.
Definition ngcdcsCFG.hpp:389
ngcdcs_pa_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:410
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:401
int numChan
Number of channels in use.
Definition ngcdcsCFG.hpp:395
double version
Preamplifier version.
Definition ngcdcsCFG.hpp:407
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:392
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:404
char group[64]
Optional group.
Definition ngcdcsCFG.hpp:398
Definition ngcdcsCFG.hpp:855
char serNoTrans[80]
Definition ngcdcsCFG.hpp:858
int serNoTransX
Definition ngcdcsCFG.hpp:859
int serNoBackX
Definition ngcdcsCFG.hpp:861
char type[64]
Definition ngcdcsCFG.hpp:862
char serNo[80]
Definition ngcdcsCFG.hpp:856
int version
Definition ngcdcsCFG.hpp:864
int typeX
Definition ngcdcsCFG.hpp:863
char revision[32]
Definition ngcdcsCFG.hpp:866
int revisionX
Definition ngcdcsCFG.hpp:867
int Compare()
Check if reference comparison is required.
Definition ngcdcsCFG.hpp:882
ngcdcs_refboard_t()
Constructor.
Definition ngcdcsCFG.hpp:870
void Clear()
Clear all.
Definition ngcdcsCFG.hpp:873
char serNoBack[80]
Definition ngcdcsCFG.hpp:860
int serNoX
Definition ngcdcsCFG.hpp:857
int versionX
Definition ngcdcsCFG.hpp:865
Definition ngcdcsCFG.hpp:891
ngcdcs_refboard_t board[ngcdcsCTRL_MAX_BOARD]
Definition ngcdcsCFG.hpp:898
char serNo[80]
Definition ngcdcsCFG.hpp:894
int numBoardX
Definition ngcdcsCFG.hpp:893
char revision[32]
Definition ngcdcsCFG.hpp:896
int Compare()
Check if reference comparison is required.
Definition ngcdcsCFG.hpp:913
ngcdcs_refdev_t()
Constructor.
Definition ngcdcsCFG.hpp:901
void Clear()
Clear all.
Definition ngcdcsCFG.hpp:904
int revisionX
Definition ngcdcsCFG.hpp:897
int serNoX
Definition ngcdcsCFG.hpp:895
int numBoard
Definition ngcdcsCFG.hpp:892
Definition ngcdcsCFG.hpp:924
int numDev
Definition ngcdcsCFG.hpp:925
int Compare()
Check if reference comparison is required.
Definition ngcdcsCFG.hpp:940
int numDevX
Definition ngcdcsCFG.hpp:926
void Clear()
Clear all.
Definition ngcdcsCFG.hpp:933
ngcdcs_refdev_t dev[ngcdcsCTRL_MAX_DEV]
Definition ngcdcsCFG.hpp:927
ngcdcs_refsys_t()
Constructor.
Definition ngcdcsCFG.hpp:930
Definition ngcdcsCFG.hpp:757
int shift
Register value shift.
Definition ngcdcsCFG.hpp:771
ngcb_route_t route
Route to board.
Definition ngcdcsCFG.hpp:762
int mask
Register value mask.
Definition ngcdcsCFG.hpp:768
int devIdx
Device index.
Definition ngcdcsCFG.hpp:759
char name[64]
Register setup parameter name.
Definition ngcdcsCFG.hpp:777
int access
Access rights.
Definition ngcdcsCFG.hpp:783
int mirror
Mirror of 32-bit register value.
Definition ngcdcsCFG.hpp:774
ngcdcs_reg_t()
Constructor.
Definition ngcdcsCFG.hpp:786
char value[256]
Default string value.
Definition ngcdcsCFG.hpp:780
int address
Register address on board.
Definition ngcdcsCFG.hpp:765
Definition ngcdcsCFG.hpp:1159
char name[64]
Name.
Definition ngcdcsCFG.hpp:1164
char seqPrg[ngcdcsCTRL_MAX_SEQ][256]
Sequencer programs.
Definition ngcdcsCFG.hpp:1170
char acqProc[ngcdcsACQ_MAX_PROC][256]
Processes for acquisition modules.
Definition ngcdcsCFG.hpp:1173
char dsup[256]
Default parameter setup file name.
Definition ngcdcsCFG.hpp:1176
ngcdcs_rm_t(int n=-1)
Constructor.
Definition ngcdcsCFG.hpp:1179
char desc[256]
Description.
Definition ngcdcsCFG.hpp:1167
int id
Unique id.
Definition ngcdcsCFG.hpp:1161
Definition ngcdcsCFG.hpp:717
ngcdcs_sca_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:734
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:722
int devIdx
Device index.
Definition ngcdcsCFG.hpp:719
int id
ASIC ID.
Definition ngcdcsCFG.hpp:725
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:731
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:728
Definition ngcdcsCFG.hpp:224
double clock
Time of one clock tick (in seconds)
Definition ngcdcsCFG.hpp:232
int devIdx
Device index.
Definition ngcdcsCFG.hpp:226
ngcdcs_seq_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:247
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:229
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:244
char group[64]
Optional group.
Definition ngcdcsCFG.hpp:238
int softMon
Use soft monitor for digital clocks.
Definition ngcdcsCFG.hpp:235
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:241
Definition ngcdcsCFG.hpp:183
int continuous
Operate in continuous mode.
Definition ngcdcsCFG.hpp:194
int autoStop
Automatic stop/start.
Definition ngcdcsCFG.hpp:206
int timeAdd
Default dwell-time add.
Definition ngcdcsCFG.hpp:191
int syncExt
External SYNC-pulse.
Definition ngcdcsCFG.hpp:203
char clkFile[256]
Clock pattern file to load.
Definition ngcdcsCFG.hpp:185
int timeFactor
Default dwell-time factor.
Definition ngcdcsCFG.hpp:188
int runCtrl
External run-control.
Definition ngcdcsCFG.hpp:197
int cvtExt
External convert.
Definition ngcdcsCFG.hpp:200
ngcdcs_seq_dcf_t()
Constructor.
Definition ngcdcsCFG.hpp:209
Definition ngcdcsCFG.hpp:361
ngcdcs_shut_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:375
int devIdx
Device index.
Definition ngcdcsCFG.hpp:363
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:369
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:372
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:366
ngcdcs_refsys_t reference0
Reference system (saved)
Definition ngcdcsCFG.hpp:1103
ngcdcs_shut_cfg_t shutter[ngcdcsCTRL_MAX_SHUTTER]
Shutter-module system configuration.
Definition ngcdcsCFG.hpp:965
int numGeosnapMod
Number of GEOSNAP modules.
Definition ngcdcsCFG.hpp:1034
ngcdcs_refsys_t reference
Reference system.
Definition ngcdcsCFG.hpp:1100
int numTecMod
Number of TEC modules.
Definition ngcdcsCFG.hpp:1031
ngcdcs_alias_t alias[ngcdcsMAX_ALIAS]
Command aliases.
Definition ngcdcsCFG.hpp:1097
int led
Flag to enable/disable the controller LEDs.
Definition ngcdcsCFG.hpp:1091
ngcdcs_seq_cfg_t seq[ngcdcsCTRL_MAX_SEQ]
Sequencer system configuration.
Definition ngcdcsCFG.hpp:959
int numDev
Number of interface devices.
Definition ngcdcsCFG.hpp:1001
int autoStart
Start at on-line.
Definition ngcdcsCFG.hpp:1067
ngcdcs_lisa_cfg_t lisa[ngcdcsCTRL_MAX_LISA]
LISA camera system configuration.
Definition ngcdcsCFG.hpp:977
int numNgc2Mod
Number of NGC2 basic modules.
Definition ngcdcsCFG.hpp:1019
int oneFile
All in one file (FITS extension format only)
Definition ngcdcsCFG.hpp:1061
int numPreampMod
Number of preamplifier-modules.
Definition ngcdcsCFG.hpp:1016
char detCfgFile[256]
Default detector configuration file.
Definition ngcdcsCFG.hpp:1070
int autoOnline
Go on-line after start-up.
Definition ngcdcsCFG.hpp:1064
ngcdcs_sca_cfg_t sca[ngcdcsCTRL_MAX_SCA]
SIDECAR asic system configuration.
Definition ngcdcsCFG.hpp:989
ngcdcs_ngsd_cfg_t ngsd[ngcdcsCTRL_MAX_NGSD]
NGSD system configuration.
Definition ngcdcsCFG.hpp:980
ngcdcs_fmp_t fmp[ngcdcsMAX_FRAME_PARAM]
Frame-type parameter definitions.
Definition ngcdcsCFG.hpp:998
ngcdcs_pa_cfg_t preamp[ngcdcsCTRL_MAX_PREAMP]
Preamplifier-module system configuration.
Definition ngcdcsCFG.hpp:968
int rtdDb
Flag to enable/disable RTD connection databasw.
Definition ngcdcsCFG.hpp:1094
int sim
Operation in simulation mode.
Definition ngcdcsCFG.hpp:1046
int numScaMod
Number of Sidecar ASIC modules.
Definition ngcdcsCFG.hpp:1037
int largeFile
Flag to enable/disable large file extension.
Definition ngcdcsCFG.hpp:1088
char fileName[256]
Optional filename.
Definition ngcdcsCFG.hpp:1073
int numAoMod
Number of AO cameras.
Definition ngcdcsCFG.hpp:1022
ngcdcs_ngc2_cfg_t ngc2[ngcdcsCTRL_MAX_NGC2]
NGC2 basic module system configuration.
Definition ngcdcsCFG.hpp:971
int numAdcMod
Number of ADC-modules.
Definition ngcdcsCFG.hpp:1010
int pollInterval
Polling interval in ms.
Definition ngcdcsCFG.hpp:1082
ngcdcs_ao_cfg_t ao[ngcdcsCTRL_MAX_AO]
AO camera system configuration.
Definition ngcdcsCFG.hpp:974
int extFits
Generate extended FITS-header.
Definition ngcdcsCFG.hpp:1052
int numSeqMod
Number of sequencer-modules.
Definition ngcdcsCFG.hpp:1007
ngcdcs_dev_cfg_t dev[ngcdcsCTRL_MAX_DEV]
Interface device system configuration.
Definition ngcdcsCFG.hpp:953
int numCldcMod
Number of CLDC-modules.
Definition ngcdcsCFG.hpp:1004
ngcdcs_tec_cfg_t tec[ngcdcsCTRL_MAX_TEC]
TEC system configuration.
Definition ngcdcsCFG.hpp:983
int polling
Enable/disable polling of sub-system status.
Definition ngcdcsCFG.hpp:1079
int numTccdMod
Number of TCCD modules.
Definition ngcdcsCFG.hpp:1043
int numShutterMod
Number of shutter-modules.
Definition ngcdcsCFG.hpp:1013
int naming
Default naming scheme.
Definition ngcdcsCFG.hpp:1058
int fitsBlock
Number of FITS-blocks to reserve for merging.
Definition ngcdcsCFG.hpp:1049
int fileFormat
Default file format.
Definition ngcdcsCFG.hpp:1055
char macro[256]
Macro instruction at online.
Definition ngcdcsCFG.hpp:1106
int numAcqMod
Number of acquisition modules.
Definition ngcdcsCFG.hpp:1040
ngcdcs_adc_cfg_t adc[ngcdcsCTRL_MAX_ADCMOD]
ADC-module system configuration.
Definition ngcdcsCFG.hpp:962
int numNgsdMod
Number of NGSD cameras.
Definition ngcdcsCFG.hpp:1028
ngcdcs_acq_cfg_t acq[ngcdcsACQ_MAX_PROC]
Acquisition module system configuration.
Definition ngcdcsCFG.hpp:995
ngcdcs_cldc_cfg_t cldc[ngcdcsCTRL_MAX_CLDC]
CLDC system configuration.
Definition ngcdcsCFG.hpp:956
int ditPrecision
Definition ngcdcsCFG.hpp:1108
int numLisaMod
Number of LISA cameras.
Definition ngcdcsCFG.hpp:1025
ngcdcs_reg_t reg[ngcdcsCTRL_MAX_REG]
Generic control/status registers.
Definition ngcdcsCFG.hpp:992
int procMon
Process monitoring level.
Definition ngcdcsCFG.hpp:1085
ngcdcs_syscfg_t()
Constructor.
Definition ngcdcsCFG.hpp:1111
ngcdcs_geosnap_cfg_t geosnap[ngcdcsCTRL_MAX_GEOSNAP]
GEOSNAP system configuration.
Definition ngcdcsCFG.hpp:986
char dsup[256]
Default parameter setup file (optional)
Definition ngcdcsCFG.hpp:1076
Definition ngcdcsCFG.hpp:665
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:670
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:673
ngcdcs_tec_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:679
int devIdx
Device index.
Definition ngcdcsCFG.hpp:667
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:676
Definition ngcdcsSEQ.hpp:157