[][src]Function esp_idf_sys::ledc_set_fade_step_and_start

pub unsafe extern "C" fn ledc_set_fade_step_and_start(
    speed_mode: ledc_mode_t,
    channel: ledc_channel_t,
    target_duty: u32,
    scale: u32,
    cycle_num: u32,
    fade_mode: ledc_fade_mode_t
) -> esp_err_t

@brief A thread-safe API to set and start LEDC fade function. @note Call ledc_fade_func_install() once before calling this function. @note If a fade operation is running in progress on that channel, the driver would not allow it to be stopped. Other duty operations will have to wait until the fade operation has finished. @param speed_mode Select the LEDC speed_mode, high-speed mode and low-speed mode, @param channel LEDC channel index (0-7), select from ledc_channel_t @param target_duty Target duty of fading [0, (2**duty_resolution) - 1] @param scale Controls the increase or decrease step scale. @param cycle_num increase or decrease the duty every cycle_num cycles @param fade_mode choose blocking or non-blocking mode @return - ESP_ERR_INVALID_ARG Parameter error - ESP_OK Success - ESP_ERR_INVALID_STATE Fade function not installed. - ESP_FAIL Fade function init error