[−][src]Function esp_idf_bindgen::esp_flash_get_chip_write_protect
pub unsafe extern "C" fn esp_flash_get_chip_write_protect(
chip: *mut esp_flash_t,
write_protected: *mut bool
) -> esp_err_t
@brief Read if the entire chip is write protected
@param chip Pointer to identify flash chip. 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.