Function esp_idf_svc::hal::sys::gptimer_new_etm_event
source ยท pub unsafe extern "C" fn gptimer_new_etm_event(
timer: *mut gptimer_t,
config: *const gptimer_etm_event_config_t,
out_event: *mut *mut esp_etm_event_t,
) -> i32
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