[][src]Function esp_idf_sys::ledc_set_fade

pub unsafe extern "C" fn ledc_set_fade(
    speed_mode: ledc_mode_t,
    channel: ledc_channel_t,
    duty: u32,
    fade_direction: ledc_duty_direction_t,
    step_num: u32,
    duty_cyle_num: u32,
    duty_scale: u32
) -> esp_err_t

@brief LEDC set gradient Set LEDC gradient, After the function calls the ledc_update_duty function, the function can take effect. @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 (0-7), select from ledc_channel_t @param duty Set the start of the gradient duty, the range of duty setting is [0, (2**duty_resolution)] @param fade_direction Set the direction of the gradient @param step_num Set the number of the gradient @param duty_cyle_num Set how many LEDC tick each time the gradient lasts @param duty_scale Set gradient change amplitude

@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error