ITM Library
itm.h
Go to the documentation of this file.
1 /*
2  * ITM Library - itm.h
3  *
4  * ITM Example public functions.
5  *
6  * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
7  *
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions
11  * are met:
12  *
13  * Redistributions of source code must retain the above copyright
14  * notice, this list of conditions and the following disclaimer.
15  *
16  * Redistributions in binary form must reproduce the above copyright
17  * notice, this list of conditions and the following disclaimer in the
18  * documentation and/or other materials provided with the
19  * distribution.
20  *
21  * Neither the name of Texas Instruments Incorporated nor the names of
22  * its contributors may be used to endorse or promote products derived
23  * from this software without specific prior written permission.
24  *
25  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36  *
37 */
38 #ifndef __ITM_H
39 #define __ITM_H
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
141 #include <stdint.h>
142 
149 typedef unsigned ITM_port_t;
150 
151 // Note - the version definitions must have the end of line immediately after the value (packaging script requirement)
152 #define ITMLIB_MAJOR_VERSION (0x1)
153 
154 #define ITMLIB_MINOR_VERSION (0x0)
155 
159 typedef enum {
167 }eITM_Error;
168 
172 #define ITM_NUM_PORTS 32
188 eITM_Error ITM_getFirstError(void);
189 
212 eITM_Error ITM_put_string(const char* data);
213 
234 eITM_Error ITM_put_32(ITM_port_t port, uint32_t data);
235 
256 eITM_Error ITM_put_16(ITM_port_t port, uint16_t data);
257 
278 eITM_Error ITM_put_8(ITM_port_t port, uint8_t data);
279 
280 #ifdef __cplusplus
281 }
282 #endif
283 
284 #endif /* __ITM_H */
Definition: itm.h:165
Definition: itm.h:160
eITM_Error ITM_put_8(ITM_port_t port, uint8_t data)
Definition: itm.h:161
Definition: itm.h:166
eITM_Error ITM_put_string(const char *data)
unsigned ITM_port_t
Definition: itm.h:149
eITM_Error ITM_put_16(ITM_port_t port, uint16_t data)
eITM_Error ITM_put_32(ITM_port_t port, uint32_t data)
eITM_Error
Definition: itm.h:159