Library for MMA7660FC Accelerometer device
Dependents: TestCode_MMA7660FC 3D_Accelerometer_Tester RTOS-aap-board-modules embed_Grove_3-Axis_Digital_Accelerometer ... more
Diff: MMA7660FC.h
- Revision:
- 3:df25c72e16be
- Parent:
- 2:88fd58f262c6
- Child:
- 4:6e931d9bbf4b
diff -r 88fd58f262c6 -r df25c72e16be MMA7660FC.h --- a/MMA7660FC.h Sun Jul 01 09:50:18 2012 +0000 +++ b/MMA7660FC.h Tue Jul 03 18:37:19 2012 +0000 @@ -81,6 +81,24 @@ * @param *z Value of Z acceleration */ void read_g(int *x, int *y, int *z); + + /** Read the x register of the MMA7660FC + * + * @returns The value of x acceleration + */ + float read_x(); + + /** Read the y register of the MMA7660FC + * + * @returns The value of y acceleration + */ + float read_y(); + + /** Read the z register of the MMA7660FC + * + * @returns The value of z acceleration + */ + float read_z(); /** Read from specified MMA7660FC register *