Function esp_idf_svc::hal::sys::ledc_timer_set
source ยท pub unsafe extern "C" fn ledc_timer_set(
speed_mode: u32,
timer_sel: u32,
clock_divider: u32,
duty_resolution: u32,
clk_src: u32,
) -> i32
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 is [1, SOC_LEDC_TIMER_BIT_WIDTH] @param clk_src Select LEDC source clock.
@return - (-1) Parameter error - Other Current LEDC duty