[][src]Trait kernel::hil::bus8080::Bus8080

pub trait Bus8080<'a> {
    fn set_addr(&self, addr_width: BusWidth, addr: usize) -> ReturnCode;
fn write(
        &self,
        data_width: BusWidth,
        buffer: &'a mut [u8],
        len: usize
    ) -> ReturnCode;
fn read(
        &self,
        data_width: BusWidth,
        buffer: &'a mut [u8],
        len: usize
    ) -> ReturnCode;
fn set_client(&self, client: &'a dyn Client); }

Required methods

fn set_addr(&self, addr_width: BusWidth, addr: usize) -> ReturnCode

Set the address to write to

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

Write data items to the previously set address

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

Read data items from the previously set address

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

Loading content...

Implementors

Loading content...