summaryrefslogtreecommitdiff
path: root/include/linux/m4sensorhub/MemMapPower.h
blob: 56d627a81eabb6fffbab455e55d89198d023da2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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__