FreeCalypso > hg > fc-tourmaline
annotate src/ui/mfw/mfw_mme.h @ 140:1c4536a30e32
mmiBlkManager.c: bogotab fixes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 14 Nov 2020 04:27:10 +0000 |
parents | 7160f0d005d2 |
children | f51fb87f4ae1 |
rev | line source |
---|---|
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 | PROJECT: MMI-Framework (8417) $Workfile:: mfw_mme.h $| |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 | $Author:: Es $ CONDAT GmbH $Revision:: 2 $| |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 | CREATED: 11.02.99 $Modtime:: 22.02.00 11:20 $| |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 | STATE : code | |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 +--------------------------------------------------------------------+ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 MODULE : MFW_MME |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 PURPOSE : Miscelleaneous Mobile Equipment |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 EXPORT : |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 TO DO : |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 $History:: mfw_mme.h $ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 ************************************************************************ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 Mar 22, 2007 DVT: OMAPS00121916 x0039928(sumanth) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 Description: T-Flash hot swap. |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
23 xashmic 27 Sep 2006, OMAPS00096389 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
24 ENH - a) Providing static menu for re-selection of enum options for enumeration |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
25 b) Popup menu displayed on connect event, can be enabled or disabled via menu option |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
26 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
27 xashmic 9 Sep 2006, OMAPS00092732 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
28 USBMS ER |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
30 * Apr 17, 2006 ER: OMAPS00075178 x0pleela |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
31 * Description: When the charger connect to phone(i-sample), the charger driver works, but the MMI and App don't work |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
32 * Solution: Defined events for battery charger status |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 * |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
34 * xpradipg - LOCOSTO-ENH-31895 : 23 June 2005 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
35 * Description: Support for various audio profiles |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
36 * Solution: The support for audio device's carkit/headset/loudspeaker/handheld. |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
37 * The audio device is enabled as per the user actions. |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 * |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 * ***************** Version 2 ******************************************* |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 * User: Es Date: 2.03.00 Time: 16:48 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 * Updated in $/GSM/Condat/MS/SRC/MFW |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
42 * generate battery/signal primitives with more info from driver |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
43 * callbacks. Catch the primitives on reception and call MMI event |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
44 * handler. Don't use ACI any longer for this purpose. |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
45 * |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
46 * ***************** Version 1 ***************** |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
47 * User: Es Date: 20.02.99 Time: 11:54 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
48 * Created in $/GSM/DEV/MS/SRC/MFW |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
49 * mobile equipment |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
50 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
51 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
52 #ifndef _DEF_MFW_MME_H_ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
53 #define _DEF_MFW_MME_H_ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
54 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
55 typedef struct MfwMmeTag /* Equipment CONTROL BLOCK */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
56 { |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
57 MfwEvt map; /* selection of events */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
58 MfwCb handler; /* event handler */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
59 U32 value; /* event related value */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
60 } MfwMme; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
61 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
62 /* EQUIPMENT FLAGS & EVENTS */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
63 #define MfwMmeSignal 1 /* signal quality change */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
64 #define MfwMmeBattery 2 /* battery level change */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
65 #define MfwMmeBaState 4 /* state of power supply */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
66 #define MfwMmeRtcAlarm 8 /* real time clock alarm */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
67 #define MfwMmeHdsDetect 16 /* headset detection */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
68 #define MfwMmeIrdaMsg 32 /* IRDA event */ |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
69 // xpradipg - LOCOSTO-ENH-31895 : 23 June 2005 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
70 #ifdef FF_MMI_AUDIO_PROFILE |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
71 #define MfwMmeHeadset 64 /* headset event */ |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
72 #define MfwMmeCarkit 128 /* carkit event */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
73 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
74 #ifdef FF_MMI_FILEMANAGER |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
75 #define TFLASH_MMI_IND 0x1110 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
76 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
77 typedef enum |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
78 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
79 MC_INSERT_EVENT = 0, //MC Inserted |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
80 MC_REMOVE_EVENT //MC Removed |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
81 }T_MC_EVENT; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
82 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
83 typedef struct |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
84 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
85 T_MC_EVENT mc_status; |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
86 } T_TFLASH_MMI_IND; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
87 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
88 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
89 //xashmic 9 Sep 2006, OMAPS00092732 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
90 #ifdef FF_MMI_USBMS |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
91 #define MfwMmeUSBMS 256 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
92 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
93 /*Defining the premitive*/ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
94 #define USBMS_MMI_IND 0x1000 //This value has been set keeping in mind that it would not clash with exisitng IND created via sap editor. |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
95 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
96 /* Mar 22, 2007 DVT: OMAPS00121916 x0039928 */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
97 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
98 typedef struct |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
99 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
100 U32 usb_status; |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
101 } T_USBMS_MMI_IND; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
102 typedef enum |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
103 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
104 MFW_USB_ENUM = 0, //USB Proceed With ENUM |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
105 MFW_USB_NO_ENUM //USB Do not Enumerate |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
106 }T_MFW_USB_ENUM_CONTROL; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
107 typedef enum |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
108 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
109 MFW_USB_TYPE_MS = 0, |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
110 MFW_USB_TYPE_TRACE, |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
111 MFW_USB_TYPE_AT, |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
112 MFW_USB_TYPE_AT_TRACE,//xashmic 27 Sep 2006, OMAPS00096389 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
113 MFW_USB_TYPE_MS_TRACE,//xashmic 27 Sep 2006, OMAPS00096389 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
114 MFW_USB_TYPE_AT_MS,//xashmic 27 Sep 2006, OMAPS00096389 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
115 MFW_USB_TYPE_ALL |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
116 }T_MFW_USB_ENUM_TYPE; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
117 typedef enum |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
118 { |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
119 MFW_USB_CABLE_CONNECT_EVENT = 0, //USB Cable Connection Detected |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
120 MFW_USB_CABLE_DISCONNECT_EVENT, //USB Cable Removal Detected |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
121 MFW_USB_ENUM_SUCCESS_EVENT, //USB Enumeration Successful |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
122 MFW_USB_ENUM_FAILURE_EVENT //USB Enumeration Failed |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
123 #ifdef FF_MMI_FILEMANAGER |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
124 ,MFW_TFLASH_INSERTED_EVENT, |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
125 MFW_TFLASH_REMOVED_EVENT |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
126 #endif |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
127 }T_MFW_USB_EVENT; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
128 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
129 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
130 //xashmic 27 Sep 2006, OMAPS00096389 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
131 #define MFW_USBMS_PS_SHUTDOWN 0x01 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
132 #define MFW_USBMS_PS_NO_SHUTDOWN (~MFW_USBMS_PS_SHUTDOWN) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
133 #define MFW_USBMS_POPUP_ENABLE 0x02 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
134 #define MFW_USBMS_POPUP_DISABLE (~MFW_USBMS_POPUP_ENABLE) |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
135 //PS shutdown disabled and Popup disabled |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
136 #define MFW_USBMS_DEFAULT MFW_USBMS_POPUP_ENABLE |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
137 |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
138 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
139 |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
140 // xpradipg - LOCOSTO-ENH-31895 : 23 June 2005 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
141 #ifdef FF_MMI_AUDIO_PROFILE |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
142 #define MFW_AUD_HANDHELD 1 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
143 #define MFW_AUD_LOUDSPEAKER 2 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
144 #define MFW_AUD_HEADSET 3 |
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
145 #define MFW_AUD_CARKIT 4 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
146 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
147 |
69
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
148 /* |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
149 * FreeCalypso change: battery states and events |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
150 * communicated via MfwMmeBaState signal. |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
151 */ |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
152 enum { |
69
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
153 BATT_STATE_NO_CHARGING = 0, |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
154 BATT_STATE_CHARGING, |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
155 BATT_STATE_CHARGING_COMPLETE, |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
156 /* last state, events follow */ |
77321341946c
first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents:
63
diff
changeset
|
157 BATT_EVENT_CHARGER_PLUG |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
158 }; |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
159 /* PROTOTYPES */ |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
160 MfwRes mmeInit (void); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
161 MfwRes mmeExit (void); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
162 MfwHnd mmeCreate (MfwHnd w, MfwEvt e, MfwCb f); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
163 MfwRes mmeDelete (MfwHnd h); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
164 void mmeSignal (U32 evt, U32 val); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
165 void mmeAudioTone (U8 callTone, U8 volume, U8 toneStat); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
166 MfwRes mmeSetVolume (U16 audioIn, U16 audioOut); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
167 MfwRes mmeRtcInit (USHORT drvHandle, UBYTE *info); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
168 MfwRes mmeHdsInit (void (*hds_init) ()); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
169 |
84
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
170 void mme_backlightOnEvent (void); |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
171 int mme_backlightKeyPress (void); |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
172 extern UBYTE mme_backlight_incall; |
7160f0d005d2
first stage of actual FreeCalypso backlight rework
Mychaela Falconia <falcon@freecalypso.org>
parents:
69
diff
changeset
|
173 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
174 void mmeRxInfo (U8 intervalls, U16 level); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
175 void mmeBattInfo (U8 intervalls, U16 level); |
63
7c7fe9d0ea7c
mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
176 // xpradipg - LOCOSTO-ENH-31895 : 23 June 2005 |
3
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
177 #ifdef FF_MMI_AUDIO_PROFILE |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
178 EXTERN void mfw_auido_device_indication(U8 notify); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
179 EXTERN int mfw_get_current_audioDevice(); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
180 EXTERN void mfw_unset_stereo_path(int device); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
181 EXTERN void mfw_set_stereo_path(int device); |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
182 #endif |
67bfe9f274f6
src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
183 #endif |