[][src]Function esp_idf_bindgen::spi_flash_write_encrypted

pub unsafe extern "C" fn spi_flash_write_encrypted(
    dest_addr: size_t,
    src: *const c_void,
    size: size_t
) -> esp_err_t

@brief Write data encrypted to Flash.

@note Flash encryption must be enabled for this function to work.

@note Flash encryption must be enabled when calling this function. If flash encryption is disabled, the function returns ESP_ERR_INVALID_STATE. Use esp_flash_encryption_enabled() function to determine if flash encryption is enabled.

@note Both dest_addr and size must be multiples of 16 bytes. For absolute best performance, both dest_addr and size arguments should be multiples of 32 bytes.

@param dest_addr Destination address in Flash. Must be a multiple of 16 bytes. @param src Pointer to the source buffer. @param size Length of data, in bytes. Must be a multiple of 16 bytes.

@return esp_err_t