19 lines
363 B
C
19 lines
363 B
C
#ifndef BMP280_H
|
|
#define BMP280_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#include <fxp.h>
|
|
|
|
bool bmp280_init(void);
|
|
bool bmp280_loop(void); // returns true if measurements have been updated
|
|
|
|
bool bmp280_start_measurement(void);
|
|
|
|
bool bmp280_are_measurements_valid(void);
|
|
fxp_t bmp280_get_temperature(void);
|
|
fxp_t bmp280_get_pressure(void);
|
|
|
|
#endif // BMP280_H
|