Adafruit MPL115A2 Library
Classes | Macros
Adafruit_MPL115A2.h File Reference
#include "Arduino.h"
#include <Adafruit_I2CDevice.h>
#include <Wire.h>

Go to the source code of this file.

Classes

class  Adafruit_MPL115A2
 Class that stores state and functions for interacting with MPL115A2 barometric pressure sensor. More...
 

Macros

#define MPL115A2_DEFAULT_ADDRESS   (0x60)
 
#define MPL115A2_REGISTER_PRESSURE_MSB   (0x00)
 
#define MPL115A2_REGISTER_PRESSURE_LSB   (0x01)
 
#define MPL115A2_REGISTER_TEMP_MSB   (0x02)
 
#define MPL115A2_REGISTER_TEMP_LSB   (0x03)
 
#define MPL115A2_REGISTER_A0_COEFF_MSB   (0x04)
 
#define MPL115A2_REGISTER_A0_COEFF_LSB   (0x05)
 
#define MPL115A2_REGISTER_B1_COEFF_MSB   (0x06)
 
#define MPL115A2_REGISTER_B1_COEFF_LSB   (0x07)
 
#define MPL115A2_REGISTER_B2_COEFF_MSB   (0x08)
 
#define MPL115A2_REGISTER_B2_COEFF_LSB   (0x09)
 
#define MPL115A2_REGISTER_C12_COEFF_MSB   (0x0A)
 
#define MPL115A2_REGISTER_C12_COEFF_LSB   (0x0B)
 
#define MPL115A2_REGISTER_STARTCONVERSION   (0x12)
 

Macro Definition Documentation

◆ MPL115A2_DEFAULT_ADDRESS

#define MPL115A2_DEFAULT_ADDRESS   (0x60)

I2C address

◆ MPL115A2_REGISTER_PRESSURE_MSB

#define MPL115A2_REGISTER_PRESSURE_MSB   (0x00)

10-bit Pressure ADC output value MSB

◆ MPL115A2_REGISTER_PRESSURE_LSB

#define MPL115A2_REGISTER_PRESSURE_LSB   (0x01)

10-bit Pressure ADC output value LSB

◆ MPL115A2_REGISTER_TEMP_MSB

#define MPL115A2_REGISTER_TEMP_MSB   (0x02)

10-bit Temperature ADC output value MSB

◆ MPL115A2_REGISTER_TEMP_LSB

#define MPL115A2_REGISTER_TEMP_LSB   (0x03)

10-bit Temperature ADC output value LSB

◆ MPL115A2_REGISTER_A0_COEFF_MSB

#define MPL115A2_REGISTER_A0_COEFF_MSB   (0x04)

a0 coefficient MSB

◆ MPL115A2_REGISTER_A0_COEFF_LSB

#define MPL115A2_REGISTER_A0_COEFF_LSB   (0x05)

a0 coefficient LSB

◆ MPL115A2_REGISTER_B1_COEFF_MSB

#define MPL115A2_REGISTER_B1_COEFF_MSB   (0x06)

b1 coefficient MSB

◆ MPL115A2_REGISTER_B1_COEFF_LSB

#define MPL115A2_REGISTER_B1_COEFF_LSB   (0x07)

b1 coefficient LSB

◆ MPL115A2_REGISTER_B2_COEFF_MSB

#define MPL115A2_REGISTER_B2_COEFF_MSB   (0x08)

b2 coefficient MSB

◆ MPL115A2_REGISTER_B2_COEFF_LSB

#define MPL115A2_REGISTER_B2_COEFF_LSB   (0x09)

b2 coefficient LSB

◆ MPL115A2_REGISTER_C12_COEFF_MSB

#define MPL115A2_REGISTER_C12_COEFF_MSB   (0x0A)

c12 coefficient MSB

◆ MPL115A2_REGISTER_C12_COEFF_LSB

#define MPL115A2_REGISTER_C12_COEFF_LSB   (0x0B)

c12 coefficient LSB

◆ MPL115A2_REGISTER_STARTCONVERSION

#define MPL115A2_REGISTER_STARTCONVERSION   (0x12)

Start Pressure and Temperature Conversion