FreeCalypso > hg > fc-magnetite
annotate src/g23m-aci/aci/ati_omcompat.c @ 544:e0bc32828f88
doc/Compiling: fc-host-tools-r9a
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 07 Nov 2018 03:26:10 +0000 |
parents | 5e39123540e6 |
children |
rev | line source |
---|---|
293
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /* |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 * This module implements those AT commands that were originally invented |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 * by Openmoko and have been retained in FreeCalypso. |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 */ |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 #ifndef ATI_OMCOMPAT_C |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 #define ATI_OMCOMPAT_C |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 #include "aci_all.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 #include <ctype.h> |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 #include <string.h> |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 #include "aci_cmh.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 #include "ati_cmd.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 #include "aci_cmd.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 #include "aci_io.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 #include "aci_cmd.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 #include "l4_tim.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 #include "line_edit.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 #include "aci_lst.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 #include "pcm.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 #include "audio.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 #include "aci.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 #include "rx.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 #include "pwr.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 #include "l4_tim.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 #ifdef GPRS |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 #ifdef DTI |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 #include "dti.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 #include "dti_conn_mng.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 #include "dti_cntrl_mng.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 #endif /* DTI */ |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 #include "gaci.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
37 #include "gaci_cmh.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 #include "gaci_cmd.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 #endif /* GPRS */ |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 #include "aci_mem.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
42 #include "aci_prs.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
43 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
44 #include "ati_int.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
45 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
46 #ifndef _SIMULATION_ |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
47 #include "ffs/ffs.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
48 #endif |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
49 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
50 #ifdef FF_ATI_BAT |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
51 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
52 #include "typedefs.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
53 #include "gdd.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
54 #include "bat.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
55 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
56 #include "ati_bat.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
57 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
58 #endif /*FF_ATI_BAT*/ |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
59 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
60 #include "audio/audio_api.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
61 #include "abb.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
62 #include "dar/dar_api.h" |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
63 |
478
5e39123540e6
hybrid fw: Openmoko-mimicking AT@BAND command implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
293
diff
changeset
|
64 EXTERN void alr_get_band_of_serving_cell (char *strbuf); |
5e39123540e6
hybrid fw: Openmoko-mimicking AT@BAND command implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
293
diff
changeset
|
65 |
293
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
66 /* |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
67 * PURPOSE : @ST command (Configure the sidetone level) |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
68 */ |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
69 GLOBAL T_ATI_RSLT atAtST (char *cl, UBYTE srcId) |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
70 { |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
71 char tmp[8]={0}; |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
72 INT8 gain = -26; |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
73 TRACE_FUNCTION("atAtST()"); |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
74 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
75 /* |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
76 * input functionality |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
77 */ |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
78 cl = parse(cl,"s", (LONG)8, tmp); |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
79 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
80 gain = atoi(tmp); |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
81 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
82 if ( cl ) |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
83 { |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
84 if ( gain == -23 || gain == -20 || gain == -17 || gain == -14 || gain == -11 || gain == -8 || gain == -5 || gain == -2 || gain == 1 || gain == -26 ) |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
85 { |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
86 Side_Tone_Write(gain); |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
87 return (ATI_CMPL); |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
88 } |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
89 else |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
90 { |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
91 cmdCmsError(CMS_ERR_OpNotAllowed); |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
92 return (ATI_FAIL); |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
93 } |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
94 } |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
95 } |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
96 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
97 GLOBAL T_ATI_RSLT queatAtST (char *cl, UBYTE srcId) |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
98 { |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
99 char *me="+ST: "; |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
100 INT8 ST1; |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
101 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
102 TRACE_FUNCTION("queatAtST()"); |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
103 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
104 ST1 = Side_Tone_Read(); |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
105 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
106 sprintf(g_sa,"%s%d",me,ST1); |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
107 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
108 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT); |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
109 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
110 return (ATI_CMPL); |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
111 } |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
112 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
113 /* |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
114 * PURPOSE : @POFF command (Power Off GSM Modem) |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
115 */ |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
116 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
117 GLOBAL T_ATI_RSLT atAtPOFF (char *cl, UBYTE srcId) |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
118 { |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
119 TRACE_FUNCTION("atAtPOFF"); |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
120 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
121 sprintf(g_sa,"%s","OK"); |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
122 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT); |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
123 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
124 ABB_Power_Off(); |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
125 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
126 return (ATI_CMPL); |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
127 } |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
128 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
129 /* |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
130 * PURPOSE : @RST command (Reset GSM Modem) |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
131 */ |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
132 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
133 GLOBAL T_ATI_RSLT atAtRST (char *cl, UBYTE srcId) |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
134 { |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
135 TRACE_FUNCTION("atAtRST"); |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
136 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
137 dar_reset_system(); |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
138 |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
139 return (ATI_CMPL); |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
140 } |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
141 |
478
5e39123540e6
hybrid fw: Openmoko-mimicking AT@BAND command implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
293
diff
changeset
|
142 /* |
5e39123540e6
hybrid fw: Openmoko-mimicking AT@BAND command implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
293
diff
changeset
|
143 * PURPOSE : @BAND command (Get RF band) |
5e39123540e6
hybrid fw: Openmoko-mimicking AT@BAND command implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
293
diff
changeset
|
144 */ |
5e39123540e6
hybrid fw: Openmoko-mimicking AT@BAND command implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
293
diff
changeset
|
145 |
5e39123540e6
hybrid fw: Openmoko-mimicking AT@BAND command implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
293
diff
changeset
|
146 GLOBAL T_ATI_RSLT atAtBAND (char *cl, UBYTE srcId) |
5e39123540e6
hybrid fw: Openmoko-mimicking AT@BAND command implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
293
diff
changeset
|
147 { |
5e39123540e6
hybrid fw: Openmoko-mimicking AT@BAND command implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
293
diff
changeset
|
148 TRACE_FUNCTION("atAtBAND"); |
5e39123540e6
hybrid fw: Openmoko-mimicking AT@BAND command implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
293
diff
changeset
|
149 alr_get_band_of_serving_cell(g_sa); |
5e39123540e6
hybrid fw: Openmoko-mimicking AT@BAND command implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
293
diff
changeset
|
150 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT); |
5e39123540e6
hybrid fw: Openmoko-mimicking AT@BAND command implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
293
diff
changeset
|
151 |
5e39123540e6
hybrid fw: Openmoko-mimicking AT@BAND command implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
293
diff
changeset
|
152 return (ATI_CMPL); |
5e39123540e6
hybrid fw: Openmoko-mimicking AT@BAND command implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
293
diff
changeset
|
153 } |
5e39123540e6
hybrid fw: Openmoko-mimicking AT@BAND command implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
293
diff
changeset
|
154 |
293
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
155 #endif /* ATI_OMCOMPAT_C */ |
5b2ebc94cae4
aci3: integrated all Openmoko AT commands except AT@BAND
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
156 |