/** * @file bsp_bmp280.h * @brief BMP280 sensor driver (BSP layer) * @details I2C1 interface, wrapper for LibDriver BMP280 */ #ifndef __BSP_BMP280_H #define __BSP_BMP280_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "driver_bmp280.h" /* Exported types ------------------------------------------------------------*/ typedef struct { float temperature; /* Temperature in Celsius */ float pressure; /* Pressure in Pa */ uint8_t is_ready; /* Sensor ready flag */ } bsp_bmp280_data_t; /* Exported functions prototypes --------------------------------------------*/ uint8_t BSP_BMP280_Init(void); uint8_t BSP_BMP280_Read(bsp_bmp280_data_t *data); #ifdef __cplusplus } #endif #endif /* __BSP_BMP280_H */