Function esp_idf_svc::hal::sys::mcpwm_timer_enable
source ยท pub unsafe extern "C" fn mcpwm_timer_enable(
timer: *mut mcpwm_timer_t,
) -> i32
Expand description
@brief Enable MCPWM timer
@param[in] timer MCPWM timer handle, allocated by mcpwm_new_timer()
@return
- ESP_OK: Enable MCPWM timer successfully
- ESP_ERR_INVALID_ARG: Enable MCPWM timer failed because of invalid argument
- ESP_ERR_INVALID_STATE: Enable MCPWM timer failed because timer is enabled already
- ESP_FAIL: Enable MCPWM timer failed because of other error