4 #include "simpleStructs.h" 12 #ifndef DOXYGEN_SHOULD_SKIP_THIS 28 unsigned int trigTime;
32 unsigned short upperL1TrigPattern;
33 unsigned short lowerL1TrigPattern;
34 unsigned short upperL2TrigPattern;
35 unsigned short lowerL2TrigPattern;
36 unsigned short l3TrigPattern;
37 unsigned short otherTrigPattern[3];
38 unsigned char nadirL1TrigPattern;
41 unsigned char reserved;
58 unsigned int trigTime;
62 unsigned short l3TrigPattern;
63 unsigned short l3TrigPatternH;
65 unsigned char reserved[3];
107 unsigned char reserved[2];
125 unsigned int trigTime;
129 unsigned short l3TrigPattern;
130 unsigned short l3TrigPatternH;
132 unsigned char reserved[3];
234 unsigned int unixTime;
235 unsigned int unixTimeUs;
238 unsigned short scalerGoals[NUM_ANTENNA_RINGS];
239 unsigned short reserved;
240 unsigned short upperWords[ACTIVE_SURFS];
241 unsigned short scaler[ACTIVE_SURFS][SCALERS_PER_SURF];
242 unsigned short l1Scaler[ACTIVE_SURFS][L1S_PER_SURF];
243 unsigned short threshold[ACTIVE_SURFS][SCALERS_PER_SURF];
244 unsigned short setThreshold[ACTIVE_SURFS][SCALERS_PER_SURF];
245 unsigned short rfPower[ACTIVE_SURFS][RFCHAN_PER_SURF];
246 unsigned short surfTrigBandMask[ACTIVE_SURFS];
252 unsigned int unixTime;
253 unsigned int unixTimeUs;
254 unsigned short globalThreshold;
255 unsigned short errorFlag;
256 unsigned short scalerGoal;
257 unsigned short upperWords[ACTIVE_SURFS];
258 unsigned short scaler[ACTIVE_SURFS][SCALERS_PER_SURF];
259 unsigned short threshold[ACTIVE_SURFS][SCALERS_PER_SURF];
260 unsigned short setThreshold[ACTIVE_SURFS][SCALERS_PER_SURF];
261 unsigned short rfPower[ACTIVE_SURFS][RFCHAN_PER_SURF];
262 unsigned short surfTrigBandMask[ACTIVE_SURFS];
269 unsigned int unixTime;
270 unsigned int unixTimeUs;
271 unsigned short globalThreshold;
272 unsigned short errorFlag;
273 unsigned short scalerGoals[BANDS_PER_ANT];
274 unsigned short upperWords[ACTIVE_SURFS];
275 unsigned short scaler[ACTIVE_SURFS][SCALERS_PER_SURF];
276 unsigned short threshold[ACTIVE_SURFS][SCALERS_PER_SURF];
277 unsigned short setThreshold[ACTIVE_SURFS][SCALERS_PER_SURF];
278 unsigned short rfPower[ACTIVE_SURFS][RFCHAN_PER_SURF];
279 unsigned short surfTrigBandMask[ACTIVE_SURFS];
284 unsigned int unixTime;
285 unsigned int unixTimeUs;
288 unsigned short scalerGoals[BANDS_PER_ANT];
289 unsigned short scalerGoalsNadir[BANDS_PER_ANT];
290 unsigned short upperWords[ACTIVE_SURFS];
291 unsigned short scaler[ACTIVE_SURFS][SCALERS_PER_SURF];
292 unsigned short threshold[ACTIVE_SURFS][SCALERS_PER_SURF];
293 unsigned short setThreshold[ACTIVE_SURFS][SCALERS_PER_SURF];
294 unsigned short rfPower[ACTIVE_SURFS][RFCHAN_PER_SURF];
295 unsigned short surfTrigBandMask[ACTIVE_SURFS];
304 unsigned int unixTime;
305 unsigned int unixTimeUs;
308 unsigned short scalerGoals[BANDS_PER_ANT];
309 unsigned short scalerGoalsNadir[BANDS_PER_ANT];
310 unsigned short upperWords[ACTIVE_SURFS];
311 unsigned short scaler[ACTIVE_SURFS][SCALERS_PER_SURF_V30];
312 unsigned short threshold[ACTIVE_SURFS][SCALERS_PER_SURF_V30];
313 unsigned short setThreshold[ACTIVE_SURFS][SCALERS_PER_SURF_V30];
314 unsigned short rfPower[ACTIVE_SURFS][RFCHAN_PER_SURF];
315 unsigned short surfTrigBandMask[ACTIVE_SURFS];
327 unsigned short globalThreshold;
328 unsigned short reserved;
329 unsigned short scalerGoals[BANDS_PER_ANT];
330 unsigned short scalerGoalsNadir[BANDS_PER_ANT];
331 unsigned short avgScaler[ACTIVE_SURFS][SCALERS_PER_SURF_V30];
332 unsigned short rmsScaler[ACTIVE_SURFS][SCALERS_PER_SURF_V30];
333 unsigned short avgThresh[ACTIVE_SURFS][SCALERS_PER_SURF_V30];
334 unsigned short rmsThresh[ACTIVE_SURFS][SCALERS_PER_SURF_V30];
335 unsigned short avgRFPower[ACTIVE_SURFS][RFCHAN_PER_SURF];
336 unsigned short rmsRFPower[ACTIVE_SURFS][RFCHAN_PER_SURF];
337 unsigned short surfTrigBandMask[ACTIVE_SURFS];
347 unsigned short globalThreshold;
348 unsigned short reserved;
349 unsigned short scalerGoals[BANDS_PER_ANT];
350 unsigned short scalerGoalsNadir[BANDS_PER_ANT];
351 unsigned short avgScaler[ACTIVE_SURFS][SCALERS_PER_SURF];
352 unsigned short rmsScaler[ACTIVE_SURFS][SCALERS_PER_SURF];
353 unsigned short avgThresh[ACTIVE_SURFS][SCALERS_PER_SURF];
354 unsigned short rmsThresh[ACTIVE_SURFS][SCALERS_PER_SURF];
355 unsigned short avgRFPower[ACTIVE_SURFS][RFCHAN_PER_SURF];
356 unsigned short rmsRFPower[ACTIVE_SURFS][RFCHAN_PER_SURF];
357 unsigned short surfTrigBandMask[ACTIVE_SURFS];
362 unsigned int unixTime;
363 unsigned short numHks;
364 unsigned short deltaT;
365 unsigned int hadError;
366 unsigned short globalThreshold;
367 unsigned short scalerGoals[BANDS_PER_ANT];
368 unsigned short avgScaler[ACTIVE_SURFS][SCALERS_PER_SURF];
369 unsigned short rmsScaler[ACTIVE_SURFS][SCALERS_PER_SURF];
370 unsigned short avgThresh[ACTIVE_SURFS][SCALERS_PER_SURF];
371 unsigned short rmsThresh[ACTIVE_SURFS][SCALERS_PER_SURF];
372 unsigned short avgRFPower[ACTIVE_SURFS][RFCHAN_PER_SURF];
373 unsigned short rmsRFPower[ACTIVE_SURFS][RFCHAN_PER_SURF];
374 unsigned short surfTrigBandMask[ACTIVE_SURFS];
379 unsigned int unixTime;
380 unsigned short numHks;
381 unsigned short deltaT;
382 unsigned int hadError;
383 unsigned short globalThreshold;
384 unsigned short scalerGoal;
385 unsigned short avgScaler[ACTIVE_SURFS][SCALERS_PER_SURF];
386 unsigned short rmsScaler[ACTIVE_SURFS][SCALERS_PER_SURF];
387 unsigned short avgThresh[ACTIVE_SURFS][SCALERS_PER_SURF];
388 unsigned short rmsThresh[ACTIVE_SURFS][SCALERS_PER_SURF];
389 unsigned short avgRFPower[ACTIVE_SURFS][RFCHAN_PER_SURF];
390 unsigned short rmsRFPower[ACTIVE_SURFS][RFCHAN_PER_SURF];
391 unsigned short surfTrigBandMask[ACTIVE_SURFS];
404 unsigned int unixTime;
405 unsigned int c3poNum;
408 unsigned short l1Rates[PHI_SECTORS];
409 unsigned short rfScaler;
410 unsigned char l3Rates[PHI_SECTORS];
411 unsigned char l3RatesGated[PHI_SECTORS];
415 unsigned char refPulses;
421 unsigned int unixTime;
424 unsigned short l1Rates[PHI_SECTORS][2];
425 unsigned char l3Rates[PHI_SECTORS][2];
431 unsigned char reserved[3];
432 unsigned int c3poNum;
438 unsigned int unixTime;
441 unsigned short l1Rates[PHI_SECTORS][2];
442 unsigned char l3Rates[PHI_SECTORS][2];
448 unsigned char reserved[3];
449 unsigned int c3poNum;
457 unsigned int unixTime;
460 unsigned char l3Rates[PHI_SECTORS][2];
466 unsigned char reserved[3];
467 unsigned int c3poNum;
473 unsigned int unixTime;
476 unsigned short l1Rates[PHI_SECTORS][2];
477 unsigned char upperL2Rates[PHI_SECTORS];
478 unsigned char lowerL2Rates[PHI_SECTORS];
479 unsigned char l3Rates[PHI_SECTORS];
480 unsigned short nadirL1Rates[NADIR_ANTS];
481 unsigned char nadirL2Rates[NADIR_ANTS];
490 unsigned int unixTime;
492 unsigned short l1Rates[PHI_SECTORS][2];
493 unsigned char upperL2Rates[PHI_SECTORS];
494 unsigned char lowerL2Rates[PHI_SECTORS];
495 unsigned char l3Rates[PHI_SECTORS];
496 unsigned short nadirL1Rates[NADIR_ANTS];
497 unsigned char nadirL2Rates[NADIR_ANTS];
506 unsigned int unixTime;
508 unsigned short l1Rates[PHI_SECTORS][2];
509 unsigned char upperL2Rates[PHI_SECTORS];
510 unsigned char lowerL2Rates[PHI_SECTORS];
511 unsigned char l3Rates[PHI_SECTORS];
512 unsigned char nadirL1Rates[PHI_SECTORS];
513 unsigned char nadirL2Rates[PHI_SECTORS];
514 unsigned int antTrigMask;
515 unsigned char nadirAntTrigMask;
516 unsigned char reserved[3];
522 unsigned int unixTime;
524 unsigned short l1Rates[PHI_SECTORS][2];
525 unsigned char upperL2Rates[PHI_SECTORS];
526 unsigned char lowerL2Rates[PHI_SECTORS];
527 unsigned char l3Rates[PHI_SECTORS];
528 unsigned int antTrigMask;
529 unsigned char nadirAntTrigMask;
534 unsigned int unixTime;
536 unsigned short l1Rates[PHI_SECTORS][2];
537 unsigned char upperL2Rates[PHI_SECTORS];
538 unsigned char lowerL2Rates[PHI_SECTORS];
539 unsigned char l3Rates[PHI_SECTORS];
544 unsigned int unixTime;
546 unsigned short l1Rates[TRIGGER_SURFS][ANTS_PER_SURF];
547 unsigned char upperL2Rates[PHI_SECTORS];
548 unsigned char lowerL2Rates[PHI_SECTORS];
549 unsigned char l3Rates[PHI_SECTORS];
568 unsigned char bufferCount[4];
569 unsigned short l3Rates[16];
570 unsigned short l3RatesGated[16];
584 unsigned char bufferCount[4];
585 unsigned short l3Rates[PHI_SECTORS][2];
615 unsigned char bufferCount[4];
616 unsigned int l1Rates[PHI_SECTORS][2];
617 unsigned short upperL2Rates[PHI_SECTORS];
618 unsigned short lowerL2Rates[PHI_SECTORS];
619 unsigned short l3Rates[PHI_SECTORS];
620 unsigned int nadirL1Rates[NADIR_ANTS];
621 unsigned short nadirL2Rates[NADIR_ANTS];
633 unsigned int l1Rates[PHI_SECTORS][2];
634 unsigned short upperL2Rates[PHI_SECTORS];
635 unsigned short lowerL2Rates[PHI_SECTORS];
636 unsigned short l3Rates[PHI_SECTORS];
637 unsigned short nadirL1Rates[NADIR_ANTS];
638 unsigned char nadirL2Rates[NADIR_ANTS];
647 unsigned int unixTime;
648 unsigned short numRates;
649 unsigned short deltaT;
650 unsigned int l1Rates[PHI_SECTORS][2];
651 unsigned short upperL2Rates[PHI_SECTORS];
652 unsigned short lowerL2Rates[PHI_SECTORS];
653 unsigned short l3Rates[PHI_SECTORS];
654 unsigned int antTrigMask;
655 unsigned char nadirAntTrigMask;
656 unsigned char reserved[3];
663 unsigned int unixTime;
664 unsigned short numRates;
665 unsigned short deltaT;
666 unsigned int l1Rates[PHI_SECTORS][2];
667 unsigned short upperL2Rates[PHI_SECTORS];
668 unsigned short lowerL2Rates[PHI_SECTORS];
669 unsigned short l3Rates[PHI_SECTORS];
670 unsigned int antTrigMask;
671 unsigned char nadirAntTrigMask;
677 unsigned int unixTime;
678 unsigned short numRates;
679 unsigned short deltaT;
680 unsigned int l1Rates[TRIGGER_SURFS][ANTS_PER_SURF];
681 unsigned short upperL2Rates[PHI_SECTORS];
682 unsigned short lowerL2Rates[PHI_SECTORS];
683 unsigned short l3Rates[PHI_SECTORS];
696 unsigned int trigTime;
700 unsigned short upperL1TrigPattern;
701 unsigned short lowerL1TrigPattern;
702 unsigned short upperL2TrigPattern;
703 unsigned short lowerL2TrigPattern;
704 unsigned short l3TrigPattern;
705 unsigned short otherTrigPattern[3];
706 unsigned char nadirL1TrigPattern;
709 unsigned char reserved;
743 unsigned char reserved[2];
748 unsigned char trigType;
750 unsigned char l3Type1Count;
751 unsigned short trigNum;
752 unsigned int trigTime;
753 unsigned short ppsNum;
754 unsigned short deadTime;
755 unsigned int c3poNum;
756 unsigned short upperL1TrigPattern;
757 unsigned short lowerL1TrigPattern;
758 unsigned short upperL2TrigPattern;
759 unsigned short lowerL2TrigPattern;
760 unsigned short l3TrigPattern;
761 unsigned short otherTrigPattern[3];
762 unsigned char nadirL1TrigPattern;
763 unsigned char nadirL2TrigPattern;
764 unsigned char bufferDepth;
765 unsigned char reserved;
771 unsigned int unixTime;
772 unsigned int unixTimeUs;
777 unsigned int turfEventId;
778 unsigned int eventNumber;
779 unsigned short calibStatus;
780 unsigned char priority;
781 unsigned char turfUpperWord;
782 unsigned char otherFlag;
783 unsigned char errorFlag;
787 unsigned char surfSlipFlag;
788 unsigned char nadirAntTrigMask;
789 unsigned int antTrigMask;
794 unsigned char trigType;
796 unsigned char l3Type1Count;
797 unsigned short trigNum;
798 unsigned int trigTime;
799 unsigned short ppsNum;
800 unsigned short deadTime;
801 unsigned int c3poNum;
802 unsigned short upperL1TrigPattern;
803 unsigned short lowerL1TrigPattern;
804 unsigned short upperL2TrigPattern;
805 unsigned short lowerL2TrigPattern;
806 unsigned short l3TrigPattern;
807 unsigned char bufferDepth;
808 unsigned char reserved;
815 unsigned int unixTime;
816 unsigned int unixTimeUs;
821 unsigned int eventNumber;
822 unsigned short calibStatus;
823 unsigned char priority;
824 unsigned char turfUpperWord;
825 unsigned char otherFlag;
826 unsigned char errorFlag;
827 unsigned char otherFlag3;
828 unsigned char nadirAntTrigMask;
829 unsigned int antTrigMask;
834 unsigned char trigType;
836 unsigned char l3Type1Count;
837 unsigned short trigNum;
838 unsigned int trigTime;
839 unsigned short ppsNum;
840 unsigned short deadTime;
841 unsigned int c3poNum;
842 unsigned short upperL1TrigPattern;
843 unsigned short lowerL1TrigPattern;
844 unsigned short upperL2TrigPattern;
845 unsigned short lowerL2TrigPattern;
846 unsigned short l3TrigPattern;
847 unsigned char bufferDepth;
848 unsigned char reserved;
853 unsigned int unixTime;
854 unsigned int unixTimeUs;
859 unsigned int eventNumber;
860 unsigned short surfMask;
861 unsigned short calibStatus;
862 unsigned char priority;
863 unsigned char turfUpperWord;
864 unsigned char otherFlag;
865 unsigned char otherFlag2;
866 unsigned int antTrigMask;
874 unsigned int eventNumber;
875 unsigned int surfEventId[ACTIVE_SURFS];
882 unsigned int eventNumber;
883 unsigned int whichPeds;
889 #endif //DOXYGEN_SHOULD_SKIP_THIS 893 #endif //OLDSTRUCTS_H unsigned short ppsNum
It's only updated every second so no need for sub-second timing.
unsigned int unixTime
Time of first hk.
unsigned short phiTrigMaskH
16 bit phi-sector mask
unsigned short deadTime
fraction = deadTime/64400
unsigned short phiTrigMask
16 bit phi-sector mask
unsigned short phiTrigMaskH
16-bit phi-sector mask
unsigned short phiTrigMask
16 bit phi-sector mask
unsigned short l1TrigMask
to get Hz
unsigned char errorFlag
Bit 1-4 bufferdepth, Bits 5,6,7 are for upper,lower,nadir trig mask match.
unsigned short ppsNum
1PPS
unsigned short phiTrigMask
16-bit phi-sector mask
unsigned char trigType
The trigger type.
unsigned int c3poNum
1 number of trigger time ticks per PPS
unsigned short l1TrigMaskH
As read from TURF (16-bit upper phi, lower phi)
unsigned char nadirAntTrigMask
8-bit nadir phi mask
unsigned short numRates
Number of rates in average.
unsigned short deltaT
Difference in time between first and last.
unsigned int antTrigMask
As read from TURF (16-bit upper phi, lower phi)
unsigned char errorFlag
Bit 1-4 bufferdepth, Bits 5,6,7 are for upper,lower,nadir trig mask match.
unsigned short trigNum
turf trigger counter
unsigned short deltaT
Difference in time between first and last.
unsigned short phiTrigMaskH
16 bit phi-sector mask
Turf Rates – Telemetered.
unsigned short ppsNum
It's only updated every second so no need for sub-second timing.
unsigned char errorFlag
Bit 1-4 bufferdepth, Bits 5,6,7 are for upper,lower,nadir trig mask match.
unsigned short deltaT
Difference in time between first and last.
unsigned char nadirAntTrigMask
8-bit nadir phi mask
unsigned short l1TrigMask
to get Hz
unsigned char nadirL2TrigPattern
Might just be the same thing.
unsigned short ppsNum
It's only updated every second so no need for sub-second timing.
unsigned short deltaT
Difference in time between first and last.
unsigned short deltaT
Difference in time between first and last.
unsigned char errorFlag
Bit 1-4 bufferdepth, Bits 5,6,7 are for upper,lower,nadir trig mask match.
Summed Turf Rates – Telemetered.
unsigned short errorFlag
Will define at some point.
unsigned int unixTime
Time of first hk.
unsigned short l1TrigMaskH
As read from TURF (16-bit upper phi, lower phi)
unsigned int antTrigMask
As read from TURF (16-bit upper phi, lower phi)
unsigned int unixTime
Time of first hk.
unsigned short phiTrigMask
16 bit phi-sector mask
unsigned short deadTime
fraction = deadTime/64400
unsigned short deadTime
How much were we dead??
unsigned int c3poNum
1 number of trigger time ticks per PPS
unsigned short errorFlag
Will define at some point.
unsigned short phiTrigMask
16-bit phi-sector mask
unsigned char l3Type1Count
L3 counter.
unsigned short numRates
Number of rates in average.
unsigned int unixTime
Time of first hk.
unsigned short ppsNum
It's only updated every second so no need for sub-second timing.
unsigned short ppsNum
It's only updated every second so no need for sub-second timing.
unsigned int c3poNum
1 number of trigger time ticks per PPS
unsigned short deadTime
fraction = deadTime/64400
unsigned int deadTime
Summed dead time between first and last.
unsigned char errorFlag
Bit 1,2,3 are for upper,lower,nadir trig mask match.
unsigned short numHks
Number of hks in average.
unsigned short ppsNum
1PPS
unsigned int hadError
Bit mask to be defined.
unsigned short phiTrigMask
16-bit phi-sector mask
unsigned short deadTime
How much were we dead??
unsigned int ppsNum
It's only updated every second so no need for sub-second timing.
unsigned char errorFlag
Bit 1-4 bufferdepth, Bits 5,6,7 are for upper,lower,nadir trig mask match.
unsigned char trigType
The trigger type.
unsigned char bufferDepth
bits 0,1 trigTime depth 2,3 current depth
unsigned short ppsNum
1PPS
unsigned char trigType
The trigger type.
unsigned short globalThreshold
set to zero if there isn't one
unsigned int c3poNum
1 number of trigger time ticks per PPS
unsigned char errorFlag
Bit 1-4 bufferdepth, Bits 5,6,7 are for upper,lower,nadir trig mask match.
unsigned int unixTime
Time of first hk.
unsigned short phiTrigMaskH
16 bit phi-sector mask
unsigned char nadirAntTrigMask
8-bit nadir phi mask
unsigned short deadTime
How much were we dead??
unsigned char bufferDepth
bits 0,1 trigTime depth 2,3 current depth
unsigned int deadTime
Summed dead time between first and last.
unsigned short l1TrigMaskH
As read from TURF (16-bit upper phi, lower phi)
unsigned short deadTime
How much were we dead??
unsigned short l1TrigMask
As read from TURF (16-bit phi)
unsigned int whichPeds
whichPedestals did we subtract
unsigned short trigNum
turf trigger counter
unsigned short numRates
Number of rates in average.
unsigned short phiTrigMask
16 bit phi-sector mask
unsigned char errorFlag
Bit 1-4 bufferdepth, Bits 5,6,7 are for upper,lower,nadir trig mask match.
unsigned short l1TrigMaskH
As read from TURF (16-bit phi)
unsigned short l1TrigMask
to get Hz
unsigned short trigNum
turf trigger counter
unsigned char trigType
The trigger type.
unsigned char nadirL2TrigPattern
Might just be the same thing.
unsigned int hadError
Bit mask to be defined.
unsigned short errorFlag
Will define at some point.
unsigned short deadTime
How much were we dead??
unsigned short phiTrigMask
16 bit phi-sector mask
unsigned int antTrigMask
As read from TURF (16-bit upper phi, lower phi)
unsigned char bufferDepth
bits 0,1 trigTime depth 2,3 current depth
unsigned char errorFlag
Bit 1-4 bufferdepth, Bits 5,6,7 are for upper,lower,nadir trig mask match.
unsigned short deltaT
Difference in time between first and last.
unsigned int deadTime
Summed dead time between first and last.
unsigned char l3Type1Count
L3 counter.
unsigned short numHks
Number of hks in average.
A complete pedestal subtracted SURF channel.
unsigned int unixTime
Time of first hk.
unsigned short globalThreshold
set to zero if there isn't one
unsigned int antTrigMask
As read from TURF (16-bit upper phi, lower phi)
unsigned short deadTime
fraction = deadTime/64400
unsigned short globalThreshold
set to zero if there isn't one
unsigned short ppsNum
1PPS
unsigned short numRates
Number of rates in average.
Everything below here is for legacy support.
unsigned char l3Type1Count
L3 counter.
unsigned char nadirAntTrigMask
8-bit nadir phi mask
unsigned short phiTrigMask
16-bit phi-sector mask
unsigned short trigNum
turf trigger counter
unsigned char l3Type1Count
L3 counter.
unsigned short phiTrigMask
16 bit phi-sector mask
unsigned short l1TrigMask
As read from TURF (16-bit phi)
unsigned char bufferDepth
bits 0,1 trigTime depth 2,3 current depth
unsigned char errorFlag
Bit 1,2,3 are for upper,lower,nadir trig mask match.
unsigned short l1TrigMask
As read from TURF (16-bit upper phi, lower phi)