Skip to main content

nexrad_decode/messages/rda_status_data/
definitions.rs

1/// Acknowledgement of command receipt by RDA system.
2#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)]
3pub enum CommandAcknowledgement {
4    RemoteVCPReceived,
5    ClutterBypassMapReceived,
6    ClutterCensorZonesReceived,
7    RedundantChannelControlCommandAccepted,
8}
9
10/// The possible RDA system clutter mitigation decision statuses.
11#[derive(Debug, PartialEq, Eq, Clone, Hash)]
12pub enum ClutterMitigationDecisionStatus {
13    Disabled,
14    Enabled,
15    /// Which elevation segments of the bypass map are applied.
16    BypassMapElevationSegments(Vec<u8>),
17}
18
19/// The possible RDA system auxiliary power generator states.
20#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)]
21pub enum AuxiliaryPowerGeneratorState {
22    SwitchedToAuxiliaryPower,
23    UtilityPowerAvailable,
24    GeneratorOn,
25    TransferSwitchSetToManual,
26    CommandedSwitchover,
27}
28
29/// The possible RDA system control authorizations.
30#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)]
31pub enum ControlAuthorization {
32    NoAction,
33    LocalControlRequested,
34    RemoteControlRequested,
35}
36
37/// The possible RDA system control statuses.
38#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)]
39pub enum ControlStatus {
40    LocalControlOnly,
41    RemoteControlOnly,
42    EitherLocalOrRemoteControl,
43}
44
45/// The possible RDA system operability statuses.
46#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)]
47pub enum OperabilityStatus {
48    OnLine,
49    MaintenanceActionRequired,
50    MaintenanceActionMandatory,
51    CommandedShutDown,
52    Inoperable,
53}
54
55/// The possible RDA system operational modes.
56#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)]
57pub enum OperationalMode {
58    Operational,
59    Maintenance,
60}
61
62/// The RDA system's performance check status.
63#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)]
64pub enum PerformanceCheckStatus {
65    NoCommandPending,
66    ForcePerformanceCheckPending,
67    InProgress,
68}
69
70/// The RDA system's RMS control status.
71#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)]
72pub enum RMSControlStatus {
73    NonRMS,
74    RMSInControl,
75    RDAInControl,
76}
77
78/// Indicates whether this is the RDA system's controlling channel.
79#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)]
80pub enum SpotBlankingStatus {
81    NotInstalled,
82    Enabled,
83    Disabled,
84}
85
86/// The possible RDA system statuses.
87#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)]
88pub enum RDAStatus {
89    StartUp,
90    Standby,
91    Restart,
92    Operate,
93    Spare,
94}
95
96/// Whether the RDA system has super resolution enabled.
97#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)]
98pub enum SuperResolutionStatus {
99    Enabled,
100    Disabled,
101}
102
103/// The possible RDA system transition power source statuses.
104#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)]
105pub enum TransitionPowerSourceStatus {
106    NotInstalled,
107    Off,
108    OK,
109    Unknown,
110}