ngc 1.4.0
 
Loading...
Searching...
No Matches
ngcdcsCFG.hpp
Go to the documentation of this file.
1
7#ifndef ngcdcsCFG_H
8#define ngcdcsCFG_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/ngcbIFC.hpp>
16#include <ngc/core/ngcdcsAO.hpp>
18
19/*
20 * Built-in configurations
21 */
22#define ngcdcsCFG_FILE 0 //< configuration from file
23#define ngcdcsCFG_FEB 1 //< one front-end-basic board
24#define ngcdcsCFG_OPT 2 //< optical system with one FEB
25#define ngcdcsCFG_ASIC 3 //< ASIC
26#define ngcdcsCFG_AO 4 //< AO camera
27#define ngcdcsCFG_NGSD 5 //< NGSD
28
34 char name[128];
35
37 char env[32];
38
40 char host[64];
41
43 char srv[64];
44
46 char type[64];
47
49 char setup[64];
50
53
56
58 int master;
59
61 int skip;
62
64 int chain;
65
68
71
74 strcpy(name, "/dev/ngc0_com"); // default device
75 env[0] = '\0'; // use default environment name
76 host[0] = '\0'; // no host - interface is local
77 srv[0] = '\0'; // use default driver interface process
78 type[0] = '\0'; // default type
79 setup[0] = '\0'; // use default setup
80 backPlane = 1; // default is first back-plane
81 sideLink = 0; // no side link
82 master = 0; // no master
83 skip = 0; // direct connection
84 chain = 0; // direct connection
85 netTimeout = -2; // apply default timeout
86 }
87};
88
94 char voltageInitFile[256];
95
97 char voltageFile[256];
98
101
103 double diodeBias;
104
106 int ilck;
107
109 voltageFile[0] = '\0'; // no voltage file given
110 voltageInitFile[0] = '\0'; // no initialization file given
111 preampOffset = 0.0; // zero offset
112 diodeBias = 0.0; // zero bias
113 ilck = 0; // interlock disabled
114 }
115};
116
122 int devIdx;
123
126
129
131 int maxDc;
132
135
138
140 int ilck;
141
144
146 double margin;
147
149 double calMax;
150
152 char group[64];
153
155 char name[64];
156
158 char spec[64];
159
162 devIdx = 0;
163 route.numHdr = 1;
164 route.hdr[0] = 0x2;
165 maxClk = ngcbCLDC_FEB_MAX_CLK; // default maximum
166 maxDc = 64; // default maximum (TBD)
167 autoEnable = 0; // no auto-enable
168 autoDisable = 0; // no auto-disable
169 autoCal = 0; // no auto-calibration
170 ilck = 0; // interlock disabled
171 margin = 0.0; // maximum margin (0.0 = disabled)
172 calMax = ngcdcsCLDC_CAL_MAX; // default maximum correction value
173 group[0] = '\0'; // no group assigned
174 name[0] = '\0'; // no name assigned
175 spec[0] = '\0'; // no type specifier
176 }
177};
178
184 char clkFile[256];
185
188
191
194
197
199 int cvtExt;
200
203
206
209 clkFile[0] = '\0'; // no clock-file given
210 timeFactor = 1; // no global mutliplier
211 timeAdd = 0; // no global add-value
212 continuous = 0; // non-continuous mode
213 runCtrl = 1; // external run-signal
214 cvtExt = 1; // external convert
215 syncExt = 1; // external SYNC-pulse
216 autoStop = 1; // automatic stop
217 }
218};
219
226
229
231 double clock;
232
235
237 char group[64];
238
240 char name[64];
241
243 char spec[64];
244
247 devIdx = 0;
248 route.numHdr = 1;
249 route.hdr[0] = 0x2;
250 clock = 10e-9; // default clock is 10 nanoseconds
251 softMon = 0; // no soft-monitor
252 group[0] = '\0'; // no group assigned
253 name[0] = '\0'; // no name assigned
254 spec[0] = '\0'; // no type specifier
255 }
256};
257
263 int delay;
264
266 double offset;
267
270
273
276
279
282
285
288
290 int clamp;
291
293 int filter;
294
297 delay = 0; // no conversion strobe delay
298 offset = 0.0; // no offset
299 enable = -1; // enable all
300 simMode = ngcbADC_SIM_NUMBERS; // simulate channel numbers
301 opMode = ngcbADC_MODE_NORMAL; // normal mode (no simulation)
302 packetSize = 0; // let system choose
303 packetCnt = 0; // no data from down-link
304 convert1 = 1; // conversion on strobe 1
305 convert2 = 0; // no conversion on strobe 2
306 clamp = 0; // no clamp
307 filter = 0; // filter = 0.5us
308 }
309};
310
317
320
322 int num;
323
326
329
332
334 char group[64];
335
337 char name[64];
338
340 char spec[64];
341
344 devIdx = 0;
345 route.numHdr = 1;
346 route.hdr[0] = 0x2;
347 num = 4; // 4 ADC units on board
348 bitPix = 16; // 16-bit ADC
349 firstInChain = 1; // first module in the chain
350 packetCnt = 0; // no data from down-link
351 group[0] = '\0'; // no group assigned
352 name[0] = '\0'; // no name assigned
353 spec[0] = '\0'; // no type specifier
354 }
355};
356
362 int devIdx;
363
366
368 char name[64];
369
371 char spec[64];
372
375 devIdx = 0;
376 route.numHdr = 1;
377 route.hdr[0] = 0x2;
378 name[0] = '\0'; // no name assigned
379 spec[0] = '\0'; // no type specifier
380 }
381};
382
389
392
395
397 char group[64];
398
400 char name[64];
401
403 char spec[64];
404
406 double version;
407
410 devIdx = 0;
411 route.numHdr = 1;
412 route.hdr[0] = 0x2;
413 numChan = 4; // four channels
414 version = 3.0; // version 3.0
415 group[0] = '\0'; // no group assigned
416 name[0] = '\0'; // no name assigned
417 spec[0] = '\0'; // no type specifier
418 }
419};
420
427
430
432 char name[64];
433
435 char spec[64];
436
439 devIdx = 0;
440 route.numHdr = 1;
441 route.hdr[0] = 0x2;
442 name[0] = '\0';
443 spec[0] = '\0';
444 }
445};
446
453
456 int i;
457 for (i=0;i<ngcdcsNGC2_MAX_INITFILES;i++) initFile[i][0] = '\0';
458 }
459};
460
467
470
472 char name[64];
473
475 char spec[64];
476
479 devIdx = 0;
480 route.numHdr = 1;
481 route.hdr[0] = 0x2;
482 name[0] = '\0';
483 spec[0] = '\0';
484 }
485};
486
493
495 int delay[42];
496
498 double vsph[4];
499
501 double viph[4];
502
504 int nx;
505
507 int ny;
508
511
513 int hwRev;
514
516 double reDelay[8];
517
519 double feDelay[8];
520
523
526
529
530 // HV-channel map
531 int hvChan[4];
532
535
538 int i;
539
540 for (i=0;i<ngcdcsAO_MAX_INITFILES;i++) initFile[i][0] = '\0';
541 nx = 240;
542 ny = 240;
543 master = 0;
544 hwRev = 1;
545
546 for (i=0;i<42;i++)
547 {
548 delay[i] = 0; // no delay
549 }
550 for (i=0;i<4;i++)
551 {
552 vsph[i] = 0.0; // all levels are zero
553 viph[i] = 0.0; // all levels are zero
554 }
555 for (i=0;i<8;i++)
556 {
557 reDelay[i] = 0.0; // no delay on rising edges
558 feDelay[i] = 0.0; // no delay on falling edges
559 }
560
561 hvChan[0] = 0;
562 hvChan[1] = 2;
563 hvChan[2] = 4;
564 hvChan[3] = 6;
565
566 shpWidth = 9;
567 }
568};
569
576
579
581 char name[64];
582
584 char spec[64];
585
588 devIdx = 0;
589 route.numHdr = 1;
590 route.hdr[0] = 0x2;
591 name[0] = '\0';
592 spec[0] = '\0';
593 }
594};
595
602
604 char gainMap[256];
605
608
611
613 int numRg;
614
616 int chan[12];
617
621 int i;
622 for (i=0;i<ngcdcsLISA_MAX_INITFILES;i++) initFile[i][0] = '\0';
623 gainMap[0] = '\0';;
624 rgAddrTop = 0;
625 rgAddrBot = 0;
626 numRg = 100;
627 for (i=0;i<12;i++) chan[i] = 1;
628 }
629};
630
637
640
642 char name[64];
643
645 char spec[64];
646
648 double extRef;
649
652 devIdx = 0;
653 route.numHdr = 1;
654 route.hdr[0] = 0x2;
655 name[0] = '\0';
656 spec[0] = '\0';
657 extRef = 0.0;
658 }
659};
660
666 int devIdx;
667
670
672 char name[64];
673
675 char spec[64];
676
679 devIdx = 0;
680 route.numHdr = 1;
681 route.hdr[0] = 0x2;
682 name[0] = '\0'; // no name assigned
683 spec[0] = '\0'; // no type specifier
684 }
685};
686
692 int devIdx;
693
696
698 char name[64];
699
701 char spec[64];
702
705 devIdx = 0;
706 route.numHdr = 1;
707 route.hdr[0] = 0x2;
708 name[0] = '\0'; // no name assigned
709 spec[0] = '\0'; // no type specifier
710 }
711};
712
718 int devIdx;
719
722
724 int id;
725
727 char name[64];
728
730 char spec[64];
731
734 devIdx = 0;
735 route.numHdr = 1;
736 route.hdr[0] = 0x2;
737 id = 0;
738 name[0] = '\0';
739 spec[0] = '\0';
740 }
741};
742
746#define ngcdcsREG_READ 1
747
751#define ngcdcsREG_WRITE 2
752
759
762
765
767 int mask;
768
770 int shift;
771
774
776 char name[64];
777
779 char value[256];
780
782 int access;
783
786 devIdx = 0;
787 address = 0x0;
788 mask = 0xffffffff;
789 shift = 0;
790 mirror = 0x0;
791 name[0] = '\0';
792 value[0] = '\0';
794 }
795};
796
802 char frame[32];
803
805 char param[32];
806
809
812 frame[0] = '\0';
813 param[0] = '\0';
814 acq[0] = 0; // all processes
815 acq[1] = -1; // list termination
816 }
817
819 int Valid(int idx) {
820 int i;
821 for (i=0;i<ngcdcsACQ_MAX_PROC;i++)
822 {
823 if ((acq[i] == 0) || (acq[i] == idx)) return (1);
824 else if (acq[i] == -1) break;
825 }
826 return (0);
827 }
828};
829
833#define ngcdcsMAX_FRAME_PARAM (ngcdcsMAX_FRAME_TYPES * ngcdcsACQ_MAX_PROC)
834
839 char name[64]; //< Command name
840 char cmd[128]; //< Command alias
841
843 ngcdcs_alias_t() {name[0] = '\0'; cmd[0] = '\0';}
844};
845
849#define ngcdcsMAX_ALIAS 32
850
855 char serNo[80]; //< Serial number
856 int serNoX; //< Serial number differs
857 char serNoTrans[80]; //< Transition board serial number
858 int serNoTransX; //< Transition board serial number differs
859 char serNoBack[80]; //< Backplane serial number
860 int serNoBackX; //< Backplane serial number differs
861 char type[64]; //< Board type
862 int typeX; //< Board type differs
863 int version; //< Version
864 int versionX; //< Version differs
865 char revision[32]; //< Revision
866 int revisionX; //< Revision differs
867
870
872 void Clear() {
873 serNo[0] = '\0'; serNoTrans[0] = '\0'; serNoBack[0] = '\0';
874 serNoX = 0; serNoTransX = 0; serNoBackX = 0;
875 type[0] = '\0'; typeX = 0;
876 version = 0x0; versionX = 0;
877 revision[0] = '\0'; revisionX = 0;
878 }
879
881 int Compare() {
882 return (serNoX || serNoTransX || serNoBackX || typeX || versionX ||
883 revisionX);
884 }
885};
886
891 int numBoard; //< Number of boards
892 int numBoardX; //< Number of boards differs
893 char serNo[80]; //< Serial number
894 int serNoX; //< Serial number differs
895 char revision[32]; //< Revision
896 int revisionX; //< Revision differs
898
901
903 void Clear() {
904 int i;
905 numBoard = 0; numBoardX = 0;
906 revisionX = 0; serNoX = 0;
907 revision[0] = '\0'; serNo[0] = '\0';
908 for (i=0;i<ngcdcsCTRL_MAX_BOARD;i++) board[i].Clear();
909 }
910
912 int Compare() {
913 int i;
914 int x = numBoardX;
915 for (i=0;i<numBoard;i++) x = x || board[i].Compare();
916 return (x);
917 }
918};
919
924 int numDev; //< Number of devices
925 int numDevX; //< Number of devices differs
926 ngcdcs_refdev_t dev[ngcdcsCTRL_MAX_DEV]; //< Reference devices
927
930
932 void Clear() {
933 int i;
934 numDev = 0; numDevX = 0;
935 for (i=0;i<ngcdcsCTRL_MAX_DEV;i++) dev[i].Clear();
936 }
937
939 int Compare() {
940 int i;
941 int x = numDevX;
942 for (i=0;i<numDev;i++) x = x || dev[i].Compare();
943 return (x);
944 }
945};
946
953
956
959
962
965
968
971
974
977
980
983
986
989
992
995
998
1001
1004
1007
1010
1013
1016
1019
1022
1025
1028
1031
1034
1037
1040
1043
1045 int sim;
1046
1049
1052
1055
1058
1061
1064
1067
1069 char detCfgFile[256];
1070
1072 char fileName[256];
1073
1075 char dsup[256];
1076
1079
1082
1085
1088
1090 int led;
1091
1094
1097
1100
1103
1105 char macro[256];
1106
1108
1111 numDev = 0;
1112 numCldcMod = 0;
1113 numSeqMod = 0;
1114 numAdcMod = 0;
1115 numScaMod = 0;
1116 numShutterMod = 0;
1117 numPreampMod = 0;
1118 numNgc2Mod = 0;
1119 numAoMod = 0;
1120 numLisaMod = 0;
1121 numNgsdMod = 0;
1122 numTecMod = 0;
1123 numSvsMod = 0;
1124 numAcqMod = 0;
1125 numTccdMod = 0;
1126 sim = 0;
1127 fitsBlock = 16;
1128 extFits = 1;
1131 oneFile = 1;
1132 autoOnline = 0;
1133 autoStart = 0;
1134 memset(detCfgFile, 0, sizeof(detCfgFile));
1135 memset(fileName, 0, sizeof(fileName));
1136 detCfgFile[0] = '\0';
1137 fileName[0] = '\0';
1138 dsup[0] = '\0';
1139 polling = 0;
1140 pollInterval = 1000;
1141 procMon = 1;
1142 largeFile = 0;
1143 led = 1;
1144 rtdDb = 0;
1145 macro[0] = '\0';
1146 ditPrecision = 0;
1147 }
1148};
1149
1153#define ngcdcsMAX_RM 32
1154
1160 int id;
1161
1163 char name[64];
1164
1166 char desc[256];
1167
1170
1173
1175 char dsup[256];
1176
1178 explicit ngcdcs_rm_t(int n = -1) {
1179 int i;
1180 id = n;
1181 if (id >= 0) sprintf(name, "Mode%d", id);
1182 else name[0] = '\0';
1183 desc[0] = '\0';
1184 for (i=0;i<ngcdcsCTRL_MAX_SEQ;i++) seqPrg[i][0] = '\0';
1185 for (i=0;i<ngcdcsACQ_MAX_PROC;i++) acqProc[i][0] = '\0';
1186 dsup[0] = '\0';
1187 }
1188};
1189
1196
1199
1202
1205
1208
1211
1214
1217
1220
1222 char name[32];
1223
1225 char id[32];
1226
1229
1232
1235
1238
1241
1244
1246 char fileName[256];
1247
1249 char dsup[256];
1250
1253
1256
1259 int i;
1260 for (i=0;i<ngcdcsACQ_MAX_PROC;i++) {splitX[i] = 0; splitY[i] = 0;}
1261 numDet = 1;
1262 numReadMod = 0;
1263 rmDefault = 0;
1264 numOutput = 4;
1265 strcpy(name, "DET-NAME");
1266 strcpy(id, "DET-ID");
1267 memset(fileName, 0, sizeof(fileName));
1268 fileName[0] = '\0';
1269 dsup[0] = '\0';
1270 haveChipIndex = 0;
1271 }
1272
1273};
1274
1275#endif
Definition ngcdcsAO.hpp:189
#define ngcbCLDC_FEB_MAX_CLK
Definition ngcbAddr.h:334
#define ngcbADC_SIM_NUMBERS
Definition ngcbAddr.h:414
#define ngcbADC_MODE_NORMAL
Definition ngcbAddr.h:412
#define ngcdcsACQ_MAX_PROC
Definition ngcdcsACQ.hpp:70
#define ngcdcsAO_MAX_INITFILES
Definition ngcdcsAO.hpp:40
#define ngcdcsMAX_ALIAS
Definition ngcdcsCFG.hpp:849
#define ngcdcsREG_WRITE
Definition ngcdcsCFG.hpp:751
#define ngcdcsREG_READ
Definition ngcdcsCFG.hpp:746
#define ngcdcsMAX_RM
Definition ngcdcsCFG.hpp:1153
#define ngcdcsMAX_FRAME_PARAM
Definition ngcdcsCFG.hpp:833
#define ngcdcsCLDC_CAL_MAX
Definition ngcdcsCLDC.hpp:43
#define ngcdcsCTRL_MAX_PREAMP
Definition ngcdcsCTRL.hpp:46
#define ngcdcsCTRL_MAX_CLDC
Definition ngcdcsCTRL.hpp:42
#define ngcdcsCTRL_MAX_SEQ
Definition ngcdcsCTRL.hpp:43
#define ngcdcsCTRL_MAX_SCA
Definition ngcdcsCTRL.hpp:53
#define ngcdcsCTRL_MAX_ADCMOD
Definition ngcdcsCTRL.hpp:44
#define ngcdcsCTRL_MAX_BOARD
Definition ngcdcsCTRL.hpp:61
#define ngcdcsCTRL_MAX_TEC
Definition ngcdcsCTRL.hpp:51
#define ngcdcsCTRL_MAX_REG
Definition ngcdcsCTRL.hpp:56
#define ngcdcsCTRL_MAX_NGSD
Definition ngcdcsCTRL.hpp:50
#define ngcdcsCTRL_MAX_DEV
Definition ngcdcsCTRL.hpp:55
#define ngcdcsCTRL_MAX_NGC2
Definition ngcdcsCTRL.hpp:47
#define ngcdcsCTRL_MAX_SVS
Definition ngcdcsCTRL.hpp:52
#define ngcdcsCTRL_MAX_SHUTTER
Definition ngcdcsCTRL.hpp:45
#define ngcdcsCTRL_MAX_AO
Definition ngcdcsCTRL.hpp:48
#define ngcdcsCTRL_MAX_LISA
Definition ngcdcsCTRL.hpp:49
#define ngcdcsEXP_NAMING_REQUEST
Definition ngcdcsEXP.hpp:79
#define ngcdcsEXP_FORMAT_SINGLE
Definition ngcdcsEXP.hpp:68
#define ngcdcsMAX_DET
Definition ngcdcsFINFO.hpp:28
#define ngcdcsLISA_MAX_INITFILES
Definition ngcdcsLISA.hpp:23
#define ngcdcsNGC2_MAX_INITFILES
Definition ngcdcsNGC2.hpp:22
Definition ngcbIFC.hpp:72
Definition ngcdcsACQ_DATA.hpp:24
Definition ngcdcsCFG.hpp:314
char group[64]
Optional group.
Definition ngcdcsCFG.hpp:334
int devIdx
Device index.
Definition ngcdcsCFG.hpp:316
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:319
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:337
ngcdcs_adc_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:343
int firstInChain
First in chain.
Definition ngcdcsCFG.hpp:328
int num
Number of ADCs on board.
Definition ngcdcsCFG.hpp:322
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:340
int bitPix
Number of bits per pixel (16, 18, ...)
Definition ngcdcsCFG.hpp:325
int packetCnt
Packet routing length.
Definition ngcdcsCFG.hpp:331
Definition ngcdcsCFG.hpp:261
ngcdcs_adc_dcf_t()
Constructor.
Definition ngcdcsCFG.hpp:296
int clamp
Clamp.
Definition ngcdcsCFG.hpp:290
int delay
Default conversion strobe delay.
Definition ngcdcsCFG.hpp:263
int packetCnt
Default packet routing length.
Definition ngcdcsCFG.hpp:281
int packetSize
Default packet size.
Definition ngcdcsCFG.hpp:278
double offset
Default offset.
Definition ngcdcsCFG.hpp:266
int convert1
Conversion on strobe 1.
Definition ngcdcsCFG.hpp:284
int filter
Filter.
Definition ngcdcsCFG.hpp:293
int simMode
Simulation mode.
Definition ngcdcsCFG.hpp:272
int opMode
Operation mode.
Definition ngcdcsCFG.hpp:275
int convert2
Conversion on strobe 2.
Definition ngcdcsCFG.hpp:287
int enable
Number of enabled ADCs on board.
Definition ngcdcsCFG.hpp:269
Definition ngcdcsAO.hpp:79
Definition ngcdcsCFG.hpp:838
char cmd[128]
Definition ngcdcsCFG.hpp:840
ngcdcs_alias_t()
Constructor.
Definition ngcdcsCFG.hpp:843
char name[64]
Definition ngcdcsCFG.hpp:839
Definition ngcdcsCFG.hpp:464
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:469
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:472
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:475
int devIdx
Device index.
Definition ngcdcsCFG.hpp:466
ngcdcs_ao_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:478
Definition ngcdcsCFG.hpp:490
double vsph[4]
3-level-clock voltage levels S-phase
Definition ngcdcsCFG.hpp:498
char initFile[ngcdcsAO_MAX_INITFILES][256]
Register initialization files.
Definition ngcdcsCFG.hpp:492
int shpWidth
SHP-width (ALICE)
Definition ngcdcsCFG.hpp:534
int ny
Image transfer y-dimension.
Definition ngcdcsCFG.hpp:507
int hwRev
Hardware revision (0=protoype, 1=reshaped)
Definition ngcdcsCFG.hpp:513
int delay[42]
Delay (in ticks)
Definition ngcdcsCFG.hpp:495
double reDelay[8]
Rising edge calibration delays (in ticks)
Definition ngcdcsCFG.hpp:516
int master
Synchronization master flag.
Definition ngcdcsCFG.hpp:510
double viph[4]
3-level-clock voltage levels I-phase
Definition ngcdcsCFG.hpp:501
ngcdcs_afe_t afe
AFE control.
Definition ngcdcsCFG.hpp:525
double feDelay[8]
Falling edge calibration delays (in ticks)
Definition ngcdcsCFG.hpp:519
int hvChan[4]
Definition ngcdcsCFG.hpp:531
ngcdcsAO_RMP rmp
ALICE regions, masks, patterns.
Definition ngcdcsCFG.hpp:528
ngcdcs_ao_dcf_t()
Constructor.
Definition ngcdcsCFG.hpp:537
int nx
Image transfer x-dimension.
Definition ngcdcsCFG.hpp:504
ngcdcs_aocal_t calib[4]
High voltage calibration.
Definition ngcdcsCFG.hpp:522
Definition ngcdcsAO.hpp:98
Definition ngcdcsFINFO.hpp:33
Definition ngcdcsCFG.hpp:120
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:155
double margin
Margin for voltage check (in volts)
Definition ngcdcsCFG.hpp:146
char group[64]
Optional group.
Definition ngcdcsCFG.hpp:152
int maxDc
Maximum number of biases.
Definition ngcdcsCFG.hpp:131
ngcdcs_cldc_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:161
int devIdx
Device index.
Definition ngcdcsCFG.hpp:122
int ilck
Enable/disable external interlock.
Definition ngcdcsCFG.hpp:140
int maxClk
Maximum number of clocks.
Definition ngcdcsCFG.hpp:128
double calMax
Voltage calibration limit (in volts)
Definition ngcdcsCFG.hpp:149
int autoDisable
Disable during setup.
Definition ngcdcsCFG.hpp:137
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:158
int autoCal
Calibrate at on-line.
Definition ngcdcsCFG.hpp:143
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:125
int autoEnable
Enable at on-line.
Definition ngcdcsCFG.hpp:134
Definition ngcdcsCFG.hpp:92
double diodeBias
Diode bias.
Definition ngcdcsCFG.hpp:103
int ilck
Enable/disable external interlock.
Definition ngcdcsCFG.hpp:106
double preampOffset
Preamplifier offset.
Definition ngcdcsCFG.hpp:100
char voltageInitFile[256]
Voltage initialization file.
Definition ngcdcsCFG.hpp:94
char voltageFile[256]
Voltage file to load.
Definition ngcdcsCFG.hpp:97
ngcdcs_cldc_dcf_t()
Definition ngcdcsCFG.hpp:108
ngcdcs_cldc_dcf_t cldc[ngcdcsCTRL_MAX_CLDC]
CLDC module detector configuration.
Definition ngcdcsCFG.hpp:1198
int numReadMod
Number of read-out modes.
Definition ngcdcsCFG.hpp:1240
char dsup[256]
Default parameter setup file (optional)
Definition ngcdcsCFG.hpp:1249
char name[32]
Detector system name.
Definition ngcdcsCFG.hpp:1222
ngcdcs_adc_dcf_t adc[ngcdcsCTRL_MAX_ADCMOD]
ADC module detector configuration.
Definition ngcdcsCFG.hpp:1201
ngcdcs_ngc2_dcf_t ngc2[ngcdcsCTRL_MAX_NGC2]
NGC2 basic module detector configuration.
Definition ngcdcsCFG.hpp:1204
ngcdcs_win_t win
Default window.
Definition ngcdcsCFG.hpp:1252
int numOutput
Total number of outputs.
Definition ngcdcsCFG.hpp:1228
int splitY[ngcdcsACQ_MAX_PROC]
FITS extensions splitting Y.
Definition ngcdcsCFG.hpp:1234
ngcdcs_win_t acqWin[ngcdcsACQ_MAX_PROC]
Default acquisition window.
Definition ngcdcsCFG.hpp:1255
ngcdcs_seq_dcf_t seq[ngcdcsCTRL_MAX_SEQ]
Sequencer module detector configuration.
Definition ngcdcsCFG.hpp:1195
char fileName[256]
Optional filename.
Definition ngcdcsCFG.hpp:1246
int numDet
Number of detectors in mosaic.
Definition ngcdcsCFG.hpp:1216
ngcdcs_chip_t chip[ngcdcsMAX_DET]
Chip information.
Definition ngcdcsCFG.hpp:1213
int rmDefault
Default read-out mode.
Definition ngcdcsCFG.hpp:1243
ngcdcs_ao_dcf_t ao[ngcdcsCTRL_MAX_AO]
AO camera module detector configuration.
Definition ngcdcsCFG.hpp:1210
int splitX[ngcdcsACQ_MAX_PROC]
FITS extensions spltting X.
Definition ngcdcsCFG.hpp:1231
ngcdcs_lisa_dcf_t lisa[ngcdcsCTRL_MAX_LISA]
LISA camera module detector configuration.
Definition ngcdcsCFG.hpp:1207
ngcdcs_rm_t rm[ngcdcsMAX_RM]
Read-out modes.
Definition ngcdcsCFG.hpp:1237
int haveChipIndex
Expicit chip index present.
Definition ngcdcsCFG.hpp:1219
ngcdcs_detcfg_t()
Constructor.
Definition ngcdcsCFG.hpp:1258
Definition ngcdcsCFG.hpp:32
char host[64]
Host where physical interface resides.
Definition ngcdcsCFG.hpp:40
int chain
Chain length from last node to FE.
Definition ngcdcsCFG.hpp:64
int master
Master device.
Definition ngcdcsCFG.hpp:58
ngcdcs_dev_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:73
ngcb_route_t cfgRoute
Configuration route.
Definition ngcdcsCFG.hpp:70
char srv[64]
Optional driver interface process name.
Definition ngcdcsCFG.hpp:43
char type[64]
Optional interface type.
Definition ngcdcsCFG.hpp:46
int sideLink
Switch to sidelink.
Definition ngcdcsCFG.hpp:55
char setup[64]
Optional interface setup.
Definition ngcdcsCFG.hpp:49
int backPlane
Back-plane id.
Definition ngcdcsCFG.hpp:52
char name[128]
Device name.
Definition ngcdcsCFG.hpp:34
char env[32]
Environment name.
Definition ngcdcsCFG.hpp:37
int skip
Number of route nodes to skip.
Definition ngcdcsCFG.hpp:61
int netTimeout
Network timeout (seconds)
Definition ngcdcsCFG.hpp:67
Definition ngcdcsCFG.hpp:800
ngcdcs_fmp_t()
Constructor.
Definition ngcdcsCFG.hpp:811
char frame[32]
Frame-name.
Definition ngcdcsCFG.hpp:802
int acq[ngcdcsACQ_MAX_PROC+1]
Acquisition process list.
Definition ngcdcsCFG.hpp:808
int Valid(int idx)
Check if there is a valid list entry.
Definition ngcdcsCFG.hpp:819
char param[32]
Parameter-name.
Definition ngcdcsCFG.hpp:805
Definition ngcdcsCFG.hpp:573
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:578
int devIdx
Device index.
Definition ngcdcsCFG.hpp:575
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:584
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:581
ngcdcs_lisa_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:587
Definition ngcdcsCFG.hpp:599
ngcdcs_lisa_dcf_t()
Definition ngcdcsCFG.hpp:620
int rgAddrTop
Row-Group address (top)
Definition ngcdcsCFG.hpp:607
int numRg
Number of row-groups.
Definition ngcdcsCFG.hpp:613
int chan[12]
Channels.
Definition ngcdcsCFG.hpp:616
int rgAddrBot
Row-Group address (bottom)
Definition ngcdcsCFG.hpp:610
char initFile[ngcdcsLISA_MAX_INITFILES][256]
Register initialization files.
Definition ngcdcsCFG.hpp:601
char gainMap[256]
Gain map.
Definition ngcdcsCFG.hpp:604
Definition ngcdcsCFG.hpp:424
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:429
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:432
int devIdx
Device index.
Definition ngcdcsCFG.hpp:426
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:435
ngcdcs_ngc2_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:438
Definition ngcdcsCFG.hpp:450
ngcdcs_ngc2_dcf_t()
Constructor.
Definition ngcdcsCFG.hpp:455
char initFile[ngcdcsNGC2_MAX_INITFILES][256]
Register initialization files.
Definition ngcdcsCFG.hpp:452
Definition ngcdcsCFG.hpp:634
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:642
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:645
ngcdcs_ngsd_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:651
double extRef
External reference voltage.
Definition ngcdcsCFG.hpp:648
int devIdx
Device index.
Definition ngcdcsCFG.hpp:636
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:639
Definition ngcdcsCFG.hpp:386
int devIdx
Device index.
Definition ngcdcsCFG.hpp:388
ngcdcs_pa_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:409
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:400
int numChan
Number of channels in use.
Definition ngcdcsCFG.hpp:394
double version
Preamplifier version.
Definition ngcdcsCFG.hpp:406
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:391
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:403
char group[64]
Optional group.
Definition ngcdcsCFG.hpp:397
Definition ngcdcsCFG.hpp:854
char serNoTrans[80]
Definition ngcdcsCFG.hpp:857
int serNoTransX
Definition ngcdcsCFG.hpp:858
int serNoBackX
Definition ngcdcsCFG.hpp:860
char type[64]
Definition ngcdcsCFG.hpp:861
char serNo[80]
Definition ngcdcsCFG.hpp:855
int version
Definition ngcdcsCFG.hpp:863
int typeX
Definition ngcdcsCFG.hpp:862
char revision[32]
Definition ngcdcsCFG.hpp:865
int revisionX
Definition ngcdcsCFG.hpp:866
int Compare()
Check if reference comparison is required.
Definition ngcdcsCFG.hpp:881
ngcdcs_refboard_t()
Constructor.
Definition ngcdcsCFG.hpp:869
void Clear()
Clear all.
Definition ngcdcsCFG.hpp:872
char serNoBack[80]
Definition ngcdcsCFG.hpp:859
int serNoX
Definition ngcdcsCFG.hpp:856
int versionX
Definition ngcdcsCFG.hpp:864
Definition ngcdcsCFG.hpp:890
ngcdcs_refboard_t board[ngcdcsCTRL_MAX_BOARD]
Definition ngcdcsCFG.hpp:897
char serNo[80]
Definition ngcdcsCFG.hpp:893
int numBoardX
Definition ngcdcsCFG.hpp:892
char revision[32]
Definition ngcdcsCFG.hpp:895
int Compare()
Check if reference comparison is required.
Definition ngcdcsCFG.hpp:912
ngcdcs_refdev_t()
Constructor.
Definition ngcdcsCFG.hpp:900
void Clear()
Clear all.
Definition ngcdcsCFG.hpp:903
int revisionX
Definition ngcdcsCFG.hpp:896
int serNoX
Definition ngcdcsCFG.hpp:894
int numBoard
Definition ngcdcsCFG.hpp:891
Definition ngcdcsCFG.hpp:923
int numDev
Definition ngcdcsCFG.hpp:924
int Compare()
Check if reference comparison is required.
Definition ngcdcsCFG.hpp:939
int numDevX
Definition ngcdcsCFG.hpp:925
void Clear()
Clear all.
Definition ngcdcsCFG.hpp:932
ngcdcs_refdev_t dev[ngcdcsCTRL_MAX_DEV]
Definition ngcdcsCFG.hpp:926
ngcdcs_refsys_t()
Constructor.
Definition ngcdcsCFG.hpp:929
Definition ngcdcsCFG.hpp:756
int shift
Register value shift.
Definition ngcdcsCFG.hpp:770
ngcb_route_t route
Route to board.
Definition ngcdcsCFG.hpp:761
int mask
Register value mask.
Definition ngcdcsCFG.hpp:767
int devIdx
Device index.
Definition ngcdcsCFG.hpp:758
char name[64]
Register setup parameter name.
Definition ngcdcsCFG.hpp:776
int access
Access rights.
Definition ngcdcsCFG.hpp:782
int mirror
Mirror of 32-bit register value.
Definition ngcdcsCFG.hpp:773
ngcdcs_reg_t()
Constructor.
Definition ngcdcsCFG.hpp:785
char value[256]
Default string value.
Definition ngcdcsCFG.hpp:779
int address
Register address on board.
Definition ngcdcsCFG.hpp:764
Definition ngcdcsCFG.hpp:1158
char name[64]
Name.
Definition ngcdcsCFG.hpp:1163
char seqPrg[ngcdcsCTRL_MAX_SEQ][256]
Sequencer programs.
Definition ngcdcsCFG.hpp:1169
char acqProc[ngcdcsACQ_MAX_PROC][256]
Processes for acquisition modules.
Definition ngcdcsCFG.hpp:1172
char dsup[256]
Default parameter setup file name.
Definition ngcdcsCFG.hpp:1175
ngcdcs_rm_t(int n=-1)
Constructor.
Definition ngcdcsCFG.hpp:1178
char desc[256]
Description.
Definition ngcdcsCFG.hpp:1166
int id
Unique id.
Definition ngcdcsCFG.hpp:1160
Definition ngcdcsCFG.hpp:716
ngcdcs_sca_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:733
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:721
int devIdx
Device index.
Definition ngcdcsCFG.hpp:718
int id
ASIC ID.
Definition ngcdcsCFG.hpp:724
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:730
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:727
Definition ngcdcsCFG.hpp:223
double clock
Time of one clock tick (in seconds)
Definition ngcdcsCFG.hpp:231
int devIdx
Device index.
Definition ngcdcsCFG.hpp:225
ngcdcs_seq_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:246
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:228
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:243
char group[64]
Optional group.
Definition ngcdcsCFG.hpp:237
int softMon
Use soft monitor for digital clocks.
Definition ngcdcsCFG.hpp:234
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:240
Definition ngcdcsCFG.hpp:182
int continuous
Operate in continuous mode.
Definition ngcdcsCFG.hpp:193
int autoStop
Automatic stop/start.
Definition ngcdcsCFG.hpp:205
int timeAdd
Default dwell-time add.
Definition ngcdcsCFG.hpp:190
int syncExt
External SYNC-pulse.
Definition ngcdcsCFG.hpp:202
char clkFile[256]
Clock pattern file to load.
Definition ngcdcsCFG.hpp:184
int timeFactor
Default dwell-time factor.
Definition ngcdcsCFG.hpp:187
int runCtrl
External run-control.
Definition ngcdcsCFG.hpp:196
int cvtExt
External convert.
Definition ngcdcsCFG.hpp:199
ngcdcs_seq_dcf_t()
Constructor.
Definition ngcdcsCFG.hpp:208
Definition ngcdcsCFG.hpp:360
ngcdcs_shut_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:374
int devIdx
Device index.
Definition ngcdcsCFG.hpp:362
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:368
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:371
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:365
Definition ngcdcsCFG.hpp:690
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:701
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:698
int devIdx
Device index.
Definition ngcdcsCFG.hpp:692
ngcdcs_svs_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:704
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:695
ngcdcs_refsys_t reference0
Reference system (saved)
Definition ngcdcsCFG.hpp:1102
ngcdcs_shut_cfg_t shutter[ngcdcsCTRL_MAX_SHUTTER]
Shutter-module system configuration.
Definition ngcdcsCFG.hpp:964
ngcdcs_refsys_t reference
Reference system.
Definition ngcdcsCFG.hpp:1099
int numTecMod
Number of TEC modules.
Definition ngcdcsCFG.hpp:1030
ngcdcs_alias_t alias[ngcdcsMAX_ALIAS]
Command aliases.
Definition ngcdcsCFG.hpp:1096
int led
Flag to enable/disable the controller LEDs.
Definition ngcdcsCFG.hpp:1090
ngcdcs_seq_cfg_t seq[ngcdcsCTRL_MAX_SEQ]
Sequencer system configuration.
Definition ngcdcsCFG.hpp:958
int numSvsMod
Number of SVS modules.
Definition ngcdcsCFG.hpp:1033
int numDev
Number of interface devices.
Definition ngcdcsCFG.hpp:1000
int autoStart
Start at on-line.
Definition ngcdcsCFG.hpp:1066
ngcdcs_lisa_cfg_t lisa[ngcdcsCTRL_MAX_LISA]
LISA camera system configuration.
Definition ngcdcsCFG.hpp:976
int numNgc2Mod
Number of NGC2 basic modules.
Definition ngcdcsCFG.hpp:1018
int oneFile
All in one file (FITS extension format only)
Definition ngcdcsCFG.hpp:1060
int numPreampMod
Number of preamplifier-modules.
Definition ngcdcsCFG.hpp:1015
char detCfgFile[256]
Default detector configuration file.
Definition ngcdcsCFG.hpp:1069
int autoOnline
Go on-line after start-up.
Definition ngcdcsCFG.hpp:1063
ngcdcs_sca_cfg_t sca[ngcdcsCTRL_MAX_SCA]
SIDECAR asic system configuration.
Definition ngcdcsCFG.hpp:988
ngcdcs_ngsd_cfg_t ngsd[ngcdcsCTRL_MAX_NGSD]
NGSD system configuration.
Definition ngcdcsCFG.hpp:979
ngcdcs_fmp_t fmp[ngcdcsMAX_FRAME_PARAM]
Frame-type parameter definitions.
Definition ngcdcsCFG.hpp:997
ngcdcs_pa_cfg_t preamp[ngcdcsCTRL_MAX_PREAMP]
Preamplifier-module system configuration.
Definition ngcdcsCFG.hpp:967
int rtdDb
Flag to enable/disable RTD connection databasw.
Definition ngcdcsCFG.hpp:1093
int sim
Operation in simulation mode.
Definition ngcdcsCFG.hpp:1045
int numScaMod
Number of Sidecar ASIC modules.
Definition ngcdcsCFG.hpp:1036
int largeFile
Flag to enable/disable large file extension.
Definition ngcdcsCFG.hpp:1087
char fileName[256]
Optional filename.
Definition ngcdcsCFG.hpp:1072
int numAoMod
Number of AO cameras.
Definition ngcdcsCFG.hpp:1021
ngcdcs_ngc2_cfg_t ngc2[ngcdcsCTRL_MAX_NGC2]
NGC2 basic module system configuration.
Definition ngcdcsCFG.hpp:970
int numAdcMod
Number of ADC-modules.
Definition ngcdcsCFG.hpp:1009
int pollInterval
Polling interval in ms.
Definition ngcdcsCFG.hpp:1081
ngcdcs_ao_cfg_t ao[ngcdcsCTRL_MAX_AO]
AO camera system configuration.
Definition ngcdcsCFG.hpp:973
int extFits
Generate extended FITS-header.
Definition ngcdcsCFG.hpp:1051
int numSeqMod
Number of sequencer-modules.
Definition ngcdcsCFG.hpp:1006
ngcdcs_dev_cfg_t dev[ngcdcsCTRL_MAX_DEV]
Interface device system configuration.
Definition ngcdcsCFG.hpp:952
int numCldcMod
Number of CLDC-modules.
Definition ngcdcsCFG.hpp:1003
ngcdcs_tec_cfg_t tec[ngcdcsCTRL_MAX_TEC]
TEC system configuration.
Definition ngcdcsCFG.hpp:982
int polling
Enable/disable polling of sub-system status.
Definition ngcdcsCFG.hpp:1078
int numTccdMod
Number of TCCD modules.
Definition ngcdcsCFG.hpp:1042
int numShutterMod
Number of shutter-modules.
Definition ngcdcsCFG.hpp:1012
int naming
Default naming scheme.
Definition ngcdcsCFG.hpp:1057
int fitsBlock
Number of FITS-blocks to reserve for merging.
Definition ngcdcsCFG.hpp:1048
int fileFormat
Default file format.
Definition ngcdcsCFG.hpp:1054
char macro[256]
Macro instruction at online.
Definition ngcdcsCFG.hpp:1105
int numAcqMod
Number of acquisition modules.
Definition ngcdcsCFG.hpp:1039
ngcdcs_adc_cfg_t adc[ngcdcsCTRL_MAX_ADCMOD]
ADC-module system configuration.
Definition ngcdcsCFG.hpp:961
ngcdcs_svs_cfg_t svs[ngcdcsCTRL_MAX_SVS]
SVS system configuration.
Definition ngcdcsCFG.hpp:985
int numNgsdMod
Number of NGSD cameras.
Definition ngcdcsCFG.hpp:1027
ngcdcs_acq_cfg_t acq[ngcdcsACQ_MAX_PROC]
Acquisition module system configuration.
Definition ngcdcsCFG.hpp:994
ngcdcs_cldc_cfg_t cldc[ngcdcsCTRL_MAX_CLDC]
CLDC system configuration.
Definition ngcdcsCFG.hpp:955
int ditPrecision
Definition ngcdcsCFG.hpp:1107
int numLisaMod
Number of LISA cameras.
Definition ngcdcsCFG.hpp:1024
ngcdcs_reg_t reg[ngcdcsCTRL_MAX_REG]
Generic control/status registers.
Definition ngcdcsCFG.hpp:991
int procMon
Process monitoring level.
Definition ngcdcsCFG.hpp:1084
ngcdcs_syscfg_t()
Constructor.
Definition ngcdcsCFG.hpp:1110
char dsup[256]
Default parameter setup file (optional)
Definition ngcdcsCFG.hpp:1075
Definition ngcdcsCFG.hpp:664
ngcb_route_t route
Route to module.
Definition ngcdcsCFG.hpp:669
char name[64]
Optional name.
Definition ngcdcsCFG.hpp:672
ngcdcs_tec_cfg_t()
Constructor.
Definition ngcdcsCFG.hpp:678
int devIdx
Device index.
Definition ngcdcsCFG.hpp:666
char spec[64]
Type specifier (optional)
Definition ngcdcsCFG.hpp:675
Definition ngcdcsSEQ.hpp:156