comparison src/g23m-gprs/grr/grr_csf.h @ 183:219afcfc6250

src/g23m-gprs: initial import from TCS3.2/LoCosto
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 13 Oct 2016 04:24:13 +0000
parents
children
comparison
equal deleted inserted replaced
182:f02d0a0e1849 183:219afcfc6250
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 CS.
18 +-----------------------------------------------------------------------------
19 */
20
21 #ifndef GRR_CSF_H
22 #define GRR_CSF_H
23
24 #define CRDM_T_RESELECT 0 /* timer T_RESELECT has expired */
25 #define CRDM_CR_CTRL 1 /* cell re-selection request by CTRL */
26 #define CRDM_CR_INITIAL 2 /* initial cell re-selection request by CS */
27 #define CRDM_CR_CONT 3 /* any cell re-selection request after */
28 /* the initial one initiated by CS */
29 typedef UBYTE T_CRDM; /* cell re-selection decision mode */
30
31 EXTERN void cs_grr_init ( void );
32
33 EXTERN void cs_process_cc_order ( T_nc_meas_par *nc_meas_par,
34 UBYTE v_nc_freq_list,
35 T_nc_freq_list *nc_freq_list
36 #if defined (REL99) AND defined (TI_PS_FF_EMR)
37 , UBYTE v_enh_meas_param_pcco,
38 T_enh_meas_param_pcco *enh_meas_param_pcco
39 #endif
40 );
41
42 EXTERN void cs_calc_params ( void );
43
44 EXTERN void cs_store_meas_values ( void );
45
46 EXTERN void cs_store_rxlev_values( void );
47
48 EXTERN BOOL cs_find_strongest ( ULONG fn_offset );
49
50 EXTERN void cs_update_bsic ( void );
51
52
53 EXTERN T_NC_ORDER cs_get_network_ctrl_order
54 ( BOOL consider_gmm_state );
55
56 EXTERN void cs_reset_nc_change_mark
57 ( T_SC_DATABASE *db );
58
59 EXTERN void cs_reset_meas_rep_params
60 ( T_SC_DATABASE *db );
61
62 EXTERN void cs_compare_bsic ( T_RRGRR_NCELL_SYNC_IND *rrgrr_check_bsic_ind );
63
64 EXTERN void cs_calc_cr_criterion ( T_CR_CRITERIONS *cr_crit,
65 USHORT arfcn,
66 T_rla_p *rla_p,
67 T_CR_PAR_1 *cr_par_1 );
68
69 EXTERN void cs_get_best_cell ( T_NC_SIX_STRGST **nc,
70 T_scell_info **sc );
71
72 EXTERN UBYTE cs_get_cr_meas_mode ( void );
73
74 EXTERN void cs_send_cr_meas_req ( UBYTE del_meas_rslt );
75
76 EXTERN void cs_send_cr_meas_stop_req
77 ( void );
78
79 EXTERN void cs_send_update_ba_req
80 ( T_SC_DATABASE *db );
81
82 EXTERN void cs_send_meas_rep_req ( UBYTE cause );
83
84 EXTERN void cs_store_meas_rep_cnf
85 ( T_RRGRR_MEAS_REP_CNF *rrgrr_meas_rep_cnf );
86
87 EXTERN void cs_build_strongest ( void );
88
89 EXTERN BOOL cs_send_meas_rpt ( BOOL perfrom_init );
90
91 EXTERN void cs_start_t_reselect ( void );
92
93 EXTERN void cs_stop_t_reselect ( void );
94
95 EXTERN void cs_process_t3158 ( void );
96
97 EXTERN UBYTE cs_is_meas_reporting ( void );
98
99 EXTERN void cs_cancel_meas_report
100 ( void );
101
102 EXTERN void cs_build_nc_ref_list ( T_SC_DATABASE *db,
103 BOOL is_dsf );
104
105 EXTERN void cs_init_nc_ref_list ( T_NC_REF_LIST *list );
106
107 EXTERN BOOL cs_find_candidate ( void );
108
109 EXTERN BOOL cs_cr_decision ( T_CRDM mode );
110
111 EXTERN void cs_init_nc_mval_lst ( void );
112
113 EXTERN void cs_stop_cr_meas ( void );
114
115 EXTERN void cs_req_cr_meas ( void );
116
117 EXTERN void cs_fill_cr_meas_req ( T_MPHP_CR_MEAS_REQ *prim, UBYTE id );
118
119 EXTERN void cs_reset_all_cell_results ( void );
120
121 EXTERN void cs_reset_all_rxlev_results( void );
122
123 EXTERN void cs_reset_meas_result ( T_CELL *cell );
124
125 EXTERN void cs_fill_meas_rslt ( T_MPHP_CR_MEAS_IND *mphp_cr_meas_ind,
126 T_MPHP_TCR_MEAS_IND *mphp_tcr_meas_ind );
127
128 EXTERN BOOL cs_get_rla_p ( T_RLA_P_DATA *rla_p_data,
129 UBYTE *rla_p );
130
131 EXTERN T_RXLEV_AVG cs_get_rxlev_avg ( T_RXLEV_DATA *rxlev_data );
132
133 EXTERN void cs_tcr_meas_ind_to_pl ( T_MPHP_TCR_MEAS_IND * prim );
134
135 EXTERN T_NC_MVAL* cs_create_cr_cell ( USHORT arfcn, UBYTE bsic );
136
137 EXTERN void cs_stop_t3158 ( void );
138
139 EXTERN void cs_check_nc_sync_timer(USHORT reporting_pd);
140
141 #if defined (REL99) AND defined (TI_PS_FF_EMR)
142 EXTERN BOOL cs_send_enh_meas_rpt ( void );
143 EXTERN BOOL cs_is_enh_meas_reporting ( void );
144 EXTERN void cs_init_ba_bcch_nc_ref_list ( void );
145 #endif
146
147 #endif /* !GRR_CSF_H */
148