pub struct BMP280<I2C: WriteRead> { /* private fields */ }Expand description
BMP280 driver
Implementations§
Source§impl<I2C: WriteRead> BMP280<I2C>
impl<I2C: WriteRead> BMP280<I2C>
Source§impl<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> Freeze for BMP280<I2C>where
I2C: Freeze,
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more