FreeCalypso > hg > fc-magnetite
comparison src/g23m-aci/aci/cmh_satq.c @ 162:53929b40109c
src/g23m-aci: initial import from TCS3.2/LoCosto
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 11 Oct 2016 02:02:43 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
161:4557e2a9c18e | 162:53929b40109c |
---|---|
1 /* | |
2 +----------------------------------------------------------------------------- | |
3 | Project : GSM-PS (6147) | |
4 | Modul : CMH_SATQ | |
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 module provides the query functions related to the | |
18 | SIM application toolkit module. | |
19 +----------------------------------------------------------------------------- | |
20 */ | |
21 | |
22 #ifndef CMH_SATQ_C | |
23 #define CMH_SATQ_C | |
24 #endif | |
25 | |
26 #include "aci_all.h" | |
27 /*==== INCLUDES ===================================================*/ | |
28 #include "aci_cmh.h" | |
29 | |
30 #ifdef FAX_AND_DATA | |
31 #include "aci_fd.h" | |
32 #endif /* of #ifdef FAX_AND_DATA */ | |
33 | |
34 #include "psa.h" | |
35 #include "psa_cc.h" | |
36 #include "psa_sat.h" | |
37 #include "psa_sim.h" | |
38 #include "cmh.h" | |
39 #include "cmh_sat.h" | |
40 | |
41 /*==== CONSTANTS ==================================================*/ | |
42 | |
43 /*==== EXPORT =====================================================*/ | |
44 | |
45 /*==== VARIABLES ==================================================*/ | |
46 | |
47 /*==== FUNCTIONS ==================================================*/ | |
48 | |
49 /* | |
50 +--------------------------------------------------------------------+ | |
51 | PROJECT : GSM-PS (6147) MODULE : CMH_SATS | | |
52 | STATE : code ROUTINE : qAT_PercentSATC | | |
53 +--------------------------------------------------------------------+ | |
54 | |
55 PURPOSE : This is the functional counterpart to the %SATC? AT command | |
56 which is responsible to query the SIM toolkit profile. | |
57 */ | |
58 | |
59 GLOBAL T_ACI_RETURN qAT_PercentSATC ( T_ACI_CMD_SRC srcId, | |
60 SHORT *len, UBYTE *satCnfg ) | |
61 { | |
62 | |
63 TRACE_FUNCTION ("qAT_PercentSATC()"); | |
64 /* | |
65 *------------------------------------------------------------------- | |
66 * check command source | |
67 *------------------------------------------------------------------- | |
68 */ | |
69 if(!cmh_IsVldCmdSrc (srcId)) | |
70 | |
71 return( AT_FAIL ); | |
72 | |
73 /* | |
74 *------------------------------------------------------------------- | |
75 * update SIM toolkit profile | |
76 *------------------------------------------------------------------- | |
77 */ | |
78 if( !len OR !satCnfg ) return ( AT_FAIL ); | |
79 | |
80 memcpy( satCnfg, simShrdPrm.setPrm[srcId].STKprof, MAX_STK_PRF ); | |
81 | |
82 *len = MAX_STK_PRF; | |
83 | |
84 return (AT_CMPL); | |
85 } | |
86 | |
87 | |
88 /* | |
89 +--------------------------------------------------------------------+ | |
90 | PROJECT : GSM-PS (6147) MODULE : CMH_SATS | | |
91 | STATE : code ROUTINE : qAT_PercentSIMEF | | |
92 +--------------------------------------------------------------------+ | |
93 | |
94 PURPOSE : This is the functional counterpart to the %SIMEF? AT command | |
95 which queries the EF update reporting mode. | |
96 */ | |
97 | |
98 GLOBAL T_ACI_RETURN qAT_PercentSIMEF (T_ACI_CMD_SRC srcId, | |
99 T_ACI_SIMEF_MODE *mode) | |
100 { | |
101 TRACE_FUNCTION ("qAT_PercentSIMEF()"); | |
102 | |
103 /* | |
104 * Check command source | |
105 */ | |
106 if(!cmh_IsVldCmdSrc (srcId)) | |
107 return(AT_FAIL); | |
108 | |
109 *mode=simShrdPrm.SIMEFMode[srcId]; | |
110 | |
111 return (AT_CMPL); | |
112 } | |
113 | |
114 | |
115 | |
116 /*==== EOF ========================================================*/ |