[−][src]Function esp_idf_sys::mcpwm_set_frequency
pub unsafe extern "C" fn mcpwm_set_frequency(
mcpwm_num: mcpwm_unit_t,
timer_num: mcpwm_timer_t,
frequency: u32
) -> esp_err_t
@brief Set frequency(in Hz) of MCPWM timer
@param mcpwm_num set MCPWM unit(0-1) @param timer_num set timer number(0-2) of MCPWM, each MCPWM unit has 3 timers @param frequency set the frequency in Hz of each timer
@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error