Function esp_idf_svc::hal::sys::mcpwm_operator_connect_timer
source ยท pub unsafe extern "C" fn mcpwm_operator_connect_timer(
oper: *mut mcpwm_oper_t,
timer: *mut mcpwm_timer_t,
) -> i32
Expand description
@brief Connect MCPWM operator and timer, so that the operator can be driven by the timer
@param[in] oper MCPWM operator handle, allocated by mcpwm_new_operator()
@param[in] timer MCPWM timer handle, allocated by mcpwm_new_timer()
@return
- ESP_OK: Connect MCPWM operator and timer successfully
- ESP_ERR_INVALID_ARG: Connect MCPWM operator and timer failed because of invalid argument
- ESP_FAIL: Connect MCPWM operator and timer failed because of other error