Function esp_idf_svc::sys::esp_etm_channel_connect

source ยท
pub unsafe extern "C" fn esp_etm_channel_connect(
    chan: *mut esp_etm_channel_t,
    event: *mut esp_etm_event_t,
    task: *mut esp_etm_task_t,
) -> i32
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