MPL sensor
Fork of MPL3115A2 by
Diff: MPL3115A2.h
- Revision:
- 5:9edec5ee8bf4
- Parent:
- 4:fdf14a259af8
- Child:
- 6:03c24251e500
--- a/MPL3115A2.h Thu May 30 07:27:24 2013 +0000 +++ b/MPL3115A2.h Thu Aug 22 12:03:19 2013 +0000 @@ -84,6 +84,14 @@ * @returns altimeter value as float */ float getAltimeter( void); + + /** + * Get the altimeter value in raw mode + * + * @param dt pointer to unsigned char array + * @returns status as 1 + */ + unsigned int getAltimeterRaw( unsigned char *dt); /** * Get the pressure value @@ -91,6 +99,14 @@ * @returns pressure value as float */ float getPressure( void); + + /** + * Get the pressure value in raw mode + * + * @param dt pointer to unsigned char array + * @returns status as 1 + */ + unsigned int getPressureRaw( unsigned char *dt); /** * Get the temperature value @@ -98,6 +114,14 @@ * @returns temperature value as float */ float getTemperature( void); + + /** + * Get the temperature value in raw mode + * + * @param dt pointer to unsigned char array + * @returns status as 1 + */ + unsigned int getTemperatureRaw( unsigned char *dt); /** * Set the Altimeter Mode @@ -114,12 +138,20 @@ void Barometric_Mode( void); /** - * Get the altimeter, pressure and temperature values + * Get the altimeter or pressure and temperature values * - * @param array of float f[3] + * @param array of float f[2] * @returns none */ void getAllData( float *f); + + /** + * Get the altimeter or pressure, and temperature values in raw mode + * + * @param array of unsigned char[5] + * @returns staus as 1 + */ + unsigned int getAllDataRaw( unsigned char *dt); /** * Return if there are date available