Function esp_idf_svc::sys::esp_etm_channel_enable
source ยท pub unsafe extern "C" fn esp_etm_channel_enable(
chan: *mut esp_etm_channel_t,
) -> i32
Expand description
@brief Enable ETM channel
@note This function will transit the channel state from init to enable.
@param[in] chan ETM channel handle that created by esp_etm_new_channel
@return
- ESP_OK: Enable ETM channel successfully
- ESP_ERR_INVALID_ARG: Enable ETM channel failed because of invalid argument
- ESP_ERR_INVALID_STATE: Enable ETM channel failed because the channel has been enabled already
- ESP_FAIL: Enable ETM channel failed because of other reasons