Library for MMA7660FC Accelerometer device

Dependents:   TestCode_MMA7660FC 3D_Accelerometer_Tester RTOS-aap-board-modules embed_Grove_3-Axis_Digital_Accelerometer ... more

Revision:
8:122af194c74b
Parent:
7:74eb2a4803ba
--- a/MMA7660FC.h	Wed Aug 07 19:33:25 2013 +0000
+++ b/MMA7660FC.h	Wed Aug 07 19:50:09 2013 +0000
@@ -73,7 +73,7 @@
     public:
         
         
-       /** Create an MMA7660FC object connected to the specified I2C object
+       /** Creates an MMA7660FC object connected to the specified I2C object
         *
         * @param sda I2C data port
         * @param scl I2C clock port
@@ -99,39 +99,51 @@
         */
       void read_Tilt(float *x, float *y, float *z);
       
-      /** Read the x register of the MMA7660FC
+      /** Reads the x register of the MMA7660FC
         *
         * @returns The value of x acceleration
         */
       int read_x();
       
-      /** Read the y register of the MMA7660FC
+      /** Reads the y register of the MMA7660FC
         *
         * @returns The value of y acceleration
         */
       int read_y();
       
-      /** Read the z register of the MMA7660FC
+      /** Reads the z register of the MMA7660FC
         *
         * @returns The value of z acceleration
         */
        int read_z();
+       
+      /** Reads the Front or Back position of the device
+        *
+        * @returns The Front or Back position
+        */       
+       char const* read_Side();
+       
+      /** Reads the Orientation of the device
+        *
+        * @returns The Left or Right or Down or Up Orientation
+        */       
+       char const* read_Orientation();
             
-        /** Read from specified MMA7660FC register
+        /** Reads from specified MMA7660FC register
          *
          * @param addr The internal registeraddress of the MMA7660FC
          * @returns The value of the register
          */
       char read_reg(char addr);
         
-        /** Write to specified MMA7660FC register
+        /** Writes to specified MMA7660FC register
         *
         * @param addr The internal registeraddress of the MMA7660FC
         * @param data New value of the register
         */    
       void write_reg(char addr, char data); 
       
-        /** Check if the address exist on an I2C bus 
+        /** Checks if the address exist on an I2C bus 
         *
         * @returns 0 on success, or non-0 on failure
         */