Function esp_idf_sys::esp_etm_new_channel
source ยท pub unsafe extern "C" fn esp_etm_new_channel(
config: *const esp_etm_channel_config_t,
ret_chan: *mut esp_etm_channel_handle_t,
) -> esp_err_t
Expand description
@brief Allocate an ETM channel
@note The channel can later be freed by esp_etm_del_channel
@param[in] config ETM channel configuration @param[out] ret_chan Returned ETM channel handle @return - ESP_OK: Allocate ETM channel successfully - ESP_ERR_INVALID_ARG: Allocate ETM channel failed because of invalid argument - ESP_ERR_NO_MEM: Allocate ETM channel failed because of out of memory - ESP_ERR_NOT_FOUND: Allocate ETM channel failed because all channels are used up and no more free one - ESP_FAIL: Allocate ETM channel failed because of other reasons