Skip to main content

ph_qmi8658/
error.rs

1//! Error type for the QMI8658 driver.
2
3/// Error type for QMI8658 operations.
4#[derive(Clone, Copy, Debug, PartialEq, Eq)]
5#[cfg_attr(feature = "defmt", derive(defmt::Format))]
6pub enum Error {
7    /// Bus communication error (I2C, SPI, etc.).
8    Bus,
9    /// Sensor not responding or not present.
10    NotPresent,
11    /// Invalid chip ID or wrong device.
12    WrongDevice,
13    /// Data not ready.
14    NotReady,
15    /// Invalid data or configuration.
16    InvalidData,
17    /// Operation not supported.
18    Unsupported,
19}