9 #ifndef SIMPLESTRUCTS_H 10 #define SIMPLESTRUCTS_H 12 #define ANITA_STRUCTURES_H 15 #include "AnitaConventions.h" 24 #define VER_EVENT_BODY 7 25 #define VER_PEDSUBBED_EVENT_BODY 7 26 #define VER_EVENT_HEADER 7 27 #define VER_WAVE_PACKET 4 28 #define VER_SURF_PACKET 4 29 #define VER_ENC_WAVE_PACKET 4 30 #define VER_ENC_SURF_PACKET 4 32 #define VER_ADU5_PAT 4 33 #define VER_ADU5_SAT 4 34 #define VER_ADU5_VTG 4 38 #define VER_CMD_ECHO 4 40 #define VER_TURF_RATE 6 42 #define VER_FULL_PED 1 43 #define VER_SLOW_FULL 1 48 #define VER_EVENT_BODY 7 49 #define VER_PEDSUBBED_EVENT_BODY 7 50 #define VER_EVENT_HEADER 9 51 #define SLAC_VER_EVENT_HEADER 7 52 #define VER_WAVE_PACKET 6 53 #define VER_SURF_PACKET 6 54 #define VER_ENC_WAVE_PACKET 6 55 #define VER_ENC_SURF_PACKET 6 57 #define VER_ADU5_PAT 4 58 #define VER_ADU5_SAT 4 59 #define VER_ADU5_VTG 4 63 #define VER_CMD_ECHO 4 65 #define VER_TURF_RATE 6 67 #define VER_FULL_PED 1 70 #define VER_SLOW_FULL 1 71 #define VER_ZIPPED_FILE 1 72 #define VER_ZIPPED_PACKET 1 73 #define VER_RUN_START 1 74 #define VER_OTHER_MON 1 76 #define VER_EVENT_BODY 11 77 #define VER_PEDSUBBED_EVENT_BODY 11 78 #define VER_EVENT_HEADER 13 79 #define SLAC_VER_EVENT_HEADER 10 80 #define VER_WAVE_PACKET 10 81 #define VER_SURF_PACKET 10 82 #define VER_ENC_WAVE_PACKET 10 83 #define VER_ENC_SURF_PACKET 10 84 #define VER_SURF_HK 14 85 #define VER_GPS_GGA 10 86 #define VER_ADU5_PAT 10 87 #define VER_ADU5_SAT 10 88 #define VER_ADU5_VTG 10 89 #define VER_G12_POS 10 90 #define VER_G12_SAT 10 91 #define VER_HK_FULL 10 92 #define VER_CMD_ECHO 10 93 #define VER_MONITOR 10 94 #define VER_TURF_RATE 16 95 #define VER_LAB_PED 10 96 #define VER_FULL_PED 10 99 #define VER_SLOW_FULL 10 100 #define VER_ZIPPED_FILE 10 101 #define VER_ZIPPED_PACKET 10 102 #define VER_RUN_START 10 103 #define VER_OTHER_MON 10 104 #define VER_GPSD_START 10 105 #define VER_LOGWATCHD_START 10 106 #define VER_AVG_SURF_HK 14 107 #define VER_SUM_TURF_RATE 16 108 #define VER_ACQD_START 11 109 #define VER_TURF_REG 10 111 #define VER_EVENT_BODY 30 112 #define VER_PEDSUBBED_EVENT_BODY 30 113 #define VER_EVENT_HEADER 33 114 #define SLAC_VER_EVENT_HEADER 30 115 #define VER_WAVE_PACKET 30 116 #define VER_SURF_PACKET 30 117 #define VER_ENC_WAVE_PACKET 30 118 #define VER_ENC_SURF_PACKET 30 119 #define VER_SURF_HK 31 120 #define VER_GPS_GGA 30 121 #define VER_ADU5_PAT 30 122 #define VER_ADU5_SAT 30 123 #define VER_ADU5_VTG 30 124 #define VER_G12_POS 30 125 #define VER_G12_SAT 30 126 #define VER_HK_FULL 30 128 #define VER_CMD_ECHO 30 129 #define VER_MONITOR 31 130 #define VER_TURF_RATE 35 131 #define VER_LAB_PED 30 132 #define VER_FULL_PED 30 133 #define VER_SLOW_1 30 134 #define VER_SLOW_2 30 135 #define VER_SLOW_FULL 30 136 #define VER_ZIPPED_FILE 30 137 #define VER_ZIPPED_PACKET 30 138 #define VER_RUN_START 30 139 #define VER_OTHER_MON 30 140 #define VER_GPSD_START 30 141 #define VER_LOGWATCHD_START 30 142 #define VER_AVG_SURF_HK 31 143 #define VER_SUM_TURF_RATE 34 144 #define VER_ACQD_START 32 145 #define VER_TURF_REG 30 146 #define VER_TURF_EVENT_DATA 30 147 #define VER_GPU_POW_SPEC 30 149 #define VER_EVENT_BODY 40 150 #define VER_PEDSUBBED_EVENT_BODY 40 151 #define VER_EVENT_HEADER 41 152 #define SLAC_VER_EVENT_HEADER 40 153 #define VER_WAVE_PACKET 40 154 #define VER_SURF_PACKET 40 155 #define VER_ENC_WAVE_PACKET 40 156 #define VER_ENC_SURF_PACKET 40 157 #define VER_SURF_HK 41 158 #define VER_GPS_GGA 40 159 #define VER_ADU5_PAT 40 160 #define VER_ADU5_SAT 40 161 #define VER_ADU5_VTG 40 162 #define VER_G12_POS 40 163 #define VER_G12_SAT 40 164 #define VER_HK_FULL 40 166 #define VER_CMD_ECHO 40 167 #define VER_MONITOR 41 168 #define VER_TURF_RATE 42 169 #define VER_LAB_PED 40 170 #define VER_FULL_PED 40 171 #define VER_SLOW_1 40 172 #define VER_SLOW_2 40 173 #define VER_SLOW_FULL 40 174 #define VER_ZIPPED_FILE 40 175 #define VER_ZIPPED_PACKET 40 176 #define VER_RUN_START 40 177 #define VER_OTHER_MON 41 178 #define VER_GPSD_START 40 179 #define VER_LOGWATCHD_START 40 180 #define VER_AVG_SURF_HK 41 181 #define VER_SUM_TURF_RATE 42 182 #define VER_ACQD_START 41 183 #define VER_TURF_REG 40 184 #define VER_TURF_EVENT_DATA 40 185 #define VER_GPU_POW_SPEC 41 186 #define VER_RTLSDR_POW_SPEC 40 187 #define VER_TUFF_STATUS 40 188 #define VER_TUFF_RAW_CMD 40 189 #define VER_TURF_RAW_BANK3 40 231 PACKET_WAKEUP_LOS = 0x600,
232 PACKET_WAKEUP_HIGHRATE = 0x601,
233 PACKET_WAKEUP_COMM1 = 0x602,
234 PACKET_WAKEUP_COMM2 = 0x603,
235 PACKET_SLOW1 = 0x700,
236 PACKET_SLOW2 = 0x800,
246 PACKET_RTLSDR_POW_SPEC = 0xe00 ,
247 PACKET_TUFF_STATUS =0xf00,
248 PACKET_TUFF_RAW_CMD =0xf01
253 PACKET_FROM_G12 = 0x10000,
254 PACKET_FROM_ADU5A = 0x20000,
255 PACKET_FROM_ADU5B = 0x40000,
256 CMD_FROM_PAYLOAD = 0x80000
261 } EventEncodingScheme_t;
266 ENCODE_SOMETHING=0x100
277 ENCODE_LOSSLESS_11BIT,
278 ENCODE_LOSSLESS_10BIT,
279 ENCODE_LOSSLESS_9BIT,
280 ENCODE_LOSSLESS_8BIT,
281 ENCODE_LOSSLESS_7BIT,
282 ENCODE_LOSSLESS_6BIT,
283 ENCODE_LOSSLESS_5BIT,
284 ENCODE_LOSSLESS_4BIT,
285 ENCODE_LOSSLESS_3BIT,
286 ENCODE_LOSSLESS_2BIT,
287 ENCODE_LOSSLESS_1BIT,
290 ENCODE_LOSSLESS_BINFIB_10BIT,
291 ENCODE_LOSSLESS_BINFIB_9BIT,
292 ENCODE_LOSSLESS_BINFIB_8BIT,
293 ENCODE_LOSSLESS_BINFIB_7BIT,
294 ENCODE_LOSSLESS_BINFIB_6BIT,
295 ENCODE_LOSSLESS_BINFIB_5BIT,
296 ENCODE_LOSSLESS_BINFIB_4BIT,
297 ENCODE_LOSSLESS_BINFIB_3BIT,
298 ENCODE_LOSSLESS_BINFIB_2BIT,
299 ENCODE_LOSSLESS_BINFIB_1BIT,
301 ENCODE_LOSSY_MULAW_8BIT,
302 ENCODE_LOSSY_MULAW_7BIT,
303 ENCODE_LOSSY_MULAW_6BIT,
304 ENCODE_LOSSY_MULAW_5BIT,
305 ENCODE_LOSSY_MULAW_4BIT,
306 ENCODE_LOSSY_MULAW_3BIT,
307 ENCODE_LOSSY_MULAW_11_8,
308 ENCODE_LOSSY_MULAW_11_7,
309 ENCODE_LOSSY_MULAW_11_6,
310 ENCODE_LOSSY_MULAW_11_5,
311 ENCODE_LOSSY_MULAW_11_4,
312 ENCODE_LOSSY_MULAW_11_3,
313 ENCODE_LOSSY_MULAW_10_8,
314 ENCODE_LOSSY_MULAW_10_7,
315 ENCODE_LOSSY_MULAW_10_6,
316 ENCODE_LOSSY_MULAW_10_5,
317 ENCODE_LOSSY_MULAW_10_4,
318 ENCODE_LOSSY_MULAW_10_3,
319 ENCODE_LOSSY_MULAW_9_7,
320 ENCODE_LOSSY_MULAW_9_6,
321 ENCODE_LOSSY_MULAW_9_5,
322 ENCODE_LOSSY_MULAW_9_4,
323 ENCODE_LOSSY_MULAW_9_3,
324 ENCODE_LOSSY_MULAW_8_6,
325 ENCODE_LOSSY_MULAW_8_5,
326 ENCODE_LOSSY_MULAW_8_4,
327 ENCODE_LOSSY_MULAW_8_3,
328 ENCODE_LOSSY_MULAW_7_5,
329 ENCODE_LOSSY_MULAW_7_4,
330 ENCODE_LOSSY_MULAW_7_3,
331 ENCODE_LOSSY_MULAW_6_4,
332 ENCODE_LOSSY_MULAW_6_3
377 unsigned short numBytes;
378 unsigned char feByte;
380 unsigned int checksum;
391 unsigned int trigTime;
394 unsigned short upperL1TrigPattern;
395 unsigned short lowerL1TrigPattern;
396 unsigned short upperL2TrigPattern;
397 unsigned short lowerL2TrigPattern;
398 unsigned short l3TrigPattern;
399 unsigned short l3TrigPattern2;
418 unsigned int trigTime;
422 unsigned short l3TrigPattern;
423 unsigned short l3TrigPatternH;
425 unsigned char reserved[3];
436 unsigned char firstHitbus;
437 unsigned char lastHitbus;
450 unsigned short numBytes;
499 unsigned short numBytes;
509 unsigned short data[MAX_NUMBER_SAMPLES];
522 short data[MAX_NUMBER_SAMPLES];
530 unsigned int unixTime;
539 unsigned short data[CHANS_PER_IP320];
547 int data[CHANS_PER_IP320];
572 unsigned short temp[2];
582 #else // ANITA_3_DATA 608 unsigned int unixTime;
609 unsigned int unixTimeUs;
619 unsigned int unixTime;
620 unsigned int unixTimeUs;
621 unsigned short scaler[ACTIVE_SURFS][32];
622 unsigned short extraScaler[ACTIVE_SURFS][32];
632 unsigned int unixTime;
633 unsigned int unixTimeUs;
634 unsigned int whichBank;
635 unsigned int values[TURF_BANK_SIZE];
636 } TurfRegisterContents_t;
646 unsigned int unixTime;
647 unsigned int unixTimeUs;
648 unsigned int eventNumber;
649 unsigned char rawBytes[TURF_EVENT_DATA_SIZE];
668 unsigned short diskSpace[8];
679 unsigned short eventLinks[NUM_PRIORITIES];
680 unsigned short hkLinks[21];
688 unsigned int utime[NUM_PROCESSES];
689 unsigned int stime[NUM_PROCESSES];
690 unsigned int vsize[NUM_PROCESSES];
698 unsigned char numCmdBytes;
699 unsigned char cmd[MAX_CMD_LENGTH];
722 unsigned short chipEntries;
723 unsigned short pedMean[MAX_NUMBER_SAMPLES];
724 unsigned char pedRMS[MAX_NUMBER_SAMPLES];
732 unsigned int eventNumber;
733 unsigned int runNumber;
745 unsigned int eventNumber;
754 unsigned int eventNumber;
755 unsigned char rfPwrAvg[ACTIVE_SURFS][RFCHAN_PER_SURF];
756 unsigned char avgScalerRates[TRIGGER_SURFS][SCALERS_PER_SURF];
773 unsigned char temps[4];
774 unsigned char powers[4];
789 unsigned int unixTime;
790 unsigned int lastEventNumber;
794 unsigned short sbsTemp[2];
803 unsigned int unixTime;
814 unsigned int unixTime;
815 unsigned int c3poNum;
818 unsigned char l3RatesGated[PHI_SECTORS];
819 unsigned short l2Rates[PHI_SECTORS];
820 unsigned char l3Rates[PHI_SECTORS];
825 unsigned char reserved[2];
840 unsigned int unixTime;
841 unsigned int unixTimeUs;
842 unsigned int whichBank;
843 unsigned short l2Rates[16];
844 unsigned int unused[8];
845 unsigned char l3Rates[16];
846 unsigned int unused2[4];
847 unsigned char l3RatesGated[16];
848 unsigned int unused3[4];
849 unsigned char refPulses;
850 unsigned char unused4[3];
851 unsigned short deadTime;
852 unsigned short nothingtoseehere;
853 unsigned short rfScaler;
854 unsigned short unused5;
855 unsigned int moreunused[4];
856 unsigned int c3poNum;
857 unsigned char morejunk[6];
858 unsigned short ppsNum;
859 unsigned int shadowed[6];
860 unsigned int garbage[16];
861 } TurfRawBank3Struct_t;
876 unsigned char bufferCount[4];
877 unsigned int l2Rates[PHI_SECTORS];
878 unsigned short l3Rates[PHI_SECTORS];
938 unsigned int eventNumber;
950 unsigned int eventNumber;
951 unsigned int whichPeds;
961 unsigned int eventNumber;
971 unsigned int eventNumber;
972 unsigned int whichPeds;
990 unsigned int eventNumber;
999 unsigned int eventNumber;
1000 unsigned int whichPeds;
1012 unsigned int unixTime;
1013 unsigned int unixTimeUs;
1014 unsigned int timeOfDay;
1023 unsigned int attFlag;
1032 unsigned int unixTime;
1033 unsigned int unixTimeUs;
1034 unsigned int timeOfDay;
1039 float geoidSeparation;
1041 unsigned char posFixType;
1042 unsigned char numSats;
1043 unsigned short baseStationId;
1052 unsigned char elevation;
1055 unsigned short azimuth;
1064 unsigned int unixTime;
1065 unsigned int numSats;
1075 unsigned int unixTime;
1076 unsigned char numSats[4];
1086 unsigned int unixTime;
1087 unsigned int unixTimeUs;
1089 float magneticCourse;
1100 unsigned int unixTime;
1101 unsigned int unixTimeUs;
1102 unsigned int timeOfDay;
1103 unsigned int numSats;
1108 float verticalVelocity;
1122 unsigned int unixTime;
1123 unsigned char ackCount[3];
1124 unsigned char nakCount[3];
1125 unsigned char rioBitMask;
1126 unsigned char tstBitMask;
1141 unsigned int unixTime;
1142 unsigned char turfIdBytes[4];
1143 unsigned int turfIdVersion;
1144 unsigned char turfioIdBytes[4];
1145 unsigned int turfioIdVersion;
1146 unsigned char surfIdBytes[ACTIVE_SURFS][4];
1147 unsigned int surfIdVersion[ACTIVE_SURFS];
1148 unsigned char testBytes[8];
1149 unsigned int numEvents;
1150 float chanMean[ACTIVE_SURFS][CHANNELS_PER_SURF];
1151 float chanRMS[ACTIVE_SURFS][CHANNELS_PER_SURF];
1152 unsigned short threshVals[10];
1153 unsigned short scalerVals[TRIGGER_SURFS][SCALERS_PER_SURF][10];
1162 unsigned int unixTime;
1163 unsigned int unixTimeUs;
1176 unsigned int unixTime;
1177 unsigned int unixTimeUs;
1187 unsigned int unixTime;
1188 unsigned int unixTimeUs;
1191 unsigned short scalerGoals[NUM_ANTENNA_RINGS];
1192 unsigned short reserved;
1193 unsigned short upperWords[ACTIVE_SURFS];
1194 unsigned short scaler[TRIGGER_SURFS][SCALERS_PER_SURF];
1195 unsigned short l1Scaler[TRIGGER_SURFS][L1S_PER_SURF];
1196 unsigned short l2Scaler[TRIGGER_SURFS][L2S_PER_SURF];
1197 unsigned short threshold[TRIGGER_SURFS][SCALERS_PER_SURF];
1198 unsigned short setThreshold[TRIGGER_SURFS][SCALERS_PER_SURF];
1199 unsigned short rfPower[ACTIVE_SURFS][RFCHAN_PER_SURF];
1200 unsigned short surfTrigBandMask[TRIGGER_SURFS];
1201 unsigned char surfTrigIndex[TRIGGER_SURFS];
1214 unsigned short globalThreshold;
1215 unsigned short scalerGoals[NUM_ANTENNA_RINGS];
1216 unsigned short avgScaler[TRIGGER_SURFS][SCALERS_PER_SURF];
1217 unsigned short rmsScaler[TRIGGER_SURFS][SCALERS_PER_SURF];
1218 unsigned short avgL1[TRIGGER_SURFS][L1S_PER_SURF];
1219 unsigned short rmsL1[TRIGGER_SURFS][L1S_PER_SURF];
1220 unsigned short avgThresh[TRIGGER_SURFS][SCALERS_PER_SURF];
1221 unsigned short rmsThresh[TRIGGER_SURFS][SCALERS_PER_SURF];
1222 unsigned short avgRFPower[ACTIVE_SURFS][RFCHAN_PER_SURF];
1223 unsigned short rmsRFPower[ACTIVE_SURFS][RFCHAN_PER_SURF];
1224 unsigned short surfTrigBandMask[TRIGGER_SURFS];
1234 unsigned int unixTime;
1237 unsigned char cmd[MAX_CMD_LENGTH];
1246 unsigned int unixTime;
1258 unsigned int unixTime;
1259 unsigned int ramDiskInodes;
1260 unsigned int runStartTime;
1261 unsigned int runStartEventNumber;
1262 unsigned int runNumber;
1263 unsigned short dirFiles[3];
1264 unsigned short dirLinks[3];
1265 unsigned int processBitMask;
1266 unsigned short reserved;
1267 } OtherMonitorStruct_t;
1275 unsigned int unixTimeStart;
1276 unsigned int unixTimeEnd;
1286 unsigned int numUncompressedBytes;
1295 unsigned int unixTime;
1296 unsigned short numUncompressedBytes;
1297 unsigned short segmentNumber;
1318 unsigned int unixTime;
1319 unsigned int runNumber;
1334 unsigned int eventNumber;
1335 unsigned int surfEventId[ACTIVE_SURFS];
1345 unsigned int eventNumber;
1346 unsigned int surfEventId[ACTIVE_SURFS];
1366 unsigned int eventNumber;
1375 unsigned int unixTime;
1376 unsigned int subTime;
1391 unsigned short sequence_tag;
1392 unsigned char mben_left;
1396 unsigned char chnind;
1398 unsigned char good_bad;
1399 unsigned char polarity_know;
1401 unsigned char qa_phase;
1406 unsigned char checkSum;
1407 char carriageReturn;
1409 } RawAdu5MBNStruct_t;
1429 double eccentricity;
1448 unsigned short checkSum;
1449 char carriageReturn;
1451 } RawAdu5SNVStruct_t;
1460 char pbenHeader[11];
1471 unsigned short pdop;
1472 unsigned short checkSum;
1473 char carriageReturn;
1475 } RawAdu5PBNStruct_t;
1491 unsigned short checkSum;
1492 char carriageReturn;
1494 } RawAdu5ATTStruct_t;
1499 unsigned char raw_version;
1507 } RawAdu5BFileHeader_t;
1520 unsigned short pdop;
1522 } RawAdu5BFileRawNav_t;
1524 typedef struct __attribute__((packed)) RawAdu5BFileChanObs {
1527 unsigned short smth_count;
1528 char polarity_known;
1529 unsigned char warning;
1530 unsigned char goodbad;
1532 unsigned char qa_phase;
1535 } RawAdu5BFileChanObs_t;
1538 typedef struct __attribute__((packed)) RawAdu5BFileSatelliteHeader {
1539 unsigned char svprn;
1540 unsigned char elevation;
1541 unsigned char azimuth;
1542 unsigned char chnind;
1543 } RawAdu5BFileSatelliteHeader_t;
1563 double eccentricity;
1580 } RawAdu5EFileStruct_t;
1595 } RawAdu5AFileStruct_t;
1605 unsigned int pedUnixTime;
1613 #ifndef DOXYGEN_SHOULD_SKIP_THIS 1615 typedef int Fixed3_t;
1616 typedef int Fixed6_t;
1617 typedef int Fixed8_t;
1629 int data[MAX_NUMBER_SAMPLES];
1638 Fixed3_t data[MAX_NUMBER_SAMPLES];
1640 short valid_samples;
1641 } TransientChannel3_t;
1648 Fixed6_t data[MAX_NUMBER_SAMPLES];
1649 short valid_samples;
1650 } TransientChannel6_t;
1657 Fixed8_t data[MAX_NUMBER_SAMPLES];
1659 short valid_samples;
1660 } TransientChannel8_t;
1667 float data[MAX_NUMBER_SAMPLES];
1668 short valid_samples;
1669 } TransientChannelF_t;
1676 float data[MAX_NUMBER_SAMPLES];
1677 short valid_samples;
1680 } TransientChannelFRMS_t;
1687 TransientChannel3_t ch[NUM_DIGITZED_CHANNELS];
1688 } AnitaTransientBody3_t;
1695 TransientChannel6_t ch[NUM_DIGITZED_CHANNELS];
1696 } AnitaPowerBody6_t;
1703 TransientChannel8_t ch[NUM_DIGITZED_CHANNELS];
1704 } AnitaTransientBody8_t;
1711 TransientChannelF_t ch[NUM_DIGITZED_CHANNELS];
1712 } AnitaTransientBodyF_t;
1719 TransientChannel6_t S0,S1,S2,S3;
1722 #endif //DOXYGEN_SHOULD_SKIP_THIS 1732 unsigned int unixTimeStart;
1733 unsigned int unixTimeEnd;
1742 unsigned int unixTimeStart;
1743 unsigned int unixTimeEnd;
1744 unsigned short chipEntries[ACTIVE_SURFS][LABRADORS_PER_SURF];
1745 unsigned int mean[ACTIVE_SURFS][LABRADORS_PER_SURF][CHANNELS_PER_SURF][MAX_NUMBER_SAMPLES];
1746 unsigned int meanSq[ACTIVE_SURFS][LABRADORS_PER_SURF][CHANNELS_PER_SURF][MAX_NUMBER_SAMPLES];
1747 unsigned int entries[ACTIVE_SURFS][LABRADORS_PER_SURF][CHANNELS_PER_SURF][MAX_NUMBER_SAMPLES];
1748 float fmean[ACTIVE_SURFS][LABRADORS_PER_SURF][CHANNELS_PER_SURF][MAX_NUMBER_SAMPLES];
1749 float frms[ACTIVE_SURFS][LABRADORS_PER_SURF][CHANNELS_PER_SURF][MAX_NUMBER_SAMPLES];
1759 unsigned short thePeds[ACTIVE_SURFS][LABRADORS_PER_SURF][CHANNELS_PER_SURF][MAX_NUMBER_SAMPLES];
1760 unsigned short pedsRMS[ACTIVE_SURFS][LABRADORS_PER_SURF][CHANNELS_PER_SURF][MAX_NUMBER_SAMPLES];
1765 unsigned char bins[99];
1770 unsigned int unixTimeFirstEvent;
1771 unsigned int unixTimeLastEvent;
1772 unsigned int numEventsAveraged;
1773 unsigned int firstEventInAverage;
1793 unsigned int startFreq;
1794 unsigned int freqStep;
1795 unsigned int unixTimeStart;
1796 unsigned short scanTime;
1797 unsigned short gain;
1798 unsigned char spectrum [RTLSDR_MAX_SPECTRUM_BINS];
1799 unsigned char rtlNum ;
1809 unsigned int notchSetTime;
1810 unsigned int unixTime;
1811 unsigned char startSectors[NUM_TUFF_NOTCHES];
1812 unsigned char endSectors[NUM_TUFF_NOTCHES];
1813 char temperatures[NUM_RFCM];
1814 } TuffNotchStatus_t;
1819 unsigned int requestedTime;
1820 unsigned int enactedTime;
1822 unsigned char irfcm;
1823 unsigned char tuffStack;
1829 #include "oldStructs.h" 1831 #endif //SIMPLESTRUCTS_H EncodedPedSubbedChannelPacketHeader_t – Yes.
SS Hk Data Struct – Telemetered.
unsigned short ppsNum
1PPS
float rms
Filled by Prioritizerd.
struct __attribute__((packed))
Debugging use only TURF scaler data.
unsigned int unixTime
Corresponds to unixTimeEnd above.
GpsAdu5PatStruct_t – Yes.
unsigned short trigNum
turf trigger counter
unsigned numBytes
Not including the EncodedEventWrapper_t;.
unsigned int whichPeds
whichPedestals did we subtract
unsigned char chipIdFlag
Bits 0,1 chipNum; Bit 3 hitBus wrap; 4-7 hitBusOff.
SummedTurfRateStruct_t – yes.
unsigned short deadTime
How much were we dead??
ChannelEncodingType_t
The encoding enumeration.
On board log request struct.
unsigned short goodFlag
0 is bad, 1 is good
unsigned int unixTime
Time of first hk.
unsigned char peakThetaBin
8-bit peak theta bin from Prioritizer
ADU5 Satellite Info – Telemetered.
unsigned int eventNumber
Global event number.
unsigned short phiTrigMask
16 bit phi-sector mask
Gpsd Start Block – Telemetered.
int gpsSubTime
GPS timestamp.
On board structure for calibration/relay status.
On board pedestal struct.
Summed Turf Rates – Telemetered.
Debugging use only scaler data.
PedSubbedSurfPacket_t – Yes.
Single Acromag data structure.
unsigned char priority
priority and other
GenericHeader_t gHdr
gHdr.numBytes includes EncodedEventWrapper_t
unsigned char chanId
chan+9*surf
Slow Rate Block – Telemetered.
EncodedPedSubbedSurfPacketHeader_t – Yes.
int fromAdu5
2 is ADU52, 1 is ADU51 , 0 is g12
unsigned char trigType
Trig type bit masks.
unsigned int eventNumber
Start eventNumber.
unsigned char chanId
Channel Id.
OtherMonitorStruct_t – Yes.
Pedestal subtracted event format.
Done is just a marker for below.
unsigned short deltaT
Difference in time between first and last.
ADU5 course and speed info – Telemetered.
The Acqd Startup Struct – Telemetered.
unsigned int c3poNum
1 number of trigger time ticks per PPS
G12 Satellite Info – Telemetered.
unsigned short trigNum
turf trigger counter
unsigned int unixTime
Time of first hk.
unsigned int numLines
0 results in a cat, otherwise a tail
Done is just a marker for below.
Pedestal Block – Telemetered.
unsigned short calibStatus
Were we flashing the pulser?
unsigned char errorFlag
Error Flag.
Hk Data Struct – Telemetered.
unsigned int deadTime
Summed dead time between first and last.
EncodedSurfPacketHeader_t – Yes.
float rms
Filled by pedestalLib.
RawWaveformPacket_t –Yes.
Monitor Block – Telemetered.
unsigned char l3Type1Count
L3 counter.
TurfioStruct_t turfio
The X byte TURFIO data.
On board Playback request.
unsigned char errorFlag
Bit 1-4 bufferdepth, Bits 5,6,7 are for upper,lower,nadir trig mask match.
unsigned int turfEventId
Turf event id that doesn't roll.
unsigned short errorFlag
Will define at some point.
unsigned short phiTrigMaskH
16-bit phi mask (from TURF)
unsigned short deadTime
fraction = deadTime/64400
Zipped File – Telemetered.
ADU5 Postion and Attitude – Telemetered.
float mean
Filled by Prioritizerd.
unsigned short l2TrigMaskH
16-bit phi ant mask (from TURF)
Zipped packet – Telemetered.
PacketCode_t
The Packet Code.
unsigned char refPulses
Ref pulses.
Average Surf Hk – Telemetered.
unsigned short ppsNum
It's only updated every second so no need for sub-second timing.
unsigned char eventRate1Min
Multiplied by 8.
unsigned int fromSipd
1 means it was a user command from SIPd, 0 is payload generated
EncodedEventWrapper_t – No.
EncodedEventWrapper_t – No.
Command Echo – Telemetered.
Wrapper for data that is written encoded.
unsigned short imagePeak
16-bit image peak from Prioritizer
unsigned short globalThreshold
set to zero if there isn't one
unsigned char lastHitbus
Last sample of the hitbus.
PriorityCode
The PriorityCode.
unsigned char bufferDepth
bits 0,1 trigTime depth 2,3 current depth
PedSubbedEventBody_t – No too big.
unsigned char l3Type1Count
L3 counter.
unsigned char surfSlipFlag
Sync Slip between SURF 2-9 and SURF 1.
G12 Position and speed info – Telemetered.
int eventDiskBitMask
Which disks was it written to?
Full Acromag data structure.
unsigned char errorFlag
Bit 1-4 bufferdepth, Bits 5,6,7 are for upper,lower,nadir trig mask match.
ADU5 Postion and Geoid – Telemetered.
unsigned int packetNumber
Especially for Ped.
The Old SLAC data TURF I/O struct.
unsigned char turfUpperWord
The upper 8 bits from the TURF.
unsigned char trigType
The trigger type.
unsigned short prioritizerStuff
TBD.
unsigned char firstHitbus
First sample of the hitbus.
Done is just a marker for below.
unsigned int hadError
Bit mask to be defined.
unsigned int unixTime
unix UTC sec
AveragedSurfHkStruct_t – yes.
unsigned int c3poNum
1 number of trigger time ticks per PPS
unsigned short numHks
Number of hks in average.
unsigned short numCmdBytes
number of cmd bytes (upto 10)
GpsAdu5VtgStruct_t – Yes.
unsigned char chanId
chan+9*surf
PedestalStruct_t – No (Too Big)
unsigned short l2TrigMask
As read from TURF (16-bit phi)
On board command structre.
unsigned int unixTime
Start time.
unsigned int unixTimeUs
unix UTC microsec
Full event format – never used.
GpuPhiSectorPowerSpectrum_t – Yes.
Run Start Block - Telemetered.
unsigned int nsamples
What was the mean occupancy.
unsigned short numRates
Number of rates in average.
Pedestal subtracted SURF wavefom packet – Telemetered.
Turf Rates – Telemetered.
A complete pedestal subtracted SURF channel.
unsigned char eventRate10Min
Multiplied by 8.
LogWatchd Start Block – Telemetered.
unsigned short coherentSumPeak
16-bit coherent sum peak from Prioritizer
unsigned int runNumber
Run number.
unsigned short phiTrigMask
16-bit phi mask (from TURF)
unsigned short phiTrigMask
16-bit phi-sector mask
PedSubbedWaveformPacket_t – Yes.
GpsAdu5SatStruct_t – Yes.
TurfRegisterContents_t – probably not.
FullLabChipPedStruct_t – Yes.
AnalogueCode_t
The Hk Analogue Code.
Raw SURF wavefom packet – Telemetered.
unsigned char chipIdFlag
chip id bitmask
unsigned short l2TrigMask
16-bit phi ant mask (from TURF)
unsigned short deltaT
Difference in time between first and last.
float mean
Filled by pedestalLib.
Debugging use only TURF raw event data.
unsigned short l2TrigMask
to get Hz
TurfRawEventData_t – probably not.