initial commit, reads dev id

Revision:
2:11e0b5b86e1e
Parent:
1:7ae9b934ee55
Child:
4:6ec3bc44f055
--- a/MAX8614X.cpp	Sat Aug 11 00:37:58 2018 +0000
+++ b/MAX8614X.cpp	Sat Aug 11 10:25:54 2018 +0000
@@ -101,10 +101,18 @@
     printf("Status reg: %X %X \n\r", status.val[0], status.val[1]);
 
     if (status.sha_done) {
+        shaComplete = true;
         printf("sha interrupt\n\r");
     }
 }
-
+bool MAX8614X::isShaComplete(void)
+{
+    return shaComplete;
+}
+void MAX8614X::clearShaComplete(void)
+{
+    shaComplete = false;
+}
 MAX8614X::~MAX8614X(void) 
 {
   //empty block