LibDriver BMP384
Loading...
Searching...
No Matches
driver_bmp384_interrupt.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_BMP384_INTERRUPT_H
38#define DRIVER_BMP384_INTERRUPT_H
39
41
42#ifdef __cplusplus
43extern "C"{
44#endif
45
50
54#define BMP384_INTERRUPT_DEFAULT_SPI_WIRE BMP384_SPI_WIRE_4
55#define BMP384_INTERRUPT_DEFAULT_IIC_WATCHDOG_TIMER BMP384_BOOL_FALSE
56#define BMP384_INTERRUPT_DEFAULT_IIC_WATCHDOG_PERIOD BMP384_IIC_WATCHDOG_PERIOD_1P25_MS
57#define BMP384_INTERRUPT_DEFAULT_INTERRUPT_PIN_TYPE BMP384_INTERRUPT_PIN_TYPE_PUSH_PULL
58#define BMP384_INTERRUPT_DEFAULT_INTERRUPT_ACTIVE_LEVEL BMP384_INTERRUPT_ACTIVE_LEVEL_HIGHER
59#define BMP384_INTERRUPT_DEFAULT_PRESSURE BMP384_BOOL_TRUE
60#define BMP384_INTERRUPT_DEFAULT_TEMPERATURE BMP384_BOOL_TRUE
61#define BMP384_INTERRUPT_DEFAULT_PRESSURE_OVERSAMPLING BMP384_OVERSAMPLING_x32
62#define BMP384_INTERRUPT_DEFAULT_TEMPERATURE_OVERSAMPLING BMP384_OVERSAMPLING_x2
63#define BMP384_INTERRUPT_DEFAULT_ODR BMP384_ODR_12P5_HZ
64#define BMP384_INTERRUPT_DEFAULT_FILTER_COEFFICIENT BMP384_FILTER_COEFFICIENT_15
65
74
86 void (*interrupt_receive_callback)(uint8_t type));
87
95uint8_t bmp384_interrupt_deinit(void);
96
106uint8_t bmp384_interrupt_read(float *temperature_c, float *pressure_pa);
107
111
112#ifdef __cplusplus
113}
114#endif
115
116#endif
driver bmp384 interface header file
bmp384_interface_t
bmp384 interface enumeration definition
bmp384_address_t
bmp384 address enumeration definition
uint8_t bmp384_interrupt_init(bmp384_interface_t interface, bmp384_address_t addr_pin, void(*interrupt_receive_callback)(uint8_t type))
interrupt example init
uint8_t bmp384_interrupt_read(float *temperature_c, float *pressure_pa)
interrupt example read
uint8_t bmp384_interrupt_irq_handler(void)
interrupt example irq handler
uint8_t bmp384_interrupt_deinit(void)
interrupt example deinit