diff options
Diffstat (limited to 'include/linux/m4sensorhub/MemMapUserSettings.h')
| -rw-r--r-- | include/linux/m4sensorhub/MemMapUserSettings.h | 57 | 
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  |