summaryrefslogtreecommitdiff
path: root/include/linux/m4sensorhub/MemMapUserSettings.h
diff options
context:
space:
mode:
authorWengang Wu <wgw@motorola.com>2014-07-18 14:13:59 -0500
committerWengang Wu <wgw@motorola.com>2014-07-18 14:13:59 -0500
commit5be4e5b903e884f4431ccb750b5c027df47f74db (patch)
tree68d630cea96785dc44b1014a5b69d0135ac67389 /include/linux/m4sensorhub/MemMapUserSettings.h
parent0e4a00c83a912944beed3d2d36915278a0d418f7 (diff)
downloadolio-linux-3.10-5be4e5b903e884f4431ccb750b5c027df47f74db.tar.xz
olio-linux-3.10-5be4e5b903e884f4431ccb750b5c027df47f74db.zip
IKXCLOCK-2896 Display: support ambient mode timeout
Change-Id: I28422cfbfefb03671ad6868eb87a828481982a9c
Diffstat (limited to 'include/linux/m4sensorhub/MemMapUserSettings.h')
-rw-r--r--include/linux/m4sensorhub/MemMapUserSettings.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/include/linux/m4sensorhub/MemMapUserSettings.h b/include/linux/m4sensorhub/MemMapUserSettings.h
new file mode 100644
index 00000000000..4a07fa5e0e9
--- /dev/null
+++ b/include/linux/m4sensorhub/MemMapUserSettings.h
@@ -0,0 +1,57 @@
+/*********************************************************************
+*
+* Copyright (C) 2012 Motorola, Inc.
+*
+**********************************************************************
+
+File : MemMapUserSettings.h
+Purpose :
+**********************************************************************/
+#ifndef __MEMMAP_USERSETTING_H__
+#define __MEMMAP_USERSETTING_H__
+/****************************** Defines *******************************/
+typedef struct memMapUserSettings
+{
+ u8 version;
+ u8 userAge;
+ u8 userGender;
+ u8 userHeight;
+ u16 userWeight;
+ u8 screenStatus;
+ u8 rtcReset;
+}sUserData;
+
+typedef enum
+{
+ FEMALE = 0,
+ MALE = 1
+}eGender;
+
+typedef enum
+{
+ DISPLAY_OFF_INTERACTIVE_OFF = 0, /* was SCREEN_OFF */
+ DISPLAY_OFF_INTERACTIVE_ON = 1, /* was SCREEN_ON */
+ DISPLAY_ON_INTERACTIVE_OFF = 2,
+ DISPLAY_ON_INTERACTIVE_ON = 3
+}eScreenStatus;
+
+#define SCREEN_STATUS_INTERACTIVE_MASK 1
+#define SCREEN_STATUS_DISPLAY_MASK 2
+
+#define INTERACTIVE_ON (SCREEN_STATUS_INTERACTIVE_MASK & DISPLAY_OFF_INTERACTIVE_ON)
+#define INTERACTIVE_OFF (SCREEN_STATUS_INTERACTIVE_MASK & DISPLAY_OFF_INTERACTIVE_OFF)
+#define DISPLAY_ON (SCREEN_STATUS_DISPLAY_MASK & DISPLAY_ON_INTERACTIVE_OFF)
+#define DISPLAY_OFF (SCREEN_STATUS_DISPLAY_MASK & DISPLAY_OFF_INTERACTIVE_OFF)
+
+typedef enum
+{
+ USERSETTINGS_VERSION = 0,
+ USERSETTINGS_USERAGE = 1,
+ USERSETTINGS_USERGENDER = 2,
+ USERSETTINGS_USERHEIGHT = 3,
+ USERSETTINGS_USERWEIGHT = 4,
+ USERSETTINGS_SCREENSTATUS = 6,
+ USERSETTINGS_RTCRESET = 7,
+}eUserSettingsOffset;
+
+#endif // __MEMMAP_USERSETTING_H__ \ No newline at end of file