M1M3 Support System
Loading...
Searching...
No Matches
SupportFPGAData.h
1/*
2 * This file is part of LSST M1M3 support system package.
3 *
4 * Developed for the Vera C. Rubin Telescope and Site System.
5 * This product includes software developed by the LSST Project
6 * (https://www.lsst.org).
7 * See the COPYRIGHT file at the top-level directory of this distribution
8 * for details of code ownership.
9 *
10 * This program is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see <https://www.gnu.org/licenses/>.
22 */
23
24#ifndef SUPPORTFPGADATA_H_
25#define SUPPORTFPGADATA_H_
26
27#include <cRIO/DataTypes.h>
28
29namespace LSST {
30namespace M1M3 {
31namespace SS {
32
37public:
38 uint64_t Reserved;
39 uint64_t InclinometerTxBytes;
40 uint64_t InclinometerRxBytes;
41 uint64_t InclinometerTxFrames;
42 uint64_t InclinometerRxFrames;
43 uint64_t InclinometerErrorTimestamp;
44 uint8_t InclinometerErrorCode;
45 uint64_t InclinometerSampleTimestamp;
46 int32_t InclinometerAngleRaw;
47 uint64_t DisplacementTxBytes;
48 uint64_t DisplacementRxBytes;
49 uint64_t DisplacementTxFrames;
50 uint64_t DisplacementRxFrames;
51 uint64_t DisplacementErrorTimestamp;
52 uint8_t DisplacementErrorCode;
53 uint64_t DisplacementSampleTimestamp;
54 int32_t DisplacementRaw1;
55 int32_t DisplacementRaw2;
56 int32_t DisplacementRaw3;
57 int32_t DisplacementRaw4;
58 int32_t DisplacementRaw5;
59 int32_t DisplacementRaw6;
60 int32_t DisplacementRaw7;
61 int32_t DisplacementRaw8;
62 uint64_t AccelerometerSampleCount;
63 uint64_t AccelerometerSampleTimestamp;
64 float AccelerometerRaw[8];
65 uint64_t GyroTxBytes;
66 uint64_t GyroRxBytes;
67 uint64_t GyroTxFrames;
68 uint64_t GyroRxFrames;
69 uint64_t GyroErrorTimestamp;
70 uint8_t GyroErrorCode;
71 uint64_t GyroSampleTimestamp;
72 float GyroRawX;
73 float GyroRawY;
74 float GyroRawZ;
75 uint8_t GyroStatus;
76 uint8_t GyroSequenceNumber;
77 int16_t GyroTemperature;
78 uint64_t GyroBITTimestamp;
79 uint8_t GyroBIT0;
80 uint8_t GyroBIT1;
81 uint8_t GyroBIT2;
82 uint8_t GyroBIT3;
83 uint8_t GyroBIT4;
84 uint8_t GyroBIT5;
85 uint8_t GyroBIT6;
86 uint8_t GyroBIT7;
87 uint64_t DigitalInputSampleCount;
88 uint64_t DigitalInputTimestamp;
89 uint16_t DigitalInputStates;
90 uint64_t DigitalOutputSampleCount;
91 uint64_t DigitalOutputTimestamp;
92 uint8_t DigitalOutputStates;
93 uint64_t PowerSupplySampleCount;
94 uint64_t PowerSupplyTimestamp;
95 uint8_t PowerSupplyStates;
96
103 void getPower(bool aux[4], bool network[4]);
104};
105
106} /* namespace SS */
107} /* namespace M1M3 */
108} /* namespace LSST */
109
110#endif /* SUPPORTFPGADATA_H_ */
FPGA support data.
Definition SupportFPGAData.h:36
void getPower(bool aux[4], bool network[4])
Returns power states.
Definition SupportFPGAData.cpp:30