[][src]Trait kernel::hil::spi::SpiSlaveClient

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
)

This is called as a DMA interrupt when a transfer has completed

Loading content...

Implementors

Loading content...