capsules_extra::sdcard

Trait SDCardClient

Source
pub trait SDCardClient {
    // Required methods
    fn card_detection_changed(&self, installed: bool);
    fn init_done(&self, block_size: u32, total_size: u64);
    fn read_done(&self, data: &'static mut [u8], len: usize);
    fn write_done(&self, buffer: &'static mut [u8]);
    fn error(&self, error: u32);
}
Expand description

Callback functions from SDCard

Required Methods§

Source

fn card_detection_changed(&self, installed: bool)

Source

fn init_done(&self, block_size: u32, total_size: u64)

Source

fn read_done(&self, data: &'static mut [u8], len: usize)

Source

fn write_done(&self, buffer: &'static mut [u8])

Source

fn error(&self, error: u32)

Implementors§

Source§

impl<'a, A: Alarm<'a>> SDCardClient for SDCardDriver<'a, A>

Handle callbacks from SDCard