[][src]Struct microchip_tc72r_rs::Tc72

pub struct Tc72<SPI, CS> { /* fields omitted */ }

Implementations

impl<SPI, CS, SpiError, PinError> Tc72<SPI, CS> where
    SPI: Transfer<u8, Error = SpiError> + Write<u8, Error = SpiError>,
    CS: OutputPin<Error = PinError>, 
[src]

pub fn new(spi: SPI, cs: CS) -> Result<Self, Tc72Error<SpiError, PinError>>[src]

Takes a config object to initialize the tc72 driver

pub fn manufacturer_id(&mut self) -> Result<u8, Tc72Error<SpiError, PinError>>[src]

pub fn control(
    &mut self,
    shutdown: bool,
    one_shot: bool
) -> Result<(), Tc72Error<SpiError, PinError>>
[src]

pub fn temp_raw(&mut self) -> Result<u16, Tc72Error<SpiError, PinError>>[src]

pub fn temp(&mut self) -> Result<f32, Tc72Error<SpiError, PinError>>[src]

pub fn one_shot_with_150ms_delay(
    &mut self,
    delay: &mut dyn DelayMs<u8>
) -> Result<f32, Tc72Error<SpiError, PinError>>
[src]

Auto Trait Implementations

impl<SPI, CS> Send for Tc72<SPI, CS> where
    CS: Send,
    SPI: Send

impl<SPI, CS> Sync for Tc72<SPI, CS> where
    CS: Sync,
    SPI: Sync

impl<SPI, CS> Unpin for Tc72<SPI, CS> where
    CS: Unpin,
    SPI: Unpin

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.