|
Arduino-TWI
Two-Wire Interface (TWI) library for Arduino
|
#include <BMP085.h>


Classes | |
| struct | param_t |
Public Types | |
| enum | Mode { ULTRA_LOW_POWER = 0, STANDARD = 1, HIGH_RESOLUTION = 2, ULTRA_HIGH_RESOLUTION = 3 } |
Public Member Functions | |
| BMP085 (TWI &twi) | |
| bool | begin (Mode mode=ULTRA_LOW_POWER) |
| bool | sample_temperature_request () |
| bool | read_temperature () |
| bool | sample_temperature () |
| bool | sample_pressure_request () |
| bool | read_pressure () |
| bool | sample_pressure () |
| bool | sample () |
| int16_t | temperature () const |
| int32_t | pressure () const |
Protected Types | |
| enum | reg_t { COEFF_REG = 0xAA, CMD_REG = 0xF4, RES_REG = 0xF6 } |
| enum | cmd_t { TEMP_CONV_CMD = 0x2E, PRESSURE_CONV_CMD = 0x34 } |
Protected Member Functions | |
| bool | acquire () |
| bool | release () |
| int | read (void *buf, size_t count) |
| int | write (const void *buf, size_t count) |
| int | write (iovec_t *vp) |
Protected Attributes | |
| param_t | m_param |
| Mode | m_mode |
| uint8_t | m_cmd |
| uint16_t | m_start |
| int32_t | B5 |
| int32_t | m_pressure |
| TWI & | m_twi |
| uint8_t | m_addr |
Static Protected Attributes | |
| static const uint16_t | TEMP_CONV_MS = 5 |
TWI Device Driver for the Bosch BMP085 Digital Pressure Sensor.
The GY-80 10DOF module with pull-up resistors (4K7) for TWI signals and internal 3V3 voltage converter.
|
protected |
| enum BMP085::Mode |
|
protected |
|
inline |
|
inlineinherited |
|
inline |
|
inline |
|
inlineinherited |
|
inline |
|
inline |
|
inlineinherited |
|
inline |
Sample and read the raw temperature and pressure sensor. Return true(1) if successful otherwise false(0). Retrieve calculated values with temperature() and pressure().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
protected |
|
protectedinherited |
|
protected |
|
protected |
|
protected |
|
protectedinherited |
|
staticprotected |