LibDriver BMP388
Loading...
Searching...
No Matches
driver_bmp388_interrupt.h
Go to the documentation of this file.
1
37
38#ifndef DRIVER_BMP388_INTERRUPT_H
39#define DRIVER_BMP388_INTERRUPT_H
40
42
43#ifdef __cplusplus
44extern "C"{
45#endif
46
51
55#define BMP388_INTERRUPT_DEFAULT_SPI_WIRE BMP388_SPI_WIRE_4
56#define BMP388_INTERRUPT_DEFAULT_IIC_WATCHDOG_TIMER BMP388_BOOL_FALSE
57#define BMP388_INTERRUPT_DEFAULT_IIC_WATCHDOG_PERIOD BMP388_IIC_WATCHDOG_PERIOD_1P25_MS
58#define BMP388_INTERRUPT_DEFAULT_INTERRUPT_PIN_TYPE BMP388_INTERRUPT_PIN_TYPE_PUSH_PULL
59#define BMP388_INTERRUPT_DEFAULT_INTERRUPT_ACTIVE_LEVEL BMP388_INTERRUPT_ACTIVE_LEVEL_HIGHER
60#define BMP388_INTERRUPT_DEFAULT_PRESSURE BMP388_BOOL_TRUE
61#define BMP388_INTERRUPT_DEFAULT_TEMPERATURE BMP388_BOOL_TRUE
62#define BMP388_INTERRUPT_DEFAULT_PRESSURE_OVERSAMPLING BMP388_OVERSAMPLING_x32
63#define BMP388_INTERRUPT_DEFAULT_TEMPERATURE_OVERSAMPLING BMP388_OVERSAMPLING_x2
64#define BMP388_INTERRUPT_DEFAULT_ODR BMP388_ODR_12P5_HZ
65#define BMP388_INTERRUPT_DEFAULT_FILTER_COEFFICIENT BMP388_FILTER_COEFFICIENT_15
66
75
87 void (*interrupt_receive_callback)(uint8_t type));
88
96uint8_t bmp388_interrupt_deinit(void);
97
107uint8_t bmp388_interrupt_read(float *temperature_c, float *pressure_pa);
108
112
113#ifdef __cplusplus
114}
115#endif
116
117#endif
driver bmp388 interface header file
bmp388_interface_t
bmp388 interface enumeration definition
bmp388_address_t
bmp388 address enumeration definition
uint8_t bmp388_interrupt_irq_handler(void)
interrupt example irq handler
uint8_t bmp388_interrupt_init(bmp388_interface_t interface, bmp388_address_t addr_pin, void(*interrupt_receive_callback)(uint8_t type))
interrupt example init
uint8_t bmp388_interrupt_read(float *temperature_c, float *pressure_pa)
interrupt example read
uint8_t bmp388_interrupt_deinit(void)
interrupt example deinit