Adafruit DPS310 Arduino Library
Classes | Macros | Enumerations
Adafruit_DPS310.h File Reference
#include <Adafruit_BusIO_Register.h>
#include <Adafruit_I2CDevice.h>
#include <Adafruit_SPIDevice.h>
#include <Adafruit_Sensor.h>
#include <Wire.h>

Go to the source code of this file.

Classes

class  Adafruit_DPS310_Temp
 
class  Adafruit_DPS310_Pressure
 
class  Adafruit_DPS310
 

Macros

#define DPS310_I2CADDR_DEFAULT   (0x77)
 Default breakout addres.
 
#define DPS310_PRSB2   0x00
 Highest byte of pressure data.
 
#define DPS310_TMPB2   0x03
 Highest byte of temperature data.
 
#define DPS310_PRSCFG   0x06
 Pressure configuration.
 
#define DPS310_TMPCFG   0x07
 Temperature configuration.
 
#define DPS310_MEASCFG   0x08
 Sensor configuration.
 
#define DPS310_CFGREG   0x09
 Interrupt/FIFO configuration.
 
#define DPS310_RESET   0x0C
 Soft reset.
 
#define DPS310_PRODREVID   0x0D
 Register that contains the part ID.
 
#define DPS310_TMPCOEFSRCE   0x28
 Temperature calibration src.
 

Enumerations

enum  dps310_rate_t {
  DPS310_1HZ, DPS310_2HZ, DPS310_4HZ, DPS310_8HZ,
  DPS310_16HZ, DPS310_32HZ, DPS310_64HZ, DPS310_128HZ
}
 
enum  dps310_oversample_t {
  DPS310_1SAMPLE, DPS310_2SAMPLES, DPS310_4SAMPLES, DPS310_8SAMPLES,
  DPS310_16SAMPLES, DPS310_32SAMPLES, DPS310_64SAMPLES, DPS310_128SAMPLES
}
 
enum  dps310_mode_t {
  DPS310_IDLE = 0b000, DPS310_ONE_PRESSURE = 0b001, DPS310_ONE_TEMPERATURE = 0b010, DPS310_CONT_PRESSURE = 0b101,
  DPS310_CONT_TEMP = 0b110, DPS310_CONT_PRESTEMP = 0b111
}
 

Detailed Description

Author
Limor Fried (Adafruit Industries) -—> https://www.adafruit.com/4494

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

Enumeration Type Documentation

◆ dps310_rate_t

The measurement rate ranges

Enumerator
DPS310_1HZ 

1 Hz

DPS310_2HZ 

2 Hz

DPS310_4HZ 

4 Hz

DPS310_8HZ 

8 Hz

DPS310_16HZ 

16 Hz

DPS310_32HZ 

32 Hz

DPS310_64HZ 

64 Hz

DPS310_128HZ 

128 Hz

◆ dps310_oversample_t

The oversample rate ranges

Enumerator
DPS310_1SAMPLE 

1 Hz

DPS310_2SAMPLES 

2 Hz

DPS310_4SAMPLES 

4 Hz

DPS310_8SAMPLES 

8 Hz

DPS310_16SAMPLES 

16 Hz

DPS310_32SAMPLES 

32 Hz

DPS310_64SAMPLES 

64 Hz

DPS310_128SAMPLES 

128 Hz

◆ dps310_mode_t

The oversample rate ranges

Enumerator
DPS310_IDLE 

Stopped/idle.

DPS310_ONE_PRESSURE 

Take single pressure measurement.

DPS310_ONE_TEMPERATURE 

Take single temperature measurement.

DPS310_CONT_PRESSURE 

Continuous pressure measurements.

DPS310_CONT_TEMP 

Continuous pressure measurements.

DPS310_CONT_PRESTEMP 

Continuous temp+pressure measurements.