Files
kaptan/libs/kaptan-drivers/src/icm42688/error.rs
T

16 lines
547 B
Rust

//! ICM-42688-P operation errors.
/// ICM-42688-P operation failure.
#[derive(Debug, Eq, PartialEq)]
pub enum Error<BusError> {
/// The selected SPI route rejected a transfer submission.
Start(BusError),
/// The responding device does not identify as an ICM-42688-P.
UnexpectedIdentity(u8),
/// An acquisition request arrived before initialization completed or while
/// another transfer still owned the selected route.
NotReady,
/// The selected SPI route reported a terminal transfer fault.
TransferFault,
}