pub trait Lis3dhCore {
    type BusError;

    // Required methods
    async fn write_register(
        &mut self,
        register: Register,
        value: u8
    ) -> Result<(), Error<Self::BusError>>;
    async fn read_register(
        &mut self,
        register: Register
    ) -> Result<u8, Error<Self::BusError>>;
    async fn read_accel_bytes(
        &mut self
    ) -> Result<[u8; 6], Error<Self::BusError>>;
}

Required Associated Types§

Required Methods§

source

async fn write_register( &mut self, register: Register, value: u8 ) -> Result<(), Error<Self::BusError>>

source

async fn read_register( &mut self, register: Register ) -> Result<u8, Error<Self::BusError>>

source

async fn read_accel_bytes(&mut self) -> Result<[u8; 6], Error<Self::BusError>>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<CORE> Lis3dhCore for Lis3dh<CORE>
where CORE: Lis3dhCore,

§

type BusError = <CORE as Lis3dhCore>::BusError

source§

impl<I2C, E> Lis3dhCore for Lis3dhI2C<I2C>
where I2C: I2c<Error = E>,

§

type BusError = E

source§

impl<SPI, ESPI> Lis3dhCore for Lis3dhSPI<SPI>
where SPI: SpiDevice<Error = ESPI>,

§

type BusError = ESPI