[][src]Struct esp_idf_bindgen::esp_flash_os_functions_t

#[repr(C)]pub struct esp_flash_os_functions_t {
    pub start: Option<unsafe extern "C" fn(arg: *mut c_void) -> esp_err_t>,
    pub end: Option<unsafe extern "C" fn(arg: *mut c_void) -> esp_err_t>,
    pub region_protected: Option<unsafe extern "C" fn(arg: *mut c_void, start_addr: size_t, size: size_t) -> esp_err_t>,
    pub delay_us: Option<unsafe extern "C" fn(arg: *mut c_void, us: c_uint) -> esp_err_t>,
}

OS-level integration hooks for accessing flash chips inside a running OS

Fields

start: Option<unsafe extern "C" fn(arg: *mut c_void) -> esp_err_t>

Called before commencing any flash operation. Does not need to be recursive (ie is called at most once for each call to 'end').

end: Option<unsafe extern "C" fn(arg: *mut c_void) -> esp_err_t>

Called after completing any flash operation.

region_protected: Option<unsafe extern "C" fn(arg: *mut c_void, start_addr: size_t, size: size_t) -> esp_err_t>

Called before any erase/write operations to check whether the region is limited by the OS

delay_us: Option<unsafe extern "C" fn(arg: *mut c_void, us: c_uint) -> esp_err_t>

Delay for at least 'us' microseconds. Called in between 'start' and 'end'.

Trait Implementations

impl Clone for esp_flash_os_functions_t[src]

impl Copy for esp_flash_os_functions_t[src]

impl Debug for esp_flash_os_functions_t[src]

Auto Trait Implementations

impl Send for esp_flash_os_functions_t

impl Sync for esp_flash_os_functions_t

impl Unpin for esp_flash_os_functions_t

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.