comparison gsm-fw/gpf/inc/tst_mux.h @ 316:79080922d8e4

GPF: FRAME C sources and include files imported from LoCosto source
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 10 Apr 2014 04:06:05 +0000
parents
children
comparison
equal deleted inserted replaced
315:1b4beffc8055 316:79080922d8e4
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 */