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