Trait capsules_extra::sdcard::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