FreeCalypso > hg > freecalypso-citrine
comparison services/etm/etm_api.h @ 0:75a11d740a02
initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 09 Jun 2016 00:02:41 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:75a11d740a02 |
---|---|
1 /******************************************************************************** | |
2 * Enhanced TestMode (ETM) | |
3 * @file etm_api.c | |
4 * | |
5 * API for ETM SWE. | |
6 * | |
7 * @author Kim T. Peteren (ktp@ti.com) | |
8 * @version 0.1 | |
9 * | |
10 | |
11 * | |
12 * History: | |
13 * | |
14 * Date Modification | |
15 * ------------------------------------ | |
16 * 11/06/2003 Creation | |
17 * | |
18 * (C) Copyright 2003 by Texas Instruments Incorporated, All Rights Reserved | |
19 *********************************************************************************/ | |
20 | |
21 | |
22 #ifndef __ETM_API_H_ | |
23 #define __ETM_API_H_ | |
24 | |
25 #include "etm_misc.h" | |
26 #include "etm_messages_i.h" | |
27 | |
28 /****************************************************************************** | |
29 * ETM Packet | |
30 *****************************************************************************/ | |
31 | |
32 typedef struct { | |
33 T_RV_HDR header; | |
34 char size; | |
35 uint8 data[255]; | |
36 } T_ETM_MAIL; | |
37 | |
38 | |
39 /****************************************************************************** | |
40 * Messages | |
41 *****************************************************************************/ | |
42 | |
43 /* Event return to entity */ | |
44 #define ETM_DATA_READY (ETM_MESSAGES_OFFSET | 0x010) | |
45 typedef struct | |
46 { | |
47 T_RV_HDR header; | |
48 char data[255]; | |
49 } T_ETM_DATA_READY; | |
50 | |
51 | |
52 /****************************************************************************** | |
53 * Prototypes | |
54 *****************************************************************************/ | |
55 | |
56 int etm_register(char name[], int mid, int task_id, T_RVF_ADDR_ID addr_id, ETM_CALLBACK_FUNC callback); | |
57 int etm_unregister(char name[], int mid, int task_id, T_RVF_ADDR_ID addr_id, ETM_CALLBACK_FUNC callback); | |
58 | |
59 int etm_pkt_send(T_ETM_PKT *pkt); | |
60 int etm_pkt_putdata(T_ETM_PKT *pkt, const void *buf, int size); | |
61 | |
62 int etm_get8(void *buf); | |
63 int etm_get16(void *buf); | |
64 int etm_get32(void *buf); | |
65 | |
66 int etm_pkt_put8(T_ETM_PKT *p, int value); | |
67 int etm_pkt_put16(T_ETM_PKT *p, int value); | |
68 int etm_pkt_put32(T_ETM_PKT *p, int value); | |
69 | |
70 #endif /* __ETM_API_H_ */ |