|  | LibDriver BMP384
    | 
bmp384 base driver modules More...
| Data Structures | |
| struct | bmp384_frame_s | 
| bmp384 frame structure definition  More... | |
| struct | bmp384_handle_s | 
| bmp384 handle structure definition  More... | |
| struct | bmp384_info_s | 
| bmp384 information structure definition  More... | |
| Typedefs | |
| typedef struct bmp384_frame_s | bmp384_frame_t | 
| bmp384 frame structure definition | |
| typedef struct bmp384_handle_s | bmp384_handle_t | 
| bmp384 handle structure definition | |
| typedef struct bmp384_info_s | bmp384_info_t | 
| bmp384 information structure definition | |
| Functions | |
| uint8_t | bmp384_info (bmp384_info_t *info) | 
| get chip's information | |
| uint8_t | bmp384_set_addr_pin (bmp384_handle_t *handle, bmp384_address_t addr_pin) | 
| set the iic address pin | |
| uint8_t | bmp384_get_addr_pin (bmp384_handle_t *handle, bmp384_address_t *addr_pin) | 
| get the iic address pin | |
| uint8_t | bmp384_set_interface (bmp384_handle_t *handle, bmp384_interface_t interface) | 
| set the interface | |
| uint8_t | bmp384_get_interface (bmp384_handle_t *handle, bmp384_interface_t *interface) | 
| get the interface | |
| uint8_t | bmp384_irq_handler (bmp384_handle_t *handle) | 
| irq handler | |
| uint8_t | bmp384_init (bmp384_handle_t *handle) | 
| initialize the chip | |
| uint8_t | bmp384_deinit (bmp384_handle_t *handle) | 
| close the chip | |
| uint8_t | bmp384_read_temperature_pressure (bmp384_handle_t *handle, uint32_t *temperature_raw, float *temperature_c, uint32_t *pressure_raw, float *pressure_pa) | 
| read the temperature and pressure | |
| uint8_t | bmp384_read_temperature (bmp384_handle_t *handle, uint32_t *raw, float *c) | 
| read the temperature | |
| uint8_t | bmp384_read_pressure (bmp384_handle_t *handle, uint32_t *raw, float *pa) | 
| read the pressure | |
| uint8_t | bmp384_get_error (bmp384_handle_t *handle, uint8_t *err) | 
| get the error | |
| uint8_t | bmp384_get_status (bmp384_handle_t *handle, uint8_t *status) | 
| get the status | |
| uint8_t | bmp384_get_sensortime (bmp384_handle_t *handle, uint32_t *t) | 
| get the sensor time | |
| uint8_t | bmp384_get_event (bmp384_handle_t *handle, bmp384_event_t *event) | 
| get the event | |
| uint8_t | bmp384_set_spi_wire (bmp384_handle_t *handle, bmp384_spi_wire_t wire) | 
| set the spi wire | |
| uint8_t | bmp384_get_spi_wire (bmp384_handle_t *handle, bmp384_spi_wire_t *wire) | 
| get the spi wire | |
| uint8_t | bmp384_set_iic_watchdog_timer (bmp384_handle_t *handle, bmp384_bool_t enable) | 
| enable or disable the iic watchdog timer | |
| uint8_t | bmp384_get_iic_watchdog_timer (bmp384_handle_t *handle, bmp384_bool_t *enable) | 
| get the iic watchdog timer status | |
| uint8_t | bmp384_set_iic_watchdog_period (bmp384_handle_t *handle, bmp384_iic_watchdog_period_t period) | 
| set the iic watchdog period | |
| uint8_t | bmp384_get_iic_watchdog_period (bmp384_handle_t *handle, bmp384_iic_watchdog_period_t *period) | 
| get the iic watchdog period | |
| uint8_t | bmp384_set_pressure (bmp384_handle_t *handle, bmp384_bool_t enable) | 
| enable or disable the pressure | |
| uint8_t | bmp384_get_pressure (bmp384_handle_t *handle, bmp384_bool_t *enable) | 
| get the pressure status | |
| uint8_t | bmp384_set_temperature (bmp384_handle_t *handle, bmp384_bool_t enable) | 
| enable or disable the temperature | |
| uint8_t | bmp384_get_temperature (bmp384_handle_t *handle, bmp384_bool_t *enable) | 
| get the temperature status | |
| uint8_t | bmp384_set_mode (bmp384_handle_t *handle, bmp384_mode_t mode) | 
| set the chip mode | |
| uint8_t | bmp384_get_mode (bmp384_handle_t *handle, bmp384_mode_t *mode) | 
| get the chip mode | |
| uint8_t | bmp384_set_pressure_oversampling (bmp384_handle_t *handle, bmp384_oversampling_t oversampling) | 
| set the pressure oversampling | |
| uint8_t | bmp384_get_pressure_oversampling (bmp384_handle_t *handle, bmp384_oversampling_t *oversampling) | 
| get the pressure oversampling | |
| uint8_t | bmp384_set_temperature_oversampling (bmp384_handle_t *handle, bmp384_oversampling_t oversampling) | 
| set the temperature oversampling | |
| uint8_t | bmp384_get_temperature_oversampling (bmp384_handle_t *handle, bmp384_oversampling_t *oversampling) | 
| get the temperature oversampling | |
| uint8_t | bmp384_set_odr (bmp384_handle_t *handle, bmp384_odr_t odr) | 
| set the output data rate | |
| uint8_t | bmp384_get_odr (bmp384_handle_t *handle, bmp384_odr_t *odr) | 
| get the output data rate | |
| uint8_t | bmp384_set_filter_coefficient (bmp384_handle_t *handle, bmp384_filter_coefficient_t coefficient) | 
| set the filter coefficient | |
| uint8_t | bmp384_get_filter_coefficient (bmp384_handle_t *handle, bmp384_filter_coefficient_t *coefficient) | 
| get the filter coefficient | |
| uint8_t | bmp384_softreset (bmp384_handle_t *handle) | 
| soft reset | |
| uint8_t | bmp384_extmode_en_middle (bmp384_handle_t *handle) | 
| extmode enable middle | |
bmp384 base driver modules
| typedef struct bmp384_frame_s bmp384_frame_t | 
bmp384 frame structure definition
| typedef struct bmp384_handle_s bmp384_handle_t | 
bmp384 handle structure definition
| typedef struct bmp384_info_s bmp384_info_t | 
bmp384 information structure definition
| enum bmp384_address_t | 
bmp384 address enumeration definition
| Enumerator | |
|---|---|
| BMP384_ADDRESS_ADO_LOW | ADO is low | 
| BMP384_ADDRESS_ADO_HIGH | ADO is HIGH | 
Definition at line 71 of file driver_bmp384.h.
| enum bmp384_bool_t | 
bmp384 bool enumeration definition
| Enumerator | |
|---|---|
| BMP384_BOOL_FALSE | false | 
| BMP384_BOOL_TRUE | true | 
Definition at line 80 of file driver_bmp384.h.
| enum bmp384_error_t | 
bmp384 error enumeration definition
| Enumerator | |
|---|---|
| BMP384_ERROR_FATAL | fatal error | 
| BMP384_ERROR_CMD | command error | 
| BMP384_ERROR_CONF | conf error | 
Definition at line 89 of file driver_bmp384.h.
| enum bmp384_event_t | 
bmp384 event enumeration definition
| Enumerator | |
|---|---|
| BMP384_EVENT_NONE | event none | 
| BMP384_EVENT_POWER_UP_OR_SOFTRESET | event power up or soft reset | 
Definition at line 109 of file driver_bmp384.h.
bmp384 fifo data source enumeration definition
| Enumerator | |
|---|---|
| BMP384_FIFO_DATA_SOURCE_UNFILTERED | fifo data source unfiltered | 
| BMP384_FIFO_DATA_SOURCE_FILTERED | fifo data source filtered | 
Definition at line 118 of file driver_bmp384.h.
bmp384 filter coefficient enumeration definition
Definition at line 221 of file driver_bmp384.h.
| enum bmp384_frame_type_t | 
bmp384 frame type enumeration definition
| Enumerator | |
|---|---|
| BMP384_FRAME_TYPE_TEMPERATURE | temperature frame type | 
| BMP384_FRAME_TYPE_PRESSURE | pressure frame type | 
| BMP384_FRAME_TYPE_SENSORTIME | sensor time frame type | 
Definition at line 236 of file driver_bmp384.h.
bmp384 iic watchdog period enumeration definition
| Enumerator | |
|---|---|
| BMP384_IIC_WATCHDOG_PERIOD_1P25_MS | iic watchdog period 1.25 ms | 
| BMP384_IIC_WATCHDOG_PERIOD_40_MS | iic watchdog period 40 ms | 
Definition at line 164 of file driver_bmp384.h.
| enum bmp384_interface_t | 
bmp384 interface enumeration definition
| Enumerator | |
|---|---|
| BMP384_INTERFACE_IIC | iic interface | 
| BMP384_INTERFACE_SPI | spi interface | 
Definition at line 62 of file driver_bmp384.h.
bmp384 interrupt active level enumeration definition
| Enumerator | |
|---|---|
| BMP384_INTERRUPT_ACTIVE_LEVEL_LOWER | active level lower | 
| BMP384_INTERRUPT_ACTIVE_LEVEL_HIGHER | active level higher | 
Definition at line 137 of file driver_bmp384.h.
bmp384 interrupt pin type enumeration definition
| Enumerator | |
|---|---|
| BMP384_INTERRUPT_PIN_TYPE_PUSH_PULL | push pull pin type | 
| BMP384_INTERRUPT_PIN_TYPE_OPEN_DRAIN | open drain pin type | 
Definition at line 146 of file driver_bmp384.h.
bmp384 interrupt status enumeration definition
Definition at line 127 of file driver_bmp384.h.
| enum bmp384_mode_t | 
bmp384 mode enumeration definition
| Enumerator | |
|---|---|
| BMP384_MODE_SLEEP_MODE | sleep mode | 
| BMP384_MODE_FORCED_MODE | forced mode | 
| BMP384_MODE_NORMAL_MODE | normal mode | 
Definition at line 173 of file driver_bmp384.h.
| enum bmp384_odr_t | 
bmp384 output data rate enumeration definition
Definition at line 196 of file driver_bmp384.h.
bmp384 oversampling enumeration definition
Definition at line 183 of file driver_bmp384.h.
| enum bmp384_spi_wire_t | 
bmp384 spi wire enumeration definition
| Enumerator | |
|---|---|
| BMP384_SPI_WIRE_4 | 4 wire | 
| BMP384_SPI_WIRE_3 | 3 wire | 
Definition at line 155 of file driver_bmp384.h.
| enum bmp384_status_t | 
bmp384 status enumeration definition
| Enumerator | |
|---|---|
| BMP384_STATUS_COMMAND_READY | command ready status | 
| BMP384_STATUS_PRESS_READY | press ready status | 
| BMP384_STATUS_TEMP_READY | temp ready status | 
Definition at line 99 of file driver_bmp384.h.
| uint8_t bmp384_deinit | ( | bmp384_handle_t * | handle | ) | 
close the chip
| [in] | *handle | pointer to a bmp384 handle structure | 
Definition at line 2904 of file driver_bmp384.c.
| uint8_t bmp384_extmode_en_middle | ( | bmp384_handle_t * | handle | ) | 
extmode enable middle
| [in] | *handle | pointer to a bmp384 handle structure | 
Definition at line 2679 of file driver_bmp384.c.
| uint8_t bmp384_get_addr_pin | ( | bmp384_handle_t * | handle, | 
| bmp384_address_t * | addr_pin ) | 
get the iic address pin
| [in] | *handle | pointer to a bmp384 handle structure | 
| [out] | *addr_pin | pointer to an iic address pin buffer | 
Definition at line 3593 of file driver_bmp384.c.
| uint8_t bmp384_get_error | ( | bmp384_handle_t * | handle, | 
| uint8_t * | err ) | 
get the error
| [in] | *handle | pointer to a bmp384 handle structure | 
| [out] | *err | pointer to an error buffer | 
Definition at line 387 of file driver_bmp384.c.
| uint8_t bmp384_get_event | ( | bmp384_handle_t * | handle, | 
| bmp384_event_t * | event ) | 
get the event
| [in] | *handle | pointer to a bmp384 handle structure | 
| [out] | *event | pointer to an event buffer | 
Definition at line 494 of file driver_bmp384.c.
| uint8_t bmp384_get_filter_coefficient | ( | bmp384_handle_t * | handle, | 
| bmp384_filter_coefficient_t * | coefficient ) | 
get the filter coefficient
| [in] | *handle | pointer to a bmp384 handle structure | 
| [out] | *coefficient | pointer to a filter coefficient buffer | 
Definition at line 2571 of file driver_bmp384.c.
| uint8_t bmp384_get_iic_watchdog_period | ( | bmp384_handle_t * | handle, | 
| bmp384_iic_watchdog_period_t * | period ) | 
get the iic watchdog period
| [in] | *handle | pointer to a bmp384 handle structure | 
| [out] | *period | pointer to an iic watchdog period buffer | 
Definition at line 1995 of file driver_bmp384.c.
| uint8_t bmp384_get_iic_watchdog_timer | ( | bmp384_handle_t * | handle, | 
| bmp384_bool_t * | enable ) | 
get the iic watchdog timer status
| [in] | *handle | pointer to a bmp384 handle structure | 
| [out] | *enable | pointer to a bool buffer | 
Definition at line 1913 of file driver_bmp384.c.
| uint8_t bmp384_get_interface | ( | bmp384_handle_t * | handle, | 
| bmp384_interface_t * | interface ) | 
get the interface
| [in] | *handle | pointer to a bmp384 handle structure | 
| [out] | *interface | pointer to a chip interface buffer | 
Definition at line 3635 of file driver_bmp384.c.
| uint8_t bmp384_get_mode | ( | bmp384_handle_t * | handle, | 
| bmp384_mode_t * | mode ) | 
get the chip mode
| [in] | *handle | pointer to a bmp384 handle structure | 
| [out] | *mode | pointer to a mode buffer | 
Definition at line 2241 of file driver_bmp384.c.
| uint8_t bmp384_get_odr | ( | bmp384_handle_t * | handle, | 
| bmp384_odr_t * | odr ) | 
get the output data rate
| [in] | *handle | pointer to a bmp384 handle structure | 
| [out] | *odr | pointer to an output data rate buffer | 
Definition at line 2488 of file driver_bmp384.c.
| uint8_t bmp384_get_pressure | ( | bmp384_handle_t * | handle, | 
| bmp384_bool_t * | enable ) | 
get the pressure status
| [in] | *handle | pointer to a bmp384 handle structure | 
| [out] | *enable | pointer to a bool buffer | 
Definition at line 2077 of file driver_bmp384.c.
| uint8_t bmp384_get_pressure_oversampling | ( | bmp384_handle_t * | handle, | 
| bmp384_oversampling_t * | oversampling ) | 
get the pressure oversampling
| [in] | *handle | pointer to a bmp384 handle structure | 
| [out] | *oversampling | pointer to an oversampling buffer | 
Definition at line 2323 of file driver_bmp384.c.
| uint8_t bmp384_get_sensortime | ( | bmp384_handle_t * | handle, | 
| uint32_t * | t ) | 
get the sensor time
| [in] | *handle | pointer to a bmp384 handle structure | 
| [out] | *t | pointer to a timestamp buffer | 
Definition at line 457 of file driver_bmp384.c.
| uint8_t bmp384_get_spi_wire | ( | bmp384_handle_t * | handle, | 
| bmp384_spi_wire_t * | wire ) | 
get the spi wire
| [in] | *handle | pointer to a bmp384 handle structure | 
| [out] | *wire | pointer to a spi wire buffer | 
Definition at line 1831 of file driver_bmp384.c.
| uint8_t bmp384_get_status | ( | bmp384_handle_t * | handle, | 
| uint8_t * | status ) | 
get the status
| [in] | *handle | pointer to a bmp384 handle structure | 
| [out] | *status | pointer to a status buffer | 
Definition at line 422 of file driver_bmp384.c.
| uint8_t bmp384_get_temperature | ( | bmp384_handle_t * | handle, | 
| bmp384_bool_t * | enable ) | 
get the temperature status
| [in] | *handle | pointer to a bmp384 handle structure | 
| [out] | *enable | pointer to a bool buffer | 
Definition at line 2159 of file driver_bmp384.c.
| uint8_t bmp384_get_temperature_oversampling | ( | bmp384_handle_t * | handle, | 
| bmp384_oversampling_t * | oversampling ) | 
get the temperature oversampling
| [in] | *handle | pointer to a bmp384 handle structure | 
| [out] | *oversampling | pointer to an oversampling buffer | 
Definition at line 2405 of file driver_bmp384.c.
| uint8_t bmp384_info | ( | bmp384_info_t * | info | ) | 
get chip's information
| [out] | *info | pointer to a bmp384 info structure | 
Definition at line 3903 of file driver_bmp384.c.
| uint8_t bmp384_init | ( | bmp384_handle_t * | handle | ) | 
initialize the chip
| [in] | *handle | pointer to a bmp384 handle structure | 
Definition at line 2758 of file driver_bmp384.c.
| uint8_t bmp384_irq_handler | ( | bmp384_handle_t * | handle | ) | 
irq handler
| [in] | *handle | pointer to a bmp384 handle structure | 
Definition at line 3517 of file driver_bmp384.c.
| uint8_t bmp384_read_pressure | ( | bmp384_handle_t * | handle, | 
| uint32_t * | raw, | ||
| float * | pa ) | 
read the pressure
| [in] | *handle | pointer to a bmp384 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_bmp384.c.
| uint8_t bmp384_read_temperature | ( | bmp384_handle_t * | handle, | 
| uint32_t * | raw, | ||
| float * | c ) | 
read the temperature
| [in] | *handle | pointer to a bmp384 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_bmp384.c.
| uint8_t bmp384_read_temperature_pressure | ( | bmp384_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 bmp384 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_bmp384.c.
| uint8_t bmp384_set_addr_pin | ( | bmp384_handle_t * | handle, | 
| bmp384_address_t | addr_pin ) | 
set the iic address pin
| [in] | *handle | pointer to a bmp384 handle structure | 
| [in] | addr_pin | iic address pin | 
Definition at line 3572 of file driver_bmp384.c.
| uint8_t bmp384_set_filter_coefficient | ( | bmp384_handle_t * | handle, | 
| bmp384_filter_coefficient_t | coefficient ) | 
set the filter coefficient
| [in] | *handle | pointer to a bmp384 handle structure | 
| [in] | coefficient | filter coefficient | 
Definition at line 2525 of file driver_bmp384.c.
| uint8_t bmp384_set_iic_watchdog_period | ( | bmp384_handle_t * | handle, | 
| bmp384_iic_watchdog_period_t | period ) | 
set the iic watchdog period
| [in] | *handle | pointer to a bmp384 handle structure | 
| [in] | period | iic watchdog period | 
Definition at line 1950 of file driver_bmp384.c.
| uint8_t bmp384_set_iic_watchdog_timer | ( | bmp384_handle_t * | handle, | 
| bmp384_bool_t | enable ) | 
enable or disable the iic watchdog timer
| [in] | *handle | pointer to a bmp384 handle structure | 
| [in] | enable | bool value | 
Definition at line 1868 of file driver_bmp384.c.
| uint8_t bmp384_set_interface | ( | bmp384_handle_t * | handle, | 
| bmp384_interface_t | interface ) | 
set the interface
| [in] | *handle | pointer to a bmp384 handle structure | 
| [in] | interface | chip interface | 
Definition at line 3614 of file driver_bmp384.c.
| uint8_t bmp384_set_mode | ( | bmp384_handle_t * | handle, | 
| bmp384_mode_t | mode ) | 
set the chip mode
| [in] | *handle | pointer to a bmp384 handle structure | 
| [in] | mode | chip mode | 
Definition at line 2196 of file driver_bmp384.c.
| uint8_t bmp384_set_odr | ( | bmp384_handle_t * | handle, | 
| bmp384_odr_t | odr ) | 
set the output data rate
| [in] | *handle | pointer to a bmp384 handle structure | 
| [in] | odr | output data rate | 
Definition at line 2442 of file driver_bmp384.c.
| uint8_t bmp384_set_pressure | ( | bmp384_handle_t * | handle, | 
| bmp384_bool_t | enable ) | 
enable or disable the pressure
| [in] | *handle | pointer to a bmp384 handle structure | 
| [in] | enable | bool value | 
Definition at line 2032 of file driver_bmp384.c.
| uint8_t bmp384_set_pressure_oversampling | ( | bmp384_handle_t * | handle, | 
| bmp384_oversampling_t | oversampling ) | 
set the pressure oversampling
| [in] | *handle | pointer to a bmp384 handle structure | 
| [in] | oversampling | pressure oversampling | 
Definition at line 2278 of file driver_bmp384.c.
| uint8_t bmp384_set_spi_wire | ( | bmp384_handle_t * | handle, | 
| bmp384_spi_wire_t | wire ) | 
set the spi wire
| [in] | *handle | pointer to a bmp384 handle structure | 
| [in] | wire | spi wire | 
Definition at line 1786 of file driver_bmp384.c.
| uint8_t bmp384_set_temperature | ( | bmp384_handle_t * | handle, | 
| bmp384_bool_t | enable ) | 
enable or disable the temperature
| [in] | *handle | pointer to a bmp384 handle structure | 
| [in] | enable | bool value | 
Definition at line 2114 of file driver_bmp384.c.
| uint8_t bmp384_set_temperature_oversampling | ( | bmp384_handle_t * | handle, | 
| bmp384_oversampling_t | oversampling ) | 
set the temperature oversampling
| [in] | *handle | pointer to a bmp384 handle structure | 
| [in] | oversampling | temperature oversampling | 
Definition at line 2360 of file driver_bmp384.c.
| uint8_t bmp384_softreset | ( | bmp384_handle_t * | handle | ) | 
soft reset
| [in] | *handle | pointer to a bmp384 handle structure | 
Definition at line 2643 of file driver_bmp384.c.