avr32_acc_t Struct Reference

#include <lis3l06al.h>


Detailed Description

Set of computed data.

Definition at line 135 of file lis3l06al.h.


Data Fields

xyz_t m
 3-axis adc measures
struct {
   unsigned char   down:1
 flip backward state
   unsigned char   left:1
 flip over to the left state
   unsigned char   right:1
 flip over to the right state
   unsigned char   topdown:1
 top-down state
   unsigned char   up:1
 flip forward state
pos
 Angle direction states.
xyz_t ag
 acceleration = m - g
int ag2
 length = sumsq(ag)
xyz_t g
 optional (for fast moves)
xyz_t s
 speed = sum(a)
int s2
 length = sumsq(s) [with sumsq = x*x + y*y + z*z]
xyz_t ak
 acceleration = m - k
int ak2
 length = sumsq(ak)
xyz_t k
 Required to decide slow or fast.

Field Documentation

acceleration = m - g

Definition at line 157 of file lis3l06al.h.

Referenced by acc_update().

length = sumsq(ag)

Definition at line 158 of file lis3l06al.h.

acceleration = m - k

Definition at line 150 of file lis3l06al.h.

Referenced by acc_update(), is_acc_abs_angle_x(), and is_acc_abs_angle_y().

length = sumsq(ak)

Definition at line 151 of file lis3l06al.h.

Referenced by acc_update(), and is_acc_slow().

unsigned char avr32_acc_t::down

flip backward state

Definition at line 143 of file lis3l06al.h.

Referenced by is_acc_down().

optional (for fast moves)

gravity = ( 0 , 0 , 1g )

Definition at line 156 of file lis3l06al.h.

Referenced by acc_update().

Required to decide slow or fast.

zero point = ( 0 , 0 , 0 )

Definition at line 149 of file lis3l06al.h.

Referenced by acc_update().

unsigned char avr32_acc_t::left

flip over to the left state

Definition at line 140 of file lis3l06al.h.

Referenced by is_acc_left().

struct { ... } avr32_acc_t::pos

Angle direction states.

Referenced by is_acc_down(), is_acc_left(), is_acc_right(), is_acc_topdown(), and is_acc_up().

unsigned char avr32_acc_t::right

flip over to the right state

Definition at line 141 of file lis3l06al.h.

Referenced by is_acc_right().

speed = sum(a)

Definition at line 159 of file lis3l06al.h.

Referenced by acc_update().

length = sumsq(s) [with sumsq = x*x + y*y + z*z]

Definition at line 160 of file lis3l06al.h.

unsigned char avr32_acc_t::topdown

top-down state

Definition at line 144 of file lis3l06al.h.

Referenced by is_acc_topdown().

unsigned char avr32_acc_t::up

flip forward state

Definition at line 142 of file lis3l06al.h.

Referenced by is_acc_up().


Generated on Fri Feb 19 02:23:25 2010 for AVR32 UC3 - lis3l06al accelerometer driver by  doxygen 1.5.5