Function esp_idf_sys::mcpwm_comparator_new_etm_event
source ยท pub unsafe extern "C" fn mcpwm_comparator_new_etm_event(
cmpr: mcpwm_cmpr_handle_t,
config: *const mcpwm_cmpr_etm_event_config_t,
out_event: *mut esp_etm_event_handle_t,
) -> esp_err_t
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