Function esp_idf_svc::hal::sys::esp_partition_find_first

source ยท
pub unsafe extern "C" fn esp_partition_find_first(
    type_: u32,
    subtype: u32,
    label: *const i8,
) -> *const esp_partition_t
Expand description

@brief Find first partition based on one or more parameters

@param type Partition type, one of esp_partition_type_t values or an 8-bit unsigned integer. To find all partitions, no matter the type, use ESP_PARTITION_TYPE_ANY, and set subtype argument to ESP_PARTITION_SUBTYPE_ANY. @param subtype Partition subtype, one of esp_partition_subtype_t values or an 8-bit unsigned integer To find all partitions of given type, use ESP_PARTITION_SUBTYPE_ANY. @param label (optional) Partition label. Set this value if looking for partition with a specific name. Pass NULL otherwise.

@return pointer to esp_partition_t structure, or NULL if no partition is found. This pointer is valid for the lifetime of the application.