Function esp_idf_svc::hal::sys::spi_get_actual_clock
source ยท pub unsafe extern "C" fn spi_get_actual_clock(
fapb: i32,
hz: i32,
duty_cycle: i32,
) -> i32
Expand description
@brief Calculate the working frequency that is most close to desired frequency.
@param fapb The frequency of apb clock, should be APB_CLK_FREQ
.
@param hz Desired working frequency
@param duty_cycle Duty cycle of the spi clock
@return Actual working frequency that most fit.