[−][src]Trait max31855::Max31855
Trait enabling using the MAX31855
Required methods
fn read_thermocouple_raw(
&mut self,
chip_select: &mut CS
) -> Result<i16, Error<SpiE, CsE>>
&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>>
&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>>
&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>>
&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
Implementors
impl<CS, SPI, SpiE, CsE> Max31855<SpiE, CsE, CS> for SPI where
CS: OutputPin<Error = CsE>,
SPI: Transfer<u8, Error = SpiE>,
[src]
CS: OutputPin<Error = CsE>,
SPI: Transfer<u8, Error = SpiE>,
fn read_thermocouple_raw(
&mut self,
chip_select: &mut CS
) -> Result<i16, Error<SpiE, CsE>>
[src]
&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>>
[src]
&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>>
[src]
&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>>
[src]
&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