Struct bmp280_ehal::BMP280
source · pub struct BMP280<I2C: WriteRead> { /* private fields */ }
Expand description
BMP280 driver
Implementations
sourceimpl<I2C: WriteRead> BMP280<I2C>
impl<I2C: WriteRead> BMP280<I2C>
sourcepub fn pressure_one_shot(&mut self) -> f64
pub fn pressure_one_shot(&mut self) -> f64
Reads and returns pressure and resets con
sourcepub fn set_config(&mut self, new: Config)
pub fn set_config(&mut self, new: Config)
Sets configuration
sourcepub fn set_control(&mut self, new: Control)
pub fn set_control(&mut self, new: Control)
Sets control
Auto Trait Implementations
impl<I2C> RefUnwindSafe for BMP280<I2C>where
I2C: RefUnwindSafe,
impl<I2C> Send for BMP280<I2C>where
I2C: Send,
impl<I2C> Sync for BMP280<I2C>where
I2C: Sync,
impl<I2C> Unpin for BMP280<I2C>where
I2C: Unpin,
impl<I2C> UnwindSafe for BMP280<I2C>where
I2C: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more