Arianna autonomous DAQ firmware
Dependencies: mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW
SnCommAfar.h@0:664899e0b988, 2012-06-30 (annotated)
- Committer:
- uci1
- Date:
- Sat Jun 30 02:03:51 2012 +0000
- Revision:
- 0:664899e0b988
- Child:
- 1:e392595b4b76
first version. SD card writing and data readout works. communications not tested.
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 | 0:664899e0b988 | 26 | virtual bool Connect(Timer& timer, const uint32_t timeout); |
uci1 | 0:664899e0b988 | 27 | |
uci1 | 0:664899e0b988 | 28 | virtual SnCommWin::ECommWinResult OpenWindow(Timer& timer, |
uci1 | 0:664899e0b988 | 29 | const uint32_t timeout, |
uci1 | 0:664899e0b988 | 30 | const bool sendStatus, |
uci1 | 0:664899e0b988 | 31 | const SnConfigFrame& conf, |
uci1 | 0:664899e0b988 | 32 | const SnEventFrame& evt, |
uci1 | 0:664899e0b988 | 33 | char* const evtBuf, |
uci1 | 0:664899e0b988 | 34 | char* const statBuf); |
uci1 | 0:664899e0b988 | 35 | |
uci1 | 0:664899e0b988 | 36 | virtual SnCommWin::ECommWinResult GetConfig(SnConfigFrame& conf, |
uci1 | 0:664899e0b988 | 37 | Timer& timer, |
uci1 | 0:664899e0b988 | 38 | const uint32_t timeOut, |
uci1 | 0:664899e0b988 | 39 | char* const confBuf); |
uci1 | 0:664899e0b988 | 40 | virtual SnCommWin::ECommWinResult SendStatus(const SnConfigFrame& conf, |
uci1 | 0:664899e0b988 | 41 | const SnEventFrame& evt, |
uci1 | 0:664899e0b988 | 42 | char* const evtBuf, |
uci1 | 0:664899e0b988 | 43 | char* const statBuf); |
uci1 | 0:664899e0b988 | 44 | |
uci1 | 0:664899e0b988 | 45 | |
uci1 | 0:664899e0b988 | 46 | static Websocket& GetWS(); |
uci1 | 0:664899e0b988 | 47 | |
uci1 | 0:664899e0b988 | 48 | }; |
uci1 | 0:664899e0b988 | 49 | |
uci1 | 0:664899e0b988 | 50 | #endif // SN_SnCommAfar |