Function esp_idf_svc::hal::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,
) -> i32
Expand description

@brief Read flash unique ID via the common “RDUID” SPI flash command.

@note This is an optional feature, which is not supported on all flash chips. READ PROGRAMMING GUIDE FIRST!

@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.