[−][src]Function esp_idf_sys::mcpwm_fault_set_oneshot_mode
pub unsafe extern "C" fn mcpwm_fault_set_oneshot_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 oneshot mode on fault detection, once fault occur in oneshot mode reset is required to resume MCPWM signals @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 oneshot 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