Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: X_NUCLEO_COMMON
Fork of X_NUCLEO_IKS01A1 by
PressureSensor Class Reference
An abstract class for a Pressure Sensor. More...
#include <PressureSensor.h>
Inherits GenericSensor.
Inherited by LPS25H.
Public Member Functions | |
virtual int | GetPressure (float *pfData)=0 |
Get current pressure [mbar]. | |
virtual int | Init (void *ptr)=0 |
Initialization of sensor. | |
virtual int | ReadID (uint8_t *id)=0 |
Get ID of sensor. |
Detailed Description
An abstract class for a Pressure Sensor.
Definition at line 49 of file PressureSensor.h.
Member Function Documentation
virtual int GetPressure | ( | float * | pfData ) | [pure virtual] |
Get current pressure [mbar].
- Parameters:
-
[out] pfData Pointer to where to store pressure to
- Returns:
- 0 in case of success, an error code otherwise
Implemented in LPS25H.
virtual int Init | ( | void * | ptr ) | [pure virtual, inherited] |
Generated on Wed Jul 13 2022 04:19:46 by
