Struct capsules::spi::Spi [] [src]

pub struct Spi<'a, S: SpiMasterDevice + 'a> {
    spi_master: &'a S,
    busy: Cell<bool>,
    app: MapCell<App>,
    kernel_read: TakeCell<'static, [u8]>,
    kernel_write: TakeCell<'static, [u8]>,
    kernel_len: Cell<usize>,
}

Fields

Methods

impl<'a, S: SpiMasterDevice> Spi<'a, S>
[src]

[src]

[src]

[src]

Trait Implementations

impl<'a, S: SpiMasterDevice> Driver for Spi<'a, S>
[src]

[src]

allow lets an application give the driver access to a buffer in the application's memory. This returns ENOSUPPORT if not used. Read more

[src]

subscribe lets an application pass a callback to the driver to be called later. This returns ENOSUPPORT if not used. Read more

[src]

command instructs a driver to perform some action synchronously. This returns ENOSUPPORT if not used. Read more

impl<'a, S: SpiMasterDevice> SpiMasterClient for Spi<'a, S>
[src]

[src]

Called when a read/write operation finishes