Function esp_idf_sys::sdmmc_host_get_real_freq
source · pub unsafe extern "C" fn sdmmc_host_get_real_freq(
slot: c_int,
real_freq_khz: *mut c_int,
) -> esp_err_t
Expand description
@brief Provides a real frequency used for an SD card installed on specific slot of SD/MMC host controller
This function calculates real working frequency given by current SD/MMC host controller setup for required slot: it reads associated host and card dividers from corresponding SDMMC registers, calculates respective frequency and stores the value into the ‘real_freq_khz’ parameter
@param slot slot number (SDMMC_HOST_SLOT_0 or SDMMC_HOST_SLOT_1) @param[out] real_freq_khz output parameter for the result frequency (in kHz) @return - ESP_OK on success - ESP_ERR_INVALID_ARG on real_freq_khz == NULL or invalid slot number used