Percepio Trace Recorder v4.11.0
Loading...
Searching...
No Matches
trcCounter.h File Reference

Public trace counter APIs. More...

#include <trcTypes.h>

Go to the source code of this file.

Macros

#define xTraceCounterAdd(xCounterHandle, xValue)
 Adds value to trace counter.
#define xTraceCounterGet(xCounterHandle, pxValue)
 Gets trace counter value.
#define xTraceCounterIncrease(xCounterHandle)
 Increases trace counter value.
#define xTraceCounterDecrease(xCounterHandle)
 Decreases trace counter value.
#define xTraceCounterGetUpperLimit(xCounterHandle, pxValue)
 Gets trace counter upper limit.
#define xTraceCounterGetLowerLimit(xCounterHandle, pxValue)
 Gets trace counter lower limit.
#define xTraceCounterGetName(xCounterHandle, pszName)
 Gets trace counter name.

Functions

traceResult xTraceCounterInitialize (TraceCounterData_t *pxBuffer)
 Initializes the Counter trace system.
traceResult xTraceCounterSetCallback (TraceCounterCallback_t xCallback)
 Sets trace counter callback.
traceResult xTraceCounterCreate (const char *szName, TraceBaseType_t xInitialValue, TraceBaseType_t xLowerLimit, TraceBaseType_t xUpperLimit, TraceCounterHandle_t *pxCounterHandle)
 Creates trace counter.
traceResult xTraceCounterSet (TraceCounterHandle_t xCounterHandle, TraceBaseType_t xValue)
 Sets trace counter value.

Detailed Description

Public trace counter APIs.