1 /*
2 * Percepio Trace Recorder for Tracealyzer v4.6.6
3 * Copyright 2021 Percepio AB
4 * www.percepio.com
5 *
6 * SPDX-License-Identifier: Apache-2.0
7 *
8 * The common types.
9 */
10 
11 #ifndef TRC_TYPES_H
12 #define TRC_TYPES_H
13 
14 #include <stdint.h>
15 #include <trcConfig.h>
16 #include <trcHardwarePort.h>
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 #ifndef TRC_BASE_TYPE
23 #define TRC_BASE_TYPE int32_t
24 #endif
25 
26 #ifndef TRC_UNSIGNED_BASE_TYPE
27 #define TRC_UNSIGNED_BASE_TYPE uint32_t
28 #endif
29 
30 typedef TRC_UNSIGNED_BASE_TYPE TraceUnsignedBaseType_t;
31 
32 typedef TRC_BASE_TYPE TraceBaseType_t;
33 
34 typedef TraceUnsignedBaseType_t traceResult;
35 
36 typedef TraceUnsignedBaseType_t TraceEventHandle_t;
37 
38 typedef TraceUnsignedBaseType_t TraceISRHandle_t;
39 
40 typedef TraceUnsignedBaseType_t TraceEntryHandle_t;
41 
42 typedef TraceUnsignedBaseType_t TraceTaskHandle_t;
43 
44 typedef TraceUnsignedBaseType_t TraceObjectHandle_t;
45 
46 typedef TraceUnsignedBaseType_t TraceExtensionHandle_t;
47 
48 typedef TraceUnsignedBaseType_t TraceHeapHandle_t;
49 
50 typedef TraceUnsignedBaseType_t TraceIntervalChannelSetHandle_t;
51 
52 typedef TraceUnsignedBaseType_t TraceIntervalChannelHandle_t;
53 
54 typedef TraceUnsignedBaseType_t TraceIntervalInstanceHandle_t;
55 
56 typedef TraceUnsignedBaseType_t TraceStateMachineHandle_t;
57 
58 typedef TraceUnsignedBaseType_t TraceStateMachineStateHandle_t;
59 
60 typedef TraceUnsignedBaseType_t TraceStringHandle_t;
61 
62 typedef TraceUnsignedBaseType_t TraceCounterHandle_t;
63 
64 typedef void (*TraceCounterCallback_t)(TraceCounterHandle_t xCounterHandle);
65 
66 /* DEPRECATED. Backwards compatibility */
67 typedef TraceStringHandle_t traceString;
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif /* TRC_TYPES_H */
74