[][src]Struct max31856::Max31856

pub struct Max31856<I, FP> { /* fields omitted */ }

Max31856 Precision Thermocouple to Digital Converter with Linearization

Implementations

impl<SPI, CS, FP> Max31856<SpiInterface<SPI, CS>, FP>[src]

pub fn new(spi: SPI, chip_select: CS, fault_pin: FP) -> Self[src]

Create a new instance of Max31856

impl<CommE, PinE, DI, FP> Max31856<DI, FP> where
    DI: SpiTransfer<Error = Error<CommE, PinE>>,
    FP: InputPin
[src]

pub fn send_config(&mut self) -> Result<(), DI::Error>[src]

Parse options and write to C0 and C1 registers.

pub fn config(&mut self) -> &mut Max31856Options[src]

Get a reference of stored configuration. This can be then used to modify certain values. send_config() can then be used to write it to the sensor.

pub fn cold_junction_temperature(&mut self) -> Result<f32, DI::Error>[src]

Get the measured value of cold-junction temperature plus the value in the Cold-Junction Offset register

pub fn temperature(&mut self) -> Result<f32, DI::Error>[src]

Get the linearized and cold-junction-compensated thermocouple temperature value.

pub fn fault_status(&self) -> Result<(), DI::Error>[src]

Check if any of the faults are triggered especially Check for over/under voltage or open circuit fault

Trait Implementations

impl<I: Debug, FP: Debug> Debug for Max31856<I, FP>[src]

impl<I: Default, FP: Default> Default for Max31856<I, FP>[src]

Auto Trait Implementations

impl<I, FP> RefUnwindSafe for Max31856<I, FP> where
    FP: RefUnwindSafe,
    I: RefUnwindSafe
[src]

impl<I, FP> Send for Max31856<I, FP> where
    FP: Send,
    I: Send
[src]

impl<I, FP> Sync for Max31856<I, FP> where
    FP: Sync,
    I: Sync
[src]

impl<I, FP> Unpin for Max31856<I, FP> where
    FP: Unpin,
    I: Unpin
[src]

impl<I, FP> UnwindSafe for Max31856<I, FP> where
    FP: UnwindSafe,
    I: UnwindSafe
[src]

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.