Percepio Trace Recorder v4.8.0.hotfix1
Loading...
Searching...
No Matches
trcTimestamp.h File Reference

Public trace timestamp APIs. More...

#include <trcTypes.h>

Go to the source code of this file.

Data Structures

struct  TraceTimestampData
 Trace Timestamp Structure. More...
 

Macros

#define xTraceTimestampGet(puiTimestamp)   TRC_COMMA_EXPR_TO_STATEMENT_EXPR_4(*(puiTimestamp) = TRC_HWTC_COUNT, (*(puiTimestamp) < pxTraceTimestamp->latestTimestamp) ? pxTraceTimestamp->wraparounds++ : 0, pxTraceTimestamp->latestTimestamp = *(puiTimestamp), TRC_SUCCESS)
 Gets current trace timestamp.
 
#define xTraceTimestampGetWraparounds(puiTimerWraparounds)   TRC_COMMA_EXPR_TO_STATEMENT_EXPR_2(*(puiTimerWraparounds) = pxTraceTimestamp->wraparounds, TRC_SUCCESS)
 Gets trace timestamp wraparounds.
 
#define xTraceTimestampSetFrequency(uxFrequency)   TRC_COMMA_EXPR_TO_STATEMENT_EXPR_2(pxTraceTimestamp->frequency = uxFrequency, TRC_SUCCESS)
 Sets trace timestamp frequency.
 
#define xTraceTimestampSetPeriod(uiPeriod)   TRC_COMMA_EXPR_TO_STATEMENT_EXPR_2(pxTraceTimestamp->period = uiPeriod, TRC_SUCCESS)
 Sets trace timestamp period.
 
#define xTraceTimestampSetOsTickCount(uiOsTickCount)   TRC_COMMA_EXPR_TO_STATEMENT_EXPR_2(pxTraceTimestamp->osTickCount = uiOsTickCount, TRC_SUCCESS)
 Sets trace timestamp OS tick count.
 
#define xTraceTimestampGetFrequency(puxFrequency)   TRC_COMMA_EXPR_TO_STATEMENT_EXPR_2(*(puxFrequency) = pxTraceTimestamp->frequency, TRC_SUCCESS)
 Gets trace timestamp frequency.
 
#define xTraceTimestampGetPeriod(puiPeriod)   TRC_COMMA_EXPR_TO_STATEMENT_EXPR_2(*(puiPeriod) = pxTraceTimestamp->period, TRC_SUCCESS)
 Gets trace timestamp period.
 
#define xTraceTimestampGetOsTickCount(puiOsTickCount)   TRC_COMMA_EXPR_TO_STATEMENT_EXPR_2(*(puiOsTickCount) = pxTraceTimestamp->osTickCount, TRC_SUCCESS)
 Gets trace timestamp OS tick count.
 

Typedefs

typedef struct TraceTimestampData TraceTimestampData_t
 Trace Timestamp Structure.
 

Detailed Description

Public trace timestamp APIs.