Rev 2 | Go to most recent revision | 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 |
||
7 | extern struct bmp280_dev bmp; |
||
20 | mjames | 8 | // ambient pressure sensor |
9 | extern struct bmp280_dev bmpAtm; |
||
2 | mjames | 10 | |
11 | /// @brief configuration for a single BMP280 |
||
12 | extern struct bmp280_config conf; |
||
13 | |||
14 | |||
20 | mjames | 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 |
||
19 | uint8_t init_bmp( I2C_HandleTypeDef * i2c, struct bmp280_dev * dev); |