comparison src/gpf3/inc/tst_mux.h @ 2:c41a534f33c6

src/gpf3: preened GPF goo from TCS3.2
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 25 Sep 2016 23:52:50 +0000
parents
children
comparison
equal deleted inserted replaced
1:864b8cc0cf63 2:c41a534f33c6
1 /*
2 +------------------------------------------------------------------------------
3 | File: tst_mux.h
4 +------------------------------------------------------------------------------
5 | Copyright 2002 Texas Instruments Berlin, AG
6 | All rights reserved.
7 |
8 | This file is confidential and a trade secret of Texas
9 | Instruments Berlin, AG
10 | The receipt of or possession of this file does not convey
11 | any rights to reproduce or disclose its contents or to
12 | manufacture, use, or sell anything it may describe, in
13 | whole, or in part, without the specific written consent of
14 | Texas Instruments Berlin, AG.
15 +-----------------------------------------------------------------------------
16 | Purpose : Prototypes for TST multiplexer access
17 +-----------------------------------------------------------------------------
18 */
19
20 #ifndef TST_MUX_H
21 #define TST_MUX_H
22
23 /*==== INCLUDES =============================================================*/
24
25
26 /*==== CONSTS ===============================================================*/
27
28 /* channels for ETM */
29 #define MAX_TST_CHANNEL 2
30
31 #define MAX_TST_MUX_CMD_LEN 512
32
33 /*==== TYPES ================================================================*/
34
35 typedef struct
36 {
37 U8 channel_id;
38 void * rcv_data_ptr;
39 int rcv_data_size;
40 void (*rcv_callback)(void *,int);
41 T_HANDLE drv_handle;
42 void * send_data;
43 } T_TST_MUX_CHANNEL;
44
45 /*==== PROTOTYPES ===========================================================*/
46
47 int tst_mux_send ( U8 id, void * buffer, int size );
48 int tst_mux_register ( U8 id, void (*callback)(void * buffer, int size));
49 int tst_mux_init ( void );
50 void tst_mux_callback( U8 id, void * buffer, int size );
51
52
53 #endif /* !TST_MUX_H.H */