[−][src]Struct ms5611_spi::Ms5611
MS5611 driver
Methods
impl<SPI, NCS, E> Ms5611<SPI, NCS> where
SPI: Transfer<u8, Error = E> + Write<u8, Error = E>,
NCS: OutputPin,
[src]
SPI: Transfer<u8, Error = E> + Write<u8, Error = E>,
NCS: OutputPin,
pub fn new(
spi: SPI,
ncs: NCS,
delay: &mut impl DelayMs<u8>
) -> Result<Ms5611<SPI, NCS>, E>
[src]
spi: SPI,
ncs: NCS,
delay: &mut impl DelayMs<u8>
) -> Result<Ms5611<SPI, NCS>, E>
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]
&mut self,
osr: Oversampling,
delay_source: &mut impl DelayMs<u8>
) -> Result<Sample, E>
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]
&mut self,
osr: Oversampling,
delay_source: &mut impl DelayMs<u8>
) -> Result<Sample, E>
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,
NCS: RefUnwindSafe,
SPI: RefUnwindSafe,
impl<SPI, NCS> Send for Ms5611<SPI, NCS> where
NCS: Send,
SPI: Send,
NCS: Send,
SPI: Send,
impl<SPI, NCS> Sync for Ms5611<SPI, NCS> where
NCS: Sync,
SPI: Sync,
NCS: Sync,
SPI: Sync,
impl<SPI, NCS> Unpin for Ms5611<SPI, NCS> where
NCS: Unpin,
SPI: Unpin,
NCS: Unpin,
SPI: Unpin,
impl<SPI, NCS> UnwindSafe for Ms5611<SPI, NCS> where
NCS: UnwindSafe,
SPI: UnwindSafe,
NCS: UnwindSafe,
SPI: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,