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.
PressureSensor Class Reference
An abstract class for a Pressure Sensor. More...
#include <PressureSensor.h>
Inherits Component.
Inherited by LPS25H.
Public Member Functions | |
| virtual int | get_pressure (float *pf_data)=0 |
| Get current pressure [mbar]. | |
| virtual | ~PressureSensor () |
| Destructor. | |
| virtual int | init (void *init)=0 |
| Initializing the component. | |
| virtual int | read_id (uint8_t *id)=0 |
| Getting the ID of the component. | |
Detailed Description
An abstract class for a Pressure Sensor.
Definition at line 56 of file PressureSensor.h.
Constructor & Destructor Documentation
| virtual ~PressureSensor | ( | ) | [virtual] |
Destructor.
Definition at line 69 of file PressureSensor.h.
Member Function Documentation
| virtual int get_pressure | ( | float * | pf_data ) | [pure virtual] |
Get current pressure [mbar].
- Parameters:
-
[out] pf_data Pointer to where to store pressure to
- Returns:
- 0 in case of success, an error code otherwise
Implemented in LPS25H.
| virtual int init | ( | void * | init ) | [pure virtual, inherited] |
Generated on Tue Jul 12 2022 17:30:24 by
1.7.2