[−][src]Trait lsm303agr::interface::WriteData
Write data
Associated Types
type Error
Error type
Required methods
fn write_accel_register(
&mut self,
register: u8,
data: u8
) -> Result<(), Self::Error>
&mut self,
register: u8,
data: u8
) -> Result<(), Self::Error>
Write to an u8 accelerometer register
fn write_mag_register(
&mut self,
register: u8,
data: u8
) -> Result<(), Self::Error>
&mut self,
register: u8,
data: u8
) -> Result<(), Self::Error>
Write to an u8 magnetometer register
Implementors
impl<I2C, E> WriteData for I2cInterface<I2C> where
I2C: Write<Error = E>,
[src]
I2C: Write<Error = E>,
type Error = Error<E, ()>
fn write_accel_register(
&mut self,
register: u8,
data: u8
) -> Result<(), Self::Error>
[src]
&mut self,
register: u8,
data: u8
) -> Result<(), Self::Error>
fn write_mag_register(
&mut self,
register: u8,
data: u8
) -> Result<(), Self::Error>
[src]
&mut self,
register: u8,
data: u8
) -> Result<(), Self::Error>
impl<SPI, CSXL, CSMAG, CommE, PinE> WriteData for SpiInterface<SPI, CSXL, CSMAG> where
SPI: Write<u8, Error = CommE>,
CSXL: OutputPin<Error = PinE>,
CSMAG: OutputPin<Error = PinE>,
[src]
SPI: Write<u8, Error = CommE>,
CSXL: OutputPin<Error = PinE>,
CSMAG: OutputPin<Error = PinE>,