pub unsafe extern "C" fn esp_flash_get_chip_write_protect(
    chip: *mut esp_flash_t,
    write_protected: *mut bool
) -> esp_err_t
Expand description

@brief Read if the entire chip is write protected

@param chip Pointer to identify flash chip. If NULL, esp_flash_default_chip is substituted. Must have been successfully initialised via esp_flash_init() @param[out] write_protected Pointer to boolean, set to the value of the write protect flag.

@note A correct result for this flag depends on the SPI flash chip model and chip_drv in use (via the ‘chip->drv’ field).

@return ESP_OK on success, or a flash error code if operation failed.