riot_sys::inline

Type Alias mtd_desc_t

Source
pub type mtd_desc_t = mtd_desc;

Aliased Type§

struct mtd_desc_t {
    pub init: Option<unsafe extern "C" fn(_: *mut mtd_dev_t) -> i32>,
    pub read: Option<unsafe extern "C" fn(_: *mut mtd_dev_t, _: *mut c_void, _: u32, _: u32) -> i32>,
    pub read_page: Option<unsafe extern "C" fn(_: *mut mtd_dev_t, _: *mut c_void, _: u32, _: u32, _: u32) -> i32>,
    pub write_page: Option<unsafe extern "C" fn(_: *mut mtd_dev_t, _: *const c_void, _: u32, _: u32, _: u32) -> i32>,
    pub erase: Option<unsafe extern "C" fn(_: *mut mtd_dev_t, _: u32, _: u32) -> i32>,
    pub erase_sector: Option<unsafe extern "C" fn(_: *mut mtd_dev_t, _: u32, _: u32) -> i32>,
    pub power: Option<unsafe extern "C" fn(_: *mut mtd_dev_t, _: u8) -> i32>,
    pub flags: u8,
}

Fields§

§init: Option<unsafe extern "C" fn(_: *mut mtd_dev_t) -> i32>§read: Option<unsafe extern "C" fn(_: *mut mtd_dev_t, _: *mut c_void, _: u32, _: u32) -> i32>§read_page: Option<unsafe extern "C" fn(_: *mut mtd_dev_t, _: *mut c_void, _: u32, _: u32, _: u32) -> i32>§write_page: Option<unsafe extern "C" fn(_: *mut mtd_dev_t, _: *const c_void, _: u32, _: u32, _: u32) -> i32>§erase: Option<unsafe extern "C" fn(_: *mut mtd_dev_t, _: u32, _: u32) -> i32>§erase_sector: Option<unsafe extern "C" fn(_: *mut mtd_dev_t, _: u32, _: u32) -> i32>§power: Option<unsafe extern "C" fn(_: *mut mtd_dev_t, _: u8) -> i32>§flags: u8

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 32 bytes