[][src]Function esp_idf_sys::ledc_fade_start

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

@brief Start LEDC fading. @note Call ledc_fade_func_install() once before calling this function. Call this API right after ledc_set_fade_with_time or ledc_set_fade_with_step before to start fading. @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 number @param fade_mode Whether to block until fading done.

@return - ESP_OK Success - ESP_ERR_INVALID_STATE Fade function not installed. - ESP_ERR_INVALID_ARG Parameter error.