Arianna autonomous DAQ firmware

Dependencies:   mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW

Committer:
uci1
Date:
Wed Jun 05 17:29:31 2019 +0000
Revision:
125:ce4045184366
Parent:
37:ff95e7070f26
Added SnRateListner proto-class, publishing this version of the code in order to enable exporting of most recent features.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
uci1 2:e67f7c158087 1 #ifndef SN_SnCommAfar
uci1 2:e67f7c158087 2 #define SN_SnCommAfar
uci1 37:ff95e7070f26 3 /*
uci1 2:e67f7c158087 4 #include "SnCommWin.h"
uci1 2:e67f7c158087 5
uci1 2:e67f7c158087 6 class Websocket;
uci1 2:e67f7c158087 7
uci1 2:e67f7c158087 8 class SnConfigFrame;
uci1 2:e67f7c158087 9 class SnEventFrame;
uci1 2:e67f7c158087 10
uci1 2:e67f7c158087 11 class SnCommAfar : public SnCommWin {
uci1 2:e67f7c158087 12 protected:
uci1 3:24c5f0f50bf1 13 char* const fB64buf;
uci1 3:24c5f0f50bf1 14 uint32_t fbblen;
uci1 3:24c5f0f50bf1 15
uci1 3:24c5f0f50bf1 16 virtual SnCommWin::ECommWinResult SendFilename(const char* fn, char* const genBuf);
uci1 2:e67f7c158087 17 virtual SnCommWin::ECommWinResult SendData(FILE* inf);
uci1 2:e67f7c158087 18 virtual SnCommWin::ECommWinResult SendConfAndEvents(FILE* inf,
uci1 2:e67f7c158087 19 const SnConfigFrame& curConf,
uci1 2:e67f7c158087 20 SnEventFrame& evt,
uci1 2:e67f7c158087 21 char* const genBuf,
uci1 2:e67f7c158087 22 const uint32_t nevts,
uci1 2:e67f7c158087 23 const uint32_t firstEvt=0);
uci1 8:95a325df1f6b 24 virtual void GetPackPars(const SnConfigFrame& conf,
uci1 8:95a325df1f6b 25 uint8_t& sLoseLSB, uint8_t& sLoseMSB,
uci1 8:95a325df1f6b 26 uin16_t& sWvBase);
uci1 8:95a325df1f6b 27
uci1 2:e67f7c158087 28
uci1 2:e67f7c158087 29 public:
uci1 3:24c5f0f50bf1 30 SnCommAfar(char* const b64buf, const uint32_t bblen) : fB64buf(b64buf), fbblen(bblen) {}
uci1 2:e67f7c158087 31 virtual ~SnCommAfar() {}
uci1 2:e67f7c158087 32
uci1 2:e67f7c158087 33 virtual bool Connect(const uint32_t timeout);
uci1 2:e67f7c158087 34
uci1 2:e67f7c158087 35 virtual SnCommWin::ECommWinResult OpenWindow(const uint32_t timeout,
uci1 2:e67f7c158087 36 const bool sendStatus,
uci1 2:e67f7c158087 37 const SnConfigFrame& conf,
uci1 2:e67f7c158087 38 const SnEventFrame& evt,
uci1 2:e67f7c158087 39 char* const genBuf);
uci1 2:e67f7c158087 40
uci1 3:24c5f0f50bf1 41 virtual SnCommWin::ECommWinResult WaitHandshake(const uint32_t timeout,
uci1 3:24c5f0f50bf1 42 char* const buf,
uci1 3:24c5f0f50bf1 43 const uint32_t bsize);
uci1 3:24c5f0f50bf1 44
uci1 2:e67f7c158087 45 virtual SnCommWin::ECommWinResult GetConfig(SnConfigFrame& conf,
uci1 2:e67f7c158087 46 const uint32_t timeOut,
uci1 3:24c5f0f50bf1 47 char* const confBuf,
uci1 3:24c5f0f50bf1 48 const uint32_t bsize);
uci1 3:24c5f0f50bf1 49
uci1 2:e67f7c158087 50 virtual SnCommWin::ECommWinResult SendStatus(const SnConfigFrame& conf,
uci1 2:e67f7c158087 51 const SnEventFrame& evt,
uci1 2:e67f7c158087 52 char* const genBuf);
uci1 2:e67f7c158087 53
uci1 2:e67f7c158087 54 static Websocket& GetWS();
uci1 2:e67f7c158087 55
uci1 2:e67f7c158087 56 };
uci1 6:6f002d202f59 57 */
uci1 2:e67f7c158087 58 #endif // SN_SnCommAfar