pub struct Co2Correction(/* private fields */);Expand description
CO2 correction value determined after forced CO2 recalibration (FRC).
Is set to 0xFFFF if recalibration has failed.
Implementations§
Trait Implementations§
Source§impl From<Co2Correction> for u16
impl From<Co2Correction> for u16
Source§fn from(value: Co2Correction) -> Self
fn from(value: Co2Correction) -> Self
Converts to this type from the input type.
Source§impl TryFrom<&[u8]> for Co2Correction
impl TryFrom<&[u8]> for Co2Correction
Source§fn try_from(data: &[u8]) -> Result<Self, Self::Error>
fn try_from(data: &[u8]) -> Result<Self, Self::Error>
Computes the correction value from the received data. Does not perform the computation if
0xFFFF has been received, indicating a failed FRC.
§Errors
CrcFailed: If the received data CRC indicates corruption.ReceivedBufferWrongSize: If the received data buffer is not the expected size.
Auto Trait Implementations§
impl Freeze for Co2Correction
impl RefUnwindSafe for Co2Correction
impl Send for Co2Correction
impl Sync for Co2Correction
impl Unpin for Co2Correction
impl UnwindSafe for Co2Correction
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