73 void (*fifo_receive_callback)(uint8_t type))
375 if (
bmp388_read_fifo(&gs_handle, (uint8_t *)buf, (uint16_t *)&buf_len) != 0)
driver bmp388 fifo header file
uint8_t bmp388_set_odr(bmp388_handle_t *handle, bmp388_odr_t odr)
set the output data rate
uint8_t bmp388_set_pressure(bmp388_handle_t *handle, bmp388_bool_t enable)
enable or disable the pressure
bmp388_interface_t
bmp388 interface enumeration definition
uint8_t bmp388_init(bmp388_handle_t *handle)
initialize the chip
uint8_t bmp388_set_spi_wire(bmp388_handle_t *handle, bmp388_spi_wire_t wire)
set 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
struct bmp388_handle_s bmp388_handle_t
bmp388 handle structure definition
uint8_t bmp388_set_pressure_oversampling(bmp388_handle_t *handle, bmp388_oversampling_t oversampling)
set the pressure oversampling
struct bmp388_frame_s bmp388_frame_t
bmp388 frame structure definition
uint8_t bmp388_set_temperature(bmp388_handle_t *handle, bmp388_bool_t enable)
enable or disable the temperature
uint8_t bmp388_set_filter_coefficient(bmp388_handle_t *handle, bmp388_filter_coefficient_t coefficient)
set the filter coefficient
uint8_t bmp388_irq_handler(bmp388_handle_t *handle)
irq handler
uint8_t bmp388_deinit(bmp388_handle_t *handle)
close the chip
uint8_t bmp388_set_interface(bmp388_handle_t *handle, bmp388_interface_t interface)
set the interface
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_set_mode(bmp388_handle_t *handle, bmp388_mode_t mode)
set the chip mode
uint8_t bmp388_set_temperature_oversampling(bmp388_handle_t *handle, bmp388_oversampling_t oversampling)
set the temperature oversampling
uint8_t bmp388_set_addr_pin(bmp388_handle_t *handle, bmp388_address_t addr_pin)
set the iic address pin
bmp388_address_t
bmp388 address enumeration definition
@ BMP388_MODE_NORMAL_MODE
#define BMP388_FIFO_DEFAULT_PRESSURE
#define BMP388_FIFO_DEFAULT_IIC_WATCHDOG_PERIOD
#define BMP388_FIFO_DEFAULT_FIFO_PRESSURE_ON
uint8_t bmp388_fifo_init(bmp388_interface_t interface, bmp388_address_t addr_pin, void(*fifo_receive_callback)(uint8_t type))
fifo example init
#define BMP388_FIFO_DEFAULT_INTERRUPT_PIN_TYPE
#define BMP388_FIFO_DEFAULT_FIFO_WATERMARK
#define BMP388_FIFO_DEFAULT_PRESSURE_OVERSAMPLING
#define BMP388_FIFO_DEFAULT_FIFO_STOP_ON_FULL
#define BMP388_FIFO_DEFAULT_FIFO_SUBSAMPLING
#define BMP388_FIFO_DEFAULT_FIFO_TEMPERATURE_ON
uint8_t bmp388_fifo_read(uint8_t *buf, uint16_t buf_len, bmp388_frame_t *frame, uint16_t *frame_len)
fifo example read
#define BMP388_FIFO_DEFAULT_INTERRUPT_DATA_READY
uint8_t bmp388_fifo_deinit(void)
fifo example deinit
#define BMP388_FIFO_DEFAULT_LATCH_INTERRUPT
#define BMP388_FIFO_DEFAULT_INTERRUPT_FIFO_FULL
#define BMP388_FIFO_DEFAULT_IIC_WATCHDOG_TIMER
#define BMP388_FIFO_DEFAULT_TEMPERATURE_OVERSAMPLING
#define BMP388_FIFO_DEFAULT_ODR
#define BMP388_FIFO_DEFAULT_FIFO_SENSORTIME_ON
#define BMP388_FIFO_DEFAULT_INTERRUPT_WATERMARK
#define BMP388_FIFO_DEFAULT_FIFO_DATA_SOURCE
#define BMP388_FIFO_DEFAULT_INTERRUPT_ACTIVE_LEVEL
#define BMP388_FIFO_DEFAULT_TEMPERATURE
#define BMP388_FIFO_DEFAULT_FILTER_COEFFICIENT
uint8_t bmp388_fifo_irq_handler(void)
fifo example irq handler
#define BMP388_FIFO_DEFAULT_SPI_WIRE
bmp388 fifo example default definition
uint8_t bmp388_read_fifo(bmp388_handle_t *handle, uint8_t *buf, uint16_t *len)
read the fifo
uint8_t bmp388_set_fifo_temperature_on(bmp388_handle_t *handle, bmp388_bool_t enable)
enable or disable the fifo temperature on
uint8_t bmp388_fifo_parse(bmp388_handle_t *handle, uint8_t *buf, uint16_t buf_len, bmp388_frame_t *frame, uint16_t *frame_len)
parse the fifo data
uint8_t bmp388_set_fifo_watermark(bmp388_handle_t *handle, uint16_t watermark)
set the fifo watermark
uint8_t bmp388_set_fifo_subsampling(bmp388_handle_t *handle, uint8_t subsample)
set the fifo subsampling
uint8_t bmp388_set_fifo_data_source(bmp388_handle_t *handle, bmp388_fifo_data_source_t source)
set the fifo data source
uint8_t bmp388_set_fifo_stop_on_full(bmp388_handle_t *handle, bmp388_bool_t enable)
enable or disable the fifo stopping on full
uint8_t bmp388_set_fifo_sensortime_on(bmp388_handle_t *handle, bmp388_bool_t enable)
enable or disable the fifo sensor time on
uint8_t bmp388_set_fifo_pressure_on(bmp388_handle_t *handle, bmp388_bool_t enable)
enable or disable the fifo pressure on
uint8_t bmp388_set_fifo(bmp388_handle_t *handle, bmp388_bool_t enable)
enable or disable the fifo
uint8_t bmp388_interface_spi_init(void)
interface spi bus init
void bmp388_interface_debug_print(const char *const fmt,...)
interface print format data
uint8_t bmp388_interface_iic_read(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus read
uint8_t bmp388_interface_iic_deinit(void)
interface iic bus deinit
uint8_t bmp388_interface_spi_read(uint8_t reg, uint8_t *buf, uint16_t len)
interface spi bus read
uint8_t bmp388_interface_iic_write(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus write
void bmp388_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t bmp388_interface_spi_write(uint8_t reg, uint8_t *buf, uint16_t len)
interface spi bus write
uint8_t bmp388_interface_spi_deinit(void)
interface spi bus deinit
uint8_t bmp388_interface_iic_init(void)
interface iic bus init
uint8_t bmp388_set_interrupt_fifo_full(bmp388_handle_t *handle, bmp388_bool_t enable)
enable or disable the fifo full interrupt
uint8_t bmp388_set_interrupt_fifo_watermark(bmp388_handle_t *handle, bmp388_bool_t enable)
enable or disable the fifo watermark interrupt
uint8_t bmp388_set_interrupt_data_ready(bmp388_handle_t *handle, bmp388_bool_t enable)
enable or disable the data ready interrupt
uint8_t bmp388_set_interrupt_active_level(bmp388_handle_t *handle, bmp388_interrupt_active_level_t level)
set the interrupt active level
uint8_t bmp388_set_interrupt_pin_type(bmp388_handle_t *handle, bmp388_interrupt_pin_type_t pin_type)
set the interrupt pin type
uint8_t bmp388_set_latch_interrupt_pin_and_interrupt_status(bmp388_handle_t *handle, bmp388_bool_t enable)
enable or disable latching interrupt pin and interrupt status
#define DRIVER_BMP388_LINK_SPI_INIT(HANDLE, FUC)
link spi_init function
#define DRIVER_BMP388_LINK_INIT(HANDLE, STRUCTURE)
initialize bmp388_handle_t structure
#define DRIVER_BMP388_LINK_SPI_READ(HANDLE, FUC)
link spi_read function
#define DRIVER_BMP388_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_BMP388_LINK_IIC_DEINIT(HANDLE, FUC)
link iic_deinit function
#define DRIVER_BMP388_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_BMP388_LINK_IIC_INIT(HANDLE, FUC)
link iic_init function
#define DRIVER_BMP388_LINK_SPI_DEINIT(HANDLE, FUC)
link spi_deinit function
#define DRIVER_BMP388_LINK_IIC_READ(HANDLE, FUC)
link iic_read function
#define DRIVER_BMP388_LINK_RECEIVE_CALLBACK(HANDLE, FUC)
link receive_callback function
#define DRIVER_BMP388_LINK_IIC_WRITE(HANDLE, FUC)
link iic_write function
#define DRIVER_BMP388_LINK_SPI_WRITE(HANDLE, FUC)
link spi_write function