Function esp_idf_svc::hal::sys::mcpwm_comparator_new_etm_event
source ยท pub unsafe extern "C" fn mcpwm_comparator_new_etm_event(
cmpr: *mut mcpwm_cmpr_t,
config: *const mcpwm_cmpr_etm_event_config_t,
out_event: *mut *mut esp_etm_event_t,
) -> i32
Expand description
@brief Get the ETM event for MCPWM comparator
@note The created ETM event object can be deleted later by calling esp_etm_del_event
@param[in] cmpr MCPWM comparator, allocated by mcpwm_new_comparator()
or mcpwm_new_event_comparator()
@param[in] config MCPWM ETM comparator event configuration
@param[out] out_event Returned ETM event handle
@return
- ESP_OK: Get ETM event successfully
- ESP_ERR_INVALID_ARG: Get ETM event failed because of invalid argument
- ESP_FAIL: Get ETM event failed because of other error