pub trait SpiMasterClient {
    fn read_write_done(
        &self,
        write_buffer: &'static mut [u8],
        read_buffer: Option<&'static mut [u8]>,
        len: usize,
        status: Result<(), ErrorCode>
    ); }
Expand description

Trait for clients of a SPI bus in master mode.

Required Methods

Callback when a read/write operation finishes: read_buffer is an Option because the call passes an Option (with None if it’s a write-only operation.

Implementors