[][src]Struct esp_idf_bindgen::esp_flash_t

#[repr(C)]pub struct esp_flash_t {
    pub host: *mut spi_flash_host_driver_t,
    pub chip_drv: *const spi_flash_chip_t,
    pub os_func: *const esp_flash_os_functions_t,
    pub os_func_data: *mut c_void,
    pub read_mode: esp_flash_io_mode_t,
    pub size: u32,
    pub chip_id: u32,
}

@brief Structure to describe a SPI flash chip connected to the system.

Structure must be initialized before use (passed to esp_flash_init()).

Fields

host: *mut spi_flash_host_driver_t

< Pointer to hardware-specific "host_driver" structure. Must be initialized before used.

chip_drv: *const spi_flash_chip_t

< Pointer to chip-model-specific "adapter" structure. If NULL, will be detected during initialisation.

os_func: *const esp_flash_os_functions_t

< Pointer to os-specific hook structure. Call esp_flash_init_os_functions() to setup this field, after the host is properly initialized.

os_func_data: *mut c_void

< Pointer to argument for os-specific hooks. Left NULL and will be initialized with os_func.

read_mode: esp_flash_io_mode_t

< Configured SPI flash read mode. Set before esp_flash_init is called.

size: u32

< Size of SPI flash in bytes. If 0, size will be detected during initialisation.

chip_id: u32

< Detected chip id.

Trait Implementations

impl Clone for esp_flash_t[src]

impl Copy for esp_flash_t[src]

impl Debug for esp_flash_t[src]

Auto Trait Implementations

impl !Send for esp_flash_t

impl !Sync for esp_flash_t

impl Unpin for esp_flash_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.