Skip to main content

bacnet_types/enums/
scheduling.rs

1// ===========================================================================
2// Timer enums (Clause 12.31)
3// ===========================================================================
4
5bacnet_enum! {
6    /// BACnet timer state (Clause 12.31, new in 135-2020).
7    pub struct TimerState(u32);
8
9    const IDLE = 0;
10    const RUNNING = 1;
11    const EXPIRED = 2;
12}
13
14bacnet_enum! {
15    /// BACnet timer state transition (Clause 12.31, new in 135-2020).
16    pub struct TimerTransition(u32);
17
18    const NONE = 0;
19    const IDLE_TO_RUNNING = 1;
20    const RUNNING_TO_IDLE = 2;
21    const RUNNING_TO_RUNNING = 3;
22    const RUNNING_TO_EXPIRED = 4;
23    const FORCED_TO_EXPIRED = 5;
24    const EXPIRED_TO_IDLE = 6;
25    const EXPIRED_TO_RUNNING = 7;
26}