Struct lsm303agr::interface::SpiInterface
source · pub struct SpiInterface<SPIXL, SPIMAG> { /* private fields */ }
Expand description
SPI interface
Trait Implementations§
source§impl<SPIXL, SPIMAG, CommE> ReadData for SpiInterface<SPIXL, SPIMAG>
impl<SPIXL, SPIMAG, CommE> ReadData for SpiInterface<SPIXL, SPIMAG>
source§fn read_accel_register<R: RegRead>(&mut self) -> Result<R::Output, Self::Error>
fn read_accel_register<R: RegRead>(&mut self) -> Result<R::Output, Self::Error>
Read an u8 accelerometer register
source§fn read_mag_register<R: RegRead>(&mut self) -> Result<R::Output, Self::Error>
fn read_mag_register<R: RegRead>(&mut self) -> Result<R::Output, Self::Error>
Read an u8 magnetometer register
source§fn read_accel_double_register<R: RegRead<u16>>(
&mut self
) -> Result<R::Output, Self::Error>
fn read_accel_double_register<R: RegRead<u16>>( &mut self ) -> Result<R::Output, Self::Error>
Read an u16 accelerometer register
source§impl<SPIXL, SPIMAG, CommE> WriteData for SpiInterface<SPIXL, SPIMAG>
impl<SPIXL, SPIMAG, CommE> WriteData for SpiInterface<SPIXL, SPIMAG>
Auto Trait Implementations§
impl<SPIXL, SPIMAG> RefUnwindSafe for SpiInterface<SPIXL, SPIMAG>where
SPIMAG: RefUnwindSafe,
SPIXL: RefUnwindSafe,
impl<SPIXL, SPIMAG> Send for SpiInterface<SPIXL, SPIMAG>
impl<SPIXL, SPIMAG> Sync for SpiInterface<SPIXL, SPIMAG>
impl<SPIXL, SPIMAG> Unpin for SpiInterface<SPIXL, SPIMAG>
impl<SPIXL, SPIMAG> UnwindSafe for SpiInterface<SPIXL, SPIMAG>where
SPIMAG: UnwindSafe,
SPIXL: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more