[][src]Function esp_idf_sys::mcpwm_set_duty_type

pub unsafe extern "C" fn mcpwm_set_duty_type(
    mcpwm_num: mcpwm_unit_t,
    timer_num: mcpwm_timer_t,
    op_num: mcpwm_operator_t,
    duty_num: mcpwm_duty_type_t
) -> esp_err_t

@brief Set duty either active high or active low(out of phase/inverted) @note Call this function every time after mcpwm_set_signal_high or mcpwm_set_signal_low to resume with previously set duty cycle

@param mcpwm_num set MCPWM unit(0-1) @param timer_num set timer number(0-2) of MCPWM, each MCPWM unit has 3 timers @param op_num set the operator(MCPWMXA/MCPWMXB), 'x' is timer number selected @param duty_num set active low or active high duty type

@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error