Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW
Diff: SnCommAfar.h
- Revision:
- 3:24c5f0f50bf1
- Parent:
- 2:e67f7c158087
- Child:
- 6:6f002d202f59
--- a/SnCommAfar.h Tue Jul 24 02:07:23 2012 +0000
+++ b/SnCommAfar.h Tue Jul 31 04:59:16 2012 +0000
@@ -10,6 +10,10 @@
class SnCommAfar : public SnCommWin {
protected:
+ char* const fB64buf;
+ uint32_t fbblen;
+
+ virtual SnCommWin::ECommWinResult SendFilename(const char* fn, char* const genBuf);
virtual SnCommWin::ECommWinResult SendData(FILE* inf);
virtual SnCommWin::ECommWinResult SendConfAndEvents(FILE* inf,
const SnConfigFrame& curConf,
@@ -19,7 +23,7 @@
const uint32_t firstEvt=0);
public:
- SnCommAfar() {}
+ SnCommAfar(char* const b64buf, const uint32_t bblen) : fB64buf(b64buf), fbblen(bblen) {}
virtual ~SnCommAfar() {}
virtual bool Connect(const uint32_t timeout);
@@ -30,9 +34,15 @@
const SnEventFrame& evt,
char* const genBuf);
+ virtual SnCommWin::ECommWinResult WaitHandshake(const uint32_t timeout,
+ char* const buf,
+ const uint32_t bsize);
+
virtual SnCommWin::ECommWinResult GetConfig(SnConfigFrame& conf,
const uint32_t timeOut,
- char* const confBuf);
+ char* const confBuf,
+ const uint32_t bsize);
+
virtual SnCommWin::ECommWinResult SendStatus(const SnConfigFrame& conf,
const SnEventFrame& evt,
char* const genBuf);