The field version of the solarnano grid on the ionQubes

Fork of SolarNanoGridv3 by SONG Project

Revision:
12:d9b13f31206d
Parent:
11:87ab310924f0
Child:
13:de43f28c0365
diff -r 87ab310924f0 -r d9b13f31206d Battery/Battery.h
--- a/Battery/Battery.h	Wed Jun 08 22:12:52 2016 +0000
+++ b/Battery/Battery.h	Wed Jun 08 22:48:09 2016 +0000
@@ -61,6 +61,17 @@
      */
     void checkIn();
 
+    /**
+         * Returns the max current that can be drawn from the system, in amps
+         */
+
+        float getMaxCurrent();
+
+        /**
+         * returns a string of the log directory
+         */
+        char *getLogDirectory();
+
 
 protected:
     // **********************
@@ -104,6 +115,8 @@
     volatile char flagSendFileSize;
     volatile char flagSendFile;
     volatile char flagSendFileDone;
+    volatile char flagGetMaxCharge;
+    volatile char sendingFile;
 
 
     // **********************
@@ -133,7 +146,7 @@
     /**
      * sends a request for time update.
      */
-    void getTime();
+    void requestTime();
     /**
      * Sets the value pointed to by flag to 1.
      */
@@ -163,6 +176,11 @@
      */
     void intNrf();
 
+    /**
+     * sends a request for time update.
+     */
+    void requestMaxCharge();
+
 private:
     // **********************
     // * Private variables: *
@@ -170,5 +188,6 @@
 
     volatile bool maxRT;
 
+
 };
 #endif