Function esp_idf_sys::mcpwm_operator_connect_timer
source ยท pub unsafe extern "C" fn mcpwm_operator_connect_timer(
oper: mcpwm_oper_handle_t,
timer: mcpwm_timer_handle_t,
) -> esp_err_t
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