LibDriver BMP390
Loading...
Searching...
No Matches
driver_bmp390_basic.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_BMP390_BASIC_H
38#define DRIVER_BMP390_BASIC_H
39
41
42#ifdef __cplusplus
43extern "C"{
44#endif
45
52
56#define BMP390_BASIC_DEFAULT_SPI_WIRE BMP390_SPI_WIRE_4
57#define BMP390_BASIC_DEFAULT_IIC_WATCHDOG_TIMER BMP390_BOOL_TRUE
58#define BMP390_BASIC_DEFAULT_IIC_WATCHDOG_PERIOD BMP390_IIC_WATCHDOG_PERIOD_40_MS
59#define BMP390_BASIC_DEFAULT_PRESSURE BMP390_BOOL_TRUE
60#define BMP390_BASIC_DEFAULT_TEMPERATURE BMP390_BOOL_TRUE
61#define BMP390_BASIC_DEFAULT_PRESSURE_OVERSAMPLING BMP390_OVERSAMPLING_x32
62#define BMP390_BASIC_DEFAULT_TEMPERATURE_OVERSAMPLING BMP390_OVERSAMPLING_x2
63#define BMP390_BASIC_DEFAULT_ODR BMP390_ODR_12P5_HZ
64#define BMP390_BASIC_DEFAULT_FILTER_COEFFICIENT BMP390_FILTER_COEFFICIENT_15
65
75uint8_t bmp390_basic_init(bmp390_interface_t interface, bmp390_address_t addr_pin);
76
84uint8_t bmp390_basic_deinit(void);
85
95uint8_t bmp390_basic_read(float *temperature_c, float *pressure_pa);
96
100
101#ifdef __cplusplus
102}
103#endif
104
105#endif
driver bmp390 interface header file
bmp390_interface_t
bmp390 interface enumeration definition
bmp390_address_t
bmp390 address enumeration definition
uint8_t bmp390_basic_init(bmp390_interface_t interface, bmp390_address_t addr_pin)
basic example init
uint8_t bmp390_basic_read(float *temperature_c, float *pressure_pa)
basic example read
uint8_t bmp390_basic_deinit(void)
basic example deinit