Struct capsules::virtual_spi::VirtualSpiSlaveDevice [] [src]

pub struct VirtualSpiSlaveDevice<'a, Spi: SpiSlave + 'a> {
    spi: &'a Spi,
    client: Cell<Option<&'a SpiSlaveClient>>,
}

Fields

Methods

impl<'a, Spi: SpiSlave> VirtualSpiSlaveDevice<'a, Spi>
[src]

[src]

[src]

Trait Implementations

impl<'a, Spi: SpiSlave> SpiSlaveClient for VirtualSpiSlaveDevice<'a, Spi>
[src]

[src]

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

[src]

This is called whenever the slave is selected by the master

impl<'a, Spi: SpiSlave> SpiSlaveDevice for VirtualSpiSlaveDevice<'a, Spi>
[src]

[src]

Setup the SPI settings and speed of the bus.

[src]

Perform an asynchronous read/write operation, whose completion is signaled by invoking SpiSlaveClient.read_write_done on the provided client. Either write_buffer or read_buffer may be None. If read_buffer is Some, the length of the operation is the minimum of the size of the two buffers. Read more

[src]

[src]

[src]

[src]