LSM303DLHC Full Driver: Readings For Acc, Mag and Temp; Class Method for frequently-used 13 sensor parameters; Class Method to direct modify registers; Support Calibration (offset+scale);

Dependencies:   mbed

Revision:
4:8723c07d4c45
Parent:
3:522d01930e6a
--- a/LSM303DLHC.h	Tue Jun 07 15:18:48 2016 +0000
+++ b/LSM303DLHC.h	Thu Jun 09 15:19:00 2016 +0000
@@ -20,8 +20,6 @@
     // affect data of GetAcc() by output = scale * ( offset + original )
     // but if internal HPF enable then output = scale * original
     // note linear acc has no offset
-bool isHPFEn(); // report HPF ON/OFF state for output
-    return bool = true if ACC_FDS = HPF_ON and vice versa
 
 -- MAGNETOMETER PART
 void GetMag( float arr[3] );  // Get magnetic flux density
@@ -144,10 +142,7 @@
         void MCal(float offset[3], float scale[3]); // Mag Calibration
         void TCal(float offset[1], float scale[1]); // Mag Calibration    
         
-        //// Other functions
-        bool isHPFEn(); // report HPF ON/OFF state for output
-        // return HPF_state
-        
+          
         //// Not implemented function
         bool isAccRdy(); // Check if acc has new data 
         // one way is to use high freq ticker to check STATUS_REG_A (27h)
@@ -161,7 +156,6 @@
         I2C i2c;
         
         char data[6];       // used as main data exchange
-        bool HPF_state;     // state of internal HPF
                
         // use offset to calibrate zero reading
         float acc_offset[3];