[][src]Function esp_idf_sys::mcpwm_get_duty

pub unsafe extern "C" fn mcpwm_get_duty(
    mcpwm_num: mcpwm_unit_t,
    timer_num: mcpwm_timer_t,
    op_num: mcpwm_operator_t
) -> f32

@brief Get duty cycle of each operator

@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

@return - duty cycle in % of each operator(56.7 means duty is 56.7%)