comparison src/condat3/com/include/cl_shrd.h @ 18:c8bd5a927942

src/condat3: import of "condat" tree from TCS3.2, pruned
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 27 Sep 2016 21:25:36 +0000
parents
children
comparison
equal deleted inserted replaced
17:6323e661f2ed 18:c8bd5a927942
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 #ifdef TI_PS_FF_AT_P_CMD_CTREG
30 #define MAX_CTREG_TAB_LEN 25
31 #endif /* TI_PS_FF_AT_P_CMD_CTREG */
32
33 /* ME STATUS for Timing advance structure */
34 #define ME_STATUS_IDLE 0
35 #define ME_STATUS_NOT_IDLE 1
36
37
38 /*====STRUCTURE DEFINITION=========================================*/
39
40 typedef struct
41 {
42 UBYTE service_mode;
43 U16 lac;
44 U8 mcc [3];
45 U8 mnc [3];
46 USHORT cell_id;
47 }T_LOC_INFO;
48
49 typedef struct
50 {
51 UBYTE me_status;
52 UBYTE tm_adv;
53 }T_TIM_ADV;
54
55 #ifdef TI_PS_FF_AT_P_CMD_CTREG
56 typedef enum
57 {
58 MODE_NotPresent = 0,
59 TREG_READ_MODE,
60 TREG_WRITE_MODE
61 }T_TREG_MODE;
62
63 typedef enum
64 {
65 MODE_TIME_NotPresent = 0,
66 NOSERVICE_MODE_TIME,
67 LIMSERVICE_MODE_TIME
68 }T_TREG_TABLE;
69
70 typedef struct
71 {
72 T_TREG_MODE mode;
73 T_TREG_TABLE tab_id;
74 UBYTE tab_val[25];
75 }T_TREG;
76 #endif /* TI_PS_FF_AT_P_CMD_CTREG */
77
78 typedef struct
79 {
80 T_LOC_INFO location_info;
81 T_TIM_ADV timing_advance;
82 #ifdef TI_PS_FF_AT_P_CMD_CTREG
83 UBYTE no_serv_mod_time[25];
84 UBYTE lim_serv_mod_time[25];
85 #endif /* TI_PS_FF_AT_P_CMD_CTREG */
86 }T_SHRD_DATA;
87
88 EXTERN T_SHRD_DATA *shared_data;
89
90 #ifdef TI_PS_FF_AT_P_CMD_CTREG
91 EXTERN const UBYTE no_service_mode_time[25];
92 EXTERN const UBYTE lim_service_mode_time[25];
93 #endif /* TI_PS_FF_AT_P_CMD_CTREG */
94
95 /*=================================================================*/
96
97 /*====FUNCTION PROTOTYPE===========================================*/
98
99 EXTERN void cl_shrd_init (T_HANDLE handle);
100 EXTERN void cl_shrd_exit (void);
101 EXTERN BOOL cl_shrd_get_loc (T_LOC_INFO *loc_info);
102 EXTERN void cl_shrd_set_loc (T_LOC_INFO *loc_info);
103 EXTERN BOOL cl_shrd_get_tim_adv(T_TIM_ADV *tim_adv);
104 EXTERN void cl_shrd_set_tim_adv(T_TIM_ADV *tim_adv);
105
106 #ifdef TI_PS_FF_AT_P_CMD_CTREG
107 EXTERN BOOL cl_shrd_set_treg_val(T_TREG *treg);
108 EXTERN BOOL cl_shrd_get_treg_val(T_TREG *treg);
109 EXTERN BOOL cl_shrd_get_treg (UBYTE tab_id, UBYTE offset, UBYTE *tab_val);
110 #endif /* TI_PS_FF_AT_P_CMD_CTREG */
111
112 /*=================================================================*/
113 #endif /* CL_SHRD_H */