Function esp_idf_sys::esp_flash_read_unique_chip_id
source · pub unsafe extern "C" fn esp_flash_read_unique_chip_id(
chip: *mut esp_flash_t,
out_id: *mut u64,
) -> esp_err_t
Expand description
@brief Read flash unique ID via the common “RDUID” SPI flash command.
@param chip Pointer to identify flash chip. Must have been successfully initialised via esp_flash_init(). @param[out] out_id Pointer to receive unique ID value.
ID is a 64-bit value.
@return - ESP_OK on success, or a flash error code if operation failed. - ESP_ERR_NOT_SUPPORTED if the chip doesn’t support read id.