|  | LibDriver BMP384
    | 
driver bmp384 source file More...
#include "driver_bmp384.h"Go to the source code of this file.
| Functions | |
| 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_get_interrupt_status (bmp384_handle_t *handle, uint8_t *status) | 
| get the interrupt status | |
| uint8_t | bmp384_get_fifo_length (bmp384_handle_t *handle, uint16_t *length) | 
| get the fifo length | |
| uint8_t | bmp384_get_fifo_data (bmp384_handle_t *handle, uint8_t *data, uint16_t length) | 
| get the fifo data | |
| uint8_t | bmp384_set_fifo_watermark (bmp384_handle_t *handle, uint16_t watermark) | 
| set the fifo watermark | |
| uint8_t | bmp384_get_fifo_watermark (bmp384_handle_t *handle, uint16_t *watermark) | 
| get the fifo watermark | |
| uint8_t | bmp384_set_fifo (bmp384_handle_t *handle, bmp384_bool_t enable) | 
| enable or disable the fifo | |
| uint8_t | bmp384_get_fifo (bmp384_handle_t *handle, bmp384_bool_t *enable) | 
| get the fifo status | |
| uint8_t | bmp384_set_fifo_stop_on_full (bmp384_handle_t *handle, bmp384_bool_t enable) | 
| enable or disable the fifo stopping on full | |
| uint8_t | bmp384_get_fifo_stop_on_full (bmp384_handle_t *handle, bmp384_bool_t *enable) | 
| get the fifo stopping on full status | |
| uint8_t | bmp384_set_fifo_sensortime_on (bmp384_handle_t *handle, bmp384_bool_t enable) | 
| enable or disable the fifo sensor time on | |
| uint8_t | bmp384_get_fifo_sensortime_on (bmp384_handle_t *handle, bmp384_bool_t *enable) | 
| get the fifo sensor time on status | |
| uint8_t | bmp384_set_fifo_pressure_on (bmp384_handle_t *handle, bmp384_bool_t enable) | 
| enable or disable the fifo pressure on | |
| uint8_t | bmp384_get_fifo_pressure_on (bmp384_handle_t *handle, bmp384_bool_t *enable) | 
| get the fifo pressure on status | |
| uint8_t | bmp384_set_fifo_temperature_on (bmp384_handle_t *handle, bmp384_bool_t enable) | 
| enable or disable the fifo temperature on | |
| uint8_t | bmp384_get_fifo_temperature_on (bmp384_handle_t *handle, bmp384_bool_t *enable) | 
| get the fifo temperature on status | |
| uint8_t | bmp384_set_fifo_subsampling (bmp384_handle_t *handle, uint8_t subsample) | 
| set the fifo subsampling | |
| uint8_t | bmp384_get_fifo_subsampling (bmp384_handle_t *handle, uint8_t *subsample) | 
| get the fifo subsampling | |
| uint8_t | bmp384_set_fifo_data_source (bmp384_handle_t *handle, bmp384_fifo_data_source_t source) | 
| set the fifo data source | |
| uint8_t | bmp384_get_fifo_data_source (bmp384_handle_t *handle, bmp384_fifo_data_source_t *source) | 
| get the fifo data source | |
| uint8_t | bmp384_set_interrupt_pin_type (bmp384_handle_t *handle, bmp384_interrupt_pin_type_t pin_type) | 
| set the interrupt pin type | |
| uint8_t | bmp384_get_interrupt_pin_type (bmp384_handle_t *handle, bmp384_interrupt_pin_type_t *pin_type) | 
| get the interrupt pin type | |
| uint8_t | bmp384_set_interrupt_active_level (bmp384_handle_t *handle, bmp384_interrupt_active_level_t level) | 
| set the interrupt active level | |
| uint8_t | bmp384_get_interrupt_active_level (bmp384_handle_t *handle, bmp384_interrupt_active_level_t *level) | 
| get the interrupt active level | |
| uint8_t | bmp384_set_latch_interrupt_pin_and_interrupt_status (bmp384_handle_t *handle, bmp384_bool_t enable) | 
| enable or disable latching interrupt pin and interrupt status | |
| uint8_t | bmp384_get_latch_interrupt_pin_and_interrupt_status (bmp384_handle_t *handle, bmp384_bool_t *enable) | 
| get latching interrupt pin and interrupt status | |
| uint8_t | bmp384_set_interrupt_fifo_watermark (bmp384_handle_t *handle, bmp384_bool_t enable) | 
| enable or disable the fifo watermark interrupt | |
| uint8_t | bmp384_get_interrupt_fifo_watermark (bmp384_handle_t *handle, bmp384_bool_t *enable) | 
| get the interrupt fifo watermark | |
| uint8_t | bmp384_set_interrupt_fifo_full (bmp384_handle_t *handle, bmp384_bool_t enable) | 
| enable or disable the fifo full interrupt | |
| uint8_t | bmp384_get_interrupt_fifo_full (bmp384_handle_t *handle, bmp384_bool_t *enable) | 
| get the interrupt fifo full | |
| uint8_t | bmp384_set_interrupt_data_ready (bmp384_handle_t *handle, bmp384_bool_t enable) | 
| enable or disable the data ready interrupt | |
| uint8_t | bmp384_get_interrupt_data_ready (bmp384_handle_t *handle, bmp384_bool_t *enable) | 
| get the interrupt data ready status | |
| 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_flush_fifo (bmp384_handle_t *handle) | 
| flush the fifo | |
| uint8_t | bmp384_softreset (bmp384_handle_t *handle) | 
| soft reset | |
| uint8_t | bmp384_extmode_en_middle (bmp384_handle_t *handle) | 
| extmode enable middle | |
| 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 (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_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_irq_handler (bmp384_handle_t *handle) | 
| irq handler | |
| 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_read_fifo (bmp384_handle_t *handle, uint8_t *buf, uint16_t *len) | 
| read the fifo | |
| uint8_t | bmp384_fifo_parse (bmp384_handle_t *handle, uint8_t *buf, uint16_t buf_len, bmp384_frame_t *frame, uint16_t *frame_len) | 
| parse the fifo data | |
| uint8_t | bmp384_set_reg (bmp384_handle_t *handle, uint8_t reg, uint8_t value) | 
| set the chip register | |
| uint8_t | bmp384_get_reg (bmp384_handle_t *handle, uint8_t reg, uint8_t *value) | 
| get the chip register | |
| uint8_t | bmp384_info (bmp384_info_t *info) | 
| get chip's information | |
driver bmp384 source file
Copyright (c) 2015 - present LibDriver All rights reserved
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Date | Version | Author | Description | 
|---|---|---|---|
| 2024/09/30 | 1.0 | Shifeng Li | first upload | 
Definition in file driver_bmp384.c.
| #define BMP384_REG_CHIP_ID 0x00 | 
chip id register
Definition at line 102 of file driver_bmp384.c.
| #define BMP384_REG_CMD 0x7E | 
| #define BMP384_REG_CONFIG 0x1F | 
configure register
Definition at line 76 of file driver_bmp384.c.
| #define BMP384_REG_DATA_0 0x04 | 
data 0 register
Definition at line 99 of file driver_bmp384.c.
| #define BMP384_REG_DATA_1 0x05 | 
data 1 register
Definition at line 98 of file driver_bmp384.c.
| #define BMP384_REG_DATA_2 0x06 | 
data 2 register
Definition at line 97 of file driver_bmp384.c.
| #define BMP384_REG_DATA_3 0x07 | 
data 3 register
Definition at line 96 of file driver_bmp384.c.
| #define BMP384_REG_DATA_4 0x08 | 
data 4 register
Definition at line 95 of file driver_bmp384.c.
| #define BMP384_REG_DATA_5 0x09 | 
data 5 register
Definition at line 94 of file driver_bmp384.c.
| #define BMP384_REG_ERR_REG 0x02 | 
error register
Definition at line 101 of file driver_bmp384.c.
| #define BMP384_REG_EVENT 0x10 | 
event register
Definition at line 90 of file driver_bmp384.c.
| #define BMP384_REG_FIFO_CONFIG_1 0x17 | 
fifo configure 1 register
Definition at line 83 of file driver_bmp384.c.
| #define BMP384_REG_FIFO_CONFIG_2 0x18 | 
fifo configure 2 register
Definition at line 82 of file driver_bmp384.c.
| #define BMP384_REG_FIFO_DATA 0x14 | 
fifo data register
Definition at line 86 of file driver_bmp384.c.
| #define BMP384_REG_FIFO_LENGTH_0 0x12 | 
fifo length 0 register
Definition at line 88 of file driver_bmp384.c.
| #define BMP384_REG_FIFO_LENGTH_1 0x13 | 
fifo length 1 register
Definition at line 87 of file driver_bmp384.c.
| #define BMP384_REG_FIFO_WTM_0 0x15 | 
fifo watermark 2 register
Definition at line 85 of file driver_bmp384.c.
| #define BMP384_REG_FIFO_WTM_1 0x16 | 
fifo watermark 1 register
Definition at line 84 of file driver_bmp384.c.
| #define BMP384_REG_IF_CONF 0x1A | 
if configure register
Definition at line 80 of file driver_bmp384.c.
| #define BMP384_REG_INT_CTRL 0x19 | 
interrupt control register
Definition at line 81 of file driver_bmp384.c.
| #define BMP384_REG_INT_STATUS 0x11 | 
interrupt status register
Definition at line 89 of file driver_bmp384.c.
| #define BMP384_REG_NVM_PAR_P10 0x44 | 
NVM PAR P10 register
Definition at line 74 of file driver_bmp384.c.
| #define BMP384_REG_NVM_PAR_P11 0x45 | 
NVM PAR P11 register
Definition at line 75 of file driver_bmp384.c.
| #define BMP384_REG_NVM_PAR_P1_H 0x37 | 
NVM PAR P1 high register
Definition at line 61 of file driver_bmp384.c.
| #define BMP384_REG_NVM_PAR_P1_L 0x36 | 
NVM PAR P1 low register
Definition at line 60 of file driver_bmp384.c.
| #define BMP384_REG_NVM_PAR_P2_H 0x39 | 
NVM PAR P2 high register
Definition at line 63 of file driver_bmp384.c.
| #define BMP384_REG_NVM_PAR_P2_L 0x38 | 
NVM PAR P2 low register
Definition at line 62 of file driver_bmp384.c.
| #define BMP384_REG_NVM_PAR_P3 0x3A | 
NVM PAR P3 register
Definition at line 64 of file driver_bmp384.c.
| #define BMP384_REG_NVM_PAR_P4 0x3B | 
NVM PAR P4 register
Definition at line 65 of file driver_bmp384.c.
| #define BMP384_REG_NVM_PAR_P5_H 0x3D | 
NVM PAR P5 high register
Definition at line 67 of file driver_bmp384.c.
| #define BMP384_REG_NVM_PAR_P5_L 0x3C | 
NVM PAR P5 low register
Definition at line 66 of file driver_bmp384.c.
| #define BMP384_REG_NVM_PAR_P6_H 0x3F | 
NVM PAR P6 high register
Definition at line 69 of file driver_bmp384.c.
| #define BMP384_REG_NVM_PAR_P6_L 0x3E | 
NVM PAR P6 low register
Definition at line 68 of file driver_bmp384.c.
| #define BMP384_REG_NVM_PAR_P7 0x40 | 
NVM PAR P7 register
Definition at line 70 of file driver_bmp384.c.
| #define BMP384_REG_NVM_PAR_P8 0x41 | 
NVM PAR P8 register
Definition at line 71 of file driver_bmp384.c.
| #define BMP384_REG_NVM_PAR_P9_H 0x43 | 
NVM PAR P9 high register
Definition at line 73 of file driver_bmp384.c.
| #define BMP384_REG_NVM_PAR_P9_L 0x42 | 
NVM PAR P9 low register
Definition at line 72 of file driver_bmp384.c.
| #define BMP384_REG_NVM_PAR_T1_H 0x32 | 
NVM PAR T1 high register
Definition at line 56 of file driver_bmp384.c.
| #define BMP384_REG_NVM_PAR_T1_L 0x31 | 
NVM PAR T1 low register
Definition at line 55 of file driver_bmp384.c.
| #define BMP384_REG_NVM_PAR_T2_H 0x34 | 
NVM PAR T2 high register
Definition at line 58 of file driver_bmp384.c.
| #define BMP384_REG_NVM_PAR_T2_L 0x33 | 
NVM PAR T2 low register
Definition at line 57 of file driver_bmp384.c.
| #define BMP384_REG_NVM_PAR_T3 0x35 | 
NVM PAR T3 register
Definition at line 59 of file driver_bmp384.c.
| #define BMP384_REG_ODR 0x1D | 
odr register
Definition at line 77 of file driver_bmp384.c.
| #define BMP384_REG_OSR 0x1C | 
osr register
Definition at line 78 of file driver_bmp384.c.
| #define BMP384_REG_PWR_CTRL 0x1B | 
power control register
Definition at line 79 of file driver_bmp384.c.
| #define BMP384_REG_SENSORTIME_0 0x0C | 
sensor time 0 register
Definition at line 93 of file driver_bmp384.c.
| #define BMP384_REG_SENSORTIME_1 0x0D | 
sensor time 1 register
Definition at line 92 of file driver_bmp384.c.
| #define BMP384_REG_SENSORTIME_2 0x0E | 
sensor time 2 register
Definition at line 91 of file driver_bmp384.c.
| #define BMP384_REG_STATUS 0x03 | 
status register
Definition at line 100 of file driver_bmp384.c.
| #define CHIP_NAME "Bosch BMP384" | 
| #define DRIVER_VERSION 1000 | 
driver version
Definition at line 49 of file driver_bmp384.c.
| #define MANUFACTURER_NAME "Bosch" | 
manufacturer name
Definition at line 43 of file driver_bmp384.c.
| #define MAX_CURRENT 0.8f | 
chip max current
Definition at line 46 of file driver_bmp384.c.
| #define SUPPLY_VOLTAGE_MAX 3.6f | 
chip max supply voltage
Definition at line 45 of file driver_bmp384.c.
| #define SUPPLY_VOLTAGE_MIN 1.65f | 
chip min supply voltage
Definition at line 44 of file driver_bmp384.c.
| #define TEMPERATURE_MAX 85.0f | 
chip max operating temperature
Definition at line 48 of file driver_bmp384.c.
| #define TEMPERATURE_MIN -40.0f | 
chip min operating temperature
Definition at line 47 of file driver_bmp384.c.