feat(esp_trace): extend encoder interface

Add esp_trace_flush, esp_trace_start and esp_trace_stop APIs
This commit is contained in:
Erhan Kurubas
2026-06-01 09:25:47 +03:00
parent 613351e913
commit fbf57aeba1
4 changed files with 83 additions and 7 deletions
+22 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2025-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -100,6 +100,27 @@ esp_trace_handle_t esp_trace_get_active_handle(void);
*/
esp_err_t esp_trace_write(esp_trace_handle_t handle, const void *data, size_t size, unsigned long tmo);
/**
* @brief Resume trace event emission on the active session.
*
* @return ESP_OK on success, otherwise see esp_err_t
*/
esp_err_t esp_trace_start(void);
/**
* @brief Pause trace event emission on the active session.
*
* @return ESP_OK on success, otherwise see esp_err_t
*/
esp_err_t esp_trace_stop(void);
/**
* @brief Flush pending trace data through the encoder
*
* @return ESP_OK on success, otherwise see esp_err_t
*/
esp_err_t esp_trace_flush(void);
/**
* @brief Check if the host is connected
*