APIs description

Doxygen complete API documentation

Doxygen documentation Link to doxygen API documentation

Parent classes

Main class LPS22HB_SPI derives from ABSTRACT_SENSOR_SPI and ABSTRACT_BARO which are documented in ABSTRACT_SENSORS.

Available classes

LPS22HB_SPI

class LPS22HB_SPI : public ABSTRACT_SENSOR_SPI, public ABSTRACT_BARO

Public Functions

void setOdr(LPS22HB_ENUM::ODR odr)

Set the barometer ODR.

Parameters:

odr – the ODR value to set

void setLowPassFilterState(LPS22HB_ENUM::FILTER_BW bandwidth)

Set the barometer bandwidth.

Parameters:

bandwidth – the bandwidth value to set, as an ODR ratio

void setMeasCheckStates(bool pressureCheck, bool tempCheck)

Set the measurement check states.

This function allows you to set the check states for pressure and temperature measurements. If set to false, the data availablility will ne be verified before reading the data. It will be faster but less safe.

Parameters:
  • pressureCheck – A boolean value indicating whether to check pressure measurements.

  • tempCheck – A boolean value indicating whether to check temperature measurements.

void setFifoMode(LPS22HB_ENUM::FIFO_MODE mode)

Set the FIFO mode (BYPASS, FIFO, STREAM …)

Parameters:

mode – The FIFO mode to set

void readFifo()

Reads data from the FIFO buffer.

Note

This function will be called automatically with readTemperaturePressureAltitude() if the object has been constructed with the useFifo parameter set to true.

void setOnePointCalibration(float hPaDeltaPressureMeanRef)

Set the One Point Calibration object.

Parameters:

hPaDeltaPressureMeanRef – delta between mean pressure measured by sensor and reference pressure, as meanPressureMeasured - referencePressure in hPa

void resetOnePointCalibration()

Reset the One Point Calibration object.

int16_t getOnePointCalibration()

Get the one point calibration from the sensor registers.

Returns:

int16_t The one point calibration value

LPS22HB_REGISTERS

struct LPS22HB_REGISTERS

LPS22HB_REGISTER_VALUES

struct LPS22HB_REGISTER_VALUES