pub enum StateResponseError {
DataSizeError,
UnknownCommand,
ParameterError,
I2CNackError,
I2CMasterHoldError,
CRCError,
DataWriteError,
MeasureLoopNotRunning,
InvalidCalibration,
SensorBusy,
CommandNotAllowed,
FatalError,
}
Expand description
Errors sent back from a MISO frame.
Variants§
DataSizeError
Illegal data size of the MOSI frame. Either an invalid frame was sent or the firmware does not support the requested feature
UnknownCommand
The device does not know this command.
ParameterError
A sent parameter is out of range.
I2CNackError
NACK recived from the I2C device.
I2CMasterHoldError
Master hold not released in I2C.
CRCError
I2C CRC missmatch
DataWriteError
Sensor data read back differs from written value
MeasureLoopNotRunning
Sensor measure loop is not running or runs on wrong gas number.
InvalidCalibration
No valid gas calibration at given index
SensorBusy
The sensor is busy at the moment
CommandNotAllowed
Command is not allwed in the current state.
FatalError
An error without a specifc error code.
Trait Implementations§
Source§impl Debug for StateResponseError
impl Debug for StateResponseError
Source§impl Display for StateResponseError
impl Display for StateResponseError
Source§impl From<StateResponseError> for DeviceError
impl From<StateResponseError> for DeviceError
Source§fn from(value: StateResponseError) -> Self
fn from(value: StateResponseError) -> Self
Converts to this type from the input type.
Source§impl From<u8> for StateResponseError
impl From<u8> for StateResponseError
Source§impl PartialEq for StateResponseError
impl PartialEq for StateResponseError
impl StructuralPartialEq for StateResponseError
Auto Trait Implementations§
impl Freeze for StateResponseError
impl RefUnwindSafe for StateResponseError
impl Send for StateResponseError
impl Sync for StateResponseError
impl Unpin for StateResponseError
impl UnwindSafe for StateResponseError
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