[][src]Function esp_idf_sys::mcpwm_fault_set_cyc_mode

pub unsafe extern "C" fn mcpwm_fault_set_cyc_mode(
    mcpwm_num: mcpwm_unit_t,
    timer_num: mcpwm_timer_t,
    fault_sig: mcpwm_fault_signal_t,
    action_on_pwmxa: mcpwm_action_on_pwmxa_t,
    action_on_pwmxb: mcpwm_action_on_pwmxb_t
) -> esp_err_t

@brief Set cycle-by-cycle mode on fault detection, once fault occur in cyc mode MCPWM signal resumes as soon as fault signal becomes inactive @note currently low level triggering is not supported

@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 fault_sig set the fault pin, which needs to be enabled for cyc mode @param action_on_pwmxa action to be taken on MCPWMXA when fault occurs, either no change or high or low or toggle @param action_on_pwmxb action to be taken on MCPWMXB when fault occurs, either no change or high or low or toggle

@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error