Trait avr_oxide::devices::serialbus::SerialBusClient

source ·
pub trait SerialBusClient {
    // Required methods
    fn get_bus_addr(&self) -> TwiAddr;
    fn clone_with_bus_addr(&self, addr: TwiAddr) -> Self;
    fn write_from(&mut self, buffer: &[u8]) -> OxideResult<(), TwiError>;
    fn write_from_multiple(
        &mut self,
        buffers: &[&[u8]]
    ) -> OxideResult<(), TwiError>;
    fn read_into(&mut self, buffer: &mut [u8]) -> OxideResult<usize, TwiError>;
    fn write_then_read(
        &mut self,
        command: &[u8],
        result: &mut [u8]
    ) -> OxideResult<usize, TwiError>;
    fn write_multiple_then_read(
        &mut self,
        commands: &[&[u8]],
        result: &mut [u8]
    ) -> OxideResult<usize, TwiError>;
}

Required Methods§

source

fn get_bus_addr(&self) -> TwiAddr

source

fn clone_with_bus_addr(&self, addr: TwiAddr) -> Self

source

fn write_from(&mut self, buffer: &[u8]) -> OxideResult<(), TwiError>

source

fn write_from_multiple( &mut self, buffers: &[&[u8]] ) -> OxideResult<(), TwiError>

source

fn read_into(&mut self, buffer: &mut [u8]) -> OxideResult<usize, TwiError>

source

fn write_then_read( &mut self, command: &[u8], result: &mut [u8] ) -> OxideResult<usize, TwiError>

source

fn write_multiple_then_read( &mut self, commands: &[&[u8]], result: &mut [u8] ) -> OxideResult<usize, TwiError>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'sbc, S> SerialBusClient for SerialBusClientImpl<'sbc, S>
where S: EventSink,