LibDriver BMP390
Loading...
Searching...
No Matches
driver_bmp390_fifo.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_BMP390_FIFO_H
38#define DRIVER_BMP390_FIFO_H
39
41
42#ifdef __cplusplus
43extern "C"{
44#endif
45
50
54#define BMP390_FIFO_DEFAULT_SPI_WIRE BMP390_SPI_WIRE_4
55#define BMP390_FIFO_DEFAULT_IIC_WATCHDOG_TIMER BMP390_BOOL_TRUE
56#define BMP390_FIFO_DEFAULT_IIC_WATCHDOG_PERIOD BMP390_IIC_WATCHDOG_PERIOD_40_MS
57#define BMP390_FIFO_DEFAULT_FIFO_STOP_ON_FULL BMP390_BOOL_FALSE
58#define BMP390_FIFO_DEFAULT_FIFO_WATERMARK 256
59#define BMP390_FIFO_DEFAULT_FIFO_SENSORTIME_ON BMP390_BOOL_TRUE
60#define BMP390_FIFO_DEFAULT_FIFO_PRESSURE_ON BMP390_BOOL_TRUE
61#define BMP390_FIFO_DEFAULT_FIFO_TEMPERATURE_ON BMP390_BOOL_TRUE
62#define BMP390_FIFO_DEFAULT_FIFO_SUBSAMPLING 0
63#define BMP390_FIFO_DEFAULT_FIFO_DATA_SOURCE BMP390_FIFO_DATA_SOURCE_FILTERED
64#define BMP390_FIFO_DEFAULT_INTERRUPT_PIN_TYPE BMP390_INTERRUPT_PIN_TYPE_PUSH_PULL
65#define BMP390_FIFO_DEFAULT_INTERRUPT_ACTIVE_LEVEL BMP390_INTERRUPT_ACTIVE_LEVEL_HIGHER
66#define BMP390_FIFO_DEFAULT_INTERRUPT_WATERMARK BMP390_BOOL_TRUE
67#define BMP390_FIFO_DEFAULT_INTERRUPT_FIFO_FULL BMP390_BOOL_FALSE
68#define BMP390_FIFO_DEFAULT_INTERRUPT_DATA_READY BMP390_BOOL_FALSE
69#define BMP390_FIFO_DEFAULT_LATCH_INTERRUPT BMP390_BOOL_FALSE
70#define BMP390_FIFO_DEFAULT_PRESSURE BMP390_BOOL_TRUE
71#define BMP390_FIFO_DEFAULT_TEMPERATURE BMP390_BOOL_TRUE
72#define BMP390_FIFO_DEFAULT_PRESSURE_OVERSAMPLING BMP390_OVERSAMPLING_x32
73#define BMP390_FIFO_DEFAULT_TEMPERATURE_OVERSAMPLING BMP390_OVERSAMPLING_x2
74#define BMP390_FIFO_DEFAULT_ODR BMP390_ODR_12P5_HZ
75#define BMP390_FIFO_DEFAULT_FILTER_COEFFICIENT BMP390_FILTER_COEFFICIENT_15
76
84uint8_t bmp390_fifo_irq_handler(void);
85
96uint8_t bmp390_fifo_init(bmp390_interface_t interface, bmp390_address_t addr_pin,
97 void (*fifo_receive_callback)(uint8_t type));
98
106uint8_t bmp390_fifo_deinit(void);
107
119uint8_t bmp390_fifo_read(uint8_t *buf, uint16_t buf_len, bmp390_frame_t *frame, uint16_t *frame_len);
120
124
125#ifdef __cplusplus
126}
127#endif
128
129#endif
driver bmp390 interface header file
bmp390_interface_t
bmp390 interface enumeration definition
struct bmp390_frame_s bmp390_frame_t
bmp390 frame structure definition
bmp390_address_t
bmp390 address enumeration definition
uint8_t bmp390_fifo_irq_handler(void)
fifo example irq handler
uint8_t bmp390_fifo_deinit(void)
fifo example deinit
uint8_t bmp390_fifo_read(uint8_t *buf, uint16_t buf_len, bmp390_frame_t *frame, uint16_t *frame_len)
fifo example read
uint8_t bmp390_fifo_init(bmp390_interface_t interface, bmp390_address_t addr_pin, void(*fifo_receive_callback)(uint8_t type))
fifo example init