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.
Fork of MPL3115A2 by
MPL3115A2 Class Reference
MPL3115A2 I2C Precision Altimeter. More...
#include <MPL3115A2.h>
Public Member Functions | |
| MPL3115A2 (PinName sda, PinName scl, int addr) | |
| MPL3115A2. | |
| double | getAltitude (void) |
| get Altitude (m) | |
| double | getPressure (void) |
| get Pressure | |
| double | getTemperature (void) |
| get Temperature | |
Detailed Description
MPL3115A2 I2C Precision Altimeter.
Definition at line 15 of file MPL3115A2.h.
Constructor & Destructor Documentation
| MPL3115A2 | ( | PinName | sda, |
| PinName | scl, | ||
| int | addr | ||
| ) |
- Parameters:
-
sda SDA pin scl SCL pin addr address of the I2C peripheral
Definition at line 78 of file MPL3115A2.cpp.
Member Function Documentation
| double getAltitude | ( | void | ) |
get Altitude (m)
- Parameters:
-
none
- Returns:
- double altitude in meter
Definition at line 106 of file MPL3115A2.cpp.
| double getPressure | ( | void | ) |
get Pressure
- Parameters:
-
none
- Returns:
- double pressure in hPa
Definition at line 126 of file MPL3115A2.cpp.
| double getTemperature | ( | void | ) |
get Temperature
- Parameters:
-
none
- Returns:
- double temperature in degree Celsius
Definition at line 146 of file MPL3115A2.cpp.
Generated on Sun Jul 24 2022 11:59:56 by
1.7.2
