[][src]Trait lsm303agr::interface::WriteData

pub trait WriteData: Sealed {
    type Error;
    fn write_accel_register(
        &mut self,
        register: u8,
        data: u8
    ) -> Result<(), Self::Error>;
fn write_mag_register(
        &mut self,
        register: u8,
        data: u8
    ) -> Result<(), Self::Error>; }

Write data

Associated Types

type Error

Error type

Loading content...

Required methods

fn write_accel_register(
    &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>

Write to an u8 magnetometer register

Loading content...

Implementors

impl<I2C, E> WriteData for I2cInterface<I2C> where
    I2C: Write<Error = E>, 
[src]

type Error = Error<E, ()>

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]

type Error = Error<CommE, PinE>

Loading content...