annotate src/ui/mfw/mfw_mme.h @ 82:2e93bc63ba71

mmiCall.c: white space initial preen
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Oct 2020 06:13:01 +0000
parents 77321341946c
children 7160f0d005d2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 //Light level settings
3
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
141 #define BL_NO_LIGHT 0
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
142 #define BL_MAX_LIGHT 255
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
143 #define BL_SET_IDLE -1
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
144 #define BL_NO_CHANGE -2
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
145
63
7c7fe9d0ea7c mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents: 3
diff changeset
146 //Events that may affect the backlight
3
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
147 enum {
63
7c7fe9d0ea7c mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents: 3
diff changeset
148 BL_INIT,
7c7fe9d0ea7c mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents: 3
diff changeset
149 BL_IDLE_TIMER,
7c7fe9d0ea7c mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents: 3
diff changeset
150 BL_KEY_PRESS,
7c7fe9d0ea7c mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents: 3
diff changeset
151 BL_INCOMING_SMS,
7c7fe9d0ea7c mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents: 3
diff changeset
152 BL_INCOMING_CALL,
7c7fe9d0ea7c mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents: 3
diff changeset
153 BL_EXIT,
7c7fe9d0ea7c mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents: 3
diff changeset
154 BL_SPARE_OPTION_1,
7c7fe9d0ea7c mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents: 3
diff changeset
155 BL_SPARE_OPTION_2,
7c7fe9d0ea7c mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents: 3
diff changeset
156 BL_SPARE_OPTION_3,
7c7fe9d0ea7c mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents: 3
diff changeset
157 BL_LAST_OPTION
3
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
158 };
63
7c7fe9d0ea7c mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents: 3
diff changeset
159 // 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
160 #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
161 #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
162 #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
163 #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
164 #define MFW_AUD_CARKIT 4
3
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
165 #endif
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
166
69
77321341946c first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents: 63
diff changeset
167 /*
77321341946c first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents: 63
diff changeset
168 * FreeCalypso change: battery states and events
77321341946c first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents: 63
diff changeset
169 * communicated via MfwMmeBaState signal.
77321341946c first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents: 63
diff changeset
170 */
63
7c7fe9d0ea7c mfw_mme.[ch]: white space cleanup (bogotabs and trailing ws)
Mychaela Falconia <falcon@freecalypso.org>
parents: 3
diff changeset
171 enum {
69
77321341946c first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents: 63
diff changeset
172 BATT_STATE_NO_CHARGING = 0,
77321341946c first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents: 63
diff changeset
173 BATT_STATE_CHARGING,
77321341946c first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents: 63
diff changeset
174 BATT_STATE_CHARGING_COMPLETE,
77321341946c first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents: 63
diff changeset
175 /* last state, events follow */
77321341946c first-pass implementation of UI to FCHG connection
Mychaela Falconia <falcon@freecalypso.org>
parents: 63
diff changeset
176 BATT_EVENT_CHARGER_PLUG
3
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
177 };
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
178 /* PROTOTYPES */
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
179 MfwRes mmeInit (void);
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
180 MfwRes mmeExit (void);
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
181 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
182 MfwRes mmeDelete (MfwHnd h);
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
183 void mmeSignal (U32 evt, U32 val);
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
184 void mmeBackLight (U8 level);
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
185 void mme_setBacklightEvent(int event, int lightLevel);
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
186 void mme_backlightEvent(int event);
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
187 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
188 MfwRes mmeSetVolume (U16 audioIn, U16 audioOut);
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
189 MfwRes mmeRtcInit (USHORT drvHandle, UBYTE *info);
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
190 MfwRes mmeHdsInit (void (*hds_init) ());
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
191
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
192 void mmeRxInfo (U8 intervalls, U16 level);
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
193 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
194 // 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
195 #ifdef FF_MMI_AUDIO_PROFILE
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
196 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
197 EXTERN int mfw_get_current_audioDevice();
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
198 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
199 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
200 #endif
67bfe9f274f6 src/ui: import of src/ui3 from Magnetite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
201 #endif