219    uint32_t temperature_raw;
 
  220    uint32_t pressure_raw;
 
  224                                        (uint32_t *)&pressure_raw, pressure_pa) != 0)
 
 
driver bmp384 shot header file
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_deinit(bmp384_handle_t *handle)
close the chip
uint8_t bmp384_set_addr_pin(bmp384_handle_t *handle, bmp384_address_t addr_pin)
set the iic address pin
bmp384_interface_t
bmp384 interface enumeration definition
uint8_t bmp384_set_interface(bmp384_handle_t *handle, bmp384_interface_t interface)
set the interface
uint8_t bmp384_set_pressure(bmp384_handle_t *handle, bmp384_bool_t enable)
enable or disable the pressure
uint8_t bmp384_set_temperature(bmp384_handle_t *handle, bmp384_bool_t enable)
enable or disable the temperature
uint8_t bmp384_set_pressure_oversampling(bmp384_handle_t *handle, bmp384_oversampling_t oversampling)
set the pressure oversampling
uint8_t bmp384_set_iic_watchdog_timer(bmp384_handle_t *handle, bmp384_bool_t enable)
enable or disable the iic watchdog timer
bmp384_address_t
bmp384 address enumeration definition
uint8_t bmp384_set_filter_coefficient(bmp384_handle_t *handle, bmp384_filter_coefficient_t coefficient)
set the filter coefficient
uint8_t bmp384_set_spi_wire(bmp384_handle_t *handle, bmp384_spi_wire_t wire)
set the spi wire
uint8_t bmp384_set_mode(bmp384_handle_t *handle, bmp384_mode_t mode)
set the chip mode
uint8_t bmp384_init(bmp384_handle_t *handle)
initialize the chip
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_set_temperature_oversampling(bmp384_handle_t *handle, bmp384_oversampling_t oversampling)
set the temperature oversampling
struct bmp384_handle_s bmp384_handle_t
bmp384 handle structure definition
uint8_t bmp384_set_odr(bmp384_handle_t *handle, bmp384_odr_t odr)
set the output data rate
@ BMP384_MODE_FORCED_MODE
uint8_t bmp384_shot_deinit(void)
shot example deinit
uint8_t bmp384_shot_read(float *temperature_c, float *pressure_pa)
shot example read
#define BMP384_SHOT_DEFAULT_PRESSURE_OVERSAMPLING
#define BMP384_SHOT_DEFAULT_PRESSURE
#define BMP384_SHOT_DEFAULT_SPI_WIRE
bmp384 shot example default definition
#define BMP384_SHOT_DEFAULT_TEMPERATURE
#define BMP384_SHOT_DEFAULT_IIC_WATCHDOG_TIMER
#define BMP384_SHOT_DEFAULT_IIC_WATCHDOG_PERIOD
#define BMP384_SHOT_DEFAULT_TEMPERATURE_OVERSAMPLING
uint8_t bmp384_shot_init(bmp384_interface_t interface, bmp384_address_t addr_pin)
shot example init
#define BMP384_SHOT_DEFAULT_ODR
#define BMP384_SHOT_DEFAULT_FILTER_COEFFICIENT
uint8_t bmp384_set_fifo(bmp384_handle_t *handle, bmp384_bool_t enable)
enable or disable the fifo
uint8_t bmp384_interface_iic_write(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus write
void bmp384_interface_debug_print(const char *const fmt,...)
interface print format data
uint8_t bmp384_interface_spi_read(uint8_t reg, uint8_t *buf, uint16_t len)
interface spi bus read
void bmp384_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t bmp384_interface_iic_read(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus read
uint8_t bmp384_interface_iic_init(void)
interface iic bus init
uint8_t bmp384_interface_spi_init(void)
interface spi bus init
uint8_t bmp384_interface_spi_deinit(void)
interface spi bus deinit
void bmp384_interface_receive_callback(uint8_t type)
interface receive callback
uint8_t bmp384_interface_iic_deinit(void)
interface iic bus deinit
uint8_t bmp384_interface_spi_write(uint8_t reg, uint8_t *buf, uint16_t len)
interface spi bus write
#define DRIVER_BMP384_LINK_IIC_WRITE(HANDLE, FUC)
link iic_write function
#define DRIVER_BMP384_LINK_INIT(HANDLE, STRUCTURE)
initialize bmp384_handle_t structure
#define DRIVER_BMP384_LINK_IIC_DEINIT(HANDLE, FUC)
link iic_deinit function
#define DRIVER_BMP384_LINK_SPI_WRITE(HANDLE, FUC)
link spi_write function
#define DRIVER_BMP384_LINK_SPI_READ(HANDLE, FUC)
link spi_read function
#define DRIVER_BMP384_LINK_SPI_INIT(HANDLE, FUC)
link spi_init function
#define DRIVER_BMP384_LINK_RECEIVE_CALLBACK(HANDLE, FUC)
link receive_callback function
#define DRIVER_BMP384_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_BMP384_LINK_IIC_READ(HANDLE, FUC)
link iic_read function
#define DRIVER_BMP384_LINK_SPI_DEINIT(HANDLE, FUC)
link spi_deinit function
#define DRIVER_BMP384_LINK_IIC_INIT(HANDLE, FUC)
link iic_init function
#define DRIVER_BMP384_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function