22 lines
724 B
Rust
22 lines
724 B
Rust
//! ICM-42688-P operation errors.
|
|
|
|
use kaptan_err_propagate::KaptanError;
|
|
|
|
/// ICM-42688-P operation failure.
|
|
#[derive(Debug, Eq, PartialEq, KaptanError)]
|
|
pub enum Error<BusError> {
|
|
/// The selected SPI route rejected a transfer submission.
|
|
#[kaptan_error(id = 5101)]
|
|
Start(BusError),
|
|
/// The responding device does not identify as an ICM-42688-P.
|
|
#[kaptan_error(id = 5102)]
|
|
UnexpectedIdentity(u8),
|
|
/// An acquisition request arrived before initialization completed or while
|
|
/// another transfer still owned the selected route.
|
|
#[kaptan_error(id = 5103)]
|
|
NotReady,
|
|
/// The selected SPI route reported a terminal transfer fault.
|
|
#[kaptan_error(id = 5104)]
|
|
TransferFault,
|
|
}
|