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§
sourcefn write(
&self,
data_width: BusWidth,
buffer: &'a mut [u8],
len: usize,
) -> Result<(), (ErrorCode, &'static mut [u8])>
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
sourcefn read(
&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])>
Read data items from the previously set address