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