mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-14 00:37:44 -04:00
* Use new version of CI-CD Actions, checkout@v3 instead of checkout@v2 on all jobs * Use cSpell spell check, and use ubuntu-20.04 for formatting check * Add in bot formatting action * Update freertos_demo.yml and freertos_plus_demo.yml files to increase github log readability * Add in a Qemu demo onto the workflows.
88 lines
2 KiB
C
88 lines
2 KiB
C
/*
|
|
* Percepio Trace Recorder for Tracealyzer v4.6.0
|
|
* Copyright 2021 Percepio AB
|
|
* www.percepio.com
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @file
|
|
*
|
|
* @brief Public trace interval APIs.
|
|
*/
|
|
|
|
#ifndef TRC_INTERVAL_H
|
|
#define TRC_INTERVAL_H
|
|
|
|
#if ( TRC_USE_TRACEALYZER_RECORDER == 1 )
|
|
|
|
#if ( TRC_CFG_RECORDER_MODE == TRC_RECORDER_MODE_STREAMING )
|
|
|
|
#include <trcTypes.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @defgroup trace_interval_apis Trace Interval APIs
|
|
* @ingroup trace_recorder_apis
|
|
* @{
|
|
*/
|
|
|
|
/**
|
|
* @brief Creates trace interval.
|
|
*
|
|
* @param[in] szName Name.
|
|
* @param[out] pxIntervalHandle Pointer to uninitialized trace interval.
|
|
*
|
|
* @retval TRC_FAIL Failure
|
|
* @retval TRC_SUCCESS Success
|
|
*/
|
|
traceResult xTraceIntervalCreate( const char * szName,
|
|
TraceIntervalHandle_t * pxIntervalHandle );
|
|
|
|
/**
|
|
* @brief Starts trace interval.
|
|
*
|
|
* @param[in] xIntervalHandle Pointer to initialized trace interval.
|
|
*
|
|
* @retval TRC_FAIL Failure
|
|
* @retval TRC_SUCCESS Success
|
|
*/
|
|
traceResult xTraceIntervalStart( TraceIntervalHandle_t xIntervalHandle );
|
|
|
|
/**
|
|
* @brief Stops trace interval.
|
|
*
|
|
* @param[in] xIntervalHandle Pointer to initialized trace interval.
|
|
*
|
|
* @retval TRC_FAIL Failure
|
|
* @retval TRC_SUCCESS Success
|
|
*/
|
|
traceResult xTraceIntervalStop( TraceIntervalHandle_t xIntervalHandle );
|
|
|
|
/**
|
|
* @brief Gets trace interval state.
|
|
*
|
|
* @param[in] xIntervalHandle Pointer to initialized trace interval.
|
|
* @param[out] puxState State.
|
|
*
|
|
* @retval TRC_FAIL Failure
|
|
* @retval TRC_SUCCESS Success
|
|
*/
|
|
traceResult xTraceIntervalGetState( TraceIntervalHandle_t xIntervalHandle,
|
|
uint32_t * puxState );
|
|
|
|
/** @} */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* (TRC_CFG_RECORDER_MODE == TRC_RECORDER_MODE_STREAMING) */
|
|
|
|
#endif /* (TRC_USE_TRACEALYZER_RECORDER == 1) */
|
|
|
|
#endif /* TRC_INTERVAL_H */
|