upm  0.6.2
Sensor/Actuator repository for libmraa (v0.10.1)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions
BMP180 Class Reference

API for Bosch BMP180 Pressure Sensor. More...

Detailed Description

The Bosch BMP180 is a high precision, ultra-low power consumption pressure sensor. It has a range of between 30,000 and 110,000 Pa.

Public Member Functions

 BMP180 (int bus, int devAddr=BMP180_ADDR, uint8_t mode=BMP180_ULTRAHIGHRES)
 
 ~BMP180 ()
 
uint32_t getPressureRaw ()
 
int getPressurePa ()
 
uint16_t getTemperatureRaw ()
 
int getTemperatureCelcius ()
 
bool isAvailable ()
 
const char * getModuleName ()
 

Constructor & Destructor Documentation

BMP180 ( int  bus,
int  devAddr = BMP180_ADDR,
uint8_t  mode = BMP180_ULTRAHIGHRES 
)

Instanciates a BMP180 object

Parameters
busnumber of used bus
devAddraddress of used i2c device
modeBMP180 mode

Here is the call graph for this function:

~BMP180 ( )

BMP180 object destructor, basicaly it close i2c connection.

Member Function Documentation

uint32_t getPressureRaw ( )

Return pressure

Here is the caller graph for this function:

int getPressurePa ( )
virtual

Return calculated pressure (Pa)

Implements IPressureSensor.

Here is the call graph for this function:

int getTemperatureCelcius ( )
virtual

Return latest calculated temperature value in Celcius

Implements ITemperatureSensor.

Here is the caller graph for this function:

bool isAvailable ( )

Returns whether the correct chip is present at the given address.

Here is the caller graph for this function:

const char* getModuleName ( )
inlinevirtual

Returns name of module. This is the string in library name after libupm_

Returns
name of module

Implements IModuleStatus.

Inheritance diagram for BMP180:
Inheritance graph
[legend]
Collaboration diagram for BMP180:
Collaboration graph
[legend]

The documentation for this class was generated from the following files: