comparison src/g23m-gprs/grr/grr_ctrlf.h @ 1:fa8dc04885d8

src/g23m-*: import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:25:50 +0000
parents
children
comparison
equal deleted inserted replaced
0:4e78acac3d88 1:fa8dc04885d8
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GPRS (8441)
4 | Modul : GRR
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 for service CTRL.
18 +-----------------------------------------------------------------------------
19 */
20
21 #ifndef GRR_CTRLF_H
22 #define GRR_CTRLF_H
23
24 typedef enum
25 {
26 CTRL_CR_TYPE_CS,
27 CTRL_CR_TYPE_NEW,
28 CTRL_CR_TYPE_NEW_NOT_SYNCED,
29 CTRL_CR_TYPE_NEW_PBCCH_INFO,
30 CTRL_CR_TYPE_CONT
31 } T_CTRL_CR_TYPE;
32
33 typedef enum
34 {
35 CTRL_DC_OTHER,
36 CTRL_DC_SUSPEND_NORMAL,
37 CTRL_DC_SUSPEND_IMM_REL,
38 CTRL_DC_CR_NW_RR,
39 CTRL_DC_CR_NW_GRR,
40 CTRL_DC_CR_MS_RR_NORMAL,
41 CTRL_DC_CR_MS_RR_IMM_REL,
42 CTRL_DC_CR_MS_GRR_NORMAL,
43 CTRL_DC_CR_MS_GRR_ABNORMAL,
44 CTRL_DC_PSI_MANAGEMENT
45 } T_CTRL_DISABLE_CAUSE;
46
47 typedef enum
48 {
49 CCO_TYPE_RR,
50 CCO_TYPE_GRR
51 } T_CTRL_CCO_TYPE;
52
53 #define SET_STATE_FAILED_CR( state ) \
54 if( state EQ CTRL_CR ) \
55 { \
56 SET_STATE( CTRL, CTRL_FAILED_CR ); \
57 } \
58 else \
59 { \
60 SET_STATE( CTRL, CTRL_FAILED_CR_IN_SUSP ); \
61 }
62
63
64 typedef BOOL ( * T_TC_ACCESS_ENABLE_FUNC )( BOOL cell_has_changed );
65
66
67 EXTERN void ctrl_stop_T3174 ( void );
68
69 EXTERN void ctrl_start_T3174 ( void );
70
71 EXTERN void ctrl_stop_all_activities ( T_CTRL_DISABLE_CAUSE dc, void *data );
72
73 EXTERN void ctrl_init ( void );
74
75 EXTERN void ctrl_init_params ( void );
76
77 EXTERN void ctrl_start_monitoring_bcch ( UBYTE si_to_read );
78
79 EXTERN void ctrl_stop_monitoring_ccch ( void );
80
81 EXTERN void ctrl_start_monitoring_ccch ( UBYTE pag_mode );
82
83 EXTERN void ctrl_send_rr_est_req ( UBYTE susp_req );
84
85 EXTERN void ctrl_send_rr_est_rsp ( UBYTE susp_req, UBYTE rsp );
86
87 EXTERN void ctrl_suspend_services ( UBYTE susp_cause );
88
89 EXTERN void ctrl_copy_non_gprs_opt ( T_non_gprs *p_non_gprs_opt);
90
91 EXTERN BOOL ctrl_is_gprs_suspension_request_needed ( void );
92
93 EXTERN UBYTE ctrl_get_number_of_digits ( UBYTE *digits );
94
95 EXTERN void ctrl_send_cell_reselection_req ( UBYTE cr_type );
96
97 EXTERN void ctrl_start_cell_reselection ( T_CTRL_CR_TYPE ctrl_cr_type,
98 BOOL initial );
99
100 EXTERN BOOL ctrl_cell_has_changed ( void );
101
102 EXTERN void ctrl_send_cell_ind ( void );
103
104 EXTERN void ctrl_enable_serving_cell ( UBYTE final );
105
106 EXTERN void ctrl_install_new_scell ( void );
107
108 EXTERN void ctrl_reinstall_old_scell_req ( BOOL is_pcco, UBYTE cause );
109
110 EXTERN void ctrl_reinstall_old_scell_cnf ( BOOL is_success );
111
112 EXTERN void ctrl_copy_pbcch_des_from_ncell ( T_SC_DATABASE *db );
113
114 EXTERN void ctrl_sync_to_given_cell ( void );
115
116 EXTERN void ctrl_send_access_disable_if_needed ( T_TC_DISABLE_CAUSE disable_cause,
117 T_TC_DISABLE_CALLBACK_FUNC callback_func );
118
119 EXTERN BOOL ctrl_copy_scell_params ( T_serving_cell_info *sc_inf );
120
121 EXTERN void ctrl_copy_cell_env( T_cell_env *cell_env,
122 T_serving_cell_info *scell_info );
123
124 EXTERN void ctrl_cell_change_order ( T_CTRL_CCO_TYPE type, void *data );
125
126 EXTERN void ctrl_send_reconnect_dcch_req ( UBYTE cause );
127
128 EXTERN void ctrl_pcco_failure ( void );
129
130 EXTERN void ctrl_build_pcco_failure_msg ( USHORT arfcn, UBYTE bsic );
131
132 EXTERN void ctrl_si13_received ( T_RRGRR_GPRS_SI13_IND * rrgrr_si13_ind );
133
134 EXTERN void ctrl_cc_rejected ( void );
135
136 EXTERN void ctrl_failure_processing ( T_FAILURE_SIGNAL fail_sig );
137
138 EXTERN void ctrl_send_control_block ( T_BLK_OWNER blk_owner,
139 void * blk_struct );
140
141 EXTERN void ctrl_cancel_control_block ( T_BLK_OWNER blk_owner );
142
143 EXTERN void ctrl_send_control_block_result ( T_BLK_OWNER blk_owner,
144 BOOL is_success );
145
146 EXTERN void ctrl_resp_resume ( void );
147
148 EXTERN void ctrl_handle_new_candidate ( BOOL initial );
149
150 EXTERN void ctrl_handle_no_more_candidate ( T_CTRL_CR_TYPE ctrl_cr_type, BOOL initial );
151
152 EXTERN void ctrl_start_rr_task ( UBYTE state );
153
154 EXTERN void ctrl_stop_rr_task_req ( T_GLBL_PCKT_MODE final_pckt_mode, UBYTE param );
155
156 EXTERN void ctrl_stop_rr_task_cnf ( BOOL change_pckt_mode );
157
158 EXTERN void ctrl_send_rrgrr_stop_task_req ( T_CTRL_TASK ctrl_task, UBYTE param );
159
160 EXTERN void ctrl_set_old_scell ( BOOL service );
161
162 EXTERN void ctrl_send_gmmrr_cr_ind ( void );
163
164 EXTERN void ctrl_tc_access_enable ( T_TC_ACCESS_ENABLE_FUNC access_enable_func );
165
166 EXTERN T_GPRS_SERVICE ctrl_get_gprs_service ( void );
167
168 EXTERN void ctrl_set_gprs_service ( UBYTE cause, UBYTE limited );
169
170 EXTERN void ctrl_send_gmmrr_suspend_cnf ( void );
171
172 EXTERN void ctrl_handle_gmmrr_cs_page_ind( UBYTE state );
173
174 EXTERN void ctrl_handle_parked_rrgrr_cr_ind( UBYTE state );
175
176 EXTERN void ctrl_read_pcm ( void );
177
178 EXTERN void ctrl_enter_standby_state( void );
179
180 EXTERN void ctrl_enter_ready_state( void );
181
182 #ifdef REL99
183 EXTERN BOOL ctrl_fill_cbch_hopping_params(T_cbch *cbch_req,const T_freq_par *freq_par);
184 #endif
185
186 #endif /* !GRR_CTRLF_H */
187