![]() |
LibDriver BMP388
|
bmp388 base driver modules More...
Data Structures | |
| struct | bmp388_frame_s |
| bmp388 frame structure definition More... | |
| struct | bmp388_handle_s |
| bmp388 handle structure definition More... | |
| struct | bmp388_info_s |
| bmp388 information structure definition More... | |
Typedefs | |
| typedef struct bmp388_frame_s | bmp388_frame_t |
| bmp388 frame structure definition | |
| typedef struct bmp388_handle_s | bmp388_handle_t |
| bmp388 handle structure definition | |
| typedef struct bmp388_info_s | bmp388_info_t |
| bmp388 information structure definition | |
Functions | |
| uint8_t | bmp388_info (bmp388_info_t *info) |
| get chip's information | |
| uint8_t | bmp388_set_addr_pin (bmp388_handle_t *handle, bmp388_address_t addr_pin) |
| set the iic address pin | |
| uint8_t | bmp388_get_addr_pin (bmp388_handle_t *handle, bmp388_address_t *addr_pin) |
| get the iic address pin | |
| uint8_t | bmp388_set_interface (bmp388_handle_t *handle, bmp388_interface_t interface) |
| set the interface | |
| uint8_t | bmp388_get_interface (bmp388_handle_t *handle, bmp388_interface_t *interface) |
| get the interface | |
| uint8_t | bmp388_irq_handler (bmp388_handle_t *handle) |
| irq handler | |
| uint8_t | bmp388_init (bmp388_handle_t *handle) |
| initialize the chip | |
| uint8_t | bmp388_deinit (bmp388_handle_t *handle) |
| close the chip | |
| uint8_t | bmp388_read_temperature_pressure (bmp388_handle_t *handle, uint32_t *temperature_raw, float *temperature_c, uint32_t *pressure_raw, float *pressure_pa) |
| read the temperature and pressure | |
| uint8_t | bmp388_read_temperature (bmp388_handle_t *handle, uint32_t *raw, float *c) |
| read the temperature | |
| uint8_t | bmp388_read_pressure (bmp388_handle_t *handle, uint32_t *raw, float *pa) |
| read the pressure | |
| uint8_t | bmp388_get_error (bmp388_handle_t *handle, uint8_t *err) |
| get the error | |
| uint8_t | bmp388_get_status (bmp388_handle_t *handle, uint8_t *status) |
| get the status | |
| uint8_t | bmp388_get_sensortime (bmp388_handle_t *handle, uint32_t *t) |
| get the sensor time | |
| uint8_t | bmp388_get_event (bmp388_handle_t *handle, bmp388_event_t *event) |
| get the event | |
| uint8_t | bmp388_set_spi_wire (bmp388_handle_t *handle, bmp388_spi_wire_t wire) |
| set the spi wire | |
| uint8_t | bmp388_get_spi_wire (bmp388_handle_t *handle, bmp388_spi_wire_t *wire) |
| get the spi wire | |
| uint8_t | bmp388_set_iic_watchdog_timer (bmp388_handle_t *handle, bmp388_bool_t enable) |
| enable or disable the iic watchdog timer | |
| uint8_t | bmp388_get_iic_watchdog_timer (bmp388_handle_t *handle, bmp388_bool_t *enable) |
| get the iic watchdog timer status | |
| uint8_t | bmp388_set_iic_watchdog_period (bmp388_handle_t *handle, bmp388_iic_watchdog_period_t period) |
| set the iic watchdog period | |
| uint8_t | bmp388_get_iic_watchdog_period (bmp388_handle_t *handle, bmp388_iic_watchdog_period_t *period) |
| get the iic watchdog period | |
| uint8_t | bmp388_set_pressure (bmp388_handle_t *handle, bmp388_bool_t enable) |
| enable or disable the pressure | |
| uint8_t | bmp388_get_pressure (bmp388_handle_t *handle, bmp388_bool_t *enable) |
| get the pressure status | |
| uint8_t | bmp388_set_temperature (bmp388_handle_t *handle, bmp388_bool_t enable) |
| enable or disable the temperature | |
| uint8_t | bmp388_get_temperature (bmp388_handle_t *handle, bmp388_bool_t *enable) |
| get the temperature status | |
| uint8_t | bmp388_set_mode (bmp388_handle_t *handle, bmp388_mode_t mode) |
| set the chip mode | |
| uint8_t | bmp388_get_mode (bmp388_handle_t *handle, bmp388_mode_t *mode) |
| get the chip mode | |
| uint8_t | bmp388_set_pressure_oversampling (bmp388_handle_t *handle, bmp388_oversampling_t oversampling) |
| set the pressure oversampling | |
| uint8_t | bmp388_get_pressure_oversampling (bmp388_handle_t *handle, bmp388_oversampling_t *oversampling) |
| get the pressure oversampling | |
| uint8_t | bmp388_set_temperature_oversampling (bmp388_handle_t *handle, bmp388_oversampling_t oversampling) |
| set the temperature oversampling | |
| uint8_t | bmp388_get_temperature_oversampling (bmp388_handle_t *handle, bmp388_oversampling_t *oversampling) |
| get the temperature oversampling | |
| uint8_t | bmp388_set_odr (bmp388_handle_t *handle, bmp388_odr_t odr) |
| set the output data rate | |
| uint8_t | bmp388_get_odr (bmp388_handle_t *handle, bmp388_odr_t *odr) |
| get the output data rate | |
| uint8_t | bmp388_set_filter_coefficient (bmp388_handle_t *handle, bmp388_filter_coefficient_t coefficient) |
| set the filter coefficient | |
| uint8_t | bmp388_get_filter_coefficient (bmp388_handle_t *handle, bmp388_filter_coefficient_t *coefficient) |
| get the filter coefficient | |
| uint8_t | bmp388_softreset (bmp388_handle_t *handle) |
| soft reset | |
| uint8_t | bmp388_extmode_en_middle (bmp388_handle_t *handle) |
| extmode enable middle | |
bmp388 base driver modules
| typedef struct bmp388_frame_s bmp388_frame_t |
bmp388 frame structure definition
| typedef struct bmp388_handle_s bmp388_handle_t |
bmp388 handle structure definition
| typedef struct bmp388_info_s bmp388_info_t |
bmp388 information structure definition
| enum bmp388_address_t |
bmp388 address enumeration definition
| Enumerator | |
|---|---|
| BMP388_ADDRESS_ADO_LOW | ADO is low |
| BMP388_ADDRESS_ADO_HIGH | ADO is HIGH |
Definition at line 72 of file driver_bmp388.h.
| enum bmp388_bool_t |
bmp388 bool enumeration definition
| Enumerator | |
|---|---|
| BMP388_BOOL_FALSE | false |
| BMP388_BOOL_TRUE | true |
Definition at line 81 of file driver_bmp388.h.
| enum bmp388_error_t |
bmp388 error enumeration definition
| Enumerator | |
|---|---|
| BMP388_ERROR_FATAL | fatal error |
| BMP388_ERROR_CMD | command error |
| BMP388_ERROR_CONF | conf error |
Definition at line 90 of file driver_bmp388.h.
| enum bmp388_event_t |
bmp388 event enumeration definition
| Enumerator | |
|---|---|
| BMP388_EVENT_NONE | event none |
| BMP388_EVENT_POWER_UP_OR_SOFTRESET | event power up or soft reset |
Definition at line 110 of file driver_bmp388.h.
bmp388 fifo data source enumeration definition
| Enumerator | |
|---|---|
| BMP388_FIFO_DATA_SOURCE_UNFILTERED | fifo data source unfiltered |
| BMP388_FIFO_DATA_SOURCE_FILTERED | fifo data source filtered |
Definition at line 119 of file driver_bmp388.h.
bmp388 filter coefficient enumeration definition
Definition at line 222 of file driver_bmp388.h.
| enum bmp388_frame_type_t |
bmp388 frame type enumeration definition
| Enumerator | |
|---|---|
| BMP388_FRAME_TYPE_TEMPERATURE | temperature frame type |
| BMP388_FRAME_TYPE_PRESSURE | pressure frame type |
| BMP388_FRAME_TYPE_SENSORTIME | sensor time frame type |
Definition at line 237 of file driver_bmp388.h.
bmp388 iic watchdog period enumeration definition
| Enumerator | |
|---|---|
| BMP388_IIC_WATCHDOG_PERIOD_1P25_MS | iic watchdog period 1.25 ms |
| BMP388_IIC_WATCHDOG_PERIOD_40_MS | iic watchdog period 40 ms |
Definition at line 165 of file driver_bmp388.h.
| enum bmp388_interface_t |
bmp388 interface enumeration definition
| Enumerator | |
|---|---|
| BMP388_INTERFACE_IIC | iic interface |
| BMP388_INTERFACE_SPI | spi interface |
Definition at line 63 of file driver_bmp388.h.
bmp388 interrupt active level enumeration definition
| Enumerator | |
|---|---|
| BMP388_INTERRUPT_ACTIVE_LEVEL_LOWER | active level lower |
| BMP388_INTERRUPT_ACTIVE_LEVEL_HIGHER | active level higher |
Definition at line 138 of file driver_bmp388.h.
bmp388 interrupt pin type enumeration definition
| Enumerator | |
|---|---|
| BMP388_INTERRUPT_PIN_TYPE_PUSH_PULL | push pull pin type |
| BMP388_INTERRUPT_PIN_TYPE_OPEN_DRAIN | open drain pin type |
Definition at line 147 of file driver_bmp388.h.
bmp388 interrupt status enumeration definition
Definition at line 128 of file driver_bmp388.h.
| enum bmp388_mode_t |
bmp388 mode enumeration definition
| Enumerator | |
|---|---|
| BMP388_MODE_SLEEP_MODE | sleep mode |
| BMP388_MODE_FORCED_MODE | forced mode |
| BMP388_MODE_NORMAL_MODE | normal mode |
Definition at line 174 of file driver_bmp388.h.
| enum bmp388_odr_t |
bmp388 output data rate enumeration definition
Definition at line 197 of file driver_bmp388.h.
bmp388 oversampling enumeration definition
Definition at line 184 of file driver_bmp388.h.
| enum bmp388_spi_wire_t |
bmp388 spi wire enumeration definition
| Enumerator | |
|---|---|
| BMP388_SPI_WIRE_4 | 4 wire |
| BMP388_SPI_WIRE_3 | 3 wire |
Definition at line 156 of file driver_bmp388.h.
| enum bmp388_status_t |
bmp388 status enumeration definition
| Enumerator | |
|---|---|
| BMP388_STATUS_COMMAND_READY | command ready status |
| BMP388_STATUS_PRESS_READY | press ready status |
| BMP388_STATUS_TEMP_READY | temp ready status |
Definition at line 100 of file driver_bmp388.h.
| uint8_t bmp388_deinit | ( | bmp388_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to a bmp388 handle structure |
Definition at line 2905 of file driver_bmp388.c.
| uint8_t bmp388_extmode_en_middle | ( | bmp388_handle_t * | handle | ) |
extmode enable middle
| [in] | *handle | pointer to a bmp388 handle structure |
Definition at line 2680 of file driver_bmp388.c.
| uint8_t bmp388_get_addr_pin | ( | bmp388_handle_t * | handle, |
| bmp388_address_t * | addr_pin ) |
get the iic address pin
| [in] | *handle | pointer to a bmp388 handle structure |
| [out] | *addr_pin | pointer to an iic address pin buffer |
Definition at line 3594 of file driver_bmp388.c.
| uint8_t bmp388_get_error | ( | bmp388_handle_t * | handle, |
| uint8_t * | err ) |
get the error
| [in] | *handle | pointer to a bmp388 handle structure |
| [out] | *err | pointer to an error buffer |
Definition at line 388 of file driver_bmp388.c.
| uint8_t bmp388_get_event | ( | bmp388_handle_t * | handle, |
| bmp388_event_t * | event ) |
get the event
| [in] | *handle | pointer to a bmp388 handle structure |
| [out] | *event | pointer to an event buffer |
Definition at line 495 of file driver_bmp388.c.
| uint8_t bmp388_get_filter_coefficient | ( | bmp388_handle_t * | handle, |
| bmp388_filter_coefficient_t * | coefficient ) |
get the filter coefficient
| [in] | *handle | pointer to a bmp388 handle structure |
| [out] | *coefficient | pointer to a filter coefficient buffer |
Definition at line 2572 of file driver_bmp388.c.
| uint8_t bmp388_get_iic_watchdog_period | ( | bmp388_handle_t * | handle, |
| bmp388_iic_watchdog_period_t * | period ) |
get the iic watchdog period
| [in] | *handle | pointer to a bmp388 handle structure |
| [out] | *period | pointer to an iic watchdog period buffer |
Definition at line 1996 of file driver_bmp388.c.
| uint8_t bmp388_get_iic_watchdog_timer | ( | bmp388_handle_t * | handle, |
| bmp388_bool_t * | enable ) |
get the iic watchdog timer status
| [in] | *handle | pointer to a bmp388 handle structure |
| [out] | *enable | pointer to a bool buffer |
Definition at line 1914 of file driver_bmp388.c.
| uint8_t bmp388_get_interface | ( | bmp388_handle_t * | handle, |
| bmp388_interface_t * | interface ) |
get the interface
| [in] | *handle | pointer to a bmp388 handle structure |
| [out] | *interface | pointer to a chip interface buffer |
Definition at line 3636 of file driver_bmp388.c.
| uint8_t bmp388_get_mode | ( | bmp388_handle_t * | handle, |
| bmp388_mode_t * | mode ) |
get the chip mode
| [in] | *handle | pointer to a bmp388 handle structure |
| [out] | *mode | pointer to a mode buffer |
Definition at line 2242 of file driver_bmp388.c.
| uint8_t bmp388_get_odr | ( | bmp388_handle_t * | handle, |
| bmp388_odr_t * | odr ) |
get the output data rate
| [in] | *handle | pointer to a bmp388 handle structure |
| [out] | *odr | pointer to an output data rate buffer |
Definition at line 2489 of file driver_bmp388.c.
| uint8_t bmp388_get_pressure | ( | bmp388_handle_t * | handle, |
| bmp388_bool_t * | enable ) |
get the pressure status
| [in] | *handle | pointer to a bmp388 handle structure |
| [out] | *enable | pointer to a bool buffer |
Definition at line 2078 of file driver_bmp388.c.
| uint8_t bmp388_get_pressure_oversampling | ( | bmp388_handle_t * | handle, |
| bmp388_oversampling_t * | oversampling ) |
get the pressure oversampling
| [in] | *handle | pointer to a bmp388 handle structure |
| [out] | *oversampling | pointer to an oversampling buffer |
Definition at line 2324 of file driver_bmp388.c.
| uint8_t bmp388_get_sensortime | ( | bmp388_handle_t * | handle, |
| uint32_t * | t ) |
get the sensor time
| [in] | *handle | pointer to a bmp388 handle structure |
| [out] | *t | pointer to a timestamp buffer |
Definition at line 458 of file driver_bmp388.c.
| uint8_t bmp388_get_spi_wire | ( | bmp388_handle_t * | handle, |
| bmp388_spi_wire_t * | wire ) |
get the spi wire
| [in] | *handle | pointer to a bmp388 handle structure |
| [out] | *wire | pointer to a spi wire buffer |
Definition at line 1832 of file driver_bmp388.c.
| uint8_t bmp388_get_status | ( | bmp388_handle_t * | handle, |
| uint8_t * | status ) |
get the status
| [in] | *handle | pointer to a bmp388 handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 423 of file driver_bmp388.c.
| uint8_t bmp388_get_temperature | ( | bmp388_handle_t * | handle, |
| bmp388_bool_t * | enable ) |
get the temperature status
| [in] | *handle | pointer to a bmp388 handle structure |
| [out] | *enable | pointer to a bool buffer |
Definition at line 2160 of file driver_bmp388.c.
| uint8_t bmp388_get_temperature_oversampling | ( | bmp388_handle_t * | handle, |
| bmp388_oversampling_t * | oversampling ) |
get the temperature oversampling
| [in] | *handle | pointer to a bmp388 handle structure |
| [out] | *oversampling | pointer to an oversampling buffer |
Definition at line 2406 of file driver_bmp388.c.
| uint8_t bmp388_info | ( | bmp388_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to a bmp388 info structure |
Definition at line 3904 of file driver_bmp388.c.
| uint8_t bmp388_init | ( | bmp388_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to a bmp388 handle structure |
Definition at line 2759 of file driver_bmp388.c.
| uint8_t bmp388_irq_handler | ( | bmp388_handle_t * | handle | ) |
irq handler
| [in] | *handle | pointer to a bmp388 handle structure |
Definition at line 3518 of file driver_bmp388.c.
| uint8_t bmp388_read_pressure | ( | bmp388_handle_t * | handle, |
| uint32_t * | raw, | ||
| float * | pa ) |
read the pressure
| [in] | *handle | pointer to a bmp388 handle structure |
| [out] | *raw | pointer to a raw pressure buffer |
| [out] | *pa | pointer to a converted pressure buffer |
Definition at line 3111 of file driver_bmp388.c.
| uint8_t bmp388_read_temperature | ( | bmp388_handle_t * | handle, |
| uint32_t * | raw, | ||
| float * | c ) |
read the temperature
| [in] | *handle | pointer to a bmp388 handle structure |
| [out] | *raw | pointer to a raw temperature buffer |
| [out] | *c | pointer to a converted temperature buffer |
Definition at line 2959 of file driver_bmp388.c.
| uint8_t bmp388_read_temperature_pressure | ( | bmp388_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 bmp388 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 3313 of file driver_bmp388.c.
| uint8_t bmp388_set_addr_pin | ( | bmp388_handle_t * | handle, |
| bmp388_address_t | addr_pin ) |
set the iic address pin
| [in] | *handle | pointer to a bmp388 handle structure |
| [in] | addr_pin | iic address pin |
Definition at line 3573 of file driver_bmp388.c.
| uint8_t bmp388_set_filter_coefficient | ( | bmp388_handle_t * | handle, |
| bmp388_filter_coefficient_t | coefficient ) |
set the filter coefficient
| [in] | *handle | pointer to a bmp388 handle structure |
| [in] | coefficient | filter coefficient |
Definition at line 2526 of file driver_bmp388.c.
| uint8_t bmp388_set_iic_watchdog_period | ( | bmp388_handle_t * | handle, |
| bmp388_iic_watchdog_period_t | period ) |
set the iic watchdog period
| [in] | *handle | pointer to a bmp388 handle structure |
| [in] | period | iic watchdog period |
Definition at line 1951 of file driver_bmp388.c.
| uint8_t bmp388_set_iic_watchdog_timer | ( | bmp388_handle_t * | handle, |
| bmp388_bool_t | enable ) |
enable or disable the iic watchdog timer
| [in] | *handle | pointer to a bmp388 handle structure |
| [in] | enable | bool value |
Definition at line 1869 of file driver_bmp388.c.
| uint8_t bmp388_set_interface | ( | bmp388_handle_t * | handle, |
| bmp388_interface_t | interface ) |
set the interface
| [in] | *handle | pointer to a bmp388 handle structure |
| [in] | interface | chip interface |
Definition at line 3615 of file driver_bmp388.c.
| uint8_t bmp388_set_mode | ( | bmp388_handle_t * | handle, |
| bmp388_mode_t | mode ) |
set the chip mode
| [in] | *handle | pointer to a bmp388 handle structure |
| [in] | mode | chip mode |
Definition at line 2197 of file driver_bmp388.c.
| uint8_t bmp388_set_odr | ( | bmp388_handle_t * | handle, |
| bmp388_odr_t | odr ) |
set the output data rate
| [in] | *handle | pointer to a bmp388 handle structure |
| [in] | odr | output data rate |
Definition at line 2443 of file driver_bmp388.c.
| uint8_t bmp388_set_pressure | ( | bmp388_handle_t * | handle, |
| bmp388_bool_t | enable ) |
enable or disable the pressure
| [in] | *handle | pointer to a bmp388 handle structure |
| [in] | enable | bool value |
Definition at line 2033 of file driver_bmp388.c.
| uint8_t bmp388_set_pressure_oversampling | ( | bmp388_handle_t * | handle, |
| bmp388_oversampling_t | oversampling ) |
set the pressure oversampling
| [in] | *handle | pointer to a bmp388 handle structure |
| [in] | oversampling | pressure oversampling |
Definition at line 2279 of file driver_bmp388.c.
| uint8_t bmp388_set_spi_wire | ( | bmp388_handle_t * | handle, |
| bmp388_spi_wire_t | wire ) |
set the spi wire
| [in] | *handle | pointer to a bmp388 handle structure |
| [in] | wire | spi wire |
Definition at line 1787 of file driver_bmp388.c.
| uint8_t bmp388_set_temperature | ( | bmp388_handle_t * | handle, |
| bmp388_bool_t | enable ) |
enable or disable the temperature
| [in] | *handle | pointer to a bmp388 handle structure |
| [in] | enable | bool value |
Definition at line 2115 of file driver_bmp388.c.
| uint8_t bmp388_set_temperature_oversampling | ( | bmp388_handle_t * | handle, |
| bmp388_oversampling_t | oversampling ) |
set the temperature oversampling
| [in] | *handle | pointer to a bmp388 handle structure |
| [in] | oversampling | temperature oversampling |
Definition at line 2361 of file driver_bmp388.c.
| uint8_t bmp388_softreset | ( | bmp388_handle_t * | handle | ) |
soft reset
| [in] | *handle | pointer to a bmp388 handle structure |
Definition at line 2644 of file driver_bmp388.c.