Arianna autonomous DAQ firmware
Dependencies: mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW
SnCommWinAfar.cpp
- Committer:
- uci1
- Date:
- 2014-10-30
- Revision:
- 56:0bba0ef15697
- Parent:
- 37:ff95e7070f26
- Child:
- 84:80b15993944e
File content as of revision 56:0bba0ef15697:
#include "SnCommWinAfar.h" #include "SnCommAfarNetIf.h" SnCommWinAfar::SnCommWinAfar(SnConfigFrame& conf) : SnCommWin(new SnCommAfarNetIf(conf.GetRemoteServer(), conf.GetRemotePort(), conf.GetMbedIP(), conf.GetMbedMask(), conf.GetMbedGate())) { } SnCommWin::ECommWinResult SnCommWinAfar::OpenWindow(const uint32_t timeout, const bool sendStatus, const SnConfigFrame& conf, const SnEventFrame& evt, const SnPowerFrame& pow, const uint16_t seq, const float thmrate, const float evtrate, const uint32_t powerOnTime, const SnTempFrame& temper, char* const genBuf) { #ifdef DEBUG printf("SnCommWinAfar::OpenWindow\r\n"); #endif const bool canCon = fComm->Connect(timeout); SnCommWin::ECommWinResult ret = canCon ? SnCommWin::kConnected : SnCommWin::kCanNotConnect; if (canCon && sendStatus) { #ifdef DEBUG printf("calling SendStatus\r\n"); #endif ret = SendStatus(conf, evt, pow, seq, thmrate, evtrate, powerOnTime, temper, genBuf, timeout); #ifdef DEBUG printf("Send Status returned\r\n"); #endif } return ret; }