comparison gpf/INC/tst_mux.h @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
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 */