Trait kernel::hil::spi::SpiSlaveClient
[−]
[src]
pub trait SpiSlaveClient { fn chip_selected(&self); fn read_write_done(
&self,
write_buffer: Option<&'static mut [u8]>,
read_buffer: Option<&'static mut [u8]>,
len: usize
); }
Required Methods
fn chip_selected(&self)
This is called whenever the slave is selected by the master
fn read_write_done(
&self,
write_buffer: Option<&'static mut [u8]>,
read_buffer: Option<&'static mut [u8]>,
len: usize
)
&self,
write_buffer: Option<&'static mut [u8]>,
read_buffer: Option<&'static mut [u8]>,
len: usize
)
This is called as a DMA interrupt when a transfer has completed