comparison gsm-fw/g23m-aci/aci/aci_bat_cb.h @ 775:eedbf248bac0

gsm-fw/g23m-aci subtree: initial import from LoCosto source
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 12 Oct 2014 01:45:14 +0000
parents
children
comparison
equal deleted inserted replaced
774:40a721fd9854 775:eedbf248bac0
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_SERV_TYP type1,
41 T_ACI_CRING_SERV_TYP type2);
42
43 GLOBAL void rBAT_PlusDR(
44 T_ACI_DR_TYP type);
45
46 GLOBAL void rBAT_PlusCR(
47 T_ACI_CRING_SERV_TYP 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 #ifdef FF_PS_RSSI
315 GLOBAL void rBAT_PercentCSQ(
316 UBYTE rssi,
317 UBYTE ber,
318 UBYTE actlevel,
319 UBYTE min_access_level);
320 #else
321 GLOBAL void rBAT_PercentCSQ(
322 UBYTE rssi,
323 UBYTE ber,
324 UBYTE actlevel);
325 #endif
326
327 GLOBAL void rBAT_PercentALS(
328 T_ACI_ALS_MOD ALSmode);
329
330 #ifdef FF_TIMEZONE
331 GLOBAL void rBAT_PlusCTZV(
332 S32 timezone);
333 #else
334 GLOBAL void rBAT_PlusCTZV(
335 UBYTE *timezone);
336 #endif
337
338 #ifdef GPRS
339 GLOBAL void rBAT_PercentCREG(
340 T_ACI_CREG_STAT status,
341 USHORT lac,
342 USHORT cid,
343 T_ACI_P_CREG_GPRS_IND gprs_ind,
344 U8 rt);
345
346 GLOBAL void rBAT_PlusCGACT(
347 SHORT link_id);
348
349 GLOBAL void rBAT_PlusCGDATA(
350 SHORT link_id);
351
352 GLOBAL void rBAT_PlusCGANS(
353 SHORT link_id);
354
355 GLOBAL void rBAT_PlusCGEREP(
356 T_CGEREP_EVENT event,
357 T_CGEREP_EVENT_REP_PARAM *param);
358
359 GLOBAL void rBAT_PlusCGREG(
360 T_CGREG_STAT stat,
361 USHORT lac,
362 USHORT ci);
363
364 GLOBAL void rBAT_changedQOS(
365 SHORT cid,
366 T_PS_qos *qos);
367
368 GLOBAL void rBAT_PercentSNCNT(
369 UBYTE c_id,
370 ULONG octets_uplink,
371 ULONG octets_downlink,
372 ULONG packets_uplink,
373 ULONG packets_downlink);
374
375 GLOBAL void rBAT_PercentCGREG(
376 T_P_CGREG_STAT stat,
377 USHORT lac,
378 USHORT ci,
379 BOOL bActiveContext);
380 #endif
381
382 GLOBAL void rBAT_PercentEM(
383 T_EM_VAL *val_tmp);
384
385 GLOBAL void rBAT_PercentEMET(
386 T_DRV_SIGNAL_EM_EVENT *Signal);
387
388 GLOBAL void rBAT_PercentEMETS(
389 UBYTE entity);
390
391 GLOBAL void rBAT_PercentCPNUMS(
392 UBYTE element_index,
393 UBYTE index_level,
394 CHAR *alpha_tag,
395 CHAR *number,
396 BOOL premium_flag,
397 BOOL network_flag);
398
399 GLOBAL void rBAT_PercentCPVWI(
400 UBYTE flag_set,
401 USHORT line);
402
403 GLOBAL void rBAT_PercentCPROAM(
404 UBYTE roam_status);
405
406 GLOBAL void rBAT_PlusCIEV(
407 T_ACI_MM_CIND_VAL_TYPE sCindValues,
408 T_ACI_MM_CMER_VAL_TYPE sCmerSettings);
409
410 GLOBAL void rBAT_PercentRDL(
411 T_ACI_CC_REDIAL_STATE state);
412
413 #ifdef TI_PS_FF_AT_P_CMD_RDLB
414 GLOBAL void rBAT_PercentRDLB(
415 T_ACI_CC_RDL_BLACKL_STATE state);
416 #endif /* TI_PS_FF_AT_P_CMD_RDLB */
417
418 GLOBAL void rBAT_PercentCCCN(
419 T_ACI_FAC_DIR tDirection,
420 SHORT cId,
421 T_MNCC_fac_inf *fie);
422
423 GLOBAL void rBAT_PercentCSSN(
424 T_ACI_FAC_DIR tDirection,
425 T_ACI_FAC_TRANS_TYPE tType,
426 T_MNCC_fac_inf *fie);
427
428 GLOBAL void rBAT_PercentCSTAT(
429 T_ACI_STATE_MSG msgType);
430
431 GLOBAL void rBAT_Z(void);
432
433 #ifdef TI_PS_FF_AT_P_CMD_CPRSM
434 GLOBAL void rBAT_PercentCPRSM(
435 T_ACI_CPRSM_MOD mode);
436 #endif /* TI_PS_FF_AT_P_CMD_CPRSM */
437
438 GLOBAL void rBAT_PercentCTZV(
439 T_MMR_INFO_IND *mmr_info_ind,
440 S32 timezone);
441
442 GLOBAL void rBAT_PercentCNIV(
443 T_MMR_INFO_IND *mmr_info_ind);
444
445 #ifdef GPRS
446 GLOBAL void rBAT_PercentCGEV(
447 T_CGEREP_EVENT event,
448 T_CGEREP_EVENT_REP_PARAM *param);
449 #endif
450
451 GLOBAL void rBAT_PercentCPRI(
452 UBYTE gsm_ciph,
453 UBYTE gprs_ciph);
454
455 GLOBAL void rBAT_PercentIMEI(T_ACI_IMEI *imei);
456
457 GLOBAL void rBAT_PercentSIMEF(T_SIM_FILE_UPDATE_IND *sim_file_update_ind);
458
459 #ifdef REL99
460 GLOBAL void rBAT_PercentCMGRS (UBYTE mode,
461 T_MNSMS_RETRANS_CNF * mnsms_retrans_cnf,
462 T_MNSMS_SEND_PROG_IND * mnsms_send_prog_ind);
463 #endif /* REL99 */
464
465 #ifdef REL99
466 GLOBAL void rBAT_PlusCGCMOD ( void );
467 #endif /* REL99 */
468
469 #endif