pub enum Error<T> {
ValidateFrameError(ValidateFrameError),
NotAResponse,
OpCodeMismatch {
expected: u8,
got: u8,
},
UartError(T),
NotSupportedByFirmware([u8; 4]),
}
Variants§
ValidateFrameError(ValidateFrameError)
The frame of a command or return value was invalid.
NotAResponse
The received data is not response.
OpCodeMismatch
Received a response for a different op code than expected.
UartError(T)
Communication error caused by the UART/serial interface.
NotSupportedByFirmware([u8; 4])
Cannot upgrade to requested firmware version. Firmware version reported by the sensor will be included.