Contiki-Inga 3.x
Functions
BMP085 Digital Pressure Sensor

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.
 

Detailed Description

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.

Function Documentation

int8_t bmp085_available ( void  )

Tests if BMP085 is available.

Return values
1is avaiable
0is not available

Definition at line 161 of file bmp085.c.

References BMP085_AC1_ADDR.

Referenced by bmp085_init().

int8_t bmp085_deinit ( void  )

Deinitializes the sensor.

Todo:
: Dummy function that does nothing

Definition at line 186 of file bmp085.c.

int8_t bmp085_init ( void  )

Initializes the BMP085 Pressure Sensor.

Return values
0bmp085 available
1bmp085 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.

Parameters
modeone of BMP085_ULTRA_LOW_POWER, BMP085_STANDARD, BMP085_HIGH_RESOLUTION and BMP085_ULTRA_HIGH_RES
Returns
Pressure in Pa

Definition at line 252 of file bmp085.c.

int16_t bmp085_read_temperature ( void  )

This function reads and returns the calibration compensated temerature.

Returns
Temerature in 0.1 Degree

Definition at line 236 of file bmp085.c.