[][src]Function esp_idf_bindgen::esp_flash_write

pub unsafe extern "C" fn esp_flash_write(
    chip: *mut esp_flash_t,
    buffer: *const c_void,
    address: u32,
    length: u32
) -> esp_err_t

@brief Write data to the SPI flash chip

@param chip Pointer to identify flash chip. Must have been successfully initialised via esp_flash_init() @param address Address on flash to write to. Must be previously erased (SPI NOR flash can only write bits 1->0). @param buffer Pointer to a buffer with the data to write. To get better performance, this should be in the DRAM and word aligned. @param length Length (in bytes) of data to write.

There are no alignment constraints on buffer, address or length.

@return ESP_OK on success, or a flash error code if operation failed.