pub trait Bus8080<'a> {
fn set_addr(
&self,
addr_width: BusWidth,
addr: usize
) -> 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
Set the address to write to
Write data items to the previously set address
Read data items from the previously set address