comparison src/g23m-gprs/grr/grr_measf.h @ 1:d393cd9bb723

src/g23m-*: initial import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 15 Jul 2018 04:40:46 +0000
parents
children
comparison
equal deleted inserted replaced
0:b6a5e36de839 1:d393cd9bb723
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 MEAS.
18 +-----------------------------------------------------------------------------
19 */
20
21 #ifndef GRR_MEASF_H
22 #define GRR_MEASF_H
23
24 /*==== CONST ================================================================*/
25
26 #define BL_FOR_PAGE_PERIOD_CALC 2
27
28 #define BLOCK_PER_MF 12 /* blocks per multiframe */
29 #define Z_MSEC_PER_FRAME 120
30 #define N_MSEC_PER_FRAME 26
31
32 #define FRAME_PER_MF (ULONG)52 /* frames per GPRS multiframe */
33 #define FRAME_PER_CS_MF (ULONG)51 /* frames per GSM multiframe */
34
35 #define USEC_PER_FRAME (ULONG)((MEAS_ACRCY*Z_MSEC_PER_FRAME)/N_MSEC_PER_FRAME)
36 /* microseconds per frame */
37 #define USEC_PER_MF (ULONG)(FRAME_PER_MF*USEC_PER_FRAME)
38 /* microseconds per multiframe */
39 #define USEC_PER_CS_MF (ULONG)(FRAME_PER_CS_MF*USEC_PER_FRAME)
40 /* microseconds per circuit switched multiframe */
41
42 #define PAGING_CYCLE 64
43
44 #define C_VALUE_IDX_DEFAULT 0
45 #define C_VALUE_DEFAULT 0
46
47 /*==== FUNCTION TYPES =======================================================*/
48
49 EXTERN void meas_im_init ( T_MEAS_IM_MODE im_mode );
50
51 EXTERN T_MEAS_IM_FILTER*
52 meas_im_get_filter ( T_MEAS_IM_CARRIER *ma );
53
54 EXTERN UBYTE meas_im_fill_abs_iLevel( UBYTE *v_ilev,
55 UBYTE *ilev,
56 T_MEAS_IM_FILTER *filter,
57 UBYTE idx );
58
59 EXTERN void meas_im_fill_rel_iLevel( UBYTE *v_ilev,
60 UBYTE *ilev,
61 T_MEAS_IM_FILTER *filter,
62 UBYTE idx );
63
64 EXTERN void meas_im_new_value ( T_MPHP_INT_MEAS_IND *mphp_int_meas_ind,
65 UBYTE state );
66
67 EXTERN void meas_im_cgrlc_int_level_req
68 ( BOOL init );
69
70 EXTERN void meas_im_stop_trns ( void );
71
72 EXTERN void meas_im_stop_idle ( void );
73
74 EXTERN void meas_im_start_trns ( void );
75
76 EXTERN BOOL meas_im_start_idle ( void );
77
78 EXTERN void meas_im_prepare_trns ( void );
79
80 EXTERN void meas_im_prepare_idle ( void );
81
82 EXTERN void meas_im_timer_elapsed ( void );
83
84 EXTERN void meas_im_state_changed ( UBYTE state );
85
86 EXTERN void meas_em_init ( void );
87
88
89 EXTERN UBYTE meas_em_prcs_meas_order( T_D_MEAS_ORDER *d_meas_order,
90 T_NC_ORDER *ctrl_order );
91
92 EXTERN BOOL meas_em_is_valid_pmo_present
93 ( void );
94
95 EXTERN void meas_em_valid_pmo ( void );
96
97 EXTERN void meas_em_valid_psi5 ( void );
98
99
100 EXTERN void meas_em_process_t3178 ( void );
101
102 EXTERN void meas_em_start ( void );
103
104 EXTERN void meas_em_stop_req ( void );
105
106 EXTERN BOOL meas_em_store_rslt ( T_RRGRR_EXT_MEAS_CNF *rrgrr_em_cnf );
107
108 EXTERN BOOL meas_em_send_meas_rpt ( BOOL perfrom_init );
109
110 EXTERN BOOL meas_is_spgc_ccch_supported
111 ( void );
112
113 EXTERN void meas_handle_int_meas_values
114 ( T_MPHP_INT_MEAS_IND *mphp_int_meas_ind,
115 UBYTE *rx_lev );
116
117 EXTERN void meas_c_init ( void );
118
119 EXTERN void meas_c_val_update_pim ( UBYTE rx_lev );
120
121 EXTERN void meas_handle_pwr_par ( void );
122
123 #endif /* !GRR_MEASF_H */
124