esp_etm_channel_connect() function
Connect an ETM event to an ETM task via a previously allocated ETM channel
Arguments
chan
ETM channel handle that created by `esp_etm_new_channel`
event
ETM event handle obtained from a driver/peripheral, e.g. `xxx_new_etm_event`
task
ETM task handle obtained from a driver/peripheral, e.g. `xxx_new_etm_task`
Return value
- 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
Notes
Setting the ETM event/task handle to NULL means to disconnect the channel from any event/task