BMP280

Struct BMP280 

Source
pub struct BMP280<BUS> { /* private fields */ }

Implementations§

Source§

impl<E, BUS: Bus<Error = E>> BMP280<BUS>

Source

pub fn new(bus: BUS) -> Self

Source

pub fn free(self) -> BUS

Source

pub fn verify(&mut self) -> Result<bool, E>

Source

pub fn set_register( &mut self, reg: Register, offset: u8, len: u8, bits: u8, ) -> Result<(), E>

Source

pub fn reset<D: DelayMs<u8>>(&mut self, delay: &mut D) -> Result<(), E>

Source

pub fn set_mode(&mut self, mode: Mode) -> Result<(), E>

Source

pub fn set_pressure_oversampling( &mut self, value: PressureOversampling, ) -> Result<(), E>

Source

pub fn set_temperature_oversampling( &mut self, v: TemperatureOversampling, ) -> Result<(), E>

Source

pub fn set_standby_time(&mut self, standby_time: StandbyTime) -> Result<(), E>

Source

pub fn set_iir_filter(&mut self, filter_coefficient: u8) -> Result<(), E>

Source

pub fn read_calibration(&mut self) -> Result<Calibration, E>

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.