[−][src]Struct microchip_tc72r_rs::Tc72
Implementations
impl<SPI, CS, SpiError, PinError> Tc72<SPI, CS> where
SPI: Transfer<u8, Error = SpiError> + Write<u8, Error = SpiError>,
CS: OutputPin<Error = PinError>,
[src]
SPI: Transfer<u8, Error = SpiError> + Write<u8, Error = SpiError>,
CS: OutputPin<Error = PinError>,
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]
&mut self,
shutdown: bool,
one_shot: bool
) -> Result<(), Tc72Error<SpiError, PinError>>
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]
&mut self,
delay: &mut dyn DelayMs<u8>
) -> Result<f32, Tc72Error<SpiError, PinError>>
Auto Trait Implementations
impl<SPI, CS> Send for Tc72<SPI, CS> where
CS: Send,
SPI: Send,
CS: Send,
SPI: Send,
impl<SPI, CS> Sync for Tc72<SPI, CS> where
CS: Sync,
SPI: Sync,
CS: Sync,
SPI: Sync,
impl<SPI, CS> Unpin for Tc72<SPI, CS> where
CS: Unpin,
SPI: Unpin,
CS: Unpin,
SPI: Unpin,
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>,