Contiki-Inga 3.x
|
With a pressure sensor it is possible to measure the activity of a person. More...
Functions | |
int8_t | bmp085_available (void) |
Tests if BMP085 is available. More... | |
int8_t | bmp085_init (void) |
Initializes the BMP085 Pressure Sensor. More... | |
int8_t | bmp085_deinit (void) |
Deinitializes the sensor. More... | |
int16_t | bmp085_read_temperature (void) |
This function reads and returns the calibration compensated temerature. More... | |
int32_t | bmp085_read_pressure (uint8_t mode) |
This functions reads the temperature compensated value of one pressure conversion. More... | |
Operation modes | |
#define | BMP085_ULTRA_LOW_POWER 0 |
Ultra low power mode. | |
#define | BMP085_STANDARD 1 |
Standard mode. | |
#define | BMP085_HIGH_RESOLUTION 2 |
High resolution mode. | |
#define | BMP085_ULTRA_HIGH_RES 3 |
Ultra high resolution mode. | |
With a pressure sensor it is possible to measure the activity of a person.
Especially the Bosch BMP085 allows the registration of small height fluctuations by sensing the air pressure. In some related papers, a concrete application was implemented, to show how a fall analysis could be done.
int8_t bmp085_available | ( | void | ) |
Tests if BMP085 is available.
1 | is avaiable |
0 | is not available |
Definition at line 161 of file bmp085.c.
References BMP085_AC1_ADDR.
Referenced by bmp085_init().
int8_t bmp085_deinit | ( | void | ) |
int8_t bmp085_init | ( | void | ) |
Initializes the BMP085 Pressure Sensor.
0 | bmp085 available |
1 | bmp085 not available |
Definition at line 176 of file bmp085.c.
References bmp085_available().
int32_t bmp085_read_pressure | ( | uint8_t | mode | ) |
This functions reads the temperature compensated value of one pressure conversion.
mode | one of BMP085_ULTRA_LOW_POWER, BMP085_STANDARD, BMP085_HIGH_RESOLUTION and BMP085_ULTRA_HIGH_RES |