Struct embedded_drivers::bmp180::BMP180
source · pub struct BMP180<I> { /* private fields */ }
Expand description
BMP180, or BMP085.
Implementations§
source§impl<I: Write + WriteRead + Read> BMP180<I>
impl<I: Write + WriteRead + Read> BMP180<I>
sourcepub fn get_temperature<D: DelayMs<u8>>(&mut self, delay: &mut D) -> f32
pub fn get_temperature<D: DelayMs<u8>>(&mut self, delay: &mut D) -> f32
Calculate true temperature, resolution is 0.1C
sourcepub fn get_pressure<D: DelayMs<u8>>(&mut self, delay: &mut D) -> i32
pub fn get_pressure<D: DelayMs<u8>>(&mut self, delay: &mut D) -> i32
Calculate true pressure, in Pa
sourcepub fn calculate_altitude<D: DelayMs<u8>>(
&mut self,
delay: &mut D,
sealevel_pa: f32
) -> f32
pub fn calculate_altitude<D: DelayMs<u8>>(
&mut self,
delay: &mut D,
sealevel_pa: f32
) -> f32
Calculate absolute altitude
sourcepub fn calculate_sealevel_pressure<D: DelayMs<u8>>(
&mut self,
delay: &mut D,
altitude_m: f32
) -> u32
pub fn calculate_sealevel_pressure<D: DelayMs<u8>>(
&mut self,
delay: &mut D,
altitude_m: f32
) -> u32
Calculate pressure at sea level