Trait capsules_extra::bus::Client

source ·
pub trait Client {
    // Required method
    fn command_complete(
        &self,
        buffer: Option<&'static mut [u8]>,
        len: usize,
        status: Result<(), ErrorCode>,
    );
}

Required Methods§

source

fn command_complete( &self, buffer: Option<&'static mut [u8]>, len: usize, status: Result<(), ErrorCode>, )

Called when set_addr, write or read are complete

set_address does not return a buffer write and read return a buffer len should be set to the number of data elements written

Implementors§

source§

impl<'a, A: Alarm<'a>, B: Bus<'a, BusAddr8>, P: Pin> Client for ST77XX<'a, A, B, P>