[][src]Function esp_idf_sys::ledc_set_duty_and_update

pub unsafe extern "C" fn ledc_set_duty_and_update(
    speed_mode: ledc_mode_t,
    channel: ledc_channel_t,
    duty: u32,
    hpoint: u32
) -> esp_err_t

@brief A thread-safe API to set duty for LEDC channel and return when duty updated. @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 LEDC duty, the range of duty setting is [0, (2**duty_resolution)] @param hpoint Set the LEDC hpoint value(max: 0xfffff)