[][src]Struct ms5611_spi::Ms5611

pub struct Ms5611<SPI, NCS> { /* fields omitted */ }

MS5611 driver

Methods

impl<SPI, NCS, E> Ms5611<SPI, NCS> where
    SPI: Transfer<u8, Error = E> + Write<u8, Error = E>,
    NCS: OutputPin
[src]

pub fn new(
    spi: SPI,
    ncs: NCS,
    delay: &mut impl DelayMs<u8>
) -> Result<Ms5611<SPI, NCS>, E>
[src]

Creates a new MS5611 driver from a SPI peripheral and a NCS pin

pub fn get_compensated_sample(
    &mut self,
    osr: Oversampling,
    delay_source: &mut impl DelayMs<u8>
) -> Result<Sample, E>
[src]

Reads and returns Pressure and Thermometer measurement

pub fn get_second_order_sample(
    &mut self,
    osr: Oversampling,
    delay_source: &mut impl DelayMs<u8>
) -> Result<Sample, E>
[src]

Reads and returns a second order compensated Pressure and Thermometer measurement as defined in datasheet.

Auto Trait Implementations

impl<SPI, NCS> RefUnwindSafe for Ms5611<SPI, NCS> where
    NCS: RefUnwindSafe,
    SPI: RefUnwindSafe

impl<SPI, NCS> Send for Ms5611<SPI, NCS> where
    NCS: Send,
    SPI: Send

impl<SPI, NCS> Sync for Ms5611<SPI, NCS> where
    NCS: Sync,
    SPI: Sync

impl<SPI, NCS> Unpin for Ms5611<SPI, NCS> where
    NCS: Unpin,
    SPI: Unpin

impl<SPI, NCS> UnwindSafe for Ms5611<SPI, NCS> where
    NCS: UnwindSafe,
    SPI: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.