Function esp_idf_svc::sys::mcpwm_timer_start_stop
source ยท pub unsafe extern "C" fn mcpwm_timer_start_stop(
timer: *mut mcpwm_timer_t,
command: u32,
) -> i32
Expand description
@brief Send specific start/stop commands to MCPWM timer
@param[in] timer MCPWM timer handle, allocated by mcpwm_new_timer()
@param[in] command Supported command list for MCPWM timer
@return
- ESP_OK: Start or stop MCPWM timer successfully
- ESP_ERR_INVALID_ARG: Start or stop MCPWM timer failed because of invalid argument
- ESP_ERR_INVALID_STATE: Start or stop MCPWM timer failed because timer is not enabled
- ESP_FAIL: Start or stop MCPWM timer failed because of other error