mlx90393 0.1.2

MLX90393 magnetometer driver
Documentation
// use core::fmt::Formatter;

// use embedded_hal::i2c::{I2c, SevenBitAddress};
// use embedded_hal::i2c::{Error as I2cError, ErrorKind as I2cErrorKind};

/// All possible errors
/// Display not implemented for no_std support
#[derive(Clone, Copy, Debug)]
pub enum Error<E> {
    CommandError,  /// MLX90393 not happy with the command received
    NotReadyForCommand, /// MLX90393 not ready to received a command
    
    /// parameter out of range
    OutOfRange(u8),
    /// measurement timeout
    MeasurementTimeout,
    SomethingElse,
    /// An error in the  underlying I²C system
    I2c(E),
}