comparison src/g23m-aci/aci/cmh_mmir.c @ 1:fa8dc04885d8

src/g23m-*: import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:25:50 +0000
parents
children
comparison
equal deleted inserted replaced
0:4e78acac3d88 1:fa8dc04885d8
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 "aci_all.h"
28
29 /*==== INCLUDES ===================================================*/
30 #include "aci_cmh.h"
31 #include "ati_cmd.h"
32 #include "aci_cmd.h"
33 #include "aci.h"
34 #include "psa_mmi.h"
35 /*==== CONSTANTS ==================================================*/
36
37
38 /*==== TYPES ======================================================*/
39
40
41 /*==== EXPORT =====================================================*/
42
43
44 /*==== VARIABLES ==================================================*/
45
46
47 /*==== FUNCTIONS ==================================================*/
48
49 /*
50 +-------------------------------------------------------------------+
51 | PROJECT : GSM-PS (6147) MODULE : CMH_MMIR |
52 | ROUTINE : cmhMMI_btIndication |
53 +-------------------------------------------------------------------+
54
55 PURPOSE : battery level indication
56
57 */
58
59 GLOBAL void cmhMMI_btIndication ( void )
60 {
61
62 TRACE_FUNCTION ("cmhMMI_btIndication()");
63
64 /* process event */
65 #if defined SMI OR defined MFW OR defined FF_MMI_RIV
66 rAT_PercentBC( mmiShrdPrm.btLev );
67 #endif
68 }
69
70 /*
71 +-------------------------------------------------------------------+
72 | PROJECT : GSM-PS (6147) MODULE : CMH_MMIR |
73 | ROUTINE : cmhMMI_rxIndication |
74 +-------------------------------------------------------------------+
75
76 PURPOSE : rx level indication
77
78 */
79
80 GLOBAL void cmhMMI_rxIndication ( void )
81 {
82 TRACE_FUNCTION ("cmhMMI_rxIndication()");
83
84 /* process event */
85 /* actually only needed for SMI */
86 #if defined SMI OR defined MFW OR defined FF_MMI_RIV
87 rAT_PercentSQ( mmiShrdPrm.rxLev );
88 #endif
89 }
90
91 /*
92 +-------------------------------------------------------------------+
93 | PROJECT : GSM-PS (6147) MODULE : CMH_MMIR |
94 | ROUTINE : cmhMMI_keyIndication |
95 +-------------------------------------------------------------------+
96
97 PURPOSE : keypad indication
98
99 */
100
101 GLOBAL void cmhMMI_keyIndication ( void )
102 {
103
104 TRACE_FUNCTION ("cmhMMI_keyIndication()");
105
106 /* process event */
107 #if defined SMI OR defined MFW
108 rAT_PercentDRV( DRV_DEV_Keypad, DRV_FCT_KeypadInd,
109 mmiShrdPrm.keyCd, mmiShrdPrm.keySt);
110 #endif
111 }
112
113 /*==== EOF ========================================================*/
114