Function esp_idf_sys::bootloader_common_read_otadata
source · pub unsafe extern "C" fn bootloader_common_read_otadata(
ota_info: *const esp_partition_pos_t,
two_otadata: *mut esp_ota_select_entry_t,
) -> esp_err_t
Expand description
@brief Read ota_info partition and fill array from two otadata structures.
@param[in] ota_info It is a pointer to the OTA data partition. The “otadata” partition (Type = “data” and SubType = “ota”) is defined in the CSV partition table. @param[out] two_otadata Pointer to array of OTA selection structure. @return - ESP_OK: On success - ESP_ERR_NOT_FOUND: Partition table does not have otadata partition - ESP_FAIL: On failure