Struct capsules::sdcard::SDCardDriver [] [src]

pub struct SDCardDriver<'a, A: Alarm + 'a> {
    sdcard: &'a SDCard<'a, A>,
    app: MapCell<App>,
    kernel_buf: TakeCell<'static, [u8]>,
}

Application driver for SD Card capsule, layers on top of SD Card capsule This is used if the SDCard is going to be attached directly to userspace syscalls. SDCardDriver can be ignored if another capsule is going to build off of the SDCard instead

Fields

Methods

impl<'a, A: Alarm + 'a> SDCardDriver<'a, A>
[src]

Functions for SDCardDriver

[src]

Create new SD card userland interface

sdcard - SDCard interface to provide application access to kernel_buf - buffer used to hold SD card blocks, must be at least 512 bytes in length

Trait Implementations

impl<'a, A: Alarm + 'a> SDCardClient for SDCardDriver<'a, A>
[src]

Handle callbacks from SDCard

[src]

[src]

[src]

[src]

[src]

impl<'a, A: Alarm + 'a> Driver for SDCardDriver<'a, A>
[src]

Connections to userspace syscalls

[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