Function esp_idf_svc::hal::sys::sdmmc_mmc_sanitize

source ยท
pub unsafe extern "C" fn sdmmc_mmc_sanitize(
    card: *mut sdmmc_card_t,
    timeout_ms: u32,
) -> i32
Expand description

Sanitize the data that was unmapped by a Discard command

@note Discard command has to precede sanitize operation. To discard, use MMC_DICARD_ARG with sdmmc_erase_sectors argument

@param card pointer to card information structure previously initialized using sdmmc_card_init @param timeout_ms timeout value in milliseconds required to sanitize the selected range of sectors. @return - ESP_OK on success - One of the error codes from SDMMC host controller