FreeCalypso > hg > fc-magnetite
comparison cdg3/cdginc-locosto/p_rrlp.h @ 16:c15047b3d00d
cdg3: import from freecalypso-citrine/cdg
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 27 Sep 2016 16:27:34 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
15:c8bdae60fcb1 | 16:c15047b3d00d |
---|---|
1 /* | |
2 +--------------------------------------------------------------------------+ | |
3 | PROJECT : PROTOCOL STACK | | |
4 | FILE : p_rrlp.h | | |
5 | SOURCE : "sap\rrlp.pdf" | | |
6 | LastModified : "2002-11-13" | | |
7 | IdAndVersion : "8443.102.02.100" | | |
8 | SrcFileTime : "Thu Nov 29 09:53:06 2007" | | |
9 | Generated by CCDGEN_2.5.5A on Thu Sep 25 09:18:53 2014 | | |
10 | !!DO NOT MODIFY!!DO NOT MODIFY!!DO NOT MODIFY!! | | |
11 +--------------------------------------------------------------------------+ | |
12 */ | |
13 | |
14 /* PRAGMAS | |
15 * PREFIX : NONE | |
16 * COMPATIBILITY_DEFINES : NO (require PREFIX) | |
17 * ALWAYS_ENUM_IN_VAL_FILE: NO | |
18 * ENABLE_GROUP: NO | |
19 * CAPITALIZE_TYPENAME: NO | |
20 */ | |
21 | |
22 | |
23 #ifndef P_RRLP_H | |
24 #define P_RRLP_H | |
25 | |
26 | |
27 #define CDG_ENTER__P_RRLP_H | |
28 | |
29 #define CDG_ENTER__FILENAME _P_RRLP_H | |
30 #define CDG_ENTER__P_RRLP_H__FILE_TYPE CDGINC | |
31 #define CDG_ENTER__P_RRLP_H__LAST_MODIFIED _2002_11_13 | |
32 #define CDG_ENTER__P_RRLP_H__ID_AND_VERSION _8443_102_02_100 | |
33 | |
34 #define CDG_ENTER__P_RRLP_H__SRC_FILE_TIME _Thu_Nov_29_09_53_06_2007 | |
35 | |
36 #include "CDG_ENTER.h" | |
37 | |
38 #undef CDG_ENTER__P_RRLP_H | |
39 | |
40 #undef CDG_ENTER__FILENAME | |
41 | |
42 | |
43 #include "p_rrlp.val" | |
44 | |
45 #ifndef __T_assist_data__ | |
46 #define __T_assist_data__ | |
47 /* | |
48 * Assistance Data | |
49 * CCDGEN:WriteStruct_Count==2995 | |
50 */ | |
51 typedef struct | |
52 { | |
53 U16 arfcn; /*< 0: 2> Channel number */ | |
54 U8 bsic; /*< 2: 1> Base station ID code */ | |
55 U8 mfrm_offset; /*< 3: 1> multiframe offset */ | |
56 U8 otd_type; /*< 4: 1> OTD type */ | |
57 U8 _align0; /*< 5: 1> alignment */ | |
58 U16 exp_otd; /*< 6: 2> expectedOTD */ | |
59 U8 uncertainty; /*< 8: 1> Uncertainty of expected OTD */ | |
60 U8 _align1; /*< 9: 1> alignment */ | |
61 U16 rough_rtd; /*< 10: 2> rough RTD */ | |
62 } T_assist_data; | |
63 #endif | |
64 | |
65 #ifndef __T_bts_data__ | |
66 #define __T_bts_data__ | |
67 /* | |
68 * BTS data | |
69 * CCDGEN:WriteStruct_Count==2996 | |
70 */ | |
71 typedef struct | |
72 { | |
73 U8 bsic; /*< 0: 1> Base station ID code */ | |
74 U8 _align0; /*< 1: 1> alignment */ | |
75 U16 arfcn; /*< 2: 2> Channel number */ | |
76 U8 quality; /*< 4: 1> 5 bit encoding: ranges */ | |
77 U8 num_measurements; /*< 5: 1> Number of measurements */ | |
78 U8 _align1; /*< 6: 1> alignment */ | |
79 U8 _align2; /*< 7: 1> alignment */ | |
80 S32 timing_offset; /*< 8: 4> Timing offset */ | |
81 S32 timing_advance; /*< 12: 4> Timing advance */ | |
82 } T_bts_data; | |
83 #endif | |
84 | |
85 #ifndef __T_ref_bts_data__ | |
86 #define __T_ref_bts_data__ | |
87 /* | |
88 * Reference BTS data | |
89 * CCDGEN:WriteStruct_Count==2997 | |
90 */ | |
91 typedef struct | |
92 { | |
93 U16 cell_id; /*< 0: 2> Cell ID */ | |
94 U16 lac; /*< 2: 2> Location area code */ | |
95 U8 quality; /*< 4: 1> 5 bit encoding: ranges */ | |
96 U8 num_measurements; /*< 5: 1> Number of measurements */ | |
97 U8 _align0; /*< 6: 1> alignment */ | |
98 U8 _align1; /*< 7: 1> alignment */ | |
99 S32 timing_offset; /*< 8: 4> Timing offset */ | |
100 U8 total_neigh_bts; /*< 12: 1> Total number of neighbor BTS */ | |
101 U8 _align2; /*< 13: 1> alignment */ | |
102 U8 _align3; /*< 14: 1> alignment */ | |
103 U8 _align4; /*< 15: 1> alignment */ | |
104 T_bts_data bts_data[R_MAX_REF_NEIGH_BTS]; /*< 16:240> BTS data */ | |
105 U16 frame_number; /*<256: 2> Frame number */ | |
106 U8 _align5; /*<258: 1> alignment */ | |
107 U8 _align6; /*<259: 1> alignment */ | |
108 S32 timing_advance; /*<260: 4> Timing advance */ | |
109 } T_ref_bts_data; | |
110 #endif | |
111 | |
112 #ifndef __T_timing_data__ | |
113 #define __T_timing_data__ | |
114 /* | |
115 * Output of the position algorithm | |
116 * CCDGEN:WriteStruct_Count==2998 | |
117 */ | |
118 typedef struct | |
119 { | |
120 U16 mcc; /*< 0: 2> Mobile country code */ | |
121 U16 mnc; /*< 2: 2> Mobile country code */ | |
122 U8 reference_relation; /*< 4: 1> 0, 1 or 2, only used when there are 2 ref cells and 3 measurement sets */ | |
123 U8 time_slot; /*< 5: 1> Time slot number */ | |
124 U8 std_resolution; /*< 6: 1> Standard resolution in meters */ | |
125 U8 num_measurement_sets; /*< 7: 1> Number of measurement sets */ | |
126 U8 num_reference_cells; /*< 8: 1> Number of reference cells */ | |
127 U8 ta_correction_present; /*< 9: 1> */ | |
128 U16 ta_correction; /*< 10: 2> TA correction */ | |
129 T_ref_bts_data ref_bts_data[R_NUM_MEAS_SETS]; /*< 12:792> Reference BTS data */ | |
130 } T_timing_data; | |
131 #endif | |
132 | |
133 | |
134 /* | |
135 * End of substructure section, begin of primitive definition section | |
136 */ | |
137 | |
138 #ifndef __T_RRLP_POS_IND__ | |
139 #define __T_RRLP_POS_IND__ | |
140 /* | |
141 * | |
142 * CCDGEN:WriteStruct_Count==2999 | |
143 */ | |
144 typedef struct | |
145 { | |
146 U8 _align0; /*< 0: 1> alignment */ | |
147 U8 _align1; /*< 1: 1> alignment */ | |
148 U8 v_assist_data; /*< 2: 1> valid-flag */ | |
149 U8 c_assist_data; /*< 3: 1> counter */ | |
150 T_assist_data assist_data[MAX_NCELL_EOTD]; /*< 4:180> Assistance Data */ | |
151 U8 loc_method; /*<184: 1> Location method */ | |
152 U8 pos_method; /*<185: 1> Position method */ | |
153 U8 _align2; /*<186: 1> alignment */ | |
154 U8 v_arfcn; /*<187: 1> valid-flag */ | |
155 U16 arfcn; /*<188: 2> Channel number */ | |
156 U8 v_bsic; /*<190: 1> valid-flag */ | |
157 U8 bsic; /*<191: 1> Base station ID code */ | |
158 } T_RRLP_POS_IND; | |
159 #endif | |
160 | |
161 #ifndef __T_RRLP_POS_RES__ | |
162 #define __T_RRLP_POS_RES__ | |
163 /* | |
164 * | |
165 * CCDGEN:WriteStruct_Count==3000 | |
166 */ | |
167 typedef struct | |
168 { | |
169 T_timing_data timing_data; /*< 0:804> Output of the position algorithm */ | |
170 } T_RRLP_POS_RES; | |
171 #endif | |
172 | |
173 #ifndef __T_RRLP_ERROR_REQ__ | |
174 #define __T_RRLP_ERROR_REQ__ | |
175 /* | |
176 * | |
177 * CCDGEN:WriteStruct_Count==3001 | |
178 */ | |
179 typedef struct | |
180 { | |
181 U8 cause; /*< 0: 1> Cause Id Error */ | |
182 U8 _align0; /*< 1: 1> alignment */ | |
183 U8 _align1; /*< 2: 1> alignment */ | |
184 U8 _align2; /*< 3: 1> alignment */ | |
185 } T_RRLP_ERROR_REQ; | |
186 #endif | |
187 | |
188 | |
189 #include "CDG_LEAVE.h" | |
190 | |
191 | |
192 #endif |