LibDriver BMP384
Loading...
Searching...
No Matches
driver_bmp384_basic.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_BMP384_BASIC_H
38#define DRIVER_BMP384_BASIC_H
39
41
42#ifdef __cplusplus
43extern "C"{
44#endif
45
52
56#define BMP384_BASIC_DEFAULT_SPI_WIRE BMP384_SPI_WIRE_4
57#define BMP384_BASIC_DEFAULT_IIC_WATCHDOG_TIMER BMP384_BOOL_TRUE
58#define BMP384_BASIC_DEFAULT_IIC_WATCHDOG_PERIOD BMP384_IIC_WATCHDOG_PERIOD_40_MS
59#define BMP384_BASIC_DEFAULT_PRESSURE BMP384_BOOL_TRUE
60#define BMP384_BASIC_DEFAULT_TEMPERATURE BMP384_BOOL_TRUE
61#define BMP384_BASIC_DEFAULT_PRESSURE_OVERSAMPLING BMP384_OVERSAMPLING_x32
62#define BMP384_BASIC_DEFAULT_TEMPERATURE_OVERSAMPLING BMP384_OVERSAMPLING_x2
63#define BMP384_BASIC_DEFAULT_ODR BMP384_ODR_12P5_HZ
64#define BMP384_BASIC_DEFAULT_FILTER_COEFFICIENT BMP384_FILTER_COEFFICIENT_15
65
75uint8_t bmp384_basic_init(bmp384_interface_t interface, bmp384_address_t addr_pin);
76
84uint8_t bmp384_basic_deinit(void);
85
95uint8_t bmp384_basic_read(float *temperature_c, float *pressure_pa);
96
100
101#ifdef __cplusplus
102}
103#endif
104
105#endif
driver bmp384 interface header file
bmp384_interface_t
bmp384 interface enumeration definition
bmp384_address_t
bmp384 address enumeration definition
uint8_t bmp384_basic_deinit(void)
basic example deinit
uint8_t bmp384_basic_read(float *temperature_c, float *pressure_pa)
basic example read
uint8_t bmp384_basic_init(bmp384_interface_t interface, bmp384_address_t addr_pin)
basic example init