#[repr(u8)]pub enum ErrorIdCodes {
WriteRegInvalid = 0,
ReadRegInvalid = 2,
MeasModeInvalid = 4,
MaxResistance = 8,
HeaterFault = 16,
HeaterSupply = 32,
}
Expand description
ErrorId Codes
Variants§
WriteRegInvalid = 0
WRITE_REG_INVALID
“The CCS811 received an I2C write request addressed to this station but with invalid register address ID”
ReadRegInvalid = 2
READ_REG_INVALID
“The CCS811 received an I2C read request to a mailbox ID that is invalid”
MeasModeInvalid = 4
MEASMODE_INVALID
“The CCS811 received an I2C request to write an unsupported mode to MEAS_MODE”
MaxResistance = 8
MAX_RESISTANCE
“The sensor resistance measurement has reached or exceeded the maximum range”
HeaterFault = 16
HEATER_FAULT
“The Heater current in the CCS811 is not in range”
HeaterSupply = 32
HEATER_SUPPLY
“The Heater voltage is not being applied correctly”
Trait Implementations§
Source§impl Clone for ErrorIdCodes
impl Clone for ErrorIdCodes
Source§fn clone(&self) -> ErrorIdCodes
fn clone(&self) -> ErrorIdCodes
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ErrorIdCodes
impl Debug for ErrorIdCodes
Source§impl PartialEq for ErrorIdCodes
impl PartialEq for ErrorIdCodes
impl Copy for ErrorIdCodes
impl StructuralPartialEq for ErrorIdCodes
Auto Trait Implementations§
impl Freeze for ErrorIdCodes
impl RefUnwindSafe for ErrorIdCodes
impl Send for ErrorIdCodes
impl Sync for ErrorIdCodes
impl Unpin for ErrorIdCodes
impl UnwindSafe for ErrorIdCodes
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