[][src]Trait bmp280_core::bus::Bus

pub trait Bus {
    type Error;
    fn write(&mut self, reg: Register, value: u8) -> Result<(), Self::Error>;
fn read(&mut self, reg: Register) -> Result<u8, Self::Error>;
fn reads(
        &mut self,
        reg: Register,
        output: &mut [u8]
    ) -> Result<(), Self::Error>; }

Associated Types

type Error

Loading content...

Required methods

fn write(&mut self, reg: Register, value: u8) -> Result<(), Self::Error>

fn read(&mut self, reg: Register) -> Result<u8, Self::Error>

fn reads(&mut self, reg: Register, output: &mut [u8]) -> Result<(), Self::Error>

Loading content...

Implementors

impl<'a, WE, TE, OE, SPI, CS, D> Bus for SpiBus<'a, SPI, CS, D> where
    SPI: Transfer<u8, Error = TE> + Write<u8, Error = WE>,
    CS: OutputPin<Error = OE>,
    D: DelayNs<u16>, 
[src]

type Error = SpiError<WE, TE, OE>

Loading content...