MPL3115A2 Fork
Fork of MPL3115A2 by
Diff: MPL3115A2.h
- Revision:
- 1:6fdcf150410e
- Parent:
- 0:752c9dbed2fa
- Child:
- 3:9b12f9f4457e
--- a/MPL3115A2.h Sun Dec 13 08:57:16 2015 +0000 +++ b/MPL3115A2.h Thu May 18 06:30:44 2017 +0000 @@ -30,9 +30,30 @@ * some member functions here) */ uint8_t getStatus(void) ; -uint32_t getAltitude(void) ; /* x65536 */ -uint32_t getPressure(void) ; /* x64 */ -uint16_t getTemperature(void) ; /* x256 */ +/** + * get Altitude (m) + * + * @param none + * @returns double altitude in meter + */ +double getAltitude(void) ; + +/** + * get Pressure + * + * @param none + * @returns double pressure in hPa + */ +double getPressure(void) ; + +/** + * get Temperature + * + * @param none + * @returns double temperature in degree Celsius + */ +double getTemperature(void) ; + int32_t getAltDelta(void) ; /* x65536 */ int32_t getPrsDelta(void) ; /* x16 */ int16_t getTempDelta(void) ; @@ -74,7 +95,8 @@ void setCTRL_REG4(uint8_t data) ; uint8_t getCTRL_REG5(void) ; void setCTRL_REG5(uint8_t data) ; -uint16_t OneShot(void) ; +uint16_t getSampleTime(void) ; +void oneShot(void) ; void standby(void) ; void activate(void) ; void modeAlt(void) ;