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

pub trait SpiSlave {
    fn init(&self);
fn has_client(&self) -> bool;
fn set_client(&self, client: Option<&'static SpiSlaveClient>);
fn set_write_byte(&self, write_byte: u8);
fn read_write_bytes(
        &self,
        write_buffer: Option<&'static mut [u8]>,
        read_buffer: Option<&'static mut [u8]>,
        len: usize
    ) -> ReturnCode;
fn set_clock(&self, polarity: ClockPolarity);
fn get_clock(&self) -> ClockPolarity;
fn set_phase(&self, phase: ClockPhase);
fn get_phase(&self) -> ClockPhase; }

Required Methods

Returns true if there is a client.

Implementors