dash7/file/
engineering_mode.rs

1use deku::prelude::*;
2
3use crate::physical::Channel;
4
5#[derive(DekuRead, DekuWrite, Debug, Clone, PartialEq)]
6#[deku(type = "u8")]
7pub enum EngineeringModeMethod {
8    #[deku(id = "0")]
9    Off,
10    #[deku(id = "1")]
11    ContTx,
12    #[deku(id = "2")]
13    TransientTx,
14    #[deku(id = "3")]
15    PerRx,
16    #[deku(id = "4")]
17    PerTx,
18}
19
20#[derive(DekuRead, DekuWrite, Debug, Clone, PartialEq)]
21pub struct EngineeringMode {
22    pub mode: EngineeringModeMethod,
23    pub flags: u8,
24    pub timeout: u8,
25    pub channel: Channel,
26    pub eirp: i8,
27}