AM263Px MCU+ SDK: enet_trace.h Source File

| AM263Px MCU+ SDK 26.00.00 |

enet_trace.h
Go to the documentation of this file.
1 /*
2 * Copyright (c) Texas Instruments Incorporated 2020
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 *
11 * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the
14 * distribution.
15 *
16 * Neither the name of Texas Instruments Incorporated nor the names of
17 * its contributors may be used to endorse or promote products derived
18 * from this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
47 #ifndef ENET_TRACE_H_
48 #define ENET_TRACE_H_
49
50 /* ========================================================================== */
51 /* Include Files */
52 /* ========================================================================== */
53
54 #include <stdint.h>
55
56 #ifdef __cplusplus
57 extern "C" {
58 #endif
59
60 /* ========================================================================== */
61 /* Macros */
62 /* ========================================================================== */
63
65 #define ENET_CFG_TRACE_LEVEL_NONE (0U)
66
68 #define ENET_CFG_TRACE_LEVEL_ERROR (1U)
69
71 #define ENET_CFG_TRACE_LEVEL_WARN (2U)
72
74 #define ENET_CFG_TRACE_LEVEL_INFO (3U)
75
77 #define ENET_CFG_TRACE_LEVEL_DEBUG (4U)
78
80 #define ENET_CFG_TRACE_LEVEL_VERBOSE (5U)
81
83 #ifndef ENET_CFG_TRACE_LEVEL
84 #define ENET_CFG_TRACE_LEVEL (ENET_CFG_TRACE_LEVEL_INFO)
85 #endif
86
88 #define ENET_CFG_TRACE_FORMAT_FUNC (0U)
89
91 #define ENET_CFG_TRACE_FORMAT_FILE (1U)
92
94 #define ENET_CFG_TRACE_FORMAT_FULL (2U)
95
97 #ifndef ENET_CFG_TRACE_TRACE_FORMAT
98 #define ENET_CFG_TRACE_TRACE_FORMAT (ENET_CFG_TRACE_FORMAT_FUNC)
99 #endif
100
101 /* ========================================================================== */
102 /* Structures and Enums */
103 /* ========================================================================== */
104
108 typedef enum
109 {
111 ENET_TRACE_NONE = 0U,
112
114 ENET_TRACE_ERROR = 1U,
115
117 ENET_TRACE_WARN = 2U,
118
124 ENET_TRACE_INFO = 3U,
125
135 ENET_TRACE_DEBUG = 4U,
136
146 ENET_TRACE_VERBOSE = 5U,
147 } EnetTrace_TraceLevel;
148
149 /* ========================================================================== */
150 /* Global Variables Declarations */
151 /* ========================================================================== */
152
153 /* None */
154
155 /* ========================================================================== */
156 /* Function Declarations */
157 /* ========================================================================== */
158
159 /* None */
160
161 /* ========================================================================== */
162 /* Deprecated Function Declarations */
163 /* ========================================================================== */
164
165 /* None */
166
167 #ifdef __cplusplus
168 }
169 #endif
170
171 #endif /* ENET_TRACE_H_ */
172
EnetTrace_TraceLevel
EnetTrace_TraceLevel
Enumerates the types of trace level.
Definition: enet_trace.h:109
ENET_TRACE_VERBOSE
@ ENET_TRACE_VERBOSE
Definition: enet_trace.h:146
ENET_TRACE_DEBUG
@ ENET_TRACE_DEBUG
Definition: enet_trace.h:135
ENET_TRACE_INFO
@ ENET_TRACE_INFO
Definition: enet_trace.h:124
ENET_TRACE_NONE
@ ENET_TRACE_NONE
Definition: enet_trace.h:111
ENET_TRACE_WARN
@ ENET_TRACE_WARN
Definition: enet_trace.h:117
ENET_TRACE_ERROR
@ ENET_TRACE_ERROR
Definition: enet_trace.h:114