FreeCalypso > hg > fc-tourmaline
comparison src/ui/mfw/mfw_gprs.h @ 188:92abb46dc1ba
src/ui/mfw/*.[ch]: rm trailing white space
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 19 Jan 2021 06:10:27 +0000 |
parents | 67bfe9f274f6 |
children |
comparison
equal
deleted
inserted
replaced
187:a33dd8a5dcc9 | 188:92abb46dc1ba |
---|---|
6 | STATE : code | | 6 | STATE : code | |
7 +--------------------------------------------------------------------+ | 7 +--------------------------------------------------------------------+ |
8 | 8 |
9 MODULE : MFW_GPRS | 9 MODULE : MFW_GPRS |
10 | 10 |
11 PURPOSE : This modul contains definition needed for the GPRS | 11 PURPOSE : This modul contains definition needed for the GPRS |
12 management in MFW. | 12 management in MFW. |
13 | 13 |
14 $History: Mfw_gprs.h | 14 $History: Mfw_gprs.h |
15 | 15 |
16 Feb 24, 2006 REF:DR OMAPS00068976 x0035544 | 16 Feb 24, 2006 REF:DR OMAPS00068976 x0035544 |
17 Description: GPRS attach icon - MMI follow up issue of OMAPS00051034 | 17 Description: GPRS attach icon - MMI follow up issue of OMAPS00051034 |
18 solution: Added the structure variable p_reg_State to the union and named it | 18 solution: Added the structure variable p_reg_State to the union and named it |
19 as Reg_state. This structure stores the network registration status information | 19 as Reg_state. This structure stores the network registration status information |
20 given by qAT_percentCREG(). | 20 given by qAT_percentCREG(). |
21 | 21 |
22 15/05/2003 - SPR#1983 - SH - Updated to latest from 1.6.3 version. | 22 15/05/2003 - SPR#1983 - SH - Updated to latest from 1.6.3 version. |
23 | 23 |
24 $End | 24 $End |
25 */ | 25 */ |
26 | 26 |
74 | 74 |
75 /* Structure to store cell reselection information. */ | 75 /* Structure to store cell reselection information. */ |
76 typedef struct | 76 typedef struct |
77 { | 77 { |
78 T_CGREG_STAT stat; | 78 T_CGREG_STAT stat; |
79 USHORT lac; | 79 USHORT lac; |
80 USHORT ci; | 80 USHORT ci; |
81 } T_MFW_GPRS_CELL_STRUCT; | 81 } T_MFW_GPRS_CELL_STRUCT; |
82 | 82 |
83 typedef struct | 83 typedef struct |
84 { | 84 { |
85 T_P_CGREG_STAT stat; | 85 T_P_CGREG_STAT stat; |
86 USHORT lac; | 86 USHORT lac; |
87 USHORT ci; | 87 USHORT ci; |
88 } T_MFW_GPRS_CELL_STRUCT_P; | 88 } T_MFW_GPRS_CELL_STRUCT_P; |
89 | 89 |
90 typedef struct | 90 typedef struct |
91 { | 91 { |
92 #ifdef FF_2TO1_PS | 92 #ifdef FF_2TO1_PS |
93 U8 id; /* context id */ | 93 U8 id; /* context id */ |
94 T_PDP_CONTEXT_INTERNAL data; /* context data */ | 94 T_PDP_CONTEXT_INTERNAL data; /* context data */ |
95 #else | 95 #else |
98 #endif | 98 #endif |
99 BOOL activated; /* context mode */ | 99 BOOL activated; /* context mode */ |
100 char *L2P; /* layer 2 protocol */ | 100 char *L2P; /* layer 2 protocol */ |
101 } T_MFW_GPRS_CONTEXT; | 101 } T_MFW_GPRS_CONTEXT; |
102 | 102 |
103 typedef struct | 103 typedef struct |
104 { | 104 { |
105 USHORT *ids; /* context ids */ | 105 USHORT *ids; /* context ids */ |
106 BOOL state; /* activation state */ | 106 BOOL state; /* activation state */ |
107 } T_MFW_GPRS_CNTXT_ACT; | 107 } T_MFW_GPRS_CNTXT_ACT; |
108 | 108 |
109 typedef struct | 109 typedef struct |
110 { | 110 { |
111 USHORT *ids; /* context ids */ | 111 USHORT *ids; /* context ids */ |
112 char *L2P; /* layer 2 protocol */ | 112 char *L2P; /* layer 2 protocol */ |
113 } T_MFW_GPRS_CNTXT_L2P; | 113 } T_MFW_GPRS_CNTXT_L2P; |
114 | 114 |
115 typedef struct | 115 typedef struct |
116 { | 116 { |
117 T_CGEREP_MODE mode; /* event reporting mode */ | 117 T_CGEREP_MODE mode; /* event reporting mode */ |
118 T_CGEREP_BFR bfr; /* effect control on buffered events */ | 118 T_CGEREP_BFR bfr; /* effect control on buffered events */ |
119 } T_MFW_GPRS_EVENTREP; | 119 } T_MFW_GPRS_EVENTREP; |
120 | 120 |
180 T_MFW_EVENT event, | 180 T_MFW_EVENT event, |
181 T_MFW_CB cbfunc ); | 181 T_MFW_CB cbfunc ); |
182 | 182 |
183 T_MFW_RES gprs_delete ( T_MFW_HND h ); | 183 T_MFW_RES gprs_delete ( T_MFW_HND h ); |
184 | 184 |
185 int gprsCommand ( U32 cmd, | 185 int gprsCommand ( U32 cmd, |
186 void *h ); | 186 void *h ); |
187 | 187 |
188 void gprs_signal ( T_MFW_EVENT event, | 188 void gprs_signal ( T_MFW_EVENT event, |
189 void *para ); | 189 void *para ); |
190 | 190 |
191 void gprs_ok(T_ACI_AT_CMD cmdId); | 191 void gprs_ok(T_ACI_AT_CMD cmdId); |
192 void gprs_error(T_ACI_AT_CMD cmdId, T_ACI_CME_ERR err); | 192 void gprs_error(T_ACI_AT_CMD cmdId, T_ACI_CME_ERR err); |
193 void gprs_connect(SHORT cId); | 193 void gprs_connect(SHORT cId); |
194 void gprs_err_connect(SHORT cId); | 194 void gprs_err_connect(SHORT cId); |
195 | 195 |
196 /* MMI-MFW Interface Functions -------------------------------------*/ | 196 /* MMI-MFW Interface Functions -------------------------------------*/ |
197 | 197 |
198 #ifndef FF_2TO1_PS | 198 #ifndef FF_2TO1_PS |
199 T_MFW_RES gprs_definePDPContext ( SHORT cid, | 199 T_MFW_RES gprs_definePDPContext ( SHORT cid, |
200 T_PDP_CONTEXT *inputCtxt ); | 200 T_PDP_CONTEXT *inputCtxt ); |
201 | 201 |
202 T_MFW_RES gprs_setQOS ( SHORT cid , | 202 T_MFW_RES gprs_setQOS ( SHORT cid , |
203 T_PS_qos *inputQos ); | 203 T_PS_qos *inputQos ); |
204 | 204 |
207 | 207 |
208 T_MFW_RES gprs_attach ( T_CGATT_STATE state); | 208 T_MFW_RES gprs_attach ( T_CGATT_STATE state); |
209 /* SPR#1983 - SH - Added function to cancel CGATT command */ | 209 /* SPR#1983 - SH - Added function to cancel CGATT command */ |
210 T_MFW_RES gprs_attach_abort(void); | 210 T_MFW_RES gprs_attach_abort(void); |
211 | 211 |
212 T_MFW_RES gprs_contextActivation( T_CGACT_STATE state, | 212 T_MFW_RES gprs_contextActivation( T_CGACT_STATE state, |
213 SHORT *cids); | 213 SHORT *cids); |
214 | 214 |
215 T_MFW_RES gprs_setData ( char *L2P, | 215 T_MFW_RES gprs_setData ( char *L2P, |
216 SHORT *cids); | 216 SHORT *cids); |
217 | 217 |
218 T_MFW_RES gprs_showPDPAddress ( SHORT *cids, | 218 T_MFW_RES gprs_showPDPAddress ( SHORT *cids, |
219 T_NAS_ip *pdp_address); | 219 T_NAS_ip *pdp_address); |
220 #else | 220 #else |
221 T_MFW_RES gprs_definePDPContext ( SHORT cid, | 221 T_MFW_RES gprs_definePDPContext ( SHORT cid, |
222 T_PDP_CONTEXT *inputCtxt ); | 222 T_PDP_CONTEXT *inputCtxt ); |
223 | 223 |
224 T_MFW_RES gprs_setQOS ( SHORT cid , | 224 T_MFW_RES gprs_setQOS ( SHORT cid , |
225 T_PS_qos *inputQos ); | 225 T_PS_qos *inputQos ); |
226 | 226 |
229 | 229 |
230 T_MFW_RES gprs_attach ( T_CGATT_STATE state); | 230 T_MFW_RES gprs_attach ( T_CGATT_STATE state); |
231 /* SPR#1983 - SH - Added function to cancel CGATT command */ | 231 /* SPR#1983 - SH - Added function to cancel CGATT command */ |
232 T_MFW_RES gprs_attach_abort(void); | 232 T_MFW_RES gprs_attach_abort(void); |
233 | 233 |
234 T_MFW_RES gprs_contextActivation( T_CGACT_STATE state, | 234 T_MFW_RES gprs_contextActivation( T_CGACT_STATE state, |
235 SHORT *cids); | 235 SHORT *cids); |
236 | 236 |
237 T_MFW_RES gprs_setData ( char *L2P, | 237 T_MFW_RES gprs_setData ( char *L2P, |
238 SHORT *cids); | 238 SHORT *cids); |
239 | 239 |
240 T_MFW_RES gprs_showPDPAddress ( SHORT *cids, | 240 T_MFW_RES gprs_showPDPAddress ( SHORT *cids, |
241 T_NAS_ip *pdp_address); | 241 T_NAS_ip *pdp_address); |
242 #endif | 242 #endif |
243 | 243 |
244 T_MFW_RES gprs_setAutoResponse ( T_CGAUTO_N mode); | 244 T_MFW_RES gprs_setAutoResponse ( T_CGAUTO_N mode); |
245 | 245 |
246 T_MFW_RES gprs_ManualResponse ( USHORT response, | 246 T_MFW_RES gprs_ManualResponse ( USHORT response, |
247 char *l2p, | 247 char *l2p, |
248 SHORT cid); | 248 SHORT cid); |
249 | 249 |
250 T_MFW_RES gprs_setClass ( T_CGCLASS_CLASS m_class); | 250 T_MFW_RES gprs_setClass ( T_CGCLASS_CLASS m_class); |
251 | 251 |
252 T_MFW_RES gprs_setEventReporting( T_CGEREP_MODE mode, | 252 T_MFW_RES gprs_setEventReporting( T_CGEREP_MODE mode, |
253 T_CGEREP_BFR bfr); | 253 T_CGEREP_BFR bfr); |
254 | 254 |
255 T_MFW_RES gprs_setServiceSMS ( T_CGSMS_SERVICE service); | 255 T_MFW_RES gprs_setServiceSMS ( T_CGSMS_SERVICE service); |
256 | 256 |
257 T_CGSMS_SERVICE gprs_getServiceSMS(void); | 257 T_CGSMS_SERVICE gprs_getServiceSMS(void); |
283 /* link_id: Link identifier */ | 283 /* link_id: Link identifier */ |
284 | 284 |
285 void rAT_PlusCGANS ( SHORT link_id ); | 285 void rAT_PlusCGANS ( SHORT link_id ); |
286 /* link_id: Link identifier */ | 286 /* link_id: Link identifier */ |
287 | 287 |
288 void rAT_PlusCGEREP ( T_CGEREP_EVENT event, | 288 void rAT_PlusCGEREP ( T_CGEREP_EVENT event, |
289 T_CGEREP_EVENT_REP_PARAM *param ); | 289 T_CGEREP_EVENT_REP_PARAM *param ); |
290 /* event : GPRS event | 290 /* event : GPRS event |
291 param : event parameter */ | 291 param : event parameter */ |
292 void rAT_PercentCGEV ( T_CGEREP_EVENT event, | 292 void rAT_PercentCGEV ( T_CGEREP_EVENT event, |
293 T_CGEREP_EVENT_REP_PARAM *param ); | 293 T_CGEREP_EVENT_REP_PARAM *param ); |
294 /* event : GPRS event | 294 /* event : GPRS event |
295 param : event parameter */ | 295 param : event parameter */ |
296 | 296 |
297 void rAT_PlusCGREG ( T_CGREG_STAT stat, | 297 void rAT_PlusCGREG ( T_CGREG_STAT stat, |
298 USHORT lac, | 298 USHORT lac, |
299 USHORT ci ); | 299 USHORT ci ); |
300 /* stat : indicates the current registration | 300 /* stat : indicates the current registration |
301 lac : two byte location area code | 301 lac : two byte location area code |
302 ci : two byte cell ID */ | 302 ci : two byte cell ID */ |
303 | 303 |
304 /* ACI CHANGES - 5-10-2005 */ | 304 /* ACI CHANGES - 5-10-2005 */ |
305 void rAT_PercentCGREG ( T_P_CGREG_STAT stat, | 305 void rAT_PercentCGREG ( T_P_CGREG_STAT stat, |
306 USHORT lac, | 306 USHORT lac, |
307 USHORT ci, | 307 USHORT ci, |
308 BOOL bActiveContext ); | 308 BOOL bActiveContext ); |
309 // BOOL bActiveContext ); | 309 // BOOL bActiveContext ); |
310 /* stat : indicates the current registration | 310 /* stat : indicates the current registration |
311 lac : two byte location area code | 311 lac : two byte location area code |
312 ci : two byte cell ID | 312 ci : two byte cell ID |
313 bActiveContext : boolean: shows wether a PDP context is | 313 bActiveContext : boolean: shows wether a PDP context is |
314 established or not*/ | 314 established or not*/ |
315 | 315 |
316 #ifdef FF_2TO1_PS | 316 #ifdef FF_2TO1_PS |
317 void rAT_changedQOS ( U8 cid, | 317 void rAT_changedQOS ( U8 cid, |
318 T_PS_qos *qos ); | 318 T_PS_qos *qos ); |
319 /* cid : context id | 319 /* cid : context id |
320 *qos : quality of service profile */ | 320 *qos : quality of service profile */ |
321 #else | 321 #else |
322 void rAT_changedQOS ( SHORT cid, | 322 void rAT_changedQOS ( SHORT cid, |
323 T_PS_qos *qos ); | 323 T_PS_qos *qos ); |
324 /* cid : context id | 324 /* cid : context id |
325 *qos : quality of service profile */ | 325 *qos : quality of service profile */ |
326 | 326 |
327 #endif | 327 #endif |
328 | 328 |
329 /* END */ | 329 /* END */ |