LIS3MDL I2C Mbed class with compass heading function

Revision:
1:fe199024ddfe
Parent:
0:4aa6b3804281
--- a/LIS3MDL.h	Tue Apr 13 13:46:21 2021 +0000
+++ b/LIS3MDL.h	Tue Apr 13 13:52:14 2021 +0000
@@ -123,77 +123,7 @@
 
         bool whoAmI(void);
 
-        bool getTempEnabled(void);
-        bool setTempEnabled(bool enable);
-        uint8_t getOperativeMode(void);
-        bool setOperativeMode(uint8_t mode);
-        uint8_t getDataRate(void);
-        bool setDataRate(uint8_t rate);
-        bool getSelfTestEnabled(void);
-        bool setSelfTestEnabled(bool enable);
-
-        uint8_t getFullScale(void);
-        bool setFullScale(uint8_t sccale);
-        bool reboot(void);
-        bool softReset(void);
-
-        bool getLowPowerMode(void);
-        bool setLowPowerMode(bool mode);
-        bool getSPIMode(void);
-        bool setSPIMode(bool mode);
-        uint8_t getOperatingMode(void);
-        bool setOperatingMode(uint8_t mode);
-
-        uint8_t getOMZ(void);
-        bool setOMZ(uint8_t mode);
-        bool getEndian(void);
-        bool setEndian(bool selection);
-
-        bool disableDataUpdate(void);
-        bool enableDataUpdate(void);
-        bool getDataUpdateStatus(void);
-
-        bool getXYZOverrun(void);
-        bool getZOverrun(void);
-        bool getYOverrun(void);
-        bool getXOverrun(void);
-
-        bool getXYZDataAvailable(void);
-        bool getZDataAvailable(void);
-        bool getYDataAvailabl(void);
-        bool getXDataAvailable(void);
-
-        bool enableXInterupt(void);
-        bool disableXInterupt(void);
-        bool isXIntEnabled(void);
-        bool enableYInterupt(void);
-        bool disableYInterupt(void);
-        bool isYIntEnabled(void);
-        bool enableZInterupt(void);
-        bool disableZInterupt(void);
-        bool isZIntEnabled(void);
-        bool setIntHigh(void);
-        bool setIntLow(void);
-        bool checkIntConfig(void);
-        bool setInteruptLatch(bool latch);
-        bool checkInteruptLatch(void);
-        bool enableIntInterupt(void);
-        bool disableIntInterupt(void);
-        bool checkIntInterupt(void);
-
-        bool posXThreshold(void);
-        bool posYThreshold(void);
-        bool posZThreshold(void);
-        bool negXThreshold(void);
-        bool negYThreshold(void);
-        bool negZThreshold(void);
-        bool measurementOverflow(void);
-        bool checkInteruptEvent(void);
         
-        void getMotion(int16_t* ax, int16_t* ay, int16_t* az);
-
-        bool setInteruptThreshold(uint16_t threshold);
-        uint16_t getInteruptThreshold(void);
 
     private:
         I2C i2c;