pub struct Max31855Data(/* private fields */);
Implementations§
Source§impl Max31855Data
impl Max31855Data
Sourcepub fn thermo_data(&self) -> i16
pub fn thermo_data(&self) -> i16
These bits contain the signed 14-bit thermocouple temperature.
Sourcepub fn thermo_temperature(&self) -> f32
pub fn thermo_temperature(&self) -> f32
Temperature read by the thermocouple in celsius.
Sourcepub fn fault(&self) -> bool
pub fn fault(&self) -> bool
This bit reads 1 if SCV, SCG, or OC faults are active. Default value is 0.
Sourcepub fn temperature_data(&self) -> i16
pub fn temperature_data(&self) -> i16
These bits contain the signed 12-bit value of the reference junction temperature.
Sourcepub fn ambient_temperature(&self) -> f32
pub fn ambient_temperature(&self) -> f32
Temperature of the chip in celsius.
Sourcepub fn scv_bit(&self) -> bool
pub fn scv_bit(&self) -> bool
This bit is 1 when the thermocouple is short circuited to VCC. Default value is 0.
Auto Trait Implementations§
impl Freeze for Max31855Data
impl RefUnwindSafe for Max31855Data
impl Send for Max31855Data
impl Sync for Max31855Data
impl Unpin for Max31855Data
impl UnwindSafe for Max31855Data
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more