summaryrefslogtreecommitdiff
path: root/include/linux/m4sensorhub/MemMapPower.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/m4sensorhub/MemMapPower.h')
-rwxr-xr-xinclude/linux/m4sensorhub/MemMapPower.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/linux/m4sensorhub/MemMapPower.h b/include/linux/m4sensorhub/MemMapPower.h
new file mode 100755
index 00000000000..56d627a81ea
--- /dev/null
+++ b/include/linux/m4sensorhub/MemMapPower.h
@@ -0,0 +1,29 @@
+/*********************************************************************
+*
+* Copyright (C) 2012 Motorola, Inc.
+*
+**********************************************************************
+
+File : MemMapPower.h
+Purpose :
+**********************************************************************/
+#ifndef __MEMMAP_POWER_H__
+#define __MEMMAP_POWER_H__
+/****************************** Defines *******************************/
+typedef struct memMapPower
+{
+ u8 version;
+ u8 enable;
+ u16 stillModeTimeout; // in secs
+ u8 motionDuration; // in secs
+ u8 motionThreshold; // in milliG
+ u8 noMotionDuration;// in secs
+ u8 noMotionThreshold; // in milliG
+ u8 deviceState; //This indicates if the device is in motion(1) or is still(0)
+}sPower;
+
+typedef enum {
+ PM_STILL,
+ PM_MOTION
+}eDeviceState;
+#endif // __MEMMAP_POWER_H__