Arianna autonomous DAQ firmware
Dependencies: mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW
SnCommAfar.h@1:e392595b4b76, 2012-07-20 (annotated)
- Committer:
- uci1
- Date:
- Fri Jul 20 19:04:02 2012 +0000
- Revision:
- 1:e392595b4b76
- Parent:
- 0:664899e0b988
- Child:
- 2:e67f7c158087
many features checked and working. afar implemented. sending of data not yet tested. contains many debug prints
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
uci1 | 0:664899e0b988 | 1 | #ifndef SN_SnCommAfar |
uci1 | 0:664899e0b988 | 2 | #define SN_SnCommAfar |
uci1 | 0:664899e0b988 | 3 | |
uci1 | 0:664899e0b988 | 4 | #include "SnCommWin.h" |
uci1 | 0:664899e0b988 | 5 | |
uci1 | 0:664899e0b988 | 6 | class Websocket; |
uci1 | 0:664899e0b988 | 7 | |
uci1 | 0:664899e0b988 | 8 | class SnConfigFrame; |
uci1 | 0:664899e0b988 | 9 | class SnEventFrame; |
uci1 | 0:664899e0b988 | 10 | |
uci1 | 0:664899e0b988 | 11 | class SnCommAfar : public SnCommWin { |
uci1 | 0:664899e0b988 | 12 | protected: |
uci1 | 0:664899e0b988 | 13 | virtual SnCommWin::ECommWinResult SendData(FILE* inf); |
uci1 | 0:664899e0b988 | 14 | virtual SnCommWin::ECommWinResult SendConfAndEvents(FILE* inf, |
uci1 | 0:664899e0b988 | 15 | const SnConfigFrame& curConf, |
uci1 | 0:664899e0b988 | 16 | SnEventFrame& evt, |
uci1 | 0:664899e0b988 | 17 | char* const evtBuf, |
uci1 | 0:664899e0b988 | 18 | char* const confBuf, |
uci1 | 0:664899e0b988 | 19 | const uint32_t nevts, |
uci1 | 0:664899e0b988 | 20 | const uint32_t firstEvt=0); |
uci1 | 0:664899e0b988 | 21 | |
uci1 | 0:664899e0b988 | 22 | public: |
uci1 | 0:664899e0b988 | 23 | SnCommAfar() {} |
uci1 | 0:664899e0b988 | 24 | virtual ~SnCommAfar() {} |
uci1 | 0:664899e0b988 | 25 | |
uci1 | 1:e392595b4b76 | 26 | virtual bool Connect(const uint32_t timeout); |
uci1 | 0:664899e0b988 | 27 | |
uci1 | 1:e392595b4b76 | 28 | virtual SnCommWin::ECommWinResult OpenWindow(const uint32_t timeout, |
uci1 | 0:664899e0b988 | 29 | const bool sendStatus, |
uci1 | 0:664899e0b988 | 30 | const SnConfigFrame& conf, |
uci1 | 0:664899e0b988 | 31 | const SnEventFrame& evt, |
uci1 | 0:664899e0b988 | 32 | char* const evtBuf, |
uci1 | 0:664899e0b988 | 33 | char* const statBuf); |
uci1 | 0:664899e0b988 | 34 | |
uci1 | 0:664899e0b988 | 35 | virtual SnCommWin::ECommWinResult GetConfig(SnConfigFrame& conf, |
uci1 | 0:664899e0b988 | 36 | const uint32_t timeOut, |
uci1 | 0:664899e0b988 | 37 | char* const confBuf); |
uci1 | 0:664899e0b988 | 38 | virtual SnCommWin::ECommWinResult SendStatus(const SnConfigFrame& conf, |
uci1 | 0:664899e0b988 | 39 | const SnEventFrame& evt, |
uci1 | 0:664899e0b988 | 40 | char* const evtBuf, |
uci1 | 0:664899e0b988 | 41 | char* const statBuf); |
uci1 | 0:664899e0b988 | 42 | |
uci1 | 0:664899e0b988 | 43 | |
uci1 | 0:664899e0b988 | 44 | static Websocket& GetWS(); |
uci1 | 0:664899e0b988 | 45 | |
uci1 | 0:664899e0b988 | 46 | }; |
uci1 | 0:664899e0b988 | 47 | |
uci1 | 0:664899e0b988 | 48 | #endif // SN_SnCommAfar |