Rev 0.1 Simple operation of just X, Y, Z values in floating point G's

Dependents:   Hello_FXLS8471Q Multi-Sensor sensor AerCloud_MutliTech_Socket_Modem_Example ... more

Files at this revision

API Documentation at this revision

Comitter:
screamer
Date:
Mon Jun 02 17:37:44 2014 +0000
Parent:
2:6aae25fe9ab4
Commit message:
Documentation fixes

Changed in this revision

FXLS8471Q.h Show annotated file Show diff for this revision Revisions of this file
diff -r 6aae25fe9ab4 -r b1fd3a2572e2 FXLS8471Q.h
--- a/FXLS8471Q.h	Mon Jun 02 17:14:15 2014 +0000
+++ b/FXLS8471Q.h	Mon Jun 02 17:37:44 2014 +0000
@@ -47,16 +47,15 @@
     */
     FXLS8471Q(PinName mosi, PinName miso, PinName scl, PinName cs);
 
-
     /**
-     * Get XYZ axis acceleration in G's
+     * Get XYZ axis acceleration in G's as floating point
      *
      * @param res array where acceleration data will be stored
      */
     void ReadXYZ(float * a);
 
     /**
-     * Get XYZ axis acceleration, signed 16 bit values
+     * Get XYZ axis acceleration as signed 16 bit values
      *
      * @param res array where acceleration data will be stored
      */
@@ -70,12 +69,17 @@
     char getWhoAmI(void);
 
 private:
+    SPI _spi;
 
-    SPI _spi;
     DigitalOut _spi_cs;
 
+    /**
+     * Set the device in active mode
+     */
     void begin( void);
+
     void RegWrite( int reg, int * d, int len);
+
     void RegRead( int reg, int * d, int len);
 };