FreeCalypso > hg > freecalypso-citrine
comparison g23m-aci/aci/cmh_satq.c @ 0:75a11d740a02
initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 09 Jun 2016 00:02:41 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:75a11d740a02 |
---|---|
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 "config.h" | |
27 #include "fixedconf.h" | |
28 #include "condat-features.h" | |
29 #include "aci_conf.h" | |
30 | |
31 #include "aci_all.h" | |
32 /*==== INCLUDES ===================================================*/ | |
33 #include "aci_cmh.h" | |
34 | |
35 #ifdef FAX_AND_DATA | |
36 #include "aci_fd.h" | |
37 #endif /* of #ifdef FAX_AND_DATA */ | |
38 | |
39 #include "psa.h" | |
40 #include "psa_cc.h" | |
41 #include "psa_sat.h" | |
42 #include "psa_sim.h" | |
43 #include "cmh.h" | |
44 #include "cmh_sat.h" | |
45 | |
46 /*==== CONSTANTS ==================================================*/ | |
47 | |
48 /*==== EXPORT =====================================================*/ | |
49 | |
50 /*==== VARIABLES ==================================================*/ | |
51 | |
52 /*==== FUNCTIONS ==================================================*/ | |
53 | |
54 /* | |
55 +--------------------------------------------------------------------+ | |
56 | PROJECT : GSM-PS (6147) MODULE : CMH_SATS | | |
57 | STATE : code ROUTINE : qAT_PercentSATC | | |
58 +--------------------------------------------------------------------+ | |
59 | |
60 PURPOSE : This is the functional counterpart to the %SATC? AT command | |
61 which is responsible to query the SIM toolkit profile. | |
62 */ | |
63 | |
64 GLOBAL T_ACI_RETURN qAT_PercentSATC ( T_ACI_CMD_SRC srcId, | |
65 SHORT *len, UBYTE *satCnfg ) | |
66 { | |
67 | |
68 TRACE_FUNCTION ("qAT_PercentSATC()"); | |
69 /* | |
70 *------------------------------------------------------------------- | |
71 * check command source | |
72 *------------------------------------------------------------------- | |
73 */ | |
74 if(!cmh_IsVldCmdSrc (srcId)) | |
75 | |
76 return( AT_FAIL ); | |
77 | |
78 /* | |
79 *------------------------------------------------------------------- | |
80 * update SIM toolkit profile | |
81 *------------------------------------------------------------------- | |
82 */ | |
83 if( !len OR !satCnfg ) return ( AT_FAIL ); | |
84 | |
85 memcpy( satCnfg, simShrdPrm.setPrm[srcId].STKprof, MAX_STK_PRF ); | |
86 | |
87 *len = MAX_STK_PRF; | |
88 | |
89 return (AT_CMPL); | |
90 } | |
91 | |
92 | |
93 /* | |
94 +--------------------------------------------------------------------+ | |
95 | PROJECT : GSM-PS (6147) MODULE : CMH_SATS | | |
96 | STATE : code ROUTINE : qAT_PercentSIMEF | | |
97 +--------------------------------------------------------------------+ | |
98 | |
99 PURPOSE : This is the functional counterpart to the %SIMEF? AT command | |
100 which queries the EF update reporting mode. | |
101 */ | |
102 | |
103 GLOBAL T_ACI_RETURN qAT_PercentSIMEF (T_ACI_CMD_SRC srcId, | |
104 T_ACI_SIMEF_MODE *mode) | |
105 { | |
106 TRACE_FUNCTION ("qAT_PercentSIMEF()"); | |
107 | |
108 /* | |
109 * Check command source | |
110 */ | |
111 if(!cmh_IsVldCmdSrc (srcId)) | |
112 return(AT_FAIL); | |
113 | |
114 *mode=simShrdPrm.SIMEFMode[srcId]; | |
115 | |
116 return (AT_CMPL); | |
117 } | |
118 | |
119 | |
120 | |
121 /*==== EOF ========================================================*/ |