[][src]Trait max31855::Max31855

pub trait Max31855<SpiE, CsE, CS> {
    fn read_thermocouple_raw(
        &mut self,
        chip_select: &mut CS
    ) -> Result<i16, Error<SpiE, CsE>>;
fn read_thermocouple(
        &mut self,
        chip_select: &mut CS,
        unit: Unit
    ) -> Result<f32, Error<SpiE, CsE>>;
fn read_all_raw(
        &mut self,
        chip_select: &mut CS
    ) -> Result<FullResultRaw, Error<SpiE, CsE>>;
fn read_all(
        &mut self,
        chip_select: &mut CS,
        unit: Unit
    ) -> Result<FullResult, Error<SpiE, CsE>>; }

Trait enabling using the MAX31855

Required methods

fn read_thermocouple_raw(
    &mut self,
    chip_select: &mut CS
) -> Result<i16, Error<SpiE, CsE>>

Reads the thermocouple temperature and leave it as a raw ADC count. Checks if there is a fault but doesn't detect what kind of fault it is

fn read_thermocouple(
    &mut self,
    chip_select: &mut CS,
    unit: Unit
) -> Result<f32, Error<SpiE, CsE>>

Reads the thermocouple temperature and converts it into degrees in the provided unit. Checks if there is a fault but doesn't detect what kind of fault it is

fn read_all_raw(
    &mut self,
    chip_select: &mut CS
) -> Result<FullResultRaw, Error<SpiE, CsE>>

Reads both the thermocouple and the internal temperatures, leaving them as raw ADC counts and resolves faults to one of vcc short, ground short or missing thermocouple

fn read_all(
    &mut self,
    chip_select: &mut CS,
    unit: Unit
) -> Result<FullResult, Error<SpiE, CsE>>

Reads both the thermocouple and the internal temperatures, converts them into degrees in the provided unit and resolves faults to one of vcc short, ground short or missing thermocouple

Loading content...

Implementors

impl<CS, SPI, SpiE, CsE> Max31855<SpiE, CsE, CS> for SPI where
    CS: OutputPin<Error = CsE>,
    SPI: Transfer<u8, Error = SpiE>, 
[src]

fn read_thermocouple_raw(
    &mut self,
    chip_select: &mut CS
) -> Result<i16, Error<SpiE, CsE>>
[src]

Reads the thermocouple temperature and leave it as a raw ADC count. Checks if there is a fault but doesn't detect what kind of fault it is

fn read_thermocouple(
    &mut self,
    chip_select: &mut CS,
    unit: Unit
) -> Result<f32, Error<SpiE, CsE>>
[src]

Reads the thermocouple temperature and converts it into degrees in the provided unit. Checks if there is a fault but doesn't detect what kind of fault it is

fn read_all_raw(
    &mut self,
    chip_select: &mut CS
) -> Result<FullResultRaw, Error<SpiE, CsE>>
[src]

Reads both the thermocouple and the internal temperatures, leaving them as raw ADC counts and resolves faults to one of vcc short, ground short or missing thermocouple

fn read_all(
    &mut self,
    chip_select: &mut CS,
    unit: Unit
) -> Result<FullResult, Error<SpiE, CsE>>
[src]

Reads both the thermocouple and the internal temperatures, converts them into degrees in the provided unit and resolves faults to one of vcc short, ground short or missing thermocouple

Loading content...