Adafruit DPS310 Arduino Library
Public Member Functions | List of all members
Adafruit_DPS310_Pressure Class Reference

#include <Adafruit_DPS310.h>

Inheritance diagram for Adafruit_DPS310_Pressure:

Public Member Functions

 Adafruit_DPS310_Pressure (Adafruit_DPS310 *parent)
 Create an Adafruit_Sensor compatible object for the pressure sensor. More...
 
bool getEvent (sensors_event_t *)
 Gets the pressure as a standard sensor event. More...
 
void getSensor (sensor_t *)
 Gets the sensor_t data for the DPS310's pressure sensor.
 

Detailed Description

Adafruit Unified Sensor interface for pressure component of DPS310

Constructor & Destructor Documentation

◆ Adafruit_DPS310_Pressure()

Adafruit_DPS310_Pressure::Adafruit_DPS310_Pressure ( Adafruit_DPS310 parent)
inline

Create an Adafruit_Sensor compatible object for the pressure sensor.

Parameters
parentA pointer to the DPS310 class

Member Function Documentation

◆ getEvent()

bool Adafruit_DPS310_Pressure::getEvent ( sensors_event_t *  event)

Gets the pressure as a standard sensor event.

Parameters
eventSensor event object that will be populated
Returns
True

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