![]() |
LibDriver BMP390
|
bmp390 base driver modules More...
Data Structures | |
| struct | bmp390_frame_s |
| bmp390 frame structure definition More... | |
| struct | bmp390_handle_s |
| bmp390 handle structure definition More... | |
| struct | bmp390_info_s |
| bmp390 information structure definition More... | |
Typedefs | |
| typedef struct bmp390_frame_s | bmp390_frame_t |
| bmp390 frame structure definition | |
| typedef struct bmp390_handle_s | bmp390_handle_t |
| bmp390 handle structure definition | |
| typedef struct bmp390_info_s | bmp390_info_t |
| bmp390 information structure definition | |
Functions | |
| uint8_t | bmp390_info (bmp390_info_t *info) |
| get chip's information | |
| uint8_t | bmp390_set_addr_pin (bmp390_handle_t *handle, bmp390_address_t addr_pin) |
| set the iic address pin | |
| uint8_t | bmp390_get_addr_pin (bmp390_handle_t *handle, bmp390_address_t *addr_pin) |
| get the iic address pin | |
| uint8_t | bmp390_set_interface (bmp390_handle_t *handle, bmp390_interface_t interface) |
| set the interface | |
| uint8_t | bmp390_get_interface (bmp390_handle_t *handle, bmp390_interface_t *interface) |
| get the interface | |
| uint8_t | bmp390_irq_handler (bmp390_handle_t *handle) |
| irq handler | |
| uint8_t | bmp390_init (bmp390_handle_t *handle) |
| initialize the chip | |
| uint8_t | bmp390_deinit (bmp390_handle_t *handle) |
| close the chip | |
| uint8_t | bmp390_read_temperature_pressure (bmp390_handle_t *handle, uint32_t *temperature_raw, float *temperature_c, uint32_t *pressure_raw, float *pressure_pa) |
| read the temperature and pressure | |
| uint8_t | bmp390_read_temperature (bmp390_handle_t *handle, uint32_t *raw, float *c) |
| read the temperature | |
| uint8_t | bmp390_read_pressure (bmp390_handle_t *handle, uint32_t *raw, float *pa) |
| read the pressure | |
| uint8_t | bmp390_get_revision_id (bmp390_handle_t *handle, uint8_t *id) |
| get the revision id | |
| uint8_t | bmp390_get_error (bmp390_handle_t *handle, uint8_t *err) |
| get the error | |
| uint8_t | bmp390_get_status (bmp390_handle_t *handle, uint8_t *status) |
| get the status | |
| uint8_t | bmp390_get_sensortime (bmp390_handle_t *handle, uint32_t *t) |
| get the sensor time | |
| uint8_t | bmp390_get_event (bmp390_handle_t *handle, bmp390_event_t *event) |
| get the event | |
| uint8_t | bmp390_set_spi_wire (bmp390_handle_t *handle, bmp390_spi_wire_t wire) |
| set the spi wire | |
| uint8_t | bmp390_get_spi_wire (bmp390_handle_t *handle, bmp390_spi_wire_t *wire) |
| get the spi wire | |
| uint8_t | bmp390_set_iic_watchdog_timer (bmp390_handle_t *handle, bmp390_bool_t enable) |
| enable or disable the iic watchdog timer | |
| uint8_t | bmp390_get_iic_watchdog_timer (bmp390_handle_t *handle, bmp390_bool_t *enable) |
| get the iic watchdog timer status | |
| uint8_t | bmp390_set_iic_watchdog_period (bmp390_handle_t *handle, bmp390_iic_watchdog_period_t period) |
| set the iic watchdog period | |
| uint8_t | bmp390_get_iic_watchdog_period (bmp390_handle_t *handle, bmp390_iic_watchdog_period_t *period) |
| get the iic watchdog period | |
| uint8_t | bmp390_set_pressure (bmp390_handle_t *handle, bmp390_bool_t enable) |
| enable or disable the pressure | |
| uint8_t | bmp390_get_pressure (bmp390_handle_t *handle, bmp390_bool_t *enable) |
| get the pressure status | |
| uint8_t | bmp390_set_temperature (bmp390_handle_t *handle, bmp390_bool_t enable) |
| enable or disable the temperature | |
| uint8_t | bmp390_get_temperature (bmp390_handle_t *handle, bmp390_bool_t *enable) |
| get the temperature status | |
| uint8_t | bmp390_set_mode (bmp390_handle_t *handle, bmp390_mode_t mode) |
| set the chip mode | |
| uint8_t | bmp390_get_mode (bmp390_handle_t *handle, bmp390_mode_t *mode) |
| get the chip mode | |
| uint8_t | bmp390_set_pressure_oversampling (bmp390_handle_t *handle, bmp390_oversampling_t oversampling) |
| set the pressure oversampling | |
| uint8_t | bmp390_get_pressure_oversampling (bmp390_handle_t *handle, bmp390_oversampling_t *oversampling) |
| get the pressure oversampling | |
| uint8_t | bmp390_set_temperature_oversampling (bmp390_handle_t *handle, bmp390_oversampling_t oversampling) |
| set the temperature oversampling | |
| uint8_t | bmp390_get_temperature_oversampling (bmp390_handle_t *handle, bmp390_oversampling_t *oversampling) |
| get the temperature oversampling | |
| uint8_t | bmp390_set_odr (bmp390_handle_t *handle, bmp390_odr_t odr) |
| set the output data rate | |
| uint8_t | bmp390_get_odr (bmp390_handle_t *handle, bmp390_odr_t *odr) |
| get the output data rate | |
| uint8_t | bmp390_set_filter_coefficient (bmp390_handle_t *handle, bmp390_filter_coefficient_t coefficient) |
| set the filter coefficient | |
| uint8_t | bmp390_get_filter_coefficient (bmp390_handle_t *handle, bmp390_filter_coefficient_t *coefficient) |
| get the filter coefficient | |
| uint8_t | bmp390_softreset (bmp390_handle_t *handle) |
| soft reset | |
bmp390 base driver modules
| typedef struct bmp390_frame_s bmp390_frame_t |
bmp390 frame structure definition
| typedef struct bmp390_handle_s bmp390_handle_t |
bmp390 handle structure definition
| typedef struct bmp390_info_s bmp390_info_t |
bmp390 information structure definition
| enum bmp390_address_t |
bmp390 address enumeration definition
| Enumerator | |
|---|---|
| BMP390_ADDRESS_ADO_LOW | ADO is low |
| BMP390_ADDRESS_ADO_HIGH | ADO is HIGH |
Definition at line 71 of file driver_bmp390.h.
| enum bmp390_bool_t |
bmp390 bool enumeration definition
| Enumerator | |
|---|---|
| BMP390_BOOL_FALSE | false |
| BMP390_BOOL_TRUE | true |
Definition at line 80 of file driver_bmp390.h.
| enum bmp390_error_t |
bmp390 error enumeration definition
| Enumerator | |
|---|---|
| BMP390_ERROR_FATAL | fatal error |
| BMP390_ERROR_CMD | command error |
| BMP390_ERROR_CONF | conf error |
Definition at line 89 of file driver_bmp390.h.
| enum bmp390_event_t |
bmp390 event enumeration definition
Definition at line 109 of file driver_bmp390.h.
bmp390 fifo data source enumeration definition
| Enumerator | |
|---|---|
| BMP390_FIFO_DATA_SOURCE_UNFILTERED | fifo data source unfiltered |
| BMP390_FIFO_DATA_SOURCE_FILTERED | fifo data source filtered |
Definition at line 121 of file driver_bmp390.h.
bmp390 filter coefficient enumeration definition
Definition at line 224 of file driver_bmp390.h.
| enum bmp390_frame_type_t |
bmp390 frame type enumeration definition
| Enumerator | |
|---|---|
| BMP390_FRAME_TYPE_TEMPERATURE | temperature frame type |
| BMP390_FRAME_TYPE_PRESSURE | pressure frame type |
| BMP390_FRAME_TYPE_SENSORTIME | sensor time frame type |
Definition at line 239 of file driver_bmp390.h.
bmp390 iic watchdog period enumeration definition
| Enumerator | |
|---|---|
| BMP390_IIC_WATCHDOG_PERIOD_1P25_MS | iic watchdog period 1.25 ms |
| BMP390_IIC_WATCHDOG_PERIOD_40_MS | iic watchdog period 40 ms |
Definition at line 167 of file driver_bmp390.h.
| enum bmp390_interface_t |
bmp390 interface enumeration definition
| Enumerator | |
|---|---|
| BMP390_INTERFACE_IIC | iic interface |
| BMP390_INTERFACE_SPI | spi interface |
Definition at line 62 of file driver_bmp390.h.
bmp390 interrupt active level enumeration definition
| Enumerator | |
|---|---|
| BMP390_INTERRUPT_ACTIVE_LEVEL_LOWER | active level lower |
| BMP390_INTERRUPT_ACTIVE_LEVEL_HIGHER | active level higher |
Definition at line 140 of file driver_bmp390.h.
bmp390 interrupt pin type enumeration definition
| Enumerator | |
|---|---|
| BMP390_INTERRUPT_PIN_TYPE_PUSH_PULL | push pull pin type |
| BMP390_INTERRUPT_PIN_TYPE_OPEN_DRAIN | open drain pin type |
Definition at line 149 of file driver_bmp390.h.
bmp390 interrupt status enumeration definition
Definition at line 130 of file driver_bmp390.h.
| enum bmp390_mode_t |
bmp390 mode enumeration definition
| Enumerator | |
|---|---|
| BMP390_MODE_SLEEP_MODE | sleep mode |
| BMP390_MODE_FORCED_MODE | forced mode |
| BMP390_MODE_NORMAL_MODE | normal mode |
Definition at line 176 of file driver_bmp390.h.
| enum bmp390_odr_t |
bmp390 output data rate enumeration definition
Definition at line 199 of file driver_bmp390.h.
bmp390 oversampling enumeration definition
Definition at line 186 of file driver_bmp390.h.
| enum bmp390_spi_wire_t |
bmp390 spi wire enumeration definition
| Enumerator | |
|---|---|
| BMP390_SPI_WIRE_4 | 4 wire |
| BMP390_SPI_WIRE_3 | 3 wire |
Definition at line 158 of file driver_bmp390.h.
| enum bmp390_status_t |
bmp390 status enumeration definition
| Enumerator | |
|---|---|
| BMP390_STATUS_COMMAND_READY | command ready status |
| BMP390_STATUS_PRESS_READY | press ready status |
| BMP390_STATUS_TEMP_READY | temp ready status |
Definition at line 99 of file driver_bmp390.h.
| uint8_t bmp390_deinit | ( | bmp390_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to a bmp390 handle structure |
Definition at line 2904 of file driver_bmp390.c.
| uint8_t bmp390_get_addr_pin | ( | bmp390_handle_t * | handle, |
| bmp390_address_t * | addr_pin ) |
get the iic address pin
| [in] | *handle | pointer to a bmp390 handle structure |
| [out] | *addr_pin | pointer to an iic address pin buffer |
Definition at line 3593 of file driver_bmp390.c.
| uint8_t bmp390_get_error | ( | bmp390_handle_t * | handle, |
| uint8_t * | err ) |
get the error
| [in] | *handle | pointer to a bmp390 handle structure |
| [out] | *err | pointer to an error buffer |
Definition at line 423 of file driver_bmp390.c.
| uint8_t bmp390_get_event | ( | bmp390_handle_t * | handle, |
| bmp390_event_t * | event ) |
get the event
| [in] | *handle | pointer to a bmp390 handle structure |
| [out] | *event | pointer to an event buffer |
Definition at line 530 of file driver_bmp390.c.
| uint8_t bmp390_get_filter_coefficient | ( | bmp390_handle_t * | handle, |
| bmp390_filter_coefficient_t * | coefficient ) |
get the filter coefficient
| [in] | *handle | pointer to a bmp390 handle structure |
| [out] | *coefficient | pointer to a filter coefficient buffer |
Definition at line 2607 of file driver_bmp390.c.
| uint8_t bmp390_get_iic_watchdog_period | ( | bmp390_handle_t * | handle, |
| bmp390_iic_watchdog_period_t * | period ) |
get the iic watchdog period
| [in] | *handle | pointer to a bmp390 handle structure |
| [out] | *period | pointer to an iic watchdog period buffer |
Definition at line 2031 of file driver_bmp390.c.
| uint8_t bmp390_get_iic_watchdog_timer | ( | bmp390_handle_t * | handle, |
| bmp390_bool_t * | enable ) |
get the iic watchdog timer status
| [in] | *handle | pointer to a bmp390 handle structure |
| [out] | *enable | pointer to a bool buffer |
Definition at line 1949 of file driver_bmp390.c.
| uint8_t bmp390_get_interface | ( | bmp390_handle_t * | handle, |
| bmp390_interface_t * | interface ) |
get the interface
| [in] | *handle | pointer to a bmp390 handle structure |
| [out] | *interface | pointer to a chip interface buffer |
Definition at line 3635 of file driver_bmp390.c.
| uint8_t bmp390_get_mode | ( | bmp390_handle_t * | handle, |
| bmp390_mode_t * | mode ) |
get the chip mode
| [in] | *handle | pointer to a bmp390 handle structure |
| [out] | *mode | pointer to a mode buffer |
Definition at line 2277 of file driver_bmp390.c.
| uint8_t bmp390_get_odr | ( | bmp390_handle_t * | handle, |
| bmp390_odr_t * | odr ) |
get the output data rate
| [in] | *handle | pointer to a bmp390 handle structure |
| [out] | *odr | pointer to an output data rate buffer |
Definition at line 2524 of file driver_bmp390.c.
| uint8_t bmp390_get_pressure | ( | bmp390_handle_t * | handle, |
| bmp390_bool_t * | enable ) |
get the pressure status
| [in] | *handle | pointer to a bmp390 handle structure |
| [out] | *enable | pointer to a bool buffer |
Definition at line 2113 of file driver_bmp390.c.
| uint8_t bmp390_get_pressure_oversampling | ( | bmp390_handle_t * | handle, |
| bmp390_oversampling_t * | oversampling ) |
get the pressure oversampling
| [in] | *handle | pointer to a bmp390 handle structure |
| [out] | *oversampling | pointer to an oversampling buffer |
Definition at line 2359 of file driver_bmp390.c.
| uint8_t bmp390_get_revision_id | ( | bmp390_handle_t * | handle, |
| uint8_t * | id ) |
get the revision id
| [in] | *handle | pointer to a bmp390 handle structure |
| [out] | *id | pointer to an id buffer |
Definition at line 388 of file driver_bmp390.c.
| uint8_t bmp390_get_sensortime | ( | bmp390_handle_t * | handle, |
| uint32_t * | t ) |
get the sensor time
| [in] | *handle | pointer to a bmp390 handle structure |
| [out] | *t | pointer to a timestamp buffer |
Definition at line 493 of file driver_bmp390.c.
| uint8_t bmp390_get_spi_wire | ( | bmp390_handle_t * | handle, |
| bmp390_spi_wire_t * | wire ) |
get the spi wire
| [in] | *handle | pointer to a bmp390 handle structure |
| [out] | *wire | pointer to a spi wire buffer |
Definition at line 1867 of file driver_bmp390.c.
| uint8_t bmp390_get_status | ( | bmp390_handle_t * | handle, |
| uint8_t * | status ) |
get the status
| [in] | *handle | pointer to a bmp390 handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 458 of file driver_bmp390.c.
| uint8_t bmp390_get_temperature | ( | bmp390_handle_t * | handle, |
| bmp390_bool_t * | enable ) |
get the temperature status
| [in] | *handle | pointer to a bmp390 handle structure |
| [out] | *enable | pointer to a bool buffer |
Definition at line 2195 of file driver_bmp390.c.
| uint8_t bmp390_get_temperature_oversampling | ( | bmp390_handle_t * | handle, |
| bmp390_oversampling_t * | oversampling ) |
get the temperature oversampling
| [in] | *handle | pointer to a bmp390 handle structure |
| [out] | *oversampling | pointer to an oversampling buffer |
Definition at line 2441 of file driver_bmp390.c.
| uint8_t bmp390_info | ( | bmp390_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to a bmp390 info structure |
Definition at line 3903 of file driver_bmp390.c.
| uint8_t bmp390_init | ( | bmp390_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to a bmp390 handle structure |
Definition at line 2758 of file driver_bmp390.c.
| uint8_t bmp390_irq_handler | ( | bmp390_handle_t * | handle | ) |
irq handler
| [in] | *handle | pointer to a bmp390 handle structure |
Definition at line 3517 of file driver_bmp390.c.
| uint8_t bmp390_read_pressure | ( | bmp390_handle_t * | handle, |
| uint32_t * | raw, | ||
| float * | pa ) |
read the pressure
| [in] | *handle | pointer to a bmp390 handle structure |
| [out] | *raw | pointer to a raw pressure buffer |
| [out] | *pa | pointer to a converted pressure buffer |
Definition at line 3110 of file driver_bmp390.c.
| uint8_t bmp390_read_temperature | ( | bmp390_handle_t * | handle, |
| uint32_t * | raw, | ||
| float * | c ) |
read the temperature
| [in] | *handle | pointer to a bmp390 handle structure |
| [out] | *raw | pointer to a raw temperature buffer |
| [out] | *c | pointer to a converted temperature buffer |
Definition at line 2958 of file driver_bmp390.c.
| uint8_t bmp390_read_temperature_pressure | ( | bmp390_handle_t * | handle, |
| uint32_t * | temperature_raw, | ||
| float * | temperature_c, | ||
| uint32_t * | pressure_raw, | ||
| float * | pressure_pa ) |
read the temperature and pressure
| [in] | *handle | pointer to a bmp390 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 3312 of file driver_bmp390.c.
| uint8_t bmp390_set_addr_pin | ( | bmp390_handle_t * | handle, |
| bmp390_address_t | addr_pin ) |
set the iic address pin
| [in] | *handle | pointer to a bmp390 handle structure |
| [in] | addr_pin | iic address pin |
Definition at line 3572 of file driver_bmp390.c.
| uint8_t bmp390_set_filter_coefficient | ( | bmp390_handle_t * | handle, |
| bmp390_filter_coefficient_t | coefficient ) |
set the filter coefficient
| [in] | *handle | pointer to a bmp390 handle structure |
| [in] | coefficient | filter coefficient |
Definition at line 2561 of file driver_bmp390.c.
| uint8_t bmp390_set_iic_watchdog_period | ( | bmp390_handle_t * | handle, |
| bmp390_iic_watchdog_period_t | period ) |
set the iic watchdog period
| [in] | *handle | pointer to a bmp390 handle structure |
| [in] | period | iic watchdog period |
Definition at line 1986 of file driver_bmp390.c.
| uint8_t bmp390_set_iic_watchdog_timer | ( | bmp390_handle_t * | handle, |
| bmp390_bool_t | enable ) |
enable or disable the iic watchdog timer
| [in] | *handle | pointer to a bmp390 handle structure |
| [in] | enable | bool value |
Definition at line 1904 of file driver_bmp390.c.
| uint8_t bmp390_set_interface | ( | bmp390_handle_t * | handle, |
| bmp390_interface_t | interface ) |
set the interface
| [in] | *handle | pointer to a bmp390 handle structure |
| [in] | interface | chip interface |
Definition at line 3614 of file driver_bmp390.c.
| uint8_t bmp390_set_mode | ( | bmp390_handle_t * | handle, |
| bmp390_mode_t | mode ) |
set the chip mode
| [in] | *handle | pointer to a bmp390 handle structure |
| [in] | mode | chip mode |
Definition at line 2232 of file driver_bmp390.c.
| uint8_t bmp390_set_odr | ( | bmp390_handle_t * | handle, |
| bmp390_odr_t | odr ) |
set the output data rate
| [in] | *handle | pointer to a bmp390 handle structure |
| [in] | odr | output data rate |
Definition at line 2478 of file driver_bmp390.c.
| uint8_t bmp390_set_pressure | ( | bmp390_handle_t * | handle, |
| bmp390_bool_t | enable ) |
enable or disable the pressure
| [in] | *handle | pointer to a bmp390 handle structure |
| [in] | enable | bool value |
Definition at line 2068 of file driver_bmp390.c.
| uint8_t bmp390_set_pressure_oversampling | ( | bmp390_handle_t * | handle, |
| bmp390_oversampling_t | oversampling ) |
set the pressure oversampling
| [in] | *handle | pointer to a bmp390 handle structure |
| [in] | oversampling | pressure oversampling |
Definition at line 2314 of file driver_bmp390.c.
| uint8_t bmp390_set_spi_wire | ( | bmp390_handle_t * | handle, |
| bmp390_spi_wire_t | wire ) |
set the spi wire
| [in] | *handle | pointer to a bmp390 handle structure |
| [in] | wire | spi wire |
Definition at line 1822 of file driver_bmp390.c.
| uint8_t bmp390_set_temperature | ( | bmp390_handle_t * | handle, |
| bmp390_bool_t | enable ) |
enable or disable the temperature
| [in] | *handle | pointer to a bmp390 handle structure |
| [in] | enable | bool value |
Definition at line 2150 of file driver_bmp390.c.
| uint8_t bmp390_set_temperature_oversampling | ( | bmp390_handle_t * | handle, |
| bmp390_oversampling_t | oversampling ) |
set the temperature oversampling
| [in] | *handle | pointer to a bmp390 handle structure |
| [in] | oversampling | temperature oversampling |
Definition at line 2396 of file driver_bmp390.c.
| uint8_t bmp390_softreset | ( | bmp390_handle_t * | handle | ) |
soft reset
| [in] | *handle | pointer to a bmp390 handle structure |
Definition at line 2679 of file driver_bmp390.c.