Function esp_idf_sys::esp_ota_get_state_partition
source ยท pub unsafe extern "C" fn esp_ota_get_state_partition(
partition: *const esp_partition_t,
ota_state: *mut esp_ota_img_states_t,
) -> esp_err_t
Expand description
@brief Returns state for given partition.
@param[in] partition Pointer to partition. @param[out] ota_state state of partition (if this partition has a record in otadata). @return - ESP_OK: Successful. - ESP_ERR_INVALID_ARG: partition or ota_state arguments were NULL. - ESP_ERR_NOT_SUPPORTED: partition is not ota. - ESP_ERR_NOT_FOUND: Partition table does not have otadata or state was not found for given partition.