Icm20948Transport

Trait Icm20948Transport 

Source
pub trait Icm20948Transport {
    type Error: Into<SetupError<Self::Error>>;

    // Required methods
    fn read_registers(
        &mut self,
        reg_addr: u8,
        read: &mut [u8],
    ) -> impl Future<Output = Result<(), Self::Error>>;
    fn write_registers(
        &mut self,
        reg_addr: u8,
        write: &[u8],
    ) -> impl Future<Output = Result<(), Self::Error>>;
}

Required Associated Types§

Required Methods§

Source

fn read_registers( &mut self, reg_addr: u8, read: &mut [u8], ) -> impl Future<Output = Result<(), Self::Error>>

Source

fn write_registers( &mut self, reg_addr: u8, write: &[u8], ) -> impl Future<Output = Result<(), Self::Error>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§