pub struct BMP280<BUS> { /* private fields */ }Implementations§
Source§impl<E, BUS: Bus<Error = E>> BMP280<BUS>
impl<E, BUS: Bus<Error = E>> BMP280<BUS>
pub fn new(bus: BUS) -> Self
pub fn free(self) -> BUS
pub fn verify(&mut self) -> Result<bool, E>
pub fn set_register( &mut self, reg: Register, offset: u8, len: u8, bits: u8, ) -> Result<(), E>
pub fn reset<D: DelayMs<u8>>(&mut self, delay: &mut D) -> Result<(), E>
pub fn set_mode(&mut self, mode: Mode) -> Result<(), E>
pub fn set_pressure_oversampling( &mut self, value: PressureOversampling, ) -> Result<(), E>
pub fn set_temperature_oversampling( &mut self, v: TemperatureOversampling, ) -> Result<(), E>
pub fn set_standby_time(&mut self, standby_time: StandbyTime) -> Result<(), E>
pub fn set_iir_filter(&mut self, filter_coefficient: u8) -> Result<(), E>
pub fn read_calibration(&mut self) -> Result<Calibration, E>
pub fn read_measurements(&mut self) -> Result<(RawPressure, RawTemperature), E>
Auto Trait Implementations§
impl<BUS> Freeze for BMP280<BUS>where
BUS: Freeze,
impl<BUS> RefUnwindSafe for BMP280<BUS>where
BUS: RefUnwindSafe,
impl<BUS> Send for BMP280<BUS>where
BUS: Send,
impl<BUS> Sync for BMP280<BUS>where
BUS: Sync,
impl<BUS> Unpin for BMP280<BUS>where
BUS: Unpin,
impl<BUS> UnwindSafe for BMP280<BUS>where
BUS: 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