FreeCalypso > hg > tcs211-l1-reconst
comparison g23m/condat/ms/src/mfw/mfw_mme.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
1 /* | |
2 +--------------------------------------------------------------------+ | |
3 | PROJECT: MMI-Framework (8417) $Workfile:: mfw_mme.h $| | |
4 | $Author:: Es $ CONDAT GmbH $Revision:: 2 $| | |
5 | CREATED: 11.02.99 $Modtime:: 22.02.00 11:20 $| | |
6 | STATE : code | | |
7 +--------------------------------------------------------------------+ | |
8 | |
9 MODULE : MFW_MME | |
10 | |
11 PURPOSE : Miscelleaneous Mobile Equipment | |
12 | |
13 EXPORT : | |
14 | |
15 TO DO : | |
16 | |
17 $History:: mfw_mme.h $ | |
18 ************************************************************************ | |
19 * | |
20 * xpradipg - LOCOSTO-ENH-31895 : 23 June 2005 | |
21 * Description: Support for various audio profiles | |
22 * Solution: The support for audio device's carkit/headset/loudspeaker/handheld. | |
23 * The audio device is enabled as per the user actions. | |
24 * | |
25 * ***************** Version 2 ******************************************* | |
26 * User: Es Date: 2.03.00 Time: 16:48 | |
27 * Updated in $/GSM/Condat/MS/SRC/MFW | |
28 * generate battery/signal primitives with more info from driver | |
29 * callbacks. Catch the primitives on reception and call MMI event | |
30 * handler. Don't use ACI any longer for this purpose. | |
31 * | |
32 * ***************** Version 1 ***************** | |
33 * User: Es Date: 20.02.99 Time: 11:54 | |
34 * Created in $/GSM/DEV/MS/SRC/MFW | |
35 * mobile equipment | |
36 */ | |
37 | |
38 #ifndef _DEF_MFW_MME_H_ | |
39 #define _DEF_MFW_MME_H_ | |
40 | |
41 typedef struct MfwMmeTag /* Equipment CONTROL BLOCK */ | |
42 { | |
43 MfwEvt map; /* selection of events */ | |
44 MfwCb handler; /* event handler */ | |
45 U32 value; /* event related value */ | |
46 } MfwMme; | |
47 | |
48 /* EQUIPMENT FLAGS & EVENTS */ | |
49 #define MfwMmeSignal 1 /* signal quality change */ | |
50 #define MfwMmeBattery 2 /* battery level change */ | |
51 #define MfwMmeBaState 4 /* state of power supply */ | |
52 #define MfwMmeRtcAlarm 8 /* real time clock alarm */ | |
53 #define MfwMmeHdsDetect 16 /* headset detection */ | |
54 #define MfwMmeIrdaMsg 32 /* IRDA event */ | |
55 // xpradipg - LOCOSTO-ENH-31895 : 23 June 2005 | |
56 #ifdef FF_MMI_AUDIO_PROFILE | |
57 #define MfwMmeHeadset 64 /* headset event */ | |
58 #define MfwMmeCarkit 128 /* carkit event */ | |
59 #endif | |
60 | |
61 | |
62 //Light level settings | |
63 #define BL_NO_LIGHT 0 | |
64 #define BL_MAX_LIGHT 255 | |
65 #define BL_SET_IDLE -1 | |
66 #define BL_NO_CHANGE -2 | |
67 | |
68 //Events that may affect the backlight | |
69 enum { | |
70 BL_INIT, | |
71 BL_IDLE_TIMER, | |
72 BL_KEY_PRESS, | |
73 BL_INCOMING_SMS, | |
74 BL_INCOMING_CALL, | |
75 BL_EXIT, | |
76 BL_SPARE_OPTION_1, | |
77 BL_SPARE_OPTION_2, | |
78 BL_SPARE_OPTION_3, | |
79 BL_LAST_OPTION | |
80 }; | |
81 // xpradipg - LOCOSTO-ENH-31895 : 23 June 2005 | |
82 #ifdef FF_MMI_AUDIO_PROFILE | |
83 #define MFW_AUD_HANDHELD 1 | |
84 #define MFW_AUD_LOUDSPEAKER 2 | |
85 #define MFW_AUD_HEADSET 3 | |
86 #define MFW_AUD_CARKIT 4 | |
87 #endif | |
88 | |
89 /* PROTOTYPES */ | |
90 MfwRes mmeInit (void); | |
91 MfwRes mmeExit (void); | |
92 MfwHnd mmeCreate (MfwHnd w, MfwEvt e, MfwCb f); | |
93 MfwRes mmeDelete (MfwHnd h); | |
94 void mmeSignal (U32 evt, U32 val); | |
95 void mmeBackLight (U8 level); | |
96 void mme_setBacklightEvent(int event, int lightLevel); | |
97 void mme_backlightEvent(int event); | |
98 void mmeAudioTone (U8 callTone, U8 volume, U8 toneStat); | |
99 MfwRes mmeSetVolume (U16 audioIn, U16 audioOut); | |
100 MfwRes mmeRtcInit (USHORT drvHandle, UBYTE *info); | |
101 MfwRes mmeHdsInit (void (*hds_init) ()); | |
102 | |
103 void mmeRxInfo (U8 intervalls, U16 level); | |
104 void mmeBattInfo (U8 intervalls, U16 level); | |
105 // xpradipg - LOCOSTO-ENH-31895 : 23 June 2005 | |
106 #ifdef FF_MMI_AUDIO_PROFILE | |
107 EXTERN void mfw_auido_device_indication(U8 notify); | |
108 EXTERN int mfw_get_current_audioDevice(); | |
109 EXTERN void mfw_unset_stereo_path(int device); | |
110 EXTERN void mfw_set_stereo_path(int device); | |
111 #endif | |
112 #endif |