Adafruit LPS2X Barometric Pressure Sensor Library
Public Member Functions | List of all members
Adafruit_LPS2X_Pressure Class Reference

#include <Adafruit_LPS2X.h>

Inheritance diagram for Adafruit_LPS2X_Pressure:

Public Member Functions

 Adafruit_LPS2X_Pressure (Adafruit_LPS2X *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 LPS2X's tenperature. More...
 

Detailed Description

Adafruit Unified Sensor interface for the pressure sensor component of LPS2X

Constructor & Destructor Documentation

◆ Adafruit_LPS2X_Pressure()

Adafruit_LPS2X_Pressure::Adafruit_LPS2X_Pressure ( Adafruit_LPS2X parent)
inline

Create an Adafruit_Sensor compatible object for the pressure sensor.

Parameters
parentA pointer to the LPS2X class

Member Function Documentation

◆ getEvent()

bool Adafruit_LPS2X_Pressure::getEvent ( sensors_event_t *  event)

Gets the pressure as a standard sensor event.

Parameters
eventSensor event object that will be populated
Returns
True

◆ getSensor()

void Adafruit_LPS2X_Pressure::getSensor ( sensor_t *  sensor)

Gets the sensor_t data for the LPS2X's tenperature.

Parameters
sensorThe allocated sensor_t that we will fill!

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