Function esp_idf_svc::hal::sys::esp_etm_channel_disable

source ยท
pub unsafe extern "C" fn esp_etm_channel_disable(
    chan: *mut esp_etm_channel_t,
) -> i32
Expand description

@brief Disable ETM channel

@note This function will transit the channel state from enable to init.

@param[in] chan ETM channel handle that created by esp_etm_new_channel @return - ESP_OK: Disable ETM channel successfully - ESP_ERR_INVALID_ARG: Disable ETM channel failed because of invalid argument - ESP_ERR_INVALID_STATE: Disable ETM channel failed because the channel is not enabled yet - ESP_FAIL: Disable ETM channel failed because of other reasons