Function esp_idf_sys::gptimer_new_etm_event
source ยท pub unsafe extern "C" fn gptimer_new_etm_event(
timer: gptimer_handle_t,
config: *const gptimer_etm_event_config_t,
out_event: *mut esp_etm_event_handle_t,
) -> esp_err_t
Expand description
@brief Get the ETM event for GPTimer
@note The created ETM event object can be deleted later by calling esp_etm_del_event
@param[in] timer Timer handle created by gptimer_new_timer
@param[in] config GPTimer ETM 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