Rev 2 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2 | Rev 20 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | #include "libBMP280/bmp280.h" |
3 | #include "libBMP280/bmp280.h" |
4 | 4 | ||
5 | 5 | ||
6 | /// @brief device pointer |
6 | /// @brief device pointer |
7 | extern struct bmp280_dev bmp; |
7 | extern struct bmp280_dev bmp; |
- | 8 | // ambient pressure sensor |
|
- | 9 | extern struct bmp280_dev bmpAtm; |
|
8 | 10 | ||
9 | /// @brief configuration for a single BMP280 |
11 | /// @brief configuration for a single BMP280 |
10 | extern struct bmp280_config conf; |
12 | extern struct bmp280_config conf; |
11 | 13 | ||
12 | 14 | ||
- | 15 | /// @brief Initialise the bmp sensor |
|
- | 16 | /// @param i2c Interface to use |
|
- | 17 | /// @param dev device handle to refer to |
|
- | 18 | /// @return BMP280 return code |
|
13 | uint8_t init_bmp( I2C_HandleTypeDef * i2c); |
19 | uint8_t init_bmp( I2C_HandleTypeDef * i2c, struct bmp280_dev * dev); |