Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cma3000.h
Go to the documentation of this file.
1 /*
2  * VTI CMA3000_Dxx Accelerometer driver
3  *
4  * Copyright (C) 2010 Texas Instruments
5  * Author: Hemanth V <[email protected]>
6  *
7  * This program is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU General Public License version 2 as published by
9  * the Free Software Foundation.
10  *
11  * This program is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14  * more details.
15  *
16  * You should have received a copy of the GNU General Public License along with
17  * this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef _LINUX_CMA3000_H
21 #define _LINUX_CMA3000_H
22 
23 #define CMAMODE_DEFAULT 0
24 #define CMAMODE_MEAS100 1
25 #define CMAMODE_MEAS400 2
26 #define CMAMODE_MEAS40 3
27 #define CMAMODE_MOTDET 4
28 #define CMAMODE_FF100 5
29 #define CMAMODE_FF400 6
30 #define CMAMODE_POFF 7
31 
32 #define CMARANGE_2G 2000
33 #define CMARANGE_8G 8000
34 
48  int fuzz_x;
49  int fuzz_y;
50  int fuzz_z;
51  int g_range;
56  unsigned long irqflags;
57 };
58 
59 #endif