Function esp_idf_svc::hal::sys::sdmmc_erase_sectors

source ยท
pub unsafe extern "C" fn sdmmc_erase_sectors(
    card: *mut sdmmc_card_t,
    start_sector: usize,
    sector_count: usize,
    arg: u32,
) -> i32
Expand description

Erase given number of sectors from the SD/MMC card

@note When sdmmc_erase_sectors used with cards in SDSPI mode, it was observed that card requires re-init after erase operation.

@param card pointer to card information structure previously initialized using sdmmc_card_init @param start_sector sector where to start erase @param sector_count number of sectors to erase @param arg erase command (CMD38) argument @return - ESP_OK on success or sector_count equal to 0 - One of the error codes from SDMMC host controller