Modified FXAS21000 library. changed _i2c to a pointer allowing you to pass an existing I2C object to the library instead of initializing a new one each time. This is mainly to make this library more practical to use alongside other I2C sensors.

Fork of FXAS21000 by Jim Carver

Revision:
3:a8f83b52f4df
Parent:
2:cd21ef326977
Child:
4:c411fbb2cc2f
--- a/FXAS21000.h	Mon Jun 02 17:06:32 2014 +0000
+++ b/FXAS21000.h	Mon Jun 02 17:36:38 2014 +0000
@@ -46,28 +46,22 @@
      *
      * @param sda SDA pin
      * @param sdl SCL pin
-     * 
      */
     FXAS21000(PinName sda, PinName scl);
  
-    
     /**
-     * Get the Gyro values
-     * Result is floating point degrees / second
+     * Get the Gyro values as floating point degrees / second
      *
      * @param floating point array where the results will be placed
      */
     void ReadXYZ(float * a);
 
-    
     /**
-     * Get the Gyro values
-     * Result is signed 16 bit value
+     * Get the Gyro values as signed 16 bit value
      *
      * @param int16_t point array where the results will be placed
      */
     void ReadXYZraw(int16_t * t);
-
    
     /**
      * Get the value of the WHO_AM_I register
@@ -77,7 +71,6 @@
     char getWhoAmI(void);
     
 private:
-
     I2C _i2c;
 
     /**
@@ -86,8 +79,6 @@
     void begin( void);
     
     void RegRead( char reg, char * d, int len);
-
-
 };
 
 #endif