Trait kernel::hil::bus8080::Bus8080

source ·
pub trait Bus8080<'a> {
    // Required methods
    fn set_addr(&self, addr: BusAddr8080) -> Result<(), ErrorCode>;
    fn write(
        &self,
        data_width: BusWidth,
        buffer: &'a mut [u8],
        len: usize,
    ) -> Result<(), (ErrorCode, &'static mut [u8])>;
    fn read(
        &self,
        data_width: BusWidth,
        buffer: &'a mut [u8],
        len: usize,
    ) -> Result<(), (ErrorCode, &'static mut [u8])>;
    fn set_client(&self, client: &'a dyn Client);
}

Required Methods§

source

fn set_addr(&self, addr: BusAddr8080) -> Result<(), ErrorCode>

Set the address to write to

source

fn write( &self, data_width: BusWidth, buffer: &'a mut [u8], len: usize, ) -> Result<(), (ErrorCode, &'static mut [u8])>

Write data items to the previously set address

source

fn read( &self, data_width: BusWidth, buffer: &'a mut [u8], len: usize, ) -> Result<(), (ErrorCode, &'static mut [u8])>

Read data items from the previously set address

source

fn set_client(&self, client: &'a dyn Client)

Implementors§