Struct lis3dh_async::Lis3dhSPI
source · pub struct Lis3dhSPI<SPI> { /* private fields */ }
Expand description
Marker to indicate SPI is used to communicate with the Lis3dh
Trait Implementations§
source§impl<SPI, ESPI> Lis3dhCore for Lis3dhSPI<SPI>where
SPI: SpiDevice<Error = ESPI>,
SPI::Bus: SpiBus + SpiBusWrite,
impl<SPI, ESPI> Lis3dhCore for Lis3dhSPI<SPI>where
SPI: SpiDevice<Error = ESPI>,
SPI::Bus: SpiBus + SpiBusWrite,
source§fn write_register(
&mut self,
register: Register,
value: u8
) -> Self::WriteRegisterFuture<'_>
fn write_register(
&mut self,
register: Register,
value: u8
) -> Self::WriteRegisterFuture<'_>
Write a byte to the given register.
source§fn read_register(&mut self, register: Register) -> Self::ReadRegisterFuture<'_>
fn read_register(&mut self, register: Register) -> Self::ReadRegisterFuture<'_>
Read a byte from the given register.
source§fn read_accel_bytes(&mut self) -> Self::ReadAccelBytesFuture<'_>
fn read_accel_bytes(&mut self) -> Self::ReadAccelBytesFuture<'_>
Read from the registers for each of the 3 axes.