Struct capsules::fm25cl::FM25CL [] [src]

pub struct FM25CL<'a, S: SpiMasterDevice + 'a> {
    spi: &'a S,
    state: Cell<State>,
    txbuffer: TakeCell<'static, [u8]>,
    rxbuffer: TakeCell<'static, [u8]>,
    client: Cell<Option<&'static NonvolatileStorageClient>>,
    client_custom: Cell<Option<&'static FM25CLClient>>,
    client_buffer: TakeCell<'static, [u8]>,
    client_write_address: Cell<u16>,
    client_write_len: Cell<u16>,
}

Fields

Methods

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

[src]

[src]

[src]

Setup SPI for this chip

[src]

[src]

Trait Implementations

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

[src]

Called when a read/write operation finishes

impl<'a, S: SpiMasterDevice + 'a> FM25CLCustom for FM25CL<'a, S>
[src]

[src]

impl<'a, S: SpiMasterDevice + 'a> NonvolatileStorage for FM25CL<'a, S>
[src]

Implement the generic NonvolatileStorage interface common to chips that provide nonvolatile memory.

[src]

[src]

Read length bytes starting at address address in to the provided buffer. The buffer must be at least length bytes long. The address must be in the address space of the physical storage. Read more

[src]

Write length bytes starting at address address from the provided buffer. The buffer must be at least length bytes long. This address must be in the address space of the physical storage. Read more