Function esp_idf_sys::spi_device_get_actual_freq
source ยท pub unsafe extern "C" fn spi_device_get_actual_freq(
handle: spi_device_handle_t,
freq_khz: *mut c_int,
) -> esp_err_t
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