Function esp_idf_sys::esp_flash_read_encrypted
source ยท pub unsafe extern "C" fn esp_flash_read_encrypted(
chip: *mut esp_flash_t,
address: u32,
out_buffer: *mut c_void,
length: u32,
) -> esp_err_t
Expand description
@brief Read and decrypt data from the SPI flash chip using on-chip hardware flash encryption
@param chip Pointer to identify flash chip. Must be NULL (the main flash chip). For other chips, encrypted read is not supported. @param address Address on flash to read from. @param out_buffer Pointer to a buffer for the data to read to. @param length Length (in bytes) of data to read.
@return
- ESP_OK: on success
- ESP_ERR_NOT_SUPPORTED: encrypted read not supported for this chip.