Function esp_idf_svc::hal::sys::spi_device_get_actual_freq

source ยท
pub unsafe extern "C" fn spi_device_get_actual_freq(
    handle: *mut spi_device_t,
    freq_khz: *mut i32,
) -> i32
Expand description

@brief Calculate working frequency for specific device

@param handle SPI device handle @param[out] freq_khz output parameter to hold calculated frequency in kHz

@return - ESP_ERR_INVALID_ARG : handle or freq_khz parameter is NULL - ESP_OK : Success