Function esp_idf_svc::hal::sys::esp_flash_read_id
source · pub unsafe extern "C" fn esp_flash_read_id(
chip: *mut esp_flash_t,
out_id: *mut u32,
) -> i32
Expand description
@brief Read flash ID via the common “RDID” 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 ID value.
ID is a 24-bit value. Lower 16 bits of ‘id’ are the chip ID, upper 8 bits are the manufacturer ID.
@return ESP_OK on success, or a flash error code if operation failed.