Library to communicate with a ST LIS331DLH
Diff: LIS331.h
- Revision:
- 10:dcd11c84305e
- Parent:
- 9:5af73355984f
--- a/LIS331.h Tue Jun 17 19:31:05 2014 +0000 +++ b/LIS331.h Tue Jun 17 21:40:59 2014 +0000 @@ -36,8 +36,6 @@ #define ACCEL_ZOUT_H_REG 0x2D #define ACCEL_ZOUT_L_REG 0x2C - - #define CTRL_REG_1 0x20 #define CTRL_REG_2 0x21 #define CTRL_REG_3 0x22 @@ -168,21 +166,21 @@ /** * Set the Full Scale Range to +/- 8g's. - * + * Returns the value written to CTRL_REG_4 */ - void setFullScaleRange8g(void); + char setFullScaleRange8g(void); /** * Set the Full Scale Range to +/- 4g's. - * + * Returns the value written to CTRL_REG_4 */ - void setFullScaleRange4g(void); + char setFullScaleRange4g(void); /** * Set the Full Scale Range to +/- 2g's. - * + * Returns the value written to CTRL_REG_4 */ - void setFullScaleRange2g(void); + char setFullScaleRange2g(void); char getAccelStatus(void); @@ -209,7 +207,7 @@ * * @return The output on the z-axis in engineering units (g's). */ - int getAccelZ(void); + float getAccelZ(void); private: