1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[derive(Copy, Clone)]
pub enum MeasurementStandbyTimeMillis {
    ZeroPointFive = 0b00000000,
    SixtyTwoPointFive = 0b00100000,
    OneTwentyFive = 0b01000000,
    TwoFifty = 0b01100000,
    FiveHundred = 0b10000000,
    OneThousand = 0b10100000,
    TwoThousand = 0b11000000,
    FourThousand = 0b11100000,
}

impl MeasurementStandbyTimeMillis {
    pub fn bits(&self) -> u8 {
        *self as u8
    }
}