[][src]Function esp_idf_sys::ledc_update_duty

pub unsafe extern "C" fn ledc_update_duty(
    speed_mode: ledc_mode_t,
    channel: ledc_channel_t
) -> esp_err_t

@brief LEDC update channel parameters @note Call this function to activate the LEDC updated parameters. After ledc_set_duty, we need to call this function to update the settings. @note ledc_set_duty, ledc_set_duty_with_hpoint and ledc_update_duty are not thread-safe, do not call these functions to control one LEDC channel in different tasks at the same time. A thread-safe version of API is ledc_set_duty_and_update @param speed_mode Select the LEDC speed_mode, high-speed mode and low-speed mode, @param channel LEDC channel (0-7), select from ledc_channel_t

@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error