Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
lis3lv02d.h File Reference

Go to the source code of this file.

Data Structures

struct  lis3lv02d_platform_data
 

Macros

#define LIS3_CLICK_SINGLE_X   (1 << 0)
 
#define LIS3_CLICK_DOUBLE_X   (1 << 1)
 
#define LIS3_CLICK_SINGLE_Y   (1 << 2)
 
#define LIS3_CLICK_DOUBLE_Y   (1 << 3)
 
#define LIS3_CLICK_SINGLE_Z   (1 << 4)
 
#define LIS3_CLICK_DOUBLE_Z   (1 << 5)
 
#define LIS3_IRQ1_DISABLE   (0 << 0)
 
#define LIS3_IRQ1_FF_WU_1   (1 << 0)
 
#define LIS3_IRQ1_FF_WU_2   (2 << 0)
 
#define LIS3_IRQ1_FF_WU_12   (3 << 0)
 
#define LIS3_IRQ1_DATA_READY   (4 << 0)
 
#define LIS3_IRQ1_CLICK   (7 << 0)
 
#define LIS3_IRQ1_MASK   (7 << 0)
 
#define LIS3_IRQ2_DISABLE   (0 << 3)
 
#define LIS3_IRQ2_FF_WU_1   (1 << 3)
 
#define LIS3_IRQ2_FF_WU_2   (2 << 3)
 
#define LIS3_IRQ2_FF_WU_12   (3 << 3)
 
#define LIS3_IRQ2_DATA_READY   (4 << 3)
 
#define LIS3_IRQ2_CLICK   (7 << 3)
 
#define LIS3_IRQ2_MASK   (7 << 3)
 
#define LIS3_IRQ_OPEN_DRAIN   (1 << 6)
 
#define LIS3_IRQ_ACTIVE_LOW   (1 << 7)
 
#define LIS3_WAKEUP_X_LO   (1 << 0)
 
#define LIS3_WAKEUP_X_HI   (1 << 1)
 
#define LIS3_WAKEUP_Y_LO   (1 << 2)
 
#define LIS3_WAKEUP_Y_HI   (1 << 3)
 
#define LIS3_WAKEUP_Z_LO   (1 << 4)
 
#define LIS3_WAKEUP_Z_HI   (1 << 5)
 
#define LIS3_HIPASS_CUTFF_8HZ   0
 
#define LIS3_HIPASS_CUTFF_4HZ   1
 
#define LIS3_HIPASS_CUTFF_2HZ   2
 
#define LIS3_HIPASS_CUTFF_1HZ   3
 
#define LIS3_HIPASS1_DISABLE   (1 << 2)
 
#define LIS3_HIPASS2_DISABLE   (1 << 3)
 
#define LIS3_NO_MAP   0
 
#define LIS3_DEV_X   1
 
#define LIS3_DEV_Y   2
 
#define LIS3_DEV_Z   3
 
#define LIS3_INV_DEV_X   -1
 
#define LIS3_INV_DEV_Y   -2
 
#define LIS3_INV_DEV_Z   -3
 
#define LIS3_USE_BLOCK_READ   0x02
 

Macro Definition Documentation

#define LIS3_CLICK_DOUBLE_X   (1 << 1)

Definition at line 55 of file lis3lv02d.h.

#define LIS3_CLICK_DOUBLE_Y   (1 << 3)

Definition at line 57 of file lis3lv02d.h.

#define LIS3_CLICK_DOUBLE_Z   (1 << 5)

Definition at line 59 of file lis3lv02d.h.

#define LIS3_CLICK_SINGLE_X   (1 << 0)

Definition at line 54 of file lis3lv02d.h.

#define LIS3_CLICK_SINGLE_Y   (1 << 2)

Definition at line 56 of file lis3lv02d.h.

#define LIS3_CLICK_SINGLE_Z   (1 << 4)

Definition at line 58 of file lis3lv02d.h.

#define LIS3_DEV_X   1

Definition at line 107 of file lis3lv02d.h.

#define LIS3_DEV_Y   2

Definition at line 108 of file lis3lv02d.h.

