FreeCalypso > hg > freecalypso-citrine
comparison g23m-aci/aci/cmh_mmir.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_MMIR | |
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 defines the functions which are responsible | |
18 | for the responses of the protocol stack adapter for | |
19 | the subscriber identity module. | |
20 +----------------------------------------------------------------------------- | |
21 */ | |
22 | |
23 #ifndef CMH_MMIR_C | |
24 #define CMH_MMIR_C | |
25 #endif | |
26 | |
27 #include "config.h" | |
28 #include "fixedconf.h" | |
29 #include "condat-features.h" | |
30 #include "aci_conf.h" | |
31 | |
32 #include "aci_all.h" | |
33 | |
34 /*==== INCLUDES ===================================================*/ | |
35 #include "aci_cmh.h" | |
36 #include "ati_cmd.h" | |
37 #include "aci_cmd.h" | |
38 #include "aci.h" | |
39 #include "psa_mmi.h" | |
40 /*==== CONSTANTS ==================================================*/ | |
41 | |
42 | |
43 /*==== TYPES ======================================================*/ | |
44 | |
45 | |
46 /*==== EXPORT =====================================================*/ | |
47 | |
48 | |
49 /*==== VARIABLES ==================================================*/ | |
50 | |
51 | |
52 /*==== FUNCTIONS ==================================================*/ | |
53 | |
54 /* | |
55 +-------------------------------------------------------------------+ | |
56 | PROJECT : GSM-PS (6147) MODULE : CMH_MMIR | | |
57 | ROUTINE : cmhMMI_btIndication | | |
58 +-------------------------------------------------------------------+ | |
59 | |
60 PURPOSE : battery level indication | |
61 | |
62 */ | |
63 | |
64 GLOBAL void cmhMMI_btIndication ( void ) | |
65 { | |
66 | |
67 TRACE_FUNCTION ("cmhMMI_btIndication()"); | |
68 | |
69 /* process event */ | |
70 #if defined SMI OR defined MFW OR defined FF_MMI_RIV | |
71 rAT_PercentBC( mmiShrdPrm.btLev ); | |
72 #endif | |
73 } | |
74 | |
75 /* | |
76 +-------------------------------------------------------------------+ | |
77 | PROJECT : GSM-PS (6147) MODULE : CMH_MMIR | | |
78 | ROUTINE : cmhMMI_rxIndication | | |
79 +-------------------------------------------------------------------+ | |
80 | |
81 PURPOSE : rx level indication | |
82 | |
83 */ | |
84 | |
85 GLOBAL void cmhMMI_rxIndication ( void ) | |
86 { | |
87 TRACE_FUNCTION ("cmhMMI_rxIndication()"); | |
88 | |
89 /* process event */ | |
90 /* actually only needed for SMI */ | |
91 #if defined SMI OR defined MFW OR defined FF_MMI_RIV | |
92 rAT_PercentSQ( mmiShrdPrm.rxLev ); | |
93 #endif | |
94 } | |
95 | |
96 /* | |
97 +-------------------------------------------------------------------+ | |
98 | PROJECT : GSM-PS (6147) MODULE : CMH_MMIR | | |
99 | ROUTINE : cmhMMI_keyIndication | | |
100 +-------------------------------------------------------------------+ | |
101 | |
102 PURPOSE : keypad indication | |
103 | |
104 */ | |
105 | |
106 GLOBAL void cmhMMI_keyIndication ( void ) | |
107 { | |
108 | |
109 TRACE_FUNCTION ("cmhMMI_keyIndication()"); | |
110 | |
111 /* process event */ | |
112 #if defined SMI OR defined MFW | |
113 rAT_PercentDRV( DRV_DEV_Keypad, DRV_FCT_KeypadInd, | |
114 mmiShrdPrm.keyCd, mmiShrdPrm.keySt); | |
115 #endif | |
116 } | |
117 | |
118 /*==== EOF ========================================================*/ | |
119 |