Function esp_idf_sys::ledc_timer_set
source ยท pub unsafe extern "C" fn ledc_timer_set(
speed_mode: ledc_mode_t,
timer_sel: ledc_timer_t,
clock_divider: u32,
duty_resolution: u32,
clk_src: ledc_clk_src_t,
) -> esp_err_t
Expand description
@brief Configure LEDC settings
@param speed_mode Select the LEDC channel group with specified speed mode. Note that not all targets support high speed mode. @param timer_sel Timer index (0-3), there are 4 timers in LEDC module @param clock_divider Timer clock divide value, the timer clock is divided from the selected clock source @param duty_resolution Resolution of duty setting in number of bits. The range of duty values is [0, (2**duty_resolution)] @param clk_src Select LEDC source clock.
@return - (-1) Parameter error - Other Current LEDC duty