LibDriver BMP388
Loading...
Searching...
No Matches
driver_bmp388_basic.h
Go to the documentation of this file.
1
37
38#ifndef DRIVER_BMP388_BASIC_H
39#define DRIVER_BMP388_BASIC_H
40
42
43#ifdef __cplusplus
44extern "C"{
45#endif
46
53
57#define BMP388_BASIC_DEFAULT_SPI_WIRE BMP388_SPI_WIRE_4
58#define BMP388_BASIC_DEFAULT_IIC_WATCHDOG_TIMER BMP388_BOOL_TRUE
59#define BMP388_BASIC_DEFAULT_IIC_WATCHDOG_PERIOD BMP388_IIC_WATCHDOG_PERIOD_40_MS
60#define BMP388_BASIC_DEFAULT_PRESSURE BMP388_BOOL_TRUE
61#define BMP388_BASIC_DEFAULT_TEMPERATURE BMP388_BOOL_TRUE
62#define BMP388_BASIC_DEFAULT_PRESSURE_OVERSAMPLING BMP388_OVERSAMPLING_x32
63#define BMP388_BASIC_DEFAULT_TEMPERATURE_OVERSAMPLING BMP388_OVERSAMPLING_x2
64#define BMP388_BASIC_DEFAULT_ODR BMP388_ODR_12P5_HZ
65#define BMP388_BASIC_DEFAULT_FILTER_COEFFICIENT BMP388_FILTER_COEFFICIENT_15
66
76uint8_t bmp388_basic_init(bmp388_interface_t interface, bmp388_address_t addr_pin);
77
85uint8_t bmp388_basic_deinit(void);
86
96uint8_t bmp388_basic_read(float *temperature_c, float *pressure_pa);
97
101
102#ifdef __cplusplus
103}
104#endif
105
106#endif
driver bmp388 interface header file
bmp388_interface_t
bmp388 interface enumeration definition
bmp388_address_t
bmp388 address enumeration definition
uint8_t bmp388_basic_init(bmp388_interface_t interface, bmp388_address_t addr_pin)
basic example init
uint8_t bmp388_basic_deinit(void)
basic example deinit
uint8_t bmp388_basic_read(float *temperature_c, float *pressure_pa)
basic example read