bmp280_rs/config/
pressure_oversampling.rs1#[derive(Copy, Clone)]
2pub enum PressureOversampling {
3 MeasurementSkipped = 0b00000,
4 One = 0b00100,
5 Two = 0b01000,
6 Four = 0b01100,
7 Eight = 0b10000,
8 Sixteen = 0b11100,
9}
10
11impl PressureOversampling {
12 pub fn bits(&self) -> u8 {
13 *self as u8
14 }
15}