Rev 20 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | mjames | 1 | #pragma once |
2 | |||
3 | #include "libBMP280/bmp280.h" |
||
4 | |||
5 | |||
6 | /// @brief device pointer |
||
21 | mjames | 7 | extern struct bmp280_dev bmpManifold; |
20 | mjames | 8 | // ambient pressure sensor |
21 | mjames | 9 | extern struct bmp280_dev bmpAtmosphere; |
2 | mjames | 10 | |
11 | /// @brief configuration for a single BMP280 |
||
21 | mjames | 12 | extern struct bmp280_config confManifold; |
2 | mjames | 13 | |
21 | mjames | 14 | extern struct bmp280_config confAtmosphere; |
2 | mjames | 15 | |
21 | mjames | 16 | |
20 | mjames | 17 | /// @brief Initialise the bmp sensor |
18 | /// @param i2c Interface to use |
||
19 | /// @param dev device handle to refer to |
||
21 | mjames | 20 | /// @param conf configuration to use |
20 | mjames | 21 | /// @return BMP280 return code |
21 | mjames | 22 | uint8_t init_bmp( I2C_HandleTypeDef * i2c, struct bmp280_dev * dev,struct bmp280_config * conf); |