Arianna autonomous DAQ firmware

Dependencies:   mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW

Revision:
59:21128cc24b04
Parent:
56:0bba0ef15697
Child:
67:ec999336fcd1
--- a/SnConfigFrame.h	Thu Oct 30 07:10:38 2014 +0000
+++ b/SnConfigFrame.h	Fri Oct 31 23:33:31 2014 +0000
@@ -19,6 +19,11 @@
     static const uint8_t     kIPLen=16;            // length of IP string. matches MBED's Socket class (so no ipv6) (must not change!! used in i/o sizes)
     
     static const char* const kDefConfFile;  // default configuration file
+    static const char* const kDefRemIpFilen;
+    static const char* const kDefRemPortFilen;
+    static const char* const kDefMbedIPFilen;
+    static const char* const kDefMbedMaskFilen;
+    static const char* const kDefMbedGateFilen;
     static const char* const kDefIPflag;    // flag to use IP default
 
     // ATWD 4channel configs
@@ -154,7 +159,7 @@
     uint8_t     fNormPowerMode;
     
     void SetHardDefaults();
-    
+
     static
     uint16_t    GetTotDacsForIOVers(const uint8_t rv) {
         if (rv<9) {
@@ -225,6 +230,13 @@
         return sz;
     }
 
+    bool ReadDefaultIPFiles();
+    bool ReadOneIPFrom(const char* ipfname, char* ipstr);
+    bool ReadDefaultRemoteServer();
+    bool ReadDefaultRemotePort();
+    bool ReadDefaultMbedIP();
+    bool ReadDefaultMbedMask();
+    bool ReadDefaultMbedGate();
     void SetDefaultIPs();
     void SetDefaultRemoteServ();
     void SetDefaultRemotePort();