Contiki-Inga 3.x
acc-sensor.h File Reference

 Accelerometer sensor definition
More...

#include "lib/sensors.h"

Go to the source code of this file.

Macros

Data Output Channels

#define ACC_X   0
 x axis data (mg output)
 
#define ACC_Y   1
 y axis data (mg output)
 
#define ACC_Z   2
 z axis data (mg output)
 
#define ACC_X_RAW   3
 x axis data (raw output)
 
#define ACC_Y_RAW   4
 y axis data (raw output)
 
#define ACC_Z_RAW   5
 z axis data (raw output)
 
Configuration types
#define ACC_CONF_SENSITIVITY   10
 Sensitivity configuration The sensor can operate at different ranges at different sensitivity levels (+/-2g,+/-4g,+/-8g,+/-16g) Possible values can be found in SENSITIVITY Values.
 
#define ACC_CONF_FIFOMODE   20
 FIFO mode configuration. More...
 
#define ACC_CONF_POWERMODE   30
 Controls power / sleep mode. More...
 
#define ACC_CONF_DATA_RATE   40
 Output data rate. More...
 
Status types
#define ACC_STATUS_BUFFER_LEVEL   50
 Fill level of the sensor buffer (If working in FIFO or Streaming mode). More...
 
SENSITIVITY Values

See Also
ACC_SENSOR_SENSITIVITY
#define ACC_2G   2
 
#define ACC_4G   4
 
#define ACC_8G   8
 
#define ACC_16G   16
 
Output Data Rate Values

#define ACC_0HZ10   1
 ODR: 0.1 Hz, bandwith: 0.05Hz, I_DD: 23 µA.
 
#define ACC_0HZ20   2
 ODR: 0.2 Hz, bandwith: 0.1Hz, I_DD: 23 µA.
 
#define ACC_0HZ39   4
 ODR: 0.39 Hz, bandwith: 0.2Hz, I_DD: 23 µA.
 
#define ACC_0HZ78   8
 ODR: 0.78 Hz, bandwith: 0.39Hz, I_DD: 23 µA.
 
#define ACC_1HZ56   16
 ODR: 1.56 Hz, bandwith: x.xxHz, I_DD: xx µA.
 
#define ACC_3HZ13   31
 ODR: 3.13 Hz, bandwith: x.xxHz, I_DD: xx µA.
 
#define ACC_6HZ25   63
 ODR: 6.25 Hz, bandwith: x.xxHz, I_DD: xx µA.
 
#define ACC_12HZ5   125
 ODR: 12.5 Hz, bandwith: x.xxHz, I_DD: xx µA.
 
#define ACC_25HZ   250
 ODR: 25 Hz, bandwith: x.xxHz, I_DD: xx µA.
 
#define ACC_50HZ   500
 ODR: 50 Hz, bandwith: x.xxHz, I_DD: xx µA.
 
#define ACC_100HZ   1000
 ODR: 100 Hz, bandwith: x.xxHz, I_DD: xx µA (default)
 
#define ACC_200HZ   2000
 ODR: 200 Hz, bandwith: x.xxHz, I_DD: xx µA.
 
#define ACC_400HZ   4000
 ODR: 400 Hz, bandwith: x.xxHz, I_DD: xx µA.
 
#define ACC_800HZ   8000
 ODR: 800 Hz, bandwith: x.xxHz, I_DD: xx µA.
 
#define ACC_1600HZ   16000
 ODR: 1600 Hz, bandwith: x.xxHz, I_DD: xx µA.
 
#define ACC_3200HZ   32000
 ODR: 3200 Hz, bandwith: x.xxHz, I_DD: xx µA.
 
FIFO mode values
See Also
ACC_SENSOR_FIFOMODE
#define ACC_MODE_BYPASS   0x0
 Bypass mode (default). More...
 
#define ACC_MODE_FIFO   0x1
 FIFO mode. More...
 
#define ACC_MODE_STREAM   0x2
 Stream mode. More...
 
Power mode values
See Also
ACC_SENSOR_POWERMODE
#define ACC_NOSLEEP   0
 No sleep.
 
#define ACC_AUTOSLEEP   1
 Auto sleep.
 

Detailed Description

 Accelerometer sensor definition
Author
Ulf Kulau kulau.nosp@m.@ibr.nosp@m..cs.t.nosp@m.u-bs.nosp@m..de Enrico Jörns joern.nosp@m.s@ib.nosp@m.r.cs..nosp@m.tu-b.nosp@m.s.de

Definition in file acc-sensor.h.