comparison src/condat2/com/include/cl_shrd.h @ 3:93999a60b835

src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Sep 2016 00:29:36 +0000
parents
children
comparison
equal deleted inserted replaced
2:c41a534f33c6 3:93999a60b835
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : COMLIB
4 | Modul : cl_shrd
5 +-----------------------------------------------------------------------------
6 | Copyright 2002 Texas Instruments Berlin, AG
7 | All rights reserved.
8 |
9 | This file is confidential and a trade secret of Texas
10 | Instruments Berlin, AG
11 | The receipt of or possession of this file does not convey
12 | any rights to reproduce or disclose its contents or to
13 | manufacture, use, or sell anything it may describe, in
14 | whole, or in part, without the specific written consent of
15 | Texas Instruments Berlin, AG.
16 +-----------------------------------------------------------------------------
17 | Purpose : Definitions of global types used by common library functions
18 | and the prototypes of those functions.
19 +-----------------------------------------------------------------------------
20 */
21 /*
22 * Version 1.0
23 */
24
25 /**********************************************************************************/
26 #ifndef CL_SHRD_H
27 #define CL_SHRD_H
28
29 /*====STRUCTURE DEFINITION=========================================*/
30
31 typedef struct
32 {
33 UBYTE service_mode;
34 U16 lac;
35 U8 mcc [3];
36 U8 mnc [3];
37 USHORT cell_id;
38 }T_LOC_INFO;
39
40 typedef struct
41 {
42 UBYTE me_status;
43 UBYTE tm_adv;
44 }T_TIM_ADV;
45
46 typedef struct
47 {
48 T_LOC_INFO location_info;
49 T_TIM_ADV timing_advance;
50 }T_SHRD_DATA;
51
52 EXTERN T_SHRD_DATA *shared_data;
53 /*=================================================================*/
54
55 /*====FUNCTION PROTOTYPE===========================================*/
56
57 EXTERN void cl_shrd_init (T_HANDLE handle);
58 EXTERN void cl_shrd_exit (void);
59 EXTERN BOOL cl_shrd_get_loc (T_LOC_INFO *loc_info);
60 EXTERN void cl_shrd_set_loc (T_LOC_INFO *loc_info);
61 EXTERN BOOL cl_shrd_get_tim_adv(T_TIM_ADV *tim_adv);
62 EXTERN void cl_shrd_set_tim_adv(T_TIM_ADV *tim_adv);
63
64 /*=================================================================*/
65 #endif /* CL_SHRD_H */