Arianna autonomous DAQ firmware
Dependencies: mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW
SnCommAfar.h@2:e67f7c158087, 2012-07-24 (annotated)
- Committer:
- uci1
- Date:
- Tue Jul 24 02:07:23 2012 +0000
- Revision:
- 2:e67f7c158087
- Parent:
- 1:e392595b4b76
- Child:
- 3:24c5f0f50bf1
added header to i/o. still lots of debugging prints.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
uci1 | 2:e67f7c158087 | 1 | #ifndef SN_SnCommAfar |
uci1 | 2:e67f7c158087 | 2 | #define SN_SnCommAfar |
uci1 | 2:e67f7c158087 | 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 | 2:e67f7c158087 | 13 | virtual SnCommWin::ECommWinResult SendData(FILE* inf); |
uci1 | 2:e67f7c158087 | 14 | virtual SnCommWin::ECommWinResult SendConfAndEvents(FILE* inf, |
uci1 | 2:e67f7c158087 | 15 | const SnConfigFrame& curConf, |
uci1 | 2:e67f7c158087 | 16 | SnEventFrame& evt, |
uci1 | 2:e67f7c158087 | 17 | char* const genBuf, |
uci1 | 2:e67f7c158087 | 18 | const uint32_t nevts, |
uci1 | 2:e67f7c158087 | 19 | const uint32_t firstEvt=0); |
uci1 | 2:e67f7c158087 | 20 | |
uci1 | 2:e67f7c158087 | 21 | public: |
uci1 | 2:e67f7c158087 | 22 | SnCommAfar() {} |
uci1 | 2:e67f7c158087 | 23 | virtual ~SnCommAfar() {} |
uci1 | 2:e67f7c158087 | 24 | |
uci1 | 2:e67f7c158087 | 25 | virtual bool Connect(const uint32_t timeout); |
uci1 | 2:e67f7c158087 | 26 | |
uci1 | 2:e67f7c158087 | 27 | virtual SnCommWin::ECommWinResult OpenWindow(const uint32_t timeout, |
uci1 | 2:e67f7c158087 | 28 | const bool sendStatus, |
uci1 | 2:e67f7c158087 | 29 | const SnConfigFrame& conf, |
uci1 | 2:e67f7c158087 | 30 | const SnEventFrame& evt, |
uci1 | 2:e67f7c158087 | 31 | char* const genBuf); |
uci1 | 2:e67f7c158087 | 32 | |
uci1 | 2:e67f7c158087 | 33 | virtual SnCommWin::ECommWinResult GetConfig(SnConfigFrame& conf, |
uci1 | 2:e67f7c158087 | 34 | const uint32_t timeOut, |
uci1 | 2:e67f7c158087 | 35 | char* const confBuf); |
uci1 | 2:e67f7c158087 | 36 | virtual SnCommWin::ECommWinResult SendStatus(const SnConfigFrame& conf, |
uci1 | 2:e67f7c158087 | 37 | const SnEventFrame& evt, |
uci1 | 2:e67f7c158087 | 38 | char* const genBuf); |
uci1 | 2:e67f7c158087 | 39 | |
uci1 | 2:e67f7c158087 | 40 | static Websocket& GetWS(); |
uci1 | 2:e67f7c158087 | 41 | |
uci1 | 2:e67f7c158087 | 42 | }; |
uci1 | 2:e67f7c158087 | 43 | |
uci1 | 2:e67f7c158087 | 44 | #endif // SN_SnCommAfar |