![]() |
LibDriver BMP280
|
bmp280 base driver modules More...
Data Structures | |
| struct | bmp280_handle_s |
| bmp280 handle structure definition More... | |
| struct | bmp280_info_s |
| bmp280 information structure definition More... | |
Typedefs | |
| typedef struct bmp280_handle_s | bmp280_handle_t |
| bmp280 handle structure definition | |
| typedef struct bmp280_info_s | bmp280_info_t |
| bmp280 information structure definition | |
Functions | |
| uint8_t | bmp280_info (bmp280_info_t *info) |
| get chip's information | |
| uint8_t | bmp280_set_interface (bmp280_handle_t *handle, bmp280_interface_t interface) |
| set the interface | |
| uint8_t | bmp280_get_interface (bmp280_handle_t *handle, bmp280_interface_t *interface) |
| get the interface | |
| uint8_t | bmp280_set_addr_pin (bmp280_handle_t *handle, bmp280_address_t addr_pin) |
| set the iic address pin | |
| uint8_t | bmp280_get_addr_pin (bmp280_handle_t *handle, bmp280_address_t *addr_pin) |
| get the iic address pin | |
| uint8_t | bmp280_init (bmp280_handle_t *handle) |
| initialize the chip | |
| uint8_t | bmp280_deinit (bmp280_handle_t *handle) |
| close the chip | |
| uint8_t | bmp280_read_temperature_pressure (bmp280_handle_t *handle, uint32_t *temperature_raw, float *temperature_c, uint32_t *pressure_raw, float *pressure_pa) |
| read the temperature and pressure data | |
| uint8_t | bmp280_read_pressure (bmp280_handle_t *handle, uint32_t *pressure_raw, float *pressure_pa) |
| read the pressure data | |
| uint8_t | bmp280_read_temperature (bmp280_handle_t *handle, uint32_t *temperature_raw, float *temperature_c) |
| read the temperature data | |
| uint8_t | bmp280_soft_reset (bmp280_handle_t *handle) |
| soft reset | |
| uint8_t | bmp280_get_status (bmp280_handle_t *handle, uint8_t *status) |
| get status | |
| uint8_t | bmp280_set_temperatue_oversampling (bmp280_handle_t *handle, bmp280_oversampling_t oversampling) |
| set temperatue oversampling | |
| uint8_t | bmp280_get_temperatue_oversampling (bmp280_handle_t *handle, bmp280_oversampling_t *oversampling) |
| get temperatue oversampling | |
| uint8_t | bmp280_set_pressure_oversampling (bmp280_handle_t *handle, bmp280_oversampling_t oversampling) |
| set pressure oversampling | |
| uint8_t | bmp280_get_pressure_oversampling (bmp280_handle_t *handle, bmp280_oversampling_t *oversampling) |
| get pressure oversampling | |
| uint8_t | bmp280_set_mode (bmp280_handle_t *handle, bmp280_mode_t mode) |
| set mode | |
| uint8_t | bmp280_get_mode (bmp280_handle_t *handle, bmp280_mode_t *mode) |
| get mode | |
| uint8_t | bmp280_set_standby_time (bmp280_handle_t *handle, bmp280_standby_time_t standby_time) |
| set standby time | |
| uint8_t | bmp280_get_standby_time (bmp280_handle_t *handle, bmp280_standby_time_t *standby_time) |
| get standby time | |
| uint8_t | bmp280_set_filter (bmp280_handle_t *handle, bmp280_filter_t filter) |
| set filter | |
| uint8_t | bmp280_get_filter (bmp280_handle_t *handle, bmp280_filter_t *filter) |
| get filter | |
| uint8_t | bmp280_set_spi_wire (bmp280_handle_t *handle, bmp280_spi_wire_t spi) |
| set spi wire | |
| uint8_t | bmp280_get_spi_wire (bmp280_handle_t *handle, bmp280_spi_wire_t *spi) |
| get spi wire | |
bmp280 base driver modules
| typedef struct bmp280_handle_s bmp280_handle_t |
bmp280 handle structure definition
| typedef struct bmp280_info_s bmp280_info_t |
bmp280 information structure definition
| enum bmp280_address_t |
bmp280 address enumeration definition
| Enumerator | |
|---|---|
| BMP280_ADDRESS_ADO_LOW | ADO is low |
| BMP280_ADDRESS_ADO_HIGH | ADO is HIGH |
Definition at line 71 of file driver_bmp280.h.
| enum bmp280_filter_t |
bmp280 filter enumeration definition
| Enumerator | |
|---|---|
| BMP280_FILTER_OFF | off |
| BMP280_FILTER_COEFF_2 | coeff 2 |
| BMP280_FILTER_COEFF_4 | coeff 4 |
| BMP280_FILTER_COEFF_8 | coeff 8 |
| BMP280_FILTER_COEFF_16 | coeff 16 |
Definition at line 127 of file driver_bmp280.h.
| enum bmp280_interface_t |
bmp280 interface enumeration definition
| Enumerator | |
|---|---|
| BMP280_INTERFACE_IIC | iic interface |
| BMP280_INTERFACE_SPI | spi interface |
Definition at line 62 of file driver_bmp280.h.
| enum bmp280_mode_t |
bmp280 mode enumeration definition
| Enumerator | |
|---|---|
| BMP280_MODE_SLEEP | sleep mode |
| BMP280_MODE_FORCED | forced mode |
| BMP280_MODE_NORMAL | normal mode |
Definition at line 102 of file driver_bmp280.h.
bmp280 oversampling enumeration definition
Definition at line 89 of file driver_bmp280.h.
| enum bmp280_spi_wire_t |
bmp280 spi wire enumeration definition
| Enumerator | |
|---|---|
| BMP280_SPI_WIRE_4 | 4 wire |
| BMP280_SPI_WIRE_3 | 3 wire |
Definition at line 139 of file driver_bmp280.h.
bmp280 standby time enumeration definition
Definition at line 112 of file driver_bmp280.h.
| enum bmp280_status_t |
bmp280 status enumeration definition
| Enumerator | |
|---|---|
| BMP280_STATUS_MEASURING | measuring |
| BMP280_STATUS_IM_UPDATE | im update |
Definition at line 80 of file driver_bmp280.h.
| uint8_t bmp280_deinit | ( | bmp280_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to a bmp280 handle structure |
Definition at line 584 of file driver_bmp280.c.
| uint8_t bmp280_get_addr_pin | ( | bmp280_handle_t * | handle, |
| bmp280_address_t * | addr_pin ) |
get the iic address pin
| [in] | *handle | pointer to a bmp280 handle structure |
| [out] | *addr_pin | pointer to an iic address pin buffer |
Definition at line 385 of file driver_bmp280.c.
| uint8_t bmp280_get_filter | ( | bmp280_handle_t * | handle, |
| bmp280_filter_t * | filter ) |
get filter
| [in] | *handle | pointer to a bmp280 handle structure |
| [out] | *filter | pointer to a filter buffer |
Definition at line 1062 of file driver_bmp280.c.
| uint8_t bmp280_get_interface | ( | bmp280_handle_t * | handle, |
| bmp280_interface_t * | interface ) |
get the interface
| [in] | *handle | pointer to a bmp280 handle structure |
| [out] | *interface | pointer to a chip interface buffer |
Definition at line 427 of file driver_bmp280.c.
| uint8_t bmp280_get_mode | ( | bmp280_handle_t * | handle, |
| bmp280_mode_t * | mode ) |
get mode
| [in] | *handle | pointer to a bmp280 handle structure |
| [out] | *mode | pointer to a mode buffer |
Definition at line 908 of file driver_bmp280.c.
| uint8_t bmp280_get_pressure_oversampling | ( | bmp280_handle_t * | handle, |
| bmp280_oversampling_t * | oversampling ) |
get pressure oversampling
| [in] | *handle | pointer to a bmp280 handle structure |
| [out] | *oversampling | pointer to a oversampling buffer |
Definition at line 831 of file driver_bmp280.c.
| uint8_t bmp280_get_spi_wire | ( | bmp280_handle_t * | handle, |
| bmp280_spi_wire_t * | spi ) |
get spi wire
| [in] | *handle | pointer to a bmp280 handle structure |
| [out] | *spi | pointer to a spi wire buffer |
Definition at line 1139 of file driver_bmp280.c.
| uint8_t bmp280_get_standby_time | ( | bmp280_handle_t * | handle, |
| bmp280_standby_time_t * | standby_time ) |
get standby time
| [in] | *handle | pointer to a bmp280 handle structure |
| [out] | *standby_time | pointer to a standby time buffer |
Definition at line 985 of file driver_bmp280.c.
| uint8_t bmp280_get_status | ( | bmp280_handle_t * | handle, |
| uint8_t * | status ) |
get status
| [in] | *handle | pointer to a bmp280 handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 680 of file driver_bmp280.c.
| uint8_t bmp280_get_temperatue_oversampling | ( | bmp280_handle_t * | handle, |
| bmp280_oversampling_t * | oversampling ) |
get temperatue oversampling
| [in] | *handle | pointer to a bmp280 handle structure |
| [out] | *oversampling | pointer to a oversampling buffer |
Definition at line 754 of file driver_bmp280.c.
| uint8_t bmp280_info | ( | bmp280_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to a bmp280 info structure |
Definition at line 1616 of file driver_bmp280.c.
| uint8_t bmp280_init | ( | bmp280_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to a bmp280 handle structure |
Definition at line 452 of file driver_bmp280.c.
| uint8_t bmp280_read_pressure | ( | bmp280_handle_t * | handle, |
| uint32_t * | pressure_raw, | ||
| float * | pressure_pa ) |
read the pressure data
| [in] | *handle | pointer to a bmp280 handle structure |
| [out] | *pressure_raw | pointer to a raw pressure buffer |
| [out] | *pressure_pa | pointer to a converted pressure buffer |
Definition at line 1177 of file driver_bmp280.c.
| uint8_t bmp280_read_temperature | ( | bmp280_handle_t * | handle, |
| uint32_t * | temperature_raw, | ||
| float * | temperature_c ) |
read the temperature data
| [in] | *handle | pointer to a bmp280 handle structure |
| [out] | *temperature_raw | pointer to a raw temperature buffer |
| [out] | *temperature_c | pointer to a converted temperature buffer |
Definition at line 1315 of file driver_bmp280.c.
| uint8_t bmp280_read_temperature_pressure | ( | bmp280_handle_t * | handle, |
| uint32_t * | temperature_raw, | ||
| float * | temperature_c, | ||
| uint32_t * | pressure_raw, | ||
| float * | pressure_pa ) |
read the temperature and pressure data
| [in] | *handle | pointer to a bmp280 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 1433 of file driver_bmp280.c.
| uint8_t bmp280_set_addr_pin | ( | bmp280_handle_t * | handle, |
| bmp280_address_t | addr_pin ) |
set the iic address pin
| [in] | *handle | pointer to a bmp280 handle structure |
| [in] | addr_pin | iic address pin |
Definition at line 364 of file driver_bmp280.c.
| uint8_t bmp280_set_filter | ( | bmp280_handle_t * | handle, |
| bmp280_filter_t | filter ) |
set filter
| [in] | *handle | pointer to a bmp280 handle structure |
| [in] | filter | input filter |
Definition at line 1020 of file driver_bmp280.c.
| uint8_t bmp280_set_interface | ( | bmp280_handle_t * | handle, |
| bmp280_interface_t | interface ) |
set the interface
| [in] | *handle | pointer to a bmp280 handle structure |
| [in] | interface | chip interface |
Definition at line 406 of file driver_bmp280.c.
| uint8_t bmp280_set_mode | ( | bmp280_handle_t * | handle, |
| bmp280_mode_t | mode ) |
set mode
| [in] | *handle | pointer to a bmp280 handle structure |
| [in] | mode | chip mode |
Definition at line 866 of file driver_bmp280.c.
| uint8_t bmp280_set_pressure_oversampling | ( | bmp280_handle_t * | handle, |
| bmp280_oversampling_t | oversampling ) |
set pressure oversampling
| [in] | *handle | pointer to a bmp280 handle structure |
| [in] | oversampling | pressure oversampling |
Definition at line 789 of file driver_bmp280.c.
| uint8_t bmp280_set_spi_wire | ( | bmp280_handle_t * | handle, |
| bmp280_spi_wire_t | spi ) |
set spi wire
| [in] | *handle | pointer to a bmp280 handle structure |
| [in] | spi | spi wire |
Definition at line 1097 of file driver_bmp280.c.
| uint8_t bmp280_set_standby_time | ( | bmp280_handle_t * | handle, |
| bmp280_standby_time_t | standby_time ) |
set standby time
| [in] | *handle | pointer to a bmp280 handle structure |
| [in] | standby_time | standby time |
Definition at line 943 of file driver_bmp280.c.
| uint8_t bmp280_set_temperatue_oversampling | ( | bmp280_handle_t * | handle, |
| bmp280_oversampling_t | oversampling ) |
set temperatue oversampling
| [in] | *handle | pointer to a bmp280 handle structure |
| [in] | oversampling | temperatue oversampling |
Definition at line 712 of file driver_bmp280.c.
| uint8_t bmp280_soft_reset | ( | bmp280_handle_t * | handle | ) |
soft reset
| [in] | *handle | pointer to a bmp280 handle structure |
Definition at line 644 of file driver_bmp280.c.