comparison g23m/condat/ms/src/aci/aci_bat_cb.h @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 #ifndef ACI_BAT_CB_H
2 #define ACI_BAT_CB_H
3
4
5 #ifdef ACI_BAT_CB_GLOBALS
6 #define ACI_BAT_CB_EXT /* for the owner of a global */
7 #else
8 #define ACI_BAT_CB_EXT extern /* for the user of a global */
9 #endif
10
11 #include "aci_cmh.h"
12 #ifdef GPRS
13 #include "gaci_cmh.h"
14 #endif /* GPRS */
15
16 #ifdef FF_SAT_E
17 ACI_BAT_CB_EXT T_ACI_SATA_ADD Addparm; /* ATI maintenance for %SAT responses - Not supported by BAT */
18 #endif
19
20
21 GLOBAL void rBAT_OK(
22 T_ACI_AT_CMD cmd);
23
24 GLOBAL void rBAT_CONNECT(
25 T_ACI_AT_CMD cmdId,
26 T_ACI_BS_SPEED speed,
27 SHORT cId,
28 BOOL flow_cntr);
29
30 GLOBAL void rBAT_PlusCME(
31 T_ACI_AT_CMD cmdId,
32 T_ACI_CME_ERR err);
33
34 GLOBAL void rBAT_NO_CARRIER(
35 T_ACI_AT_CMD cmdId,
36 SHORT cId);
37
38 GLOBAL void rBAT_PlusCRING(
39 T_ACI_CRING_MOD mode,
40 T_ACI_CRING_TYP type1,
41 T_ACI_CRING_TYP type2);
42
43 GLOBAL void rBAT_PlusDR(
44 T_ACI_DR_TYP type);
45
46 GLOBAL void rBAT_PlusCR(
47 T_ACI_CR_SERV service);
48
49 GLOBAL void rBAT_PlusCPIN(
50 T_ACI_CPIN_RSLT code);
51
52 GLOBAL void rBAT_PlusCOPS(
53 SHORT lastIdx,
54 T_ACI_COPS_OPDESC *operLst);
55
56 GLOBAL void rBAT_PercentCOPS(
57 SHORT lastIdx,
58 T_ACI_COPS_OPDESC *operLst);
59
60 GLOBAL void rBAT_PlusCREG(
61 T_ACI_CREG_STAT status,
62 USHORT lac,
63 USHORT cid);
64
65 GLOBAL void rBAT_PlusCCWA(
66 T_ACI_CLSSTAT *clsStat,
67 CHAR *number,
68 T_ACI_TOA *type,
69 U8 validity,
70 T_ACI_CLASS class_type,
71 #ifdef NO_ASCIIZ
72 T_ACI_PB_TEXT *alpha);
73 #else
74 CHAR *alpha);
75 #endif
76
77 GLOBAL void rBAT_PlusCLIP(
78 T_ACI_CLIP_STAT stat,
79 CHAR *number,
80 T_ACI_TOA * type,
81 U8 validity,
82 CHAR *subaddr,
83 T_ACI_TOS *satype,
84 #ifdef NO_ASCIIZ
85 T_ACI_PB_TEXT *alpha);
86 #else
87 CHAR *alpha);
88 #endif /*NO_ASCIIZ*/
89
90 EXTERN void rBAT_PlusCOLP(
91 T_ACI_COLP_STAT stat,
92 CHAR *number,
93 T_ACI_TOA *type,
94 CHAR *subaddr,
95 T_ACI_TOS *satype,
96 #ifdef NO_ASCIIZ
97 T_ACI_PB_TEXT *alpha);
98 #else
99 CHAR *alpha);
100 #endif /*NO_ASCIIZ*/
101
102 GLOBAL void rBAT_PlusCRING_OFF(
103 SHORT cId);
104
105 GLOBAL void rBAT_PlusFCO (/* add necessary parameters */);
106 GLOBAL void rBAT_PlusFIS (/* add necessary parameters */);
107 GLOBAL void rBAT_PlusFTI (/* add necessary parameters */);
108 GLOBAL void rBAT_PlusFCS (/* add necessary parameters */);
109 GLOBAL void rBAT_PlusFCI (/* add necessary parameters */);
110
111 GLOBAL void rBAT_PlusCMS(
112 T_ACI_AT_CMD cmdId,
113 T_ACI_CMS_ERR err,
114 T_EXT_CMS_ERROR *conc_error);
115
116 GLOBAL void rBAT_PlusCSMS(
117 T_ACI_CSMS_SERV service,
118 T_ACI_CSMS_SUPP mt,
119 T_ACI_CSMS_SUPP mo,
120 T_ACI_CSMS_SUPP bm);
121
122 GLOBAL void rBAT_PlusCMGS(
123 T_MNSMS_SUBMIT_CNF *mnsms_submit_cnf);
124
125 GLOBAL void rBAT_PlusCMSS(
126 T_MNSMS_SUBMIT_CNF *mnsms_submit_cnf);
127
128 GLOBAL void rBAT_PlusCMGW(
129 UBYTE index,
130 UBYTE numSeg);
131
132 GLOBAL void rBAT_PlusCDS(
133 T_MNSMS_STATUS_IND *mnsms_status_ind);
134
135 GLOBAL void rBAT_PlusCMGC(
136 T_MNSMS_COMMAND_CNF *mnsms_command_cnf);
137
138 GLOBAL void rBAT_PlusCMGD(void);
139
140 GLOBAL void rBAT_PlusCMGR(
141 T_MNSMS_READ_CNF *mnsms_read_cnf,
142 T_ACI_CMGR_CBM *cbm);
143
144 GLOBAL void rBAT_PercentCMGR(
145 T_MNSMS_READ_CNF *mnsms_read_cnf,
146 T_ACI_CMGR_CBM *cbm);
147
148 GLOBAL void rBAT_PlusCMGL(
149 T_MNSMS_READ_CNF *mnsms_read_cnf);
150
151 GLOBAL void rBAT_PercentCMGL(
152 T_MNSMS_READ_CNF *mnsms_read_cnf);
153
154 GLOBAL void rBAT_PlusCMTI(
155 T_ACI_SMS_STOR mem,
156 UBYTE index);
157
158 GLOBAL void rBAT_PlusCMT(
159 T_MNSMS_MESSAGE_IND *msg);
160
161 GLOBAL void rBAT_PlusCBM(
162 T_MMI_CBCH_IND *mmi_cbch_ind);
163
164 GLOBAL void rBAT_PlusCPMS(
165 T_ACI_SMS_STOR_OCC *mem1,
166 T_ACI_SMS_STOR_OCC *mem2,
167 T_ACI_SMS_STOR_OCC *mem3);
168
169 GLOBAL void rBAT_PlusFHT (U16 len, U8 *hdlc);
170 GLOBAL void rBAT_PlusFHR (U16 len, U8 *hdlc);
171 GLOBAL void rBAT_PlusFSA (U8 c_sub_str, U8 *sub_str);
172 GLOBAL void rBAT_PlusFPA (U8 c_spa_str, U8 *spa_str);
173 GLOBAL void rBAT_PlusFPW (U8 c_pw_str, U8 *pw_str);
174 GLOBAL void rBAT_PlusFET (/* add necessary parameters */);
175 GLOBAL void rBAT_PlusFVO (/* add necessary parameters */);
176 GLOBAL void rBAT_PlusFPO (/* add necessary parameters */);
177 GLOBAL void rBAT_PlusFPI (U8 c_id_str, U8 *id_str);
178 GLOBAL void rBAT_PlusFNF (U16 len, U8 *nsf);
179 GLOBAL void rBAT_PlusFNS (U8 c_nsf, U8 *nsf);
180 GLOBAL void rBAT_PlusFNC (U16 len, U8 *nsc);
181 GLOBAL void rBAT_PlusFHS (/* add necessary parameters */);
182 GLOBAL void rBAT_PlusFPS (/* add necessary parameters */);
183 GLOBAL void rBAT_PlusFTC (/* add necessary parameters */);
184
185 GLOBAL void rBAT_PlusILRR(
186 T_ACI_BS_SPEED speed,
187 T_ACI_BS_FRM format,
188 T_ACI_BS_PAR parity);
189
190 GLOBAL void rBAT_BUSY(
191 T_ACI_AT_CMD cmdId,
192 SHORT cId);
193
194 GLOBAL void rBAT_NO_ANSWER(
195 T_ACI_AT_CMD cmdId,
196 SHORT cId);
197
198 GLOBAL void rBAT_PercentSIMREM(
199 T_ACI_SIMREM_TYPE srType);
200
201 GLOBAL void rBAT_PlusCLIR(
202 T_ACI_CLIR_MOD mode,
203 T_ACI_CLIR_STAT stat);
204
205 GLOBAL void rBAT_PercentCOLR(
206 T_ACI_COLR_STAT stat);
207
208 GLOBAL void rBAT_PlusCSSI(
209 T_ACI_CSSI_CODE code,
210 SHORT index);
211
212 GLOBAL void rBAT_PlusCSSU(
213 T_ACI_CSSU_CODE code,
214 SHORT index,
215 CHAR *number,
216 T_ACI_TOA *type,
217 CHAR *subaddr,
218 T_ACI_TOS *satype);
219
220 GLOBAL void rBAT_PlusCUSD(
221 T_ACI_CUSD_MOD m,
222 T_ACI_USSD_DATA *ussd,
223 SHORT dcs);
224
225 GLOBAL void rBAT_PlusCCFC (T_ACI_CCFC_SET* setting);
226
227 GLOBAL void rBAT_PlusCLCK(
228 T_ACI_CLSSTAT *clsStat);
229
230 GLOBAL void rBAT_PlusCIMI(
231 CHAR *imsi);
232
233 GLOBAL void rBAT_PercentSATI ( SHORT len, UBYTE* satCmd );
234 GLOBAL void rBAT_PercentSATE (SHORT len, UBYTE* satCmd);
235
236 GLOBAL void rBAT_PercentKSIR(
237 T_ACI_KSIR *ksStat);
238
239 GLOBAL void rBAT_PercentCPI(
240 SHORT cId,
241 T_ACI_CPI_MSG msgType,
242 T_ACI_CPI_IBT ibt,
243 T_ACI_CPI_TCH tch,
244 USHORT cause);
245
246 GLOBAL void rBAT_PercentCTYI(
247 T_ACI_CTTY_NEG neg,
248 T_ACI_CTTY_TRX trx);
249
250 GLOBAL void rBAT_PlusCNUM(
251 T_ACI_CNUM_MSISDN *msisdn,
252 UBYTE num);
253
254 GLOBAL void rBAT_PlusCPOL(
255 SHORT startIdx,
256 SHORT lastIdx,
257 T_ACI_CPOL_OPDESC *operLst,
258 SHORT usdNtry);
259
260 GLOBAL void rBAT_PlusCCCM(
261 LONG *ccm);
262
263 GLOBAL void rBAT_PercentCTV(void);
264
265 #ifdef SIM_TOOLKIT
266 GLOBAL void rBAT_PercentSATN (SHORT len, UBYTE* satCmd, T_ACI_SATN_CNTRL_TYPE cntrl_type);
267 #ifdef FF_SAT_E
268 GLOBAL void rBAT_PercentSATA (SHORT cId, LONG rdlTimeout_ms, T_ACI_SATA_ADD* addParm);
269 #else
270 GLOBAL void rBAT_PercentSATA (SHORT cId, LONG rdlTimeout_ms);
271 #endif
272 #endif /* SIM_TOOLKIT */
273
274 GLOBAL void rBAT_sms_ready(void);
275
276 GLOBAL void rBAT_phb_status(
277 T_ACI_PB_STAT status);
278
279 GLOBAL void rBAT_PercentSIMINS(
280 T_ACI_CME_ERR err);
281
282 GLOBAL void rBAT_PlusCRSM(
283 SHORT sw1,
284 SHORT sw2,
285 SHORT rspLen,
286 UBYTE *rsp);
287
288 GLOBAL void rBAT_PlusCSIM(
289 SHORT len,
290 UBYTE *rsp);
291
292 GLOBAL void rBAT_PercentCCBS(
293 T_ACI_CCBS_IND ind,
294 T_ACI_CCBS_STAT status,
295 T_ACI_CCBS_SET *setting,
296 BOOL intermediate_result);
297
298 GLOBAL void rBAT_PlusCCWV(
299 T_ACI_CCWV_CHRG charging);
300
301 GLOBAL void rBAT_PercentCNAP(
302 T_callingName *NameId,
303 T_ACI_CNAP_STATUS status);
304
305 GLOBAL void rBAT_SignalSMS(
306 UBYTE state);
307
308 GLOBAL void rBAT_PlusCLAN(
309 T_ACI_LAN_SUP *CLang);
310
311 GLOBAL void rBAT_PlusCLAE(
312 T_ACI_LAN_SUP *CLang);
313
314 GLOBAL void rBAT_PercentCSQ(
315 UBYTE rssi,
316 UBYTE ber,
317 UBYTE actlevel);
318
319 GLOBAL void rBAT_PercentALS(
320 T_ACI_ALS_MOD ALSmode);
321
322 #ifdef FF_TIMEZONE
323 GLOBAL void rBAT_PlusCTZV(
324 S32 timezone);
325 #else
326 GLOBAL void rBAT_PlusCTZV(
327 UBYTE *timezone);
328 #endif
329
330 #ifdef GPRS
331 GLOBAL void rBAT_PercentCREG(
332 T_ACI_CREG_STAT status,
333 USHORT lac,
334 USHORT cid,
335 T_ACI_P_CREG_GPRS_IND gprs_ind);
336
337 GLOBAL void rBAT_PlusCGACT(
338 SHORT link_id);
339
340 GLOBAL void rBAT_PlusCGDATA(
341 SHORT link_id);
342
343 GLOBAL void rBAT_PlusCGANS(
344 SHORT link_id);
345
346 GLOBAL void rBAT_PlusCGEREP(
347 T_CGEREP_EVENT event,
348 T_CGEREP_EVENT_REP_PARAM *param);
349
350 GLOBAL void rBAT_PlusCGREG(
351 T_CGREG_STAT stat,
352 USHORT lac,
353 USHORT ci);
354
355 GLOBAL void rBAT_changedQOS(
356 SHORT cid,
357 T_QOS *qos);
358
359 GLOBAL void rBAT_PercentSNCNT(
360 UBYTE c_id,
361 ULONG octets_uplink,
362 ULONG octets_downlink,
363 ULONG packets_uplink,
364 ULONG packets_downlink);
365
366 GLOBAL void rBAT_PercentCGREG(
367 T_P_CGREG_STAT stat,
368 USHORT lac,
369 USHORT ci,
370 BOOL bActiveContext);
371 #endif
372
373 GLOBAL void rBAT_PercentEM(
374 T_EM_VAL *val_tmp);
375
376 GLOBAL void rBAT_PercentEMET(
377 T_DRV_SIGNAL_EM_EVENT *Signal);
378
379 GLOBAL void rBAT_PercentEMETS(
380 UBYTE entity);
381
382 GLOBAL void rBAT_PercentCPNUMS(
383 UBYTE element_index,
384 UBYTE index_level,
385 CHAR *alpha_tag,
386 CHAR *number,
387 BOOL premium_flag,
388 BOOL network_flag);
389
390 GLOBAL void rBAT_PercentCPVWI(
391 UBYTE flag_set,
392 USHORT line);
393
394 GLOBAL void rBAT_PercentCPROAM(
395 UBYTE roam_status);
396
397 GLOBAL void rBAT_PlusCIEV(
398 T_ACI_MM_CIND_VAL_TYPE sCindValues,
399 T_ACI_MM_CMER_VAL_TYPE sCmerSettings);
400
401 GLOBAL void rBAT_PercentRDL(
402 T_ACI_CC_REDIAL_STATE state);
403
404 GLOBAL void rBAT_PercentRDLB(
405 T_ACI_CC_RDL_BLACKL_STATE state);
406
407 GLOBAL void rBAT_PercentCCCN(
408 T_ACI_FAC_DIR tDirection,
409 SHORT cId,
410 T_fac_inf *fie);
411
412 GLOBAL void rBAT_PercentCSSN(
413 T_ACI_FAC_DIR tDirection,
414 T_ACI_FAC_TRANS_TYPE tType,
415 T_fac_inf *fie);
416
417 GLOBAL void rBAT_PercentCSTAT(
418 T_ACI_STATE_MSG msgType);
419
420 GLOBAL void rBAT_Z(void);
421
422 GLOBAL void rBAT_PercentCPRSM(
423 T_ACI_CPRSM_MOD mode);
424
425 GLOBAL void rBAT_PercentCTZV(
426 T_MMR_INFO_IND *mmr_info_ind,
427 S32 timezone);
428
429 GLOBAL void rBAT_PercentCNIV(
430 T_MMR_INFO_IND *mmr_info_ind);
431
432 #ifdef GPRS
433 GLOBAL void rBAT_PercentCGEV(
434 T_CGEREP_EVENT event,
435 T_CGEREP_EVENT_REP_PARAM *param);
436 #endif
437
438 GLOBAL void rBAT_PercentCPRI(
439 UBYTE gsm_ciph,
440 UBYTE gprs_ciph);
441
442 GLOBAL void rBAT_PercentIMEI(T_ACI_IMEI *imei);
443
444 GLOBAL void rBAT_PercentSIMEF(
445 SHORT *ef,
446 UBYTE count);
447
448 #endif