可用的文件,全部
This commit is contained in:
32
Core/Bsp/bsp_bmp280.h
Normal file
32
Core/Bsp/bsp_bmp280.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* @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 */
|
||||
Reference in New Issue
Block a user