//! MPU6000 operation errors. use kaptan_log::KaptanError; /// MPU6000 operation failure. #[derive(Debug, Eq, PartialEq, KaptanError)] pub enum Error { /// The selected SPI route rejected a transfer submission. Start(BusError), /// The responding device does not identify as an MPU6000. 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, }