Function esp_idf_sys::esp_etm_channel_connect
source ยท pub unsafe extern "C" fn esp_etm_channel_connect(
chan: esp_etm_channel_handle_t,
event: esp_etm_event_handle_t,
task: esp_etm_task_handle_t,
) -> esp_err_t
Expand description
@brief Connect an ETM event to an ETM task via a previously allocated ETM channel
@note Setting the ETM event/task handle to NULL means to disconnect the channel from any event/task
@param[in] chan ETM channel handle that created by esp_etm_new_channel
@param[in] event ETM event handle obtained from a driver/peripheral, e.g. xxx_new_etm_event
@param[in] task ETM task handle obtained from a driver/peripheral, e.g. xxx_new_etm_task
@return
- ESP_OK: Connect ETM event and task to the channel successfully
- ESP_ERR_INVALID_ARG: Connect ETM event and task to the channel failed because of invalid argument
- ESP_FAIL: Connect ETM event and task to the channel failed because of other reasons