24 #include "bmp_config.h"
33 #ifndef BMP_CONFIG_I2C_DEVICE
34 #define BMP_CONFIG_I2C_DEVICE (I2C0)
37 #ifndef BMP_CONFIG_I2C_BUS_ADDRESS
38 #define BMP_CONFIG_I2C_BUS_ADDRESS (0xEE)
41 #define BMP_I2C_DEVICE (BMP_CONFIG_I2C_DEVICE)
42 #define BMP_I2C_BUS_ADDRESS (BMP_CONFIG_I2C_BUS_ADDRESS)
44 #define BMP_DEVICE_ID_BMP280 0x58
55 #define BMP_ERROR_DRIVER_NOT_INITIALIZED 0x0001
56 #define BMP_ERROR_I2C_TRANSACTION_FAILED 0x0002
57 #define BMP_ERROR_DEVICE_ID_MISMATCH 0x0003
71 typedef struct __BMP_Config {
86 uint32_t
BMP_init ( uint8_t *deviceId );
void BMP_deInit(void)
De-initializes the barometric pressure module.
uint32_t BMP_getPressure(float *pressure)
Initiates pressure measurement on the barometric pressure sensor and reads pressure from it...
uint32_t BMP_getTemperature(float *temperature)
Initiates temperature measurement on the barometric pressure sensor and reads pressure from it...
Structure to configure the BMP280 device.
Register definitions for the BMP280 pressure sensor.
EMSTATUS BMP_init(uint8_t *palette, uint32_t paletteSize, EMSTATUS(*fp)(uint8_t buffer[], uint32_t bufLength, uint32_t bytesToRead))
Initializes BMP Module.
struct __BMP_Config BMP_Config
Structure to configure the BMP280 device.
uint32_t BMP_config(BMP_Config *cfg)
Configure the barometric pressure sensor.