Arianna autonomous DAQ firmware

Dependencies:   mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW

Revision:
27:efc4d654b139
Parent:
25:57b2627fe756
Child:
36:87865913ae6f
--- a/SnCommWin.h	Tue Oct 30 06:02:32 2012 +0000
+++ b/SnCommWin.h	Thu Nov 01 07:00:17 2012 +0000
@@ -23,6 +23,7 @@
         kAllFails,      // to be used for "if (ret > kAllFails) ==> success"
         // only successes should go below
         kConnected,     // connection established, no messaging attempted
+        kOkStopComm,    // received signal to stop communicating
         kOkMsgSent,     // message sent without waiting for "received" handshake
         kOkNoMsg,       // timed out with no message, but that is ok
         kOkWithMsg,     // successfully received message
@@ -31,6 +32,8 @@
 
     static const size_t   kMaxStrLen = 512;   // max bytes for a string send. prevent something crazy
     static const char*    kLocalDir;          // the local mbed directory
+    static const char*    kDelAllConfCodeStr; // a magic string to confirm deletion of all files on the SD card
+    static const uint8_t  kDelAllConfCodeLen; // the length of the magic string
  
  private:
     SnCommWin::ECommWinResult GetFilename(const uint32_t timeout,
@@ -97,11 +100,17 @@
     virtual bool            CloseConn(const uint32_t timeout)=0;
     virtual uint32_t        GetConnectTimeout() const;
     virtual uint32_t        GetListenTimeout() const;
+    virtual bool            GetDeleteAllConfirmCode(const SnConfigFrame& conf,
+                                                    const uint32_t length,
+                                                    const uint32_t timeout,
+                                                    char* const buf,
+                                                    const uint32_t bsize);
     virtual ECommWinResult  WaitHandshake(const SnConfigFrame& conf,
                                           const uint32_t timeout,
                                           char* const buf,
                                           const uint32_t bsize,
-                                          uint8_t& hndShkCode);
+                                          uint8_t& hndShkCode,
+                                          uint32_t* hndShkLen=0);
     
     ECommWinResult  GetConfig(SnConfigFrame& conf,
                               const uint32_t timeOut,