Adafruit LPS35HW Library
Classes | Macros | Typedefs | Enumerations
Adafruit_LPS35HW.h File Reference
#include "Arduino.h"
#include <Adafruit_BusIO_Register.h>
#include <Adafruit_I2CDevice.h>
#include <Wire.h>

Go to the source code of this file.

Classes

class  Adafruit_LPS35HW
 Class that stores state and functions for interacting with LPS35HW Current and Power Sensor. More...
 

Macros

#define LPS35HW_I2CADDR_DEFAULT   0x5D
 LPS35HW default i2c address.
 
#define LPS35HW_INTERRUPT_CFG   0x0B
 Interrupt configuration register.
 
#define LPS35HW_THS_P_L   0x0C
 Threshold pressure low byte.
 
#define LPS35HW_THS_P_H   0x0D
 Threshold pressure high byte.
 
#define LPS35HW_WHO_AM_I   0x0F
 Chip ID.
 
#define LPS35HW_CTRL_REG1   0x10
 Control register 1.
 
#define LPS35HW_CTRL_REG2   0x11
 Control register 2.
 
#define LPS35HW_CTRL_REG3   0x12
 Control register 3.
 
#define LPS35HW_FIFO_CTRL   0x14
 FIFO Control register.
 
#define LPS35HW_REF_P_XL   0x15
 Reference pressure low byte.
 
#define LPS35HW_REF_P_L   0x16
 Reference pressure mid byte.
 
#define LPS35HW_REF_P_H   0x17
 Reference pressure high byte.
 
#define LPS35HW_RPDS_L   0x18
 Offset pressure low byte.
 
#define LPS35HW_RPDS_H   0x19
 Offset pressure high byte.
 
#define LPS35HW_RES_CONF   0x1A
 Low power mode configuration.
 
#define LPS35HW_INT_SOURCE   0x25
 Interrupt source.
 
#define LPS35HW_FIFO_STATUS   0x26
 FIFO Status.
 
#define LPS35HW_STATUS   0x27
 Status register.
 
#define LPS35HW_PRESS_OUT_XL   0x28
 Pressure low byte.
 
#define LPS35HW_PRESS_OUT_L   0x29
 Pressure mid byte.
 
#define LPS35HW_PRESS_OUT_H   0x2A
 Pressure high byte.
 
#define LPS35HW_TEMP_OUT_L   0x2B
 Temperature low byte.
 
#define LPS35HW_TEMP_OUT_H   0x2C
 Temperature high byte.
 
#define LPS35HW_LPFP_RES   0x33
 Low pass filter reset.
 

Typedefs

typedef enum _data_rate LPS35HW_DataRate
 Data rate options. More...
 

Enumerations

enum  _data_rate {
  LPS35HW_RATE_ONE_SHOT, LPS35HW_RATE_1_HZ, LPS35HW_RATE_10_HZ, LPS35HW_RATE_25_HZ,
  LPS35HW_RATE_50_HZ, LPS35HW_RATE_75_HZ
}
 Data rate options. More...
 

Detailed Description

I2C Driver for LPS35HW Current and Power sensor

This is a library for the Adafruit LPS35HW breakout: http://www.adafruit.com/products

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

BSD license (see license.txt)

Typedef Documentation

◆ LPS35HW_DataRate

Data rate options.

Allowed values for setDataRate.

Enumeration Type Documentation

◆ _data_rate

enum _data_rate

Data rate options.

Allowed values for setDataRate.

Enumerator
LPS35HW_RATE_ONE_SHOT 

ONE_SHOT: Put the sensor in a low power shutdown mode that will only take a measurement when takeMeasurement is called

LPS35HW_RATE_10_HZ 

1 hz

LPS35HW_RATE_25_HZ 

10 hz

LPS35HW_RATE_50_HZ 

25 hz

LPS35HW_RATE_75_HZ 

50 hz