M1M3 Support System
Loading...
Searching...
No Matches
StateTypes.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 STATETYPES_H_
25#define STATETYPES_H_
26
27#include <cRIO/DataTypes.h>
28#include <sal_MTM1M3.h> // Provides access to enumerations
29
30struct States {
31 enum Type {
32 // StateName SState DState
33 OfflineState = (((uint64_t)MTM1M3::MTM1M3_shared_SummaryStates_OfflineState) << 32) |
34 ((uint64_t)MTM1M3::MTM1M3_shared_DetailedStates_OfflineState),
35 StandbyState = (((uint64_t)MTM1M3::MTM1M3_shared_SummaryStates_StandbyState) << 32) |
36 ((uint64_t)MTM1M3::MTM1M3_shared_DetailedStates_StandbyState),
37 DisabledState = (((uint64_t)MTM1M3::MTM1M3_shared_SummaryStates_DisabledState) << 32) |
38 ((uint64_t)MTM1M3::MTM1M3_shared_DetailedStates_DisabledState),
39 FaultState = (((uint64_t)MTM1M3::MTM1M3_shared_SummaryStates_FaultState) << 32) |
40 ((uint64_t)MTM1M3::MTM1M3_shared_DetailedStates_FaultState),
41 ParkedState = (((uint64_t)MTM1M3::MTM1M3_shared_SummaryStates_EnabledState) << 32) |
42 ((uint64_t)MTM1M3::MTM1M3_shared_DetailedStates_ParkedState),
43 RaisingState = (((uint64_t)MTM1M3::MTM1M3_shared_SummaryStates_EnabledState) << 32) |
44 ((uint64_t)MTM1M3::MTM1M3_shared_DetailedStates_RaisingState),
45 ActiveState = (((uint64_t)MTM1M3::MTM1M3_shared_SummaryStates_EnabledState) << 32) |
46 ((uint64_t)MTM1M3::MTM1M3_shared_DetailedStates_ActiveState),
47 LoweringState = (((uint64_t)MTM1M3::MTM1M3_shared_SummaryStates_EnabledState) << 32) |
48 ((uint64_t)MTM1M3::MTM1M3_shared_DetailedStates_LoweringState),
49 ParkedEngineeringState = (((uint64_t)MTM1M3::MTM1M3_shared_SummaryStates_EnabledState) << 32) |
50 ((uint64_t)MTM1M3::MTM1M3_shared_DetailedStates_ParkedEngineeringState),
51 RaisingEngineeringState = (((uint64_t)MTM1M3::MTM1M3_shared_SummaryStates_EnabledState) << 32) |
52 ((uint64_t)MTM1M3::MTM1M3_shared_DetailedStates_RaisingEngineeringState),
53 ActiveEngineeringState = (((uint64_t)MTM1M3::MTM1M3_shared_SummaryStates_EnabledState) << 32) |
54 ((uint64_t)MTM1M3::MTM1M3_shared_DetailedStates_ActiveEngineeringState),
55 LoweringEngineeringState = (((uint64_t)MTM1M3::MTM1M3_shared_SummaryStates_EnabledState) << 32) |
56 ((uint64_t)MTM1M3::MTM1M3_shared_DetailedStates_LoweringEngineeringState),
57 LoweringFaultState = (((uint64_t)MTM1M3::MTM1M3_shared_SummaryStates_FaultState) << 32) |
58 ((uint64_t)MTM1M3::MTM1M3_shared_DetailedStates_LoweringFaultState),
59 ProfileHardpointCorrectionState =
60 (((uint64_t)MTM1M3::MTM1M3_shared_SummaryStates_EnabledState) << 32) |
61 ((uint64_t)MTM1M3::MTM1M3_shared_DetailedStates_ProfileHardpointCorrectionState),
62 PausedRaisingState = (((uint64_t)MTM1M3::MTM1M3_shared_SummaryStates_EnabledState) << 32) |
63 ((uint64_t)MTM1M3::MTM1M3_shared_DetailedStates_PausedRaisingState),
64 PausedRaisingEngineeringState =
65 (((uint64_t)MTM1M3::MTM1M3_shared_SummaryStates_EnabledState) << 32) |
66 ((uint64_t)MTM1M3::MTM1M3_shared_DetailedStates_PausedRaisingEngineeringState),
67 PausedLoweringState = (((uint64_t)MTM1M3::MTM1M3_shared_SummaryStates_EnabledState) << 32) |
68 ((uint64_t)MTM1M3::MTM1M3_shared_DetailedStates_PausedLoweringState),
69 PausedLoweringEngineeringState =
70 (((uint64_t)MTM1M3::MTM1M3_shared_SummaryStates_EnabledState) << 32) |
71 ((uint64_t)MTM1M3::MTM1M3_shared_DetailedStates_PausedLoweringEngineeringState),
72 NoStateTransition = 0xFFFFFFFFFFFFFFFF
73 };
74};
75
76#endif /* STATETYPES_H_ */
Definition StateTypes.h:30