#define LIS3_DEV_Z   3

Definition at line 109 of file lis3lv02d.h.

#define LIS3_HIPASS1_DISABLE   (1 << 2)

Definition at line 103 of file lis3lv02d.h.

#define LIS3_HIPASS2_DISABLE   (1 << 3)

Definition at line 104 of file lis3lv02d.h.

#define LIS3_HIPASS_CUTFF_1HZ   3

Definition at line 102 of file lis3lv02d.h.

#define LIS3_HIPASS_CUTFF_2HZ   2

Definition at line 101 of file lis3lv02d.h.

#define LIS3_HIPASS_CUTFF_4HZ   1

Definition at line 100 of file lis3lv02d.h.

#define LIS3_HIPASS_CUTFF_8HZ   0

Definition at line 99 of file lis3lv02d.h.

#define LIS3_INV_DEV_X   -1

Definition at line 110 of file lis3lv02d.h.

#define LIS3_INV_DEV_Y   -2

Definition at line 111 of file lis3lv02d.h.

#define LIS3_INV_DEV_Z   -3

Definition at line 112 of file lis3lv02d.h.

#define LIS3_IRQ1_CLICK   (7 << 0)

Definition at line 73 of file lis3lv02d.h.

#define LIS3_IRQ1_DATA_READY   (4 << 0)

Definition at line 72 of file lis3lv02d.h.

#define LIS3_IRQ1_DISABLE   (0 << 0)

Definition at line 68 of file lis3lv02d.h.

#define LIS3_IRQ1_FF_WU_1   (1 << 0)

Definition at line 69 of file lis3lv02d.h.

#define LIS3_IRQ1_FF_WU_12   (3 << 0)

Definition at line 71 of file lis3lv02d.h.

#define LIS3_IRQ1_FF_WU_2   (2 << 0)

Definition at line 70 of file lis3lv02d.h.

#define LIS3_IRQ1_MASK   (7 << 0)

Definition at line 74 of file lis3lv02d.h.

#define LIS3_IRQ2_CLICK   (7 << 3)

Definition at line 80 of file lis3lv02d.h.

#define LIS3_IRQ2_DATA_READY   (4 << 3)

Definition at line 79 of file lis3lv02d.h.

#define LIS3_IRQ2_DISABLE   (0 << 3)

Definition at line 75 of file lis3lv02d.h.

#define LIS3_IRQ2_FF_WU_1   (1 << 3)

Definition at line 76 of file lis3lv02d.h.

#define LIS3_IRQ2_FF_WU_12   (3 << 3)

Definition at line 78 of file lis3lv02d.h.

#define LIS3_IRQ2_FF_WU_2   (2 << 3)

Definition at line 77 of file lis3lv02d.h.

#define LIS3_IRQ2_MASK   (7 << 3)

Definition at line 81 of file lis3lv02d.h.

#define LIS3_IRQ_ACTIVE_LOW   (1 << 7)

Definition at line 83 of file lis3lv02d.h.

#define LIS3_IRQ_OPEN_DRAIN   (1 << 6)

Definition at line 82 of file lis3lv02d.h.

#define LIS3_NO_MAP   0

Definition at line 106 of file lis3lv02d.h.

#define LIS3_USE_BLOCK_READ   0x02

Definition at line 116 of file lis3lv02d.h.

#define LIS3_WAKEUP_X_HI   (1 << 1)

Definition at line 90 of file lis3lv02d.h.

#define LIS3_WAKEUP_X_LO   (1 << 0)

Definition at line 89 of file lis3lv02d.h.

#define LIS3_WAKEUP_Y_HI   (1 << 3)

Definition at line 92 of file lis3lv02d.h.

#define LIS3_WAKEUP_Y_LO   (1 << 2)

Definition at line 91 of file lis3lv02d.h.

#define LIS3_WAKEUP_Z_HI   (1 << 5)

Definition at line 94 of file lis3lv02d.h.

#define LIS3_WAKEUP_Z_LO   (1 << 4)

Definition at line 93 of file lis3lv02d.h.