Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
lis3lv02d_platform_data Struct Reference

#include <lis3lv02d.h>

Data Fields

unsigned char click_flags
 
unsigned char click_thresh_x
 
unsigned char click_thresh_y
 
unsigned char click_thresh_z
 
unsigned char click_time_limit
 
unsigned char click_latency
 
unsigned char click_window
 
unsigned char irq_cfg
 
unsigned char irq_flags1
 
unsigned char irq_flags2
 
unsigned char duration1
 
unsigned char duration2
 
unsigned char wakeup_flags
 
unsigned char wakeup_thresh
 
unsigned char wakeup_flags2
 
unsigned char wakeup_thresh2
 
unsigned char hipass_ctrl
 
s8 axis_x
 
s8 axis_y
 
s8 axis_z
 
u16 driver_features
 
int default_rate
 
int(* setup_resources )(void)
 
int(* release_resources )(void)
 
s16 st_min_limits [3]
 
s16 st_max_limits [3]
 
int irq2
 

Detailed Description

struct lis3lv02d_platform_data - lis3 chip family platform data : Click detection unit configuration : Click detection unit x axis threshold : Click detection unit y axis threshold : Click detection unit z axis threshold : Click detection unit time parameter : Click detection unit latency parameter : Click detection unit window parameter : On chip irq source and type configuration (click / data available / wake up, open drain, polarity) : Additional irq triggering flags for irq channel 0 : Additional irq triggering flags for irq channel 1 : Wake up unit 1 duration parameter : Wake up unit 2 duration parameter : Wake up unit 1 flags : Wake up unit 1 threshold value : Wake up unit 2 flags : Wake up unit 2 threshold value : High pass filter control (enable / disable, cut off frequency) : Sensor orientation remapping for x-axis : Sensor orientation remapping for y-axis : Sensor orientation remapping for z-axis : Enable bits for different features. Disabled by default : Default sampling rate. 0 means reset default : Interrupt line setup call back function : Interrupt line release call back function [3]: Selftest acceptance minimum values [3]: Selftest acceptance maximum values : Irq line 2 number

Platform data is used to setup the sensor chip. Meaning of the different chip features can be found from the data sheet. It is publicly available at www.st.com web pages. Currently the platform data is used only for the 8 bit device. The 8 bit device has two wake up / free fall detection units and click detection unit. There are plenty of ways to configure the chip which makes is quite hard to explain deeper meaning of the fields here. Behaviour of the detection blocks varies heavily depending on the configuration. For example, interrupt detection block can use high pass filtered data which makes it react to the changes in the acceleration. Irq_flags can be used to enable interrupt detection on the both edges. With proper chip configuration this produces interrupt when some trigger starts and when it goes away.

Definition at line 50 of file lis3lv02d.h.

Field Documentation

s8 axis_x

Definition at line 113 of file lis3lv02d.h.

s8 axis_y

Definition at line 114 of file lis3lv02d.h.

s8 axis_z

Definition at line 115 of file lis3lv02d.h.

unsigned char click_flags

Definition at line 60 of file lis3lv02d.h.

unsigned char click_latency

Definition at line 65 of file lis3lv02d.h.

unsigned char click_thresh_x

Definition at line 61 of file lis3lv02d.h.

unsigned char click_thresh_y

Definition at line 62 of file lis3lv02d.h.

unsigned char click_thresh_z

Definition at line 63 of file lis3lv02d.h.

unsigned char click_time_limit

Definition at line 64 of file lis3lv02d.h.

unsigned char click_window

Definition at line 66 of file lis3lv02d.h.

int default_rate

Definition at line 118 of file lis3lv02d.h.

u16 driver_features

Definition at line 117 of file lis3lv02d.h.

unsigned char duration1

Definition at line 87 of file lis3lv02d.h.

unsigned char duration2

Definition at line 88 of file lis3lv02d.h.

unsigned char hipass_ctrl

Definition at line 105 of file lis3lv02d.h.

int irq2

Definition at line 124 of file lis3lv02d.h.

unsigned char irq_cfg

Definition at line 84 of file lis3lv02d.h.

unsigned char irq_flags1

Definition at line 85 of file lis3lv02d.h.

unsigned char irq_flags2

Definition at line 86 of file lis3lv02d.h.

int(* release_resources)(void)

Definition at line 120 of file lis3lv02d.h.

int(* setup_resources)(void)

Definition at line 119 of file lis3lv02d.h.

s16 st_max_limits[3]

Definition at line 123 of file lis3lv02d.h.

s16 st_min_limits[3]

Definition at line 122 of file lis3lv02d.h.

unsigned char wakeup_flags

Definition at line 95 of file lis3lv02d.h.

unsigned char wakeup_flags2

Definition at line 97 of file lis3lv02d.h.

unsigned char wakeup_thresh

Definition at line 96 of file lis3lv02d.h.

unsigned char wakeup_thresh2

Definition at line 98 of file lis3lv02d.h.


The documentation for this struct was generated from the following file: