comparison src/aci2/aci/cmh_mmi.h @ 3:93999a60b835

src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Sep 2016 00:29:36 +0000
parents
children
comparison
equal deleted inserted replaced
2:c41a534f33c6 3:93999a60b835
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GSM-PS (6147)
4 | Modul : CMH_MMI
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 : Definitions for the command handler
18 +-----------------------------------------------------------------------------
19 */
20
21 #ifndef CMH_MMI_H
22 #define CMH_MMI_H
23
24 /*==== CONSTANTS ==================================================*/
25
26
27 /*==== TYPES ======================================================*/
28
29 #ifdef ACI /* for for ATI only version */
30 typedef enum
31 {
32 AUDIO_IN = 75, /* audio in */
33 AUDIO_OUT = 175, /* audio out */
34 KEY_BEEP = 100, /* key beep */
35 DTMF_TONE = 100, /* dtmf tone */
36 RINGER = 100 /* ringer */
37 }
38 T_VOLUME_TYPE;
39
40 typedef enum
41 {
42 SWITCH_AUDIO_NONE,
43 SWITCH_AUDIO_OFF,
44 SWITCH_AUDIO_ALERT,
45 SWITCH_AUDIO_BUSY,
46 SWITCH_AUDIO_CALLWAIT
47 }
48 T_ACI_IBT_ACT;
49
50 typedef struct
51 {
52 T_ACI_CPI_IBT ati_currIbt;
53 T_ACI_CPI_TCH ati_currTch;
54 T_ACI_IBT_ACT last_action;
55 } T_IBT_TYPE;
56
57 #endif
58
59 /*==== PROTOTYPES =================================================*/
60 GLOBAL void cmhMMI_keyIndication ( void );
61 GLOBAL void cmhMMI_rxIndication ( void );
62 GLOBAL void cmhMMI_btIndication ( void );
63
64 #ifdef ACI
65 GLOBAL void cmhMMI_setAudioVolume ( BYTE audioIn,
66 BYTE audioOut );
67
68 GLOBAL void cmhMMI_handleAudioTone ( T_ACI_AT_CMD cmdId,
69 UBYTE response,
70 T_ACI_CPI_MSG msgType );
71
72
73 /*==== EXPORT =====================================================*/
74
75 #ifdef CMH_MMIS_C
76 GLOBAL T_IBT_TYPE ibt_params;
77 #else
78 EXTERN T_IBT_TYPE ibt_params;
79 #endif
80
81 #endif /* ACI */
82
83 #endif /* CMH_MMI_H */
84
85 /*==== EOF =======================================================*/