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