comparison g23m/condat/ms/src/aci/aci_bat_fd.c @ 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 /*
2 +-----------------------------------------------------------------------------
3 | Project : GSM-F&D (8411)
4 | Modul : ACI_BAT
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 : This BAT wrapper modul is ...
18 |
19 +-----------------------------------------------------------------------------
20 */
21
22 #include "aci_all.h" /* includes prim.h, which includes p_bat.h */
23 #include "aci_cmh.h" /* prototypes of sAT_, qAT_, tAT_ */
24 #include "aci_bat_cmh.h" /* prototypes of sBAT_, qBAT_, tBAT_ */
25 #include "aci_bat.h"
26 #include "aci_fd.h"
27
28 /*
29 +--------------------------------------------------------------------+
30 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
31 | STATE : code ROUTINE : BAT_O |
32 +--------------------------------------------------------------------+
33
34 PURPOSE :
35 */
36 GLOBAL T_ACI_BAT_RSLT BAT_O(T_ACI_DTI_PRC_PSI *src_infos_psi,
37 T_BAT_cmd_send *cmd)
38 {
39 TRACE_FUNCTION ("BAT_O()");
40 return(ACI_BAT_FAIL);
41 }
42
43 /*
44 +--------------------------------------------------------------------+
45 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
46 | STATE : code ROUTINE : sBAT_PlusDS |
47 +--------------------------------------------------------------------+
48
49 PURPOSE : V.42bis data compression functions
50 */
51 GLOBAL T_ACI_BAT_RSLT sBAT_PlusDS(T_ACI_DTI_PRC_PSI *src_infos_psi,
52 T_BAT_cmd_send *cmd)
53 {
54 T_ACI_BAT_RSLT ret;
55
56 TRACE_FUNCTION ("sBAT_PlusDS()");
57
58 ret = sAT_PlusDS( src_infos_psi->srcId,
59 cmd->params.ptr_set_plus_ds->dir,
60 cmd->params.ptr_set_plus_ds->neg,
61 cmd->params.ptr_set_plus_ds->p1,
62 cmd->params.ptr_set_plus_ds->p2);
63 return(ret);
64 }
65
66 /*
67 +--------------------------------------------------------------------+
68 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
69 | STATE : code ROUTINE : qBAT_PlusDS |
70 +--------------------------------------------------------------------+
71
72 PURPOSE : V.42bis data compression functions
73 */
74 GLOBAL T_ACI_BAT_RSLT qBAT_PlusDS (T_ACI_DTI_PRC_PSI *src_infos_psi,
75 T_BAT_cmd_send *cmd)
76 {
77 T_ACI_BAT_RSLT ret;
78
79 T_BAT_cmd_response resp;
80 T_BAT_res_que_plus_ds ds;
81
82 TRACE_FUNCTION ("qBAT_PlusDS()");
83 resp.ctrl_response = BAT_RES_QUE_PLUS_DS;
84 resp.response.ptr_que_plus_ds = &ds;
85
86 ret = qAT_PlusDS( src_infos_psi->srcId,(T_ACI_DS_DIR*)&ds.dir,(T_ACI_DS_COMP*)&ds.neg,(LONG*)&ds.p1,(SHORT*)&ds.p2);
87
88 aci_bat_send(src_infos_psi, &resp);
89 return(ret);
90 }
91
92 /*
93 +--------------------------------------------------------------------+
94 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
95 | STATE : code ROUTINE : sBAT_PlusCRLP |
96 +--------------------------------------------------------------------+
97
98 PURPOSE : Radio link protocol
99 */
100 GLOBAL T_ACI_BAT_RSLT sBAT_PlusCRLP(T_ACI_DTI_PRC_PSI *src_infos_psi,
101 T_BAT_cmd_send *cmd)
102 {
103 T_ACI_BAT_RSLT ret;
104
105 TRACE_FUNCTION ("sBAT_PlusCRLP()");
106
107 ret = sAT_PlusCRLP(src_infos_psi->srcId,
108 (S16)cmd->params.ptr_set_plus_crlp->iws,
109 (S16)cmd->params.ptr_set_plus_crlp->mws,
110 (S16)cmd->params.ptr_set_plus_crlp->t1,
111 (S16)cmd->params.ptr_set_plus_crlp->n2);
112 return(ret);
113 }
114
115 /*
116 +--------------------------------------------------------------------+
117 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
118 | STATE : code ROUTINE : qBAT_PlusCRLP |
119 +--------------------------------------------------------------------+
120
121 PURPOSE : Radio link protocol
122 */
123 GLOBAL T_ACI_BAT_RSLT qBAT_PlusCRLP(T_ACI_DTI_PRC_PSI *src_infos_psi,
124 T_BAT_cmd_send *cmd)
125 {
126 T_ACI_BAT_RSLT ret;
127 T_BAT_cmd_response resp;
128 T_BAT_res_que_plus_crlp crlp;
129
130 TRACE_FUNCTION ("qBAT_PlusCRLP()");
131
132 resp.ctrl_response = BAT_RES_QUE_PLUS_CRLP;
133 resp.response.ptr_que_plus_crlp = &crlp;
134
135 ret = qAT_PlusCRLP( src_infos_psi->srcId,
136 (SHORT*)&crlp.iws, (SHORT*)&crlp.mws, (SHORT*)&crlp.t1, (SHORT*)&crlp.n2);
137
138 aci_bat_send(src_infos_psi, &resp);
139 return(ret);
140 }
141
142 #ifdef FF_FAX
143
144 /*
145 +--------------------------------------------------------------------+
146 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
147 | STATE : code ROUTINE : sBAT_PlusFAP |
148 +--------------------------------------------------------------------+
149
150 PURPOSE : ITU-T.32
151 */
152 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFAP(T_ACI_DTI_PRC_PSI *src_infos_psi,
153 T_BAT_cmd_send *cmd)
154 {
155 T_ACI_BAT_RSLT ret;
156
157 TRACE_FUNCTION ("sBAT_PlusFAP()");
158
159 ret = sAT_PlusFAP(src_infos_psi->srcId,
160 cmd->params.ptr_set_plus_fap->sub,
161 cmd->params.ptr_set_plus_fap->sep,
162 cmd->params.ptr_set_plus_fap->pwd);
163 return(ret);
164 }
165
166 /*
167 +--------------------------------------------------------------------+
168 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
169 | STATE : code ROUTINE : qBAT_PlusFAP |
170 +--------------------------------------------------------------------+
171
172 PURPOSE : ITU-T.32
173 */
174 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFAP(T_ACI_DTI_PRC_PSI *src_infos_psi,
175 T_BAT_cmd_send *cmd)
176 {
177 T_ACI_BAT_RSLT ret;
178 T_BAT_cmd_response resp;
179 T_BAT_res_que_plus_fap fap;
180
181 TRACE_FUNCTION ("qBAT_PlusFAP()");
182
183 resp.ctrl_response = BAT_RES_QUE_PLUS_FAP;
184 resp.response.ptr_que_plus_fap = &fap;
185
186 ret = qAT_PlusFAP(src_infos_psi->srcId,(T_ACI_FAP_VAL*)&fap.sub,(T_ACI_FAP_VAL*)&fap.sep,(T_ACI_FAP_VAL*)&fap.pwd);
187
188 aci_bat_send(src_infos_psi, &resp);
189 return(ret);
190 }
191
192 /*
193 +--------------------------------------------------------------------+
194 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
195 | STATE : code ROUTINE : sBAT_PlusFBO |
196 +--------------------------------------------------------------------+
197
198 PURPOSE : ITU-T.32
199 */
200 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFBO(T_ACI_DTI_PRC_PSI *src_infos_psi,
201 T_BAT_cmd_send *cmd)
202 {
203 T_ACI_BAT_RSLT ret;
204
205 TRACE_FUNCTION ("sBAT_PlusFBO()");
206
207 ret = sAT_PlusFBO(src_infos_psi->srcId,
208 cmd->params.ptr_set_plus_fbo->value);
209 return(ret);
210 }
211
212 /*
213 +--------------------------------------------------------------------+
214 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
215 | STATE : code ROUTINE : qBAT_PlusFBO |
216 +--------------------------------------------------------------------+
217
218 PURPOSE : ITU-T.32
219 */
220 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFBO(T_ACI_DTI_PRC_PSI *src_infos_psi,
221 T_BAT_cmd_send *cmd)
222 {
223 T_ACI_BAT_RSLT ret;
224 T_BAT_cmd_response resp;
225 T_BAT_res_que_plus_fbo fbo;
226
227 TRACE_FUNCTION ("qBAT_PlusFBO()");
228
229 resp.ctrl_response = BAT_RES_QUE_PLUS_FBO;
230 resp.response.ptr_que_plus_fbo = &fbo;
231
232 ret = qAT_PlusFBO(src_infos_psi->srcId, (T_ACI_FBO_VAL*)&fbo.value);
233
234 aci_bat_send(src_infos_psi, &resp);
235 return(ret);
236 }
237
238 /*
239 +--------------------------------------------------------------------+
240 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
241 | STATE : code ROUTINE : qBAT_PlusFBS |
242 +--------------------------------------------------------------------+
243
244 PURPOSE : ITU-T.32
245 */
246 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFBS(T_ACI_DTI_PRC_PSI *src_infos_psi,
247 T_BAT_cmd_send *cmd)
248 {
249 T_ACI_BAT_RSLT ret;
250 T_BAT_cmd_response resp;
251 T_BAT_res_que_plus_fbs fbs;
252
253 TRACE_FUNCTION ("qBAT_PlusFBS()");
254
255 resp.ctrl_response = BAT_RES_QUE_PLUS_FBS;
256 resp.response.ptr_que_plus_fbs = &fbs;
257
258 ret = qAT_PlusFBS(src_infos_psi->srcId, (S16*)&fbs.tbs, (S16*)&fbs.rbs);
259
260 aci_bat_send(src_infos_psi, &resp);
261 return(ret);
262 }
263
264 /*
265 +--------------------------------------------------------------------+
266 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
267 | STATE : code ROUTINE : sBAT_PlusFBU |
268 +--------------------------------------------------------------------+
269
270 PURPOSE : ITU-T.32
271 */
272 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFBU(T_ACI_DTI_PRC_PSI *src_infos_psi,
273 T_BAT_cmd_send *cmd)
274 {
275 T_ACI_BAT_RSLT ret = ACI_BAT_FAIL;
276
277 TRACE_FUNCTION ("sBAT_PlusFBU(): is obsolete <=== !!! consult KJF");
278
279 /*
280 ret = sAT_PlusFBU(src_infos_psi->srcId,
281 cmd->params.ptr_set_plus_fbu->value);
282 */
283
284 ACI_ERR_DESC( ACI_ERR_CLASS_Cme, CME_ERR_OpNotSupp);
285
286 return(ret);
287 }
288
289 /*
290 +--------------------------------------------------------------------+
291 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
292 | STATE : code ROUTINE : qBAT_PlusFBU |
293 +--------------------------------------------------------------------+
294
295 PURPOSE : ITU-T.32
296 */
297 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFBU(T_ACI_DTI_PRC_PSI *src_infos_psi,
298 T_BAT_cmd_send *cmd)
299 {
300 T_ACI_BAT_RSLT ret = ACI_BAT_FAIL;
301 T_BAT_cmd_response resp;
302 T_BAT_res_que_plus_fbu fbu;
303
304 TRACE_FUNCTION ("qBAT_PlusFBU()");
305
306 resp.ctrl_response = BAT_RES_QUE_PLUS_FBU;
307 resp.response.ptr_que_plus_fbu = &fbu;
308
309 //???ret = qAT_PlusFBU(src_infos_psi->srcId, &fbu.val);
310
311 aci_bat_send(src_infos_psi, &resp);
312 return(ret);
313 }
314
315 /*
316 +--------------------------------------------------------------------+
317 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
318 | STATE : code ROUTINE : sBAT_PlusFCC |
319 +--------------------------------------------------------------------+
320
321 PURPOSE : ITU-T.32
322 */
323 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFCC(T_ACI_DTI_PRC_PSI *src_infos_psi,
324 T_BAT_cmd_send *cmd)
325 {
326 T_ACI_BAT_RSLT ret;
327
328 T_BAT_cmd_set_plus_fcc *fcc = cmd->params.ptr_set_plus_fcc;
329
330 TRACE_FUNCTION ("sBAT_PlusFCC()");
331
332 ret = sAT_PlusFCC(src_infos_psi->srcId,
333 fcc->vr,
334 fcc->br,
335 fcc->wd,
336 fcc->ln,
337 fcc->df,
338 fcc->ec,
339 fcc->bf,
340 fcc->st,
341 fcc->jp);
342 return(ret);
343 }
344
345 /*
346 +--------------------------------------------------------------------+
347 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
348 | STATE : code ROUTINE : qBAT_PlusFCC |
349 +--------------------------------------------------------------------+
350
351 PURPOSE : ITU-T.32
352 */
353 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFCC(T_ACI_DTI_PRC_PSI *src_infos_psi,
354 T_BAT_cmd_send *cmd)
355 {
356 T_ACI_BAT_RSLT ret;
357 T_BAT_cmd_response resp;
358 T_BAT_res_que_plus_fcc fcc;
359
360 TRACE_FUNCTION ("qBAT_PlusFCC()");
361
362 resp.ctrl_response = BAT_RES_QUE_PLUS_FCC;
363 resp.response.ptr_que_plus_fcc = &fcc;
364
365 ret = qAT_PlusFCC(src_infos_psi->srcId,
366 (T_ACI_F_VR*)&fcc.vr,
367 (T_ACI_F_BR*)&fcc.br,
368 (T_ACI_F_WD*)&fcc.wd,
369 (T_ACI_F_LN*)&fcc.ln,
370 (T_ACI_F_DF*)&fcc.df,
371 (T_ACI_F_EC*)&fcc.ec,
372 (T_ACI_F_BF*)&fcc.bf,
373 (T_ACI_F_ST*)&fcc.st,
374 (T_ACI_F_JP*)&fcc.jp);
375
376 aci_bat_send(src_infos_psi, &resp);
377 return(ret);
378 }
379
380 /*
381 +--------------------------------------------------------------------+
382 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
383 | STATE : code ROUTINE : sBAT_PlusFCLASS |
384 +--------------------------------------------------------------------+
385
386 PURPOSE : ITU-T.32
387 */
388 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFCLASS(T_ACI_DTI_PRC_PSI *src_infos_psi,
389 T_BAT_cmd_send *cmd)
390 {
391 T_ACI_BAT_RSLT ret;
392
393 TRACE_FUNCTION ("sBAT_PlusFCLASS()");
394
395 ret = sAT_PlusFCLASS(src_infos_psi->srcId,
396 cmd->params.ptr_set_plus_fclass->n);
397 return(ret);
398 }
399
400 /*
401 +--------------------------------------------------------------------+
402 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
403 | STATE : code ROUTINE : qBAT_PlusFCLASS |
404 +--------------------------------------------------------------------+
405
406 PURPOSE : ITU-T.32
407 */
408 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFCLASS(T_ACI_DTI_PRC_PSI *src_infos_psi,
409 T_BAT_cmd_send *cmd)
410 {
411 T_ACI_BAT_RSLT ret;
412 T_BAT_cmd_response resp;
413 T_BAT_res_que_plus_fclass fclass;
414
415 TRACE_FUNCTION ("qBAT_PlusFCLASS()");
416
417 resp.ctrl_response = BAT_RES_QUE_PLUS_FCLASS;
418 resp.response.ptr_que_plus_fclass = &fclass;
419
420 ret = qAT_PlusFCLASS(src_infos_psi->srcId, (T_ACI_FCLASS_CLASS*)&fclass.n);
421
422 aci_bat_send(src_infos_psi, &resp);
423 return(ret);
424 }
425
426 /*
427 +--------------------------------------------------------------------+
428 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
429 | STATE : code ROUTINE : sBAT_PlusFCQ |
430 +--------------------------------------------------------------------+
431
432 PURPOSE : ITU-T.32
433 */
434 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFCQ(T_ACI_DTI_PRC_PSI *src_infos_psi,
435 T_BAT_cmd_send *cmd)
436 {
437 T_ACI_BAT_RSLT ret;
438
439 TRACE_FUNCTION ("sBAT_PlusFCQ()");
440
441 ret = sAT_PlusFCQ(src_infos_psi->srcId,
442 cmd->params.ptr_set_plus_fcq->rq,
443 cmd->params.ptr_set_plus_fcq->tq);
444 return(ret);
445 }
446
447 /*
448 +--------------------------------------------------------------------+
449 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
450 | STATE : code ROUTINE : qBAT_PlusFCQ |
451 +--------------------------------------------------------------------+
452
453 PURPOSE : ITU-T.32
454 */
455 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFCQ(T_ACI_DTI_PRC_PSI *src_infos_psi,
456 T_BAT_cmd_send *cmd)
457 {
458 T_ACI_BAT_RSLT ret;
459 T_BAT_cmd_response resp;
460 T_BAT_res_que_plus_fcq fcq;
461
462 TRACE_FUNCTION ("qBAT_PlusFCQ()");
463
464 resp.ctrl_response = BAT_RES_QUE_PLUS_FCQ;
465 resp.response.ptr_que_plus_fcq = &fcq;
466
467 ret = qAT_PlusFCQ(src_infos_psi->srcId,(T_ACI_FCQ_RQ*)&fcq.rq,(T_ACI_FCQ_TQ*)&fcq.tq);
468
469 aci_bat_send(src_infos_psi, &resp);
470 return(ret);
471 }
472
473 /*
474 +--------------------------------------------------------------------+
475 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
476 | STATE : code ROUTINE : sBAT_PlusFCR |
477 +--------------------------------------------------------------------+
478
479 PURPOSE : ITU-T.32
480 */
481 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFCR(T_ACI_DTI_PRC_PSI *src_infos_psi,
482 T_BAT_cmd_send *cmd)
483 {
484 T_ACI_BAT_RSLT ret;
485
486 TRACE_FUNCTION ("sBAT_PlusFCR()");
487
488 ret = sAT_PlusFCR(src_infos_psi->srcId,
489 cmd->params.ptr_set_plus_fcr->value);
490 return(ret);
491 }
492
493 /*
494 +--------------------------------------------------------------------+
495 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
496 | STATE : code ROUTINE : qBAT_PlusFCR |
497 +--------------------------------------------------------------------+
498
499 PURPOSE : ITU-T.32
500 */
501 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFCR(T_ACI_DTI_PRC_PSI *src_infos_psi,
502 T_BAT_cmd_send *cmd)
503 {
504 T_ACI_BAT_RSLT ret;
505 T_BAT_cmd_response resp;
506 T_BAT_res_que_plus_fcr fcr;
507
508 TRACE_FUNCTION ("qBAT_PlusFCR()");
509
510 resp.ctrl_response = BAT_RES_QUE_PLUS_FCR;
511 resp.response.ptr_que_plus_fcr = &fcr;
512
513 ret = qAT_PlusFCR(src_infos_psi->srcId,(T_ACI_FCR_VAL*)&fcr.value);
514
515 aci_bat_send(src_infos_psi, &resp);
516 return(ret);
517 }
518
519 /*
520 +--------------------------------------------------------------------+
521 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
522 | STATE : code ROUTINE : qBAT_PlusFCS |
523 +--------------------------------------------------------------------+
524
525 PURPOSE : ITU-T.32
526 */
527 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFCS(T_ACI_DTI_PRC_PSI *src_infos_psi,
528 T_BAT_cmd_send *cmd)
529 {
530 T_ACI_BAT_RSLT ret;
531 T_BAT_cmd_response resp;
532 T_BAT_res_que_plus_fcs fcs;
533
534 TRACE_FUNCTION ("qBAT_PlusFCS()");
535
536 resp.ctrl_response = BAT_RES_QUE_PLUS_FCS;
537 resp.response.ptr_que_plus_fcs = &fcs;
538
539 ret = qAT_PlusFCS(src_infos_psi->srcId,
540 (T_ACI_F_VR*)&fcs.vr,
541 (T_ACI_F_BR*)&fcs.br,
542 (T_ACI_F_WD*)&fcs.wd,
543 (T_ACI_F_LN*)&fcs.ln,
544 (T_ACI_F_DF*)&fcs.df,
545 (T_ACI_F_EC*)&fcs.ec,
546 (T_ACI_F_BF*)&fcs.bf,
547 (T_ACI_F_ST*)&fcs.st,
548 (T_ACI_F_JP*)&fcs.jp);
549
550 aci_bat_send(src_infos_psi, &resp);
551 return(ret);
552 }
553
554 /*
555 +--------------------------------------------------------------------+
556 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
557 | STATE : code ROUTINE : sBAT_PlusFEA |
558 +--------------------------------------------------------------------+
559
560 PURPOSE : ITU-T.32
561 */
562 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFEA(T_ACI_DTI_PRC_PSI *src_infos_psi,
563 T_BAT_cmd_send *cmd)
564 {
565 T_ACI_BAT_RSLT ret = ACI_BAT_FAIL;
566
567 TRACE_FUNCTION ("sBAT_PlusFEA(): is obsolete <=== !!! consult KJF");
568 /* adjust the left hand side
569 xxx = cmd->params.ptr_set_plus_fea->value;
570 */
571 /* hmm, do not know which ACI function to call ! */
572 ACI_ERR_DESC( ACI_ERR_CLASS_Cme, CME_ERR_OpNotSupp);
573 return(ret);
574 }
575
576 /*
577 +--------------------------------------------------------------------+
578 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
579 | STATE : code ROUTINE : qBAT_PlusFEA |
580 +--------------------------------------------------------------------+
581
582 PURPOSE : ITU-T.32
583 */
584 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFEA(T_ACI_DTI_PRC_PSI *src_infos_psi,
585 T_BAT_cmd_send *cmd)
586 {
587 T_ACI_BAT_RSLT ret = ACI_BAT_FAIL;
588
589 TRACE_FUNCTION ("qBAT_PlusFEA(): is obsolete <=== !!! consult KJF");
590 /* hmm, do not know which ACI function to call ! */
591 ACI_ERR_DESC( ACI_ERR_CLASS_Cme, CME_ERR_OpNotSupp);
592 return(ret);
593 }
594
595 /*
596 +--------------------------------------------------------------------+
597 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
598 | STATE : code ROUTINE : sBAT_PlusFFC |
599 +--------------------------------------------------------------------+
600
601 PURPOSE : ITU-T.32
602 */
603 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFFC(T_ACI_DTI_PRC_PSI *src_infos_psi,
604 T_BAT_cmd_send *cmd)
605 {
606 T_ACI_BAT_RSLT ret;
607
608 T_BAT_cmd_set_plus_ffc *ffc = cmd->params.ptr_set_plus_ffc;
609
610 TRACE_FUNCTION ("sBAT_PlusFFC()");
611
612 ret = sAT_PlusFFC(src_infos_psi->srcId,
613 ffc->vrc,
614 ffc->dfc,
615 ffc->lnc,
616 ffc->wdc);
617 return(ret);
618 }
619
620 /*
621 +--------------------------------------------------------------------+
622 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
623 | STATE : code ROUTINE : qBAT_PlusFFC |
624 +--------------------------------------------------------------------+
625
626 PURPOSE : ITU-T.32
627 */
628 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFFC(T_ACI_DTI_PRC_PSI *src_infos_psi,
629 T_BAT_cmd_send *cmd)
630 {
631 T_ACI_BAT_RSLT ret;
632 T_BAT_cmd_response resp;
633 T_BAT_res_que_plus_ffc ffc;
634
635 TRACE_FUNCTION ("qBAT_PlusFFC()");
636
637 resp.ctrl_response = BAT_RES_QUE_PLUS_FFC;
638 resp.response.ptr_que_plus_ffc = &ffc;
639
640 ret = qAT_PlusFFC(src_infos_psi->srcId,
641 (T_ACI_FFC_VRC*)&ffc.vrc,(T_ACI_FFC_DFC*)&ffc.dfc,(T_ACI_FFC_LNC*)&ffc.lnc,(T_ACI_FFC_WDC*)&ffc.wdc);
642
643 aci_bat_send(src_infos_psi, &resp);
644 return(ret);
645 }
646
647 /*
648 +--------------------------------------------------------------------+
649 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
650 | STATE : code ROUTINE : qBAT_PlusFHS |
651 +--------------------------------------------------------------------+
652
653 PURPOSE : ITU-T.32
654 */
655 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFHS(T_ACI_DTI_PRC_PSI *src_infos_psi,
656 T_BAT_cmd_send *cmd)
657 {
658 T_ACI_BAT_RSLT ret;
659 T_BAT_cmd_response resp;
660 T_BAT_res_que_plus_fhs fhs;
661
662 TRACE_FUNCTION ("qBAT_PlusFHS()");
663
664 resp.ctrl_response = BAT_RES_QUE_PLUS_FHS;
665 resp.response.ptr_que_plus_fhs = &fhs;
666
667 ret = qAT_PlusFHS(src_infos_psi->srcId, (T_ACI_FHS_STAT*)&fhs.status);
668
669 aci_bat_send(src_infos_psi, &resp);
670 return(ret);
671 }
672
673 /*
674 +--------------------------------------------------------------------+
675 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
676 | STATE : code ROUTINE : sBAT_PlusFIE |
677 +--------------------------------------------------------------------+
678
679 PURPOSE : ITU-T.32
680 */
681 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFIE(T_ACI_DTI_PRC_PSI *src_infos_psi,
682 T_BAT_cmd_send *cmd)
683 {
684 T_ACI_BAT_RSLT ret;
685
686 TRACE_FUNCTION ("sBAT_PlusFIE()");
687
688 ret = sAT_PlusFIE(src_infos_psi->srcId,
689 cmd->params.ptr_set_plus_fie->value);
690 return(ret);
691 }
692
693 /*
694 +--------------------------------------------------------------------+
695 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
696 | STATE : code ROUTINE : qBAT_PlusFIE |
697 +--------------------------------------------------------------------+
698
699 PURPOSE : ITU-T.32
700 */
701 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFIE(T_ACI_DTI_PRC_PSI *src_infos_psi,
702 T_BAT_cmd_send *cmd)
703 {
704 T_ACI_BAT_RSLT ret;
705 T_BAT_cmd_response resp;
706
707 T_BAT_res_que_plus_fie fie;
708
709 TRACE_FUNCTION ("qBAT_PlusFIE()");
710
711 resp.ctrl_response = BAT_RES_QUE_PLUS_FIE;
712 resp.response.ptr_que_plus_fie = &fie;
713
714 ret = qAT_PlusFIE(src_infos_psi->srcId, (T_ACI_FIE_VAL*)&fie.value);
715 aci_bat_send(src_infos_psi, &resp);
716 return(ret);
717 }
718
719 /*
720 +--------------------------------------------------------------------+
721 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
722 | STATE : code ROUTINE : sBAT_PlusFIS |
723 +--------------------------------------------------------------------+
724
725 PURPOSE : ITU-T.32
726 */
727 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFIS(T_ACI_DTI_PRC_PSI *src_infos_psi,
728 T_BAT_cmd_send *cmd)
729 {
730 T_ACI_BAT_RSLT ret;
731
732 T_BAT_cmd_set_plus_fis *fis = cmd->params.ptr_set_plus_fis;
733
734 TRACE_FUNCTION ("sBAT_PlusFIS()");
735
736 ret = sAT_PlusFIS(src_infos_psi->srcId,
737 fis->vr,
738 fis->br,
739 fis->wd,
740 fis->ln,
741 fis->df,
742 fis->ec,
743 fis->bf,
744 fis->st,
745 fis->jp);
746 return(ret);
747 }
748
749 /*
750 +--------------------------------------------------------------------+
751 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
752 | STATE : code ROUTINE : qBAT_PlusFIS |
753 +--------------------------------------------------------------------+
754
755 PURPOSE : ITU-T.32
756 */
757 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFIS(T_ACI_DTI_PRC_PSI *src_infos_psi,
758 T_BAT_cmd_send *cmd)
759 {
760 T_ACI_BAT_RSLT ret;
761 T_BAT_cmd_response resp;
762
763 T_BAT_res_que_plus_fis fis;
764
765 TRACE_FUNCTION ("qBAT_PlusFIS()");
766
767 resp.ctrl_response = BAT_RES_QUE_PLUS_FIS;
768 resp.response.ptr_que_plus_fis = &fis;
769
770 ret = qAT_PlusFIS(src_infos_psi->srcId,
771 (T_ACI_F_VR*)&fis.vr,
772 (T_ACI_F_BR*)&fis.br,
773 (T_ACI_F_WD*)&fis.wd,
774 (T_ACI_F_LN*)&fis.ln,
775 (T_ACI_F_DF*)&fis.df,
776 (T_ACI_F_EC*)&fis.ec,
777 (T_ACI_F_BF*)&fis.bf,
778 (T_ACI_F_ST*)&fis.st,
779 (T_ACI_F_JP*)&fis.jp);
780
781 aci_bat_send(src_infos_psi, &resp);
782 return(ret);
783 }
784
785 /*
786 +--------------------------------------------------------------------+
787 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
788 | STATE : code ROUTINE : sBAT_PlusFLI |
789 +--------------------------------------------------------------------+
790
791 PURPOSE : ITU-T.32
792 */
793 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFLI(T_ACI_DTI_PRC_PSI *src_infos_psi,
794 T_BAT_cmd_send *cmd)
795 {
796 T_ACI_BAT_RSLT ret;
797
798 TRACE_FUNCTION ("sBAT_PlusFLI()");
799
800 ret = sAT_PlusFLI(src_infos_psi->srcId,
801 (CHAR*)cmd->params.ptr_set_plus_fli->id_str);
802 return(ret);
803 }
804
805 /*
806 +--------------------------------------------------------------------+
807 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
808 | STATE : code ROUTINE : qBAT_PlusFLI |
809 +--------------------------------------------------------------------+
810
811 PURPOSE : ITU-T.32
812 */
813 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFLI(T_ACI_DTI_PRC_PSI *src_infos_psi,
814 T_BAT_cmd_send *cmd)
815 {
816 T_ACI_BAT_RSLT ret;
817 T_BAT_cmd_response resp;
818 T_BAT_res_que_plus_fli fli;
819
820 TRACE_FUNCTION ("qBAT_PlusFLI()");
821
822 resp.ctrl_response = BAT_RES_QUE_PLUS_FLI;
823 resp.response.ptr_que_plus_fli = &fli;
824
825 ret = qAT_PlusFLI(src_infos_psi->srcId, (CHAR*)fli.id_str);
826
827 aci_bat_send(src_infos_psi, &resp);
828 return(ret);
829 }
830
831 /*
832 +--------------------------------------------------------------------+
833 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
834 | STATE : code ROUTINE : sBAT_PlusFLO |
835 +--------------------------------------------------------------------+
836
837 PURPOSE : ITU-T.32
838 */
839 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFLO(T_ACI_DTI_PRC_PSI *src_infos_psi,
840 T_BAT_cmd_send *cmd)
841 {
842 T_ACI_BAT_RSLT ret;
843
844 TRACE_FUNCTION ("sBAT_PlusFLO()");
845
846 ret = sAT_PlusIFC(src_infos_psi->srcId,
847 cmd->params.ptr_set_plus_flo->flo_c,
848 cmd->params.ptr_set_plus_flo->flo_c);
849 return(ret);
850 }
851
852 /*
853 +--------------------------------------------------------------------+
854 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
855 | STATE : code ROUTINE : qBAT_PlusFLO |
856 +--------------------------------------------------------------------+
857
858 PURPOSE : ITU-T.32
859 */
860 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFLO(T_ACI_DTI_PRC_PSI *src_infos_psi,
861 T_BAT_cmd_send *cmd)
862 {
863 T_ACI_BAT_RSLT ret;
864 T_BAT_cmd_response resp;
865 T_BAT_res_que_plus_flo flo;
866 T_ACI_RX_FLOW_CTRL DCE_by_DTE;
867 T_ACI_RX_FLOW_CTRL DTE_by_DCE;
868
869 TRACE_FUNCTION ("qBAT_PlusFLO()");
870
871 resp.ctrl_response = BAT_RES_QUE_PLUS_FLO;
872 resp.response.ptr_que_plus_flo = &flo;
873
874 ret = qAT_PlusIFC(src_infos_psi->srcId, &DCE_by_DTE, &DTE_by_DCE);
875
876 flo.flo_q = DCE_by_DTE;
877
878 aci_bat_send(src_infos_psi, &resp);
879 return(ret);
880 }
881
882 /*
883 +--------------------------------------------------------------------+
884 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
885 | STATE : code ROUTINE : sBAT_PlusFLP |
886 +--------------------------------------------------------------------+
887
888 PURPOSE : ITU-T.32
889 */
890 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFLP(T_ACI_DTI_PRC_PSI *src_infos_psi,
891 T_BAT_cmd_send *cmd)
892 {
893 T_ACI_BAT_RSLT ret;
894
895 TRACE_FUNCTION ("sBAT_PlusFLP()");
896
897 ret = sAT_PlusFLP(src_infos_psi->srcId,
898 cmd->params.ptr_set_plus_flp->value);
899 return(ret);
900 }
901
902 /*
903 +--------------------------------------------------------------------+
904 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
905 | STATE : code ROUTINE : qBAT_PlusFLP |
906 +--------------------------------------------------------------------+
907
908 PURPOSE : ITU-T.32
909 */
910 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFLP(T_ACI_DTI_PRC_PSI *src_infos_psi,
911 T_BAT_cmd_send *cmd)
912 {
913 T_ACI_BAT_RSLT ret;
914 T_BAT_cmd_response resp;
915 T_BAT_res_que_plus_flp flp;
916
917 TRACE_FUNCTION ("qBAT_PlusFLP()");
918
919 resp.ctrl_response = BAT_RES_QUE_PLUS_FLP;
920 resp.response.ptr_que_plus_flp = &flp;
921
922 ret = qAT_PlusFLP(src_infos_psi->srcId, (T_ACI_FLP_VAL*)&flp.value);
923
924 aci_bat_send(src_infos_psi, &resp);
925 return(ret);
926 }
927
928 /*
929 +--------------------------------------------------------------------+
930 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
931 | STATE : code ROUTINE : sBAT_PlusFMS |
932 +--------------------------------------------------------------------+
933
934 PURPOSE : ITU-T.32
935 */
936 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFMS(T_ACI_DTI_PRC_PSI *src_infos_psi,
937 T_BAT_cmd_send *cmd)
938 {
939 T_ACI_BAT_RSLT ret;
940
941 TRACE_FUNCTION ("sBAT_PlusFMS()");
942
943 ret = sAT_PlusFMS(src_infos_psi->srcId,
944 cmd->params.ptr_set_plus_fms->value);
945 return(ret);
946 }
947
948 /*
949 +--------------------------------------------------------------------+
950 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
951 | STATE : code ROUTINE : qBAT_PlusFMS |
952 +--------------------------------------------------------------------+
953
954 PURPOSE : ITU-T.32
955 */
956 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFMS(T_ACI_DTI_PRC_PSI *src_infos_psi,
957 T_BAT_cmd_send *cmd)
958 {
959 T_ACI_BAT_RSLT ret;
960 T_BAT_cmd_response resp;
961 T_BAT_res_que_plus_fms fms;
962
963 TRACE_FUNCTION ("qBAT_PlusFMS()");
964
965 resp.ctrl_response = BAT_RES_QUE_PLUS_FMS;
966 resp.response.ptr_que_plus_fms = &fms;
967
968 ret = qAT_PlusFMS(src_infos_psi->srcId, (T_ACI_F_BR*)&fms.value);
969
970 aci_bat_send(src_infos_psi, &resp);
971 return(ret);
972 }
973
974 /*
975 +--------------------------------------------------------------------+
976 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
977 | STATE : code ROUTINE : sBAT_PlusFNS |
978 +--------------------------------------------------------------------+
979
980 PURPOSE : ITU-T.32
981 */
982 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFNS(T_ACI_DTI_PRC_PSI *src_infos_psi,
983 T_BAT_cmd_send *cmd)
984 {
985 T_ACI_BAT_RSLT ret;
986
987 TRACE_FUNCTION ("sBAT_PlusFNS()");
988
989 ret = sAT_PlusFNS(src_infos_psi->srcId,
990 cmd->params.ptr_set_plus_fns->c_nsf,
991 cmd->params.ptr_set_plus_fns->nsf);
992 return(ret);
993 }
994
995 /*
996 +--------------------------------------------------------------------+
997 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
998 | STATE : code ROUTINE : qBAT_PlusFNS |
999 +--------------------------------------------------------------------+
1000
1001 PURPOSE : ITU-T.32
1002 */
1003 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFNS(T_ACI_DTI_PRC_PSI *src_infos_psi,
1004 T_BAT_cmd_send *cmd)
1005 {
1006 T_ACI_BAT_RSLT ret;
1007 T_BAT_cmd_response resp;
1008 T_BAT_res_que_plus_fns fns;
1009
1010 TRACE_FUNCTION ("qBAT_PlusFNS()");
1011
1012 resp.ctrl_response = BAT_RES_QUE_PLUS_FNS;
1013 resp.response.ptr_que_plus_fns = &fns;
1014
1015 ret = qAT_PlusFNS(src_infos_psi->srcId, &fns.c_nsf, fns.nsf);
1016 aci_bat_send(src_infos_psi, &resp);
1017 return(ret);
1018 }
1019
1020 /*
1021 +--------------------------------------------------------------------+
1022 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
1023 | STATE : code ROUTINE : sBAT_PlusFPA |
1024 +--------------------------------------------------------------------+
1025
1026 PURPOSE : ITU-T.32
1027 */
1028 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFPA(T_ACI_DTI_PRC_PSI *src_infos_psi,
1029 T_BAT_cmd_send *cmd)
1030 {
1031 T_ACI_BAT_RSLT ret;
1032
1033 TRACE_FUNCTION ("sBAT_PlusFPA()");
1034 ret = sAT_PlusFPA(src_infos_psi->srcId,
1035 (CHAR*)cmd->params.ptr_set_plus_fpa->spa_str);
1036 return(ret);
1037 }
1038
1039 /*
1040 +--------------------------------------------------------------------+
1041 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
1042 | STATE : code ROUTINE : qBAT_PlusFPA |
1043 +--------------------------------------------------------------------+
1044
1045 PURPOSE : ITU-T.32
1046 */
1047 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFPA(T_ACI_DTI_PRC_PSI *src_infos_psi,
1048 T_BAT_cmd_send *cmd)
1049 {
1050 T_ACI_BAT_RSLT ret;
1051 T_BAT_cmd_response resp;
1052 T_BAT_res_que_plus_fpa fpa;
1053
1054 TRACE_FUNCTION ("qBAT_PlusFPA()");
1055
1056 resp.ctrl_response = BAT_RES_QUE_PLUS_FPA;
1057 resp.response.ptr_que_plus_fpa = &fpa;
1058
1059 ret = qAT_PlusFPA(src_infos_psi->srcId, (CHAR*)fpa.spa_str);
1060 aci_bat_send(src_infos_psi, &resp);
1061 return(ret);
1062 }
1063
1064 /*
1065 +--------------------------------------------------------------------+
1066 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
1067 | STATE : code ROUTINE : sBAT_PlusFPI |
1068 +--------------------------------------------------------------------+
1069
1070 PURPOSE : ITU-T.32
1071 */
1072 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFPI(T_ACI_DTI_PRC_PSI *src_infos_psi,
1073 T_BAT_cmd_send *cmd)
1074 {
1075 T_ACI_BAT_RSLT ret;
1076
1077 TRACE_FUNCTION ("sBAT_PlusFPI()");
1078
1079 ret = sAT_PlusFPI(src_infos_psi->srcId,
1080 (CHAR*)cmd->params.ptr_set_plus_fpi->id_str);
1081 return(ret);
1082 }
1083
1084 /*
1085 +--------------------------------------------------------------------+
1086 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
1087 | STATE : code ROUTINE : qBAT_PlusFPI |
1088 +--------------------------------------------------------------------+
1089
1090 PURPOSE : ITU-T.32
1091 */
1092 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFPI(T_ACI_DTI_PRC_PSI *src_infos_psi,
1093 T_BAT_cmd_send *cmd)
1094 {
1095 T_ACI_BAT_RSLT ret;
1096 T_BAT_cmd_response resp;
1097 T_BAT_res_que_plus_fpi fpi;
1098
1099 TRACE_FUNCTION ("qBAT_PlusFPI()");
1100
1101 resp.ctrl_response = BAT_RES_QUE_PLUS_FPI;
1102 resp.response.ptr_que_plus_fpi = &fpi;
1103
1104 ret = qAT_PlusFPI(src_infos_psi->srcId, (CHAR*)fpi.id_str);
1105 aci_bat_send(src_infos_psi, &resp);
1106 return(ret);
1107 }
1108
1109 /*
1110 +--------------------------------------------------------------------+
1111 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
1112 | STATE : code ROUTINE : sBAT_PlusFPS |
1113 +--------------------------------------------------------------------+
1114
1115 PURPOSE : ITU-T.32
1116 */
1117 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFPS(T_ACI_DTI_PRC_PSI *src_infos_psi,
1118 T_BAT_cmd_send *cmd)
1119 {
1120 T_ACI_BAT_RSLT ret;
1121
1122 TRACE_FUNCTION ("sBAT_PlusFPS()");
1123
1124 ret = sAT_PlusFPS(src_infos_psi->srcId,
1125 cmd->params.ptr_set_plus_fps->ppr);
1126 return(ret);
1127 }
1128
1129 /*
1130 +--------------------------------------------------------------------+
1131 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
1132 | STATE : code ROUTINE : qBAT_PlusFPS |
1133 +--------------------------------------------------------------------+
1134
1135 PURPOSE : ITU-T.32
1136 */
1137 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFPS(T_ACI_DTI_PRC_PSI *src_infos_psi,
1138 T_BAT_cmd_send *cmd)
1139 {
1140 T_ACI_BAT_RSLT ret;
1141 T_BAT_cmd_response resp;
1142 T_BAT_res_que_plus_fps fps;
1143
1144 TRACE_FUNCTION ("qBAT_PlusFPS()");
1145
1146 resp.ctrl_response = BAT_RES_QUE_PLUS_FPS;
1147 resp.response.ptr_que_plus_fps = &fps;
1148
1149 ret = qAT_PlusFPS(src_infos_psi->srcId, (T_ACI_FPS_PPR*)&fps.ppr);
1150 aci_bat_send(src_infos_psi, &resp);
1151 return(ret);
1152 }
1153
1154 /*
1155 +--------------------------------------------------------------------+
1156 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
1157 | STATE : code ROUTINE : sBAT_PlusFPW |
1158 +--------------------------------------------------------------------+
1159
1160 PURPOSE : ITU-T.32
1161 */
1162 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFPW(T_ACI_DTI_PRC_PSI *src_infos_psi,
1163 T_BAT_cmd_send *cmd)
1164 {
1165 T_ACI_BAT_RSLT ret;
1166
1167 TRACE_FUNCTION ("sBAT_PlusFPW()");
1168
1169 ret = sAT_PlusFPW(src_infos_psi->srcId,
1170 (CHAR*)cmd->params.ptr_set_plus_fpw->pw_str);
1171 return(ret);
1172 }
1173
1174 /*
1175 +--------------------------------------------------------------------+
1176 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
1177 | STATE : code ROUTINE : qBAT_PlusFPW |
1178 +--------------------------------------------------------------------+
1179
1180 PURPOSE : ITU-T.32
1181 */
1182 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFPW(T_ACI_DTI_PRC_PSI *src_infos_psi,
1183 T_BAT_cmd_send *cmd)
1184 {
1185 T_ACI_BAT_RSLT ret;
1186 T_BAT_cmd_response resp;
1187 T_BAT_res_que_plus_fpw fpw;
1188
1189 TRACE_FUNCTION ("qBAT_PlusFPW()");
1190
1191 resp.ctrl_response = BAT_RES_QUE_PLUS_FPW;
1192 resp.response.ptr_que_plus_fpw = &fpw;
1193
1194 ret = qAT_PlusFPW(src_infos_psi->srcId,(CHAR*)fpw.pw_str);
1195 aci_bat_send(src_infos_psi, &resp);
1196 return(ret);
1197 }
1198
1199 /*
1200 +--------------------------------------------------------------------+
1201 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
1202 | STATE : code ROUTINE : sBAT_PlusFRQ |
1203 +--------------------------------------------------------------------+
1204
1205 PURPOSE : ITU-T.32
1206 */
1207 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFRQ(T_ACI_DTI_PRC_PSI *src_infos_psi,
1208 T_BAT_cmd_send *cmd)
1209 {
1210 T_ACI_BAT_RSLT ret;
1211
1212 TRACE_FUNCTION ("sBAT_PlusFRQ()");
1213
1214 ret = sAT_PlusFRQ(src_infos_psi->srcId,
1215 cmd->params.ptr_set_plus_frq->pgl,
1216 cmd->params.ptr_set_plus_frq->cbl);
1217 return(ret);
1218 }
1219
1220 /*
1221 +--------------------------------------------------------------------+
1222 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
1223 | STATE : code ROUTINE : qBAT_PlusFRQ |
1224 +--------------------------------------------------------------------+
1225
1226 PURPOSE : ITU-T.32
1227 */
1228 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFRQ(T_ACI_DTI_PRC_PSI *src_infos_psi,
1229 T_BAT_cmd_send *cmd)
1230 {
1231 T_ACI_BAT_RSLT ret;
1232 T_BAT_cmd_response resp;
1233 T_BAT_res_que_plus_frq frq;
1234
1235 TRACE_FUNCTION ("qBAT_PlusFRQ()");
1236
1237 resp.ctrl_response = BAT_RES_QUE_PLUS_FRQ;
1238 resp.response.ptr_que_plus_frq = &frq;
1239
1240 ret = qAT_PlusFRQ(src_infos_psi->srcId, (SHORT*)&frq.pgl, (SHORT*)&frq.cbl);
1241 aci_bat_send(src_infos_psi, &resp);
1242 return(ret);
1243 }
1244
1245 /*
1246 +--------------------------------------------------------------------+
1247 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
1248 | STATE : code ROUTINE : sBAT_PlusFCT |
1249 +--------------------------------------------------------------------+
1250
1251 PURPOSE : ITU-T.32
1252 */
1253 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFCT(T_ACI_DTI_PRC_PSI *src_infos_psi,
1254 T_BAT_cmd_send *cmd)
1255 {
1256 T_ACI_BAT_RSLT ret;
1257
1258 TRACE_FUNCTION ("sBAT_PlusFCT()");
1259
1260 ret = sAT_PlusFCT(src_infos_psi->srcId,
1261 cmd->params.ptr_set_plus_fct->value);
1262 return(ret);
1263 }
1264
1265 /*
1266 +--------------------------------------------------------------------+
1267 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
1268 | STATE : code ROUTINE : qBAT_PlusFCT |
1269 +--------------------------------------------------------------------+
1270
1271 PURPOSE : ITU-T.32
1272 */
1273 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFCT(T_ACI_DTI_PRC_PSI *src_infos_psi,
1274 T_BAT_cmd_send *cmd)
1275 {
1276 T_ACI_BAT_RSLT ret;
1277 T_BAT_cmd_response resp;
1278 T_BAT_res_que_plus_fct fct;
1279
1280 TRACE_FUNCTION ("qBAT_PlusFCT()");
1281
1282 resp.ctrl_response = BAT_RES_QUE_PLUS_FCT;
1283 resp.response.ptr_que_plus_fct = &fct;
1284
1285 ret = qAT_PlusFCT(src_infos_psi->srcId, (SHORT*)&fct.value);
1286 aci_bat_send(src_infos_psi, &resp);
1287 return(ret);
1288 }
1289
1290 /*
1291 +--------------------------------------------------------------------+
1292 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
1293 | STATE : code ROUTINE : sBAT_PlusFSA |
1294 +--------------------------------------------------------------------+
1295
1296 PURPOSE : ITU-T.32
1297 */
1298 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFSA(T_ACI_DTI_PRC_PSI *src_infos_psi,
1299 T_BAT_cmd_send *cmd)
1300 {
1301 T_ACI_BAT_RSLT ret;
1302
1303 TRACE_FUNCTION ("sBAT_PlusFSA()");
1304
1305 ret = sAT_PlusFSA(src_infos_psi->srcId,
1306 (CHAR*)cmd->params.ptr_set_plus_fsa->sub_str);
1307 return(ret);
1308 }
1309
1310 /*
1311 +--------------------------------------------------------------------+
1312 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
1313 | STATE : code ROUTINE : qBAT_PlusFSA |
1314 +--------------------------------------------------------------------+
1315
1316 PURPOSE : ITU-T.32
1317 */
1318 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFSA(T_ACI_DTI_PRC_PSI *src_infos_psi,
1319 T_BAT_cmd_send *cmd)
1320 {
1321 T_ACI_BAT_RSLT ret;
1322 T_BAT_cmd_response resp;
1323 T_BAT_res_que_plus_fsa fsa;
1324
1325 TRACE_FUNCTION ("qBAT_PlusFSA()");
1326
1327 resp.ctrl_response = BAT_RES_QUE_PLUS_FSA;
1328 resp.response.ptr_que_plus_fsa = &fsa;
1329
1330 ret = qAT_PlusFSA(src_infos_psi->srcId, (CHAR*)fsa.sub_str);
1331
1332 aci_bat_send(src_infos_psi, &resp);
1333 return(ret);
1334 }
1335
1336 /*
1337 +--------------------------------------------------------------------+
1338 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
1339 | STATE : code ROUTINE : sBAT_PlusFSP |
1340 +--------------------------------------------------------------------+
1341
1342 PURPOSE : ITU-T.32
1343 */
1344 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFSP(T_ACI_DTI_PRC_PSI *src_infos_psi,
1345 T_BAT_cmd_send *cmd)
1346 {
1347 T_ACI_BAT_RSLT ret;
1348
1349 TRACE_FUNCTION ("sBAT_PlusFSP()");
1350
1351 ret = sAT_PlusFSP(src_infos_psi->srcId, cmd->params.ptr_set_plus_fsp->poll);
1352 return(ret);
1353 }
1354
1355 /*
1356 +--------------------------------------------------------------------+
1357 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
1358 | STATE : code ROUTINE : qBAT_PlusFSP |
1359 +--------------------------------------------------------------------+
1360
1361 PURPOSE : ITU-T.32
1362 */
1363 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFSP(T_ACI_DTI_PRC_PSI *src_infos_psi,
1364 T_BAT_cmd_send *cmd)
1365 {
1366 T_ACI_BAT_RSLT ret;
1367 T_BAT_cmd_response resp;
1368 T_BAT_res_que_plus_fsp fsp;
1369
1370 TRACE_FUNCTION ("qBAT_PlusFSP()");
1371
1372 resp.ctrl_response = BAT_RES_QUE_PLUS_FSP;
1373 resp.response.ptr_que_plus_fsp = &fsp;
1374
1375 ret = qAT_PlusFSP(src_infos_psi->srcId, (T_ACI_FSP_VAL*)&fsp.poll);
1376
1377 aci_bat_send(src_infos_psi, &resp);
1378 return(ret);
1379 }
1380
1381 /*
1382 +--------------------------------------------------------------------+
1383 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
1384 | STATE : code ROUTINE : sBAT_PlusFIT |
1385 +--------------------------------------------------------------------+
1386
1387 PURPOSE : ITU-T.32
1388 */
1389 GLOBAL T_ACI_BAT_RSLT sBAT_PlusFIT(T_ACI_DTI_PRC_PSI *src_infos_psi,
1390 T_BAT_cmd_send *cmd)
1391 {
1392 T_ACI_BAT_RSLT ret;
1393
1394 TRACE_FUNCTION ("sBAT_PlusFIT()");
1395
1396 ret = sAT_PlusFIT(src_infos_psi->srcId,
1397 cmd->params.ptr_set_plus_fit->time,
1398 cmd->params.ptr_set_plus_fit->action);
1399 return(ret);
1400 }
1401
1402 /*
1403 +--------------------------------------------------------------------+
1404 | PROJECT : GSM-F&D (8411) MODULE : ACI_BAT |
1405 | STATE : code ROUTINE : qBAT_PlusFIT |
1406 +--------------------------------------------------------------------+
1407
1408 PURPOSE : ITU-T.32
1409 */
1410 GLOBAL T_ACI_BAT_RSLT qBAT_PlusFIT(T_ACI_DTI_PRC_PSI *src_infos_psi,
1411 T_BAT_cmd_send *cmd)
1412 {
1413 T_ACI_BAT_RSLT ret;
1414 T_BAT_cmd_response resp;
1415 T_BAT_res_que_plus_fit fit;
1416
1417 TRACE_FUNCTION ("qBAT_PlusFIT()");
1418
1419 resp.ctrl_response = BAT_RES_QUE_PLUS_FIT;
1420 resp.response.ptr_que_plus_fit = &fit;
1421
1422 ret = qAT_PlusFIT(src_infos_psi->srcId, (SHORT*)&fit.time, (T_ACI_FIT_ACT*)&fit.action);
1423 aci_bat_send(src_infos_psi, &resp);
1424 return(ret);
1425 }
1426
1427 #endif /* FF_FAX */