41 #define BMP280_ADDR_CAL 0x88 42 #define BMP280_ADDR_DATA 0xF7 44 #define BMP280_ADDR_CONFIG 0xF5 45 #define BMP280_ADDR_CTRL 0xF4 46 #define BMP280_ADDR_STATUS 0xF3 47 #define BMP280_ADDR_RESET 0xE0 48 #define BMP280_ADDR_ID 0xD0 50 #define BMP280_VALUE_ID 0x58 51 #define BMP280_VALUE_RESET 0xB6 53 #define BMP280_STATUS_MEASURING (1<<3) 54 #define BMP280_STATUS_COPING (1<<0) 56 #define BMP280_CTRL_P0 (0x0<<2) 57 #define BMP280_CTRL_P1 (0x1<<2) 58 #define BMP280_CTRL_P2 (0x2<<2) 59 #define BMP280_CTRL_P4 (0x3<<2) 60 #define BMP280_CTRL_P8 (0x4<<2) 61 #define BMP280_CTRL_P16 (0x5<<2) 63 #define BMP280_CTRL_T0 (0x0<<5) 64 #define BMP280_CTRL_T1 (0x1<<5) 65 #define BMP280_CTRL_T2 (0x2<<5) 66 #define BMP280_CTRL_T4 (0x3<<5) 67 #define BMP280_CTRL_T8 (0x4<<5) 68 #define BMP280_CTRL_T16 (0x5<<5) 70 #define BMP280_CONFIG_F0 (0x0<<2) 71 #define BMP280_CONFIG_F2 (0x1<<2) 72 #define BMP280_CONFIG_F4 (0x2<<2) 73 #define BMP280_CONFIG_F8 (0x3<<2) 74 #define BMP280_CONFIG_F16 (0x4<<2) 77 #define BMP280_CTRL_MODE_SLEEP 0x0 78 #define BMP280_CTRL_MODE_FORCE 0x1 79 #define BMP280_CTRL_MODE_NORMAL 0x3 81 #define BMP280_MT_INIT 6400 82 #define BMP280_MT 2300 136 virtual int init() = 0;
139 virtual uint8_t get_reg(uint8_t addr) = 0;
142 virtual int set_reg(uint8_t value, uint8_t addr) = 0;
150 virtual uint32_t get_device_id()
const = 0;
bmp280::IBMP280 * bmp280_spi_interface(uint8_t busnum, uint32_t device)
Namespace encapsulating all device framework classes, functions and data.
bmp280::IBMP280 * bmp280_i2c_interface(uint8_t busnum, uint32_t device)
void init()
Activates/configures the hardware registers.