cc1101/lowlevel/types/
mod_format.rs

1/// Modulation format configuration.
2#[allow(non_camel_case_types)]
3#[derive(Copy, Clone, Debug, Eq, PartialEq)]
4pub enum ModFormat {
5    /// 2-FSK.
6    MOD_2FSK = 0x00,
7    /// GFSK.
8    MOD_GFSK = 0x01,
9    /// ASK / OOK.
10    MOD_ASK_OOK = 0x03,
11    /// 4-FSK.
12    MOD_4FSK = 0x04,
13    /// MSK.
14    MOD_MSK = 0x07,
15}
16
17impl ModFormat {
18    pub fn value(self) -> u8 {
19        self as u8
20    }
21}