![]() |
LibDriver BMP180
|
bmp180 base driver modules More...
Data Structures | |
| struct | bmp180_handle_s |
| bmp180 handle structure definition More... | |
| struct | bmp180_info_s |
| bmp180 information structure definition More... | |
Typedefs | |
| typedef struct bmp180_handle_s | bmp180_handle_t |
| bmp180 handle structure definition | |
| typedef struct bmp180_info_s | bmp180_info_t |
| bmp180 information structure definition | |
Enumerations | |
| enum | bmp180_mode_t { BMP180_MODE_ULTRA_LOW = 0x00 , BMP180_MODE_STANDARD = 0x01 , BMP180_MODE_HIGH = 0x02 , BMP180_MODE_ULTRA_HIGH = 0x03 } |
| bmp180 mode enumeration definition More... | |
Functions | |
| uint8_t | bmp180_info (bmp180_info_t *info) |
| get chip's information | |
| uint8_t | bmp180_init (bmp180_handle_t *handle) |
| initialize the chip | |
| uint8_t | bmp180_deinit (bmp180_handle_t *handle) |
| close the chip | |
| uint8_t | bmp180_read_temperature_pressure (bmp180_handle_t *handle, uint16_t *temperature_raw, float *temperature_c, uint32_t *pressure_raw, uint32_t *pressure_pa) |
| read the temperature and pressure data | |
| uint8_t | bmp180_read_pressure (bmp180_handle_t *handle, uint32_t *raw, uint32_t *pa) |
| read the pressure data | |
| uint8_t | bmp180_read_temperature (bmp180_handle_t *handle, uint16_t *raw, float *c) |
| read the temperature data | |
| uint8_t | bmp180_set_mode (bmp180_handle_t *handle, bmp180_mode_t mode) |
| set the measurement mode | |
| uint8_t | bmp180_get_mode (bmp180_handle_t *handle, bmp180_mode_t *mode) |
| get the measurement mode | |
bmp180 base driver modules
| typedef struct bmp180_handle_s bmp180_handle_t |
bmp180 handle structure definition
| typedef struct bmp180_info_s bmp180_info_t |
bmp180 information structure definition
| enum bmp180_mode_t |
bmp180 mode enumeration definition
| Enumerator | |
|---|---|
| BMP180_MODE_ULTRA_LOW | ultra low mode |
| BMP180_MODE_STANDARD | standard mode |
| BMP180_MODE_HIGH | high mode |
| BMP180_MODE_ULTRA_HIGH | ultra high mode |
Definition at line 63 of file driver_bmp180.h.
| uint8_t bmp180_deinit | ( | bmp180_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to a bmp180 handle structure |
Definition at line 277 of file driver_bmp180.c.
| uint8_t bmp180_get_mode | ( | bmp180_handle_t * | handle, |
| bmp180_mode_t * | mode ) |
get the measurement mode
| [in] | *handle | pointer to a bmp180 handle structure |
| [out] | *mode | pointer to a measurement mode buffer |
Definition at line 335 of file driver_bmp180.c.
| uint8_t bmp180_info | ( | bmp180_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to a bmp180 info structure |
Definition at line 824 of file driver_bmp180.c.
| uint8_t bmp180_init | ( | bmp180_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to a bmp180 handle structure |
Definition at line 147 of file driver_bmp180.c.
| uint8_t bmp180_read_pressure | ( | bmp180_handle_t * | handle, |
| uint32_t * | raw, | ||
| uint32_t * | pa ) |
read the pressure data
| [in] | *handle | pointer to a bmp180 handle structure |
| [out] | *raw | pointer to a raw pressure buffer |
| [out] | *pa | pointer to a converted pressure buffer |
Definition at line 363 of file driver_bmp180.c.
| uint8_t bmp180_read_temperature | ( | bmp180_handle_t * | handle, |
| uint16_t * | raw, | ||
| float * | c ) |
read the temperature data
| [in] | *handle | pointer to a bmp180 handle structure |
| [out] | *raw | pointer to a raw temperature buffer |
| [out] | *c | pointer to a converted temperature buffer |
Definition at line 528 of file driver_bmp180.c.
| uint8_t bmp180_read_temperature_pressure | ( | bmp180_handle_t * | handle, |
| uint16_t * | temperature_raw, | ||
| float * | temperature_c, | ||
| uint32_t * | pressure_raw, | ||
| uint32_t * | pressure_pa ) |
read the temperature and pressure data
| [in] | *handle | pointer to a bmp180 handle structure |
| [out] | *temperature_raw | pointer to a raw temperature buffer |
| [out] | *temperature_c | pointer to a converted temperature buffer |
| [out] | *pressure_raw | pointer to a raw pressure buffer |
| [out] | *pressure_pa | pointer to a converted pressure buffer |
Definition at line 608 of file driver_bmp180.c.
| uint8_t bmp180_set_mode | ( | bmp180_handle_t * | handle, |
| bmp180_mode_t | mode ) |
set the measurement mode
| [in] | *handle | pointer to a bmp180 handle structure |
| [in] | mode | measurement mode |
Definition at line 309 of file driver_bmp180.c.