* @brief Find partition based on one or more parameters
*
* @param type Partition type, one of esp_partition_type_t values
- * @param subtype Partition subtype, of esp_partition_subtype_t values.
- * To find all partitions of given type, use
- * ESP_PARTITION_SUBTYPE_ANY.
+ * @param subtype Partition subtype, one of esp_partition_subtype_t values.
+ * 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.
*
* @brief Find first partition based on one or more parameters
*
* @param type Partition type, one of esp_partition_type_t values
- * @param subtype Partition subtype, of esp_partition_subtype_t values.
- * To find all partitions of given type, use
- * ESP_PARTITION_SUBTYPE_ANY.
+ * @param subtype Partition subtype, one of esp_partition_subtype_t values.
+ * 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 parition is found.
+ * @return pointer to esp_partition_t structure, or NULL if no partition is found.
* This pointer is valid for the lifetime of the application.
*/
const esp_partition_t* esp_partition_find_first(esp_partition_type_t type, esp_partition_subtype_t subtype, const char* label);
/**
* @brief Release partition iterator
*
- * Any pointers obtained using esp_partition_label function will be invalid
- * after this call.
- *
* @param iterator Iterator obtained using esp_partition_find. Must be non-NULL.
*
*/
* @param size Size of data to be read, in bytes.
*
* @return ESP_OK, if data was read successfully;
- * ESP_ERR_INVALID_ARG, if iterator or src are NULL;
+ * ESP_ERR_INVALID_ARG, if src_offset exceeds partition size;
* ESP_ERR_INVALID_SIZE, if read would go out of bounds of the partition;
* or one of error codes from lower-level flash driver.
*/
* esp_partition_erase_range call.
*
* @return ESP_OK, if data was written successfully;
- * ESP_ERR_INVALID_ARG, if iterator or dst are NULL;
+ * ESP_ERR_INVALID_ARG, if dst_offset exceeds partition size;
* ESP_ERR_INVALID_SIZE, if write would go out of bounds of the partition;
* or one of error codes from lower-level flash driver.
*/
* @note Both des_addr and src_addr have to be 4-byte aligned.
* This is a temporary limitation which will be removed.
*
- * @param des_addr destination address in Flash
- * @param src_addr source address of the data
+ * @param dest destination address in Flash
+ * @param src pointer to the source buffer
* @param size length of data, in bytes
*
* @return esp_err_t
* @note Both des_addr and src_addr have to be 4-byte aligned.
* This is a temporary limitation which will be removed.
*
- * @param src_addr source address of the data in Flash.
- * @param des_addr destination address
+ * @param src source address of the data in Flash.
+ * @param dest pointer to the destination buffer
* @param size length of data
*
* @return esp_err_t