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