RumPi 1.0
A self-assembling C++ sensor & actuator library for the Raspberry Pi 5
BMP180.h File Reference
#include "../Common.h"
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <linux/i2c-dev.h>
#include <i2c/smbus.h>
#include <sys/ioctl.h>
#include <time.h>
#include <math.h>
#include "BaseComponent.h"
Include dependency graph for BMP180.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RumPi::BMP180
 BMP180 barometric temperature and pressure sensor (I2C), also deriving altitude from the measured pressure. More...
 

Namespaces

namespace  RumPi
 RumPi is the library's top-level facade.
 

Variables

constexpr int RumPi::BMP180_PRE_OSS0 = 0
 
constexpr int RumPi::BMP180_PRE_OSS1 = 1
 
constexpr int RumPi::BMP180_PRE_OSS2 = 2
 
constexpr int RumPi::BMP180_PRE_OSS3 = 3
 
constexpr int RumPi::BMP180_PRE_OSS0_CMD = 0x34
 
constexpr int RumPi::BMP180_PRE_OSS1_CMD = 0x74
 
constexpr int RumPi::BMP180_PRE_OSS2_CMD = 0xB4
 
constexpr int RumPi::BMP180_PRE_OSS3_CMD = 0xF4
 
constexpr int RumPi::BMP180_PRE_OSS0_WAIT_US = 5000
 
constexpr int RumPi::BMP180_PRE_OSS1_WAIT_US = 8000
 
constexpr int RumPi::BMP180_PRE_OSS2_WAIT_US = 14000
 
constexpr int RumPi::BMP180_PRE_OSS3_WAIT_US = 26000
 
constexpr int RumPi::BMP180_REG_AC1_H = 0xAA
 
constexpr int RumPi::BMP180_REG_AC2_H = 0xAC
 
constexpr int RumPi::BMP180_REG_AC3_H = 0xAE
 
constexpr int RumPi::BMP180_REG_AC4_H = 0xB0
 
constexpr int RumPi::BMP180_REG_AC5_H = 0xB2
 
constexpr int RumPi::BMP180_REG_AC6_H = 0xB4
 
constexpr int RumPi::BMP180_REG_B1_H = 0xB6
 
constexpr int RumPi::BMP180_REG_B2_H = 0xB8
 
constexpr int RumPi::BMP180_REG_MB_H = 0xBA
 
constexpr int RumPi::BMP180_REG_MC_H = 0xBC
 
constexpr int RumPi::BMP180_REG_MD_H = 0xBE
 
constexpr int RumPi::BMP180_CTRL = 0xF4
 
constexpr int RumPi::BMP180_REG_TMP = 0xF6
 
constexpr int RumPi::BMP180_REG_PRE = 0xF6
 
constexpr int RumPi::BMP180_TMP_READ_CMD = 0x2E
 
constexpr int RumPi::BMP180_TMP_READ_WAIT_US = 5000
 
constexpr double RumPi::BMP180_SEA_LEVEL = 1013.25
 
static const int32_t RumPi::BMP180RegisterTable [11][2]