Rev 20 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 20 | Rev 21 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | 2 | ||
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 bmpManifold; |
8 | // ambient pressure sensor |
8 | // ambient pressure sensor |
9 | extern struct bmp280_dev bmpAtm; |
9 | extern struct bmp280_dev bmpAtmosphere; |
10 | 10 | ||
11 | /// @brief configuration for a single BMP280 |
11 | /// @brief configuration for a single BMP280 |
12 | extern struct bmp280_config conf; |
12 | extern struct bmp280_config confManifold; |
- | 13 | ||
- | 14 | extern struct bmp280_config confAtmosphere; |
|
13 | 15 | ||
14 | 16 | ||
15 | /// @brief Initialise the bmp sensor |
17 | /// @brief Initialise the bmp sensor |
16 | /// @param i2c Interface to use |
18 | /// @param i2c Interface to use |
17 | /// @param dev device handle to refer to |
19 | /// @param dev device handle to refer to |
- | 20 | /// @param conf configuration to use |
|
18 | /// @return BMP280 return code |
21 | /// @return BMP280 return code |
19 | uint8_t init_bmp( I2C_HandleTypeDef * i2c, struct bmp280_dev * dev); |
22 | uint8_t init_bmp( I2C_HandleTypeDef * i2c, struct bmp280_dev * dev,struct bmp280_config * conf); |