Trait esp_ward::peripherals::PressureSensor

source ·
pub trait PressureSensor {
    // Required method
    fn get_pressure(&mut self) -> Result<f32, PeripheralError>;
}
Expand description

Trait for peripherals that can sense atmospheric pressure.

Required Methods§

source

fn get_pressure(&mut self) -> Result<f32, PeripheralError>

Reads the atmospheric pressure in hPa (hectopascals).

Implementors§