Modified for compatibility with Rev.E. hardware

Fork of AkmSensor by AKM Development Platform

Revision:
49:c8f8946129b6
Parent:
43:45225713cd58
--- a/akmsensormanager.h	Tue Dec 19 12:18:13 2017 -0800
+++ b/akmsensormanager.h	Tue May 01 21:31:15 2018 +0000
@@ -8,7 +8,6 @@
 #include "Message.h"
 #include "ble/BLE.h"
 #include "SerialNano.h"
-#include "mcp342x.h"
 #include "akmakd.h"
 #include "ble/services/UARTService.h"
 #include "akmhallswitch.h"
@@ -124,7 +123,11 @@
      * @param bits Number of bits of precision of value.
      * @return Returns the integer ID or SubID value.
      */
-    uint8_t getId(PinName pin, uint8_t bits);
+    static uint8_t getId(PinName pin, uint8_t bits);
+    
+    /**
+     * Detect if data is ready to be read.
+     */
     void detectDRDY();
         
 private:
@@ -153,9 +156,9 @@
     
     bool checkAkmSensor();
     void dataOut(char* str);
-    int16_t getAdcData(MCP342X *mcp3428, MCP342X::AdcChannel ch, MCP342X::SampleSetting s);
-    void dummyCallbackForCommandReceived();
-    char* my_strcat(char* str1, char* str2);
+//    int16_t getAdcData(MCP342X *mcp3428, MCP342X::AdcChannel ch, MCP342X::SampleSetting s);
+    void commandReceivedCallback();
+    char* stringConcat(char* str1, char* str2);
     void attachInterrupt();
     void detachInterrupt();
 };