Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW
SnCommWinAfar.cpp
00001 #include "SnCommWinAfar.h" 00002 00003 #include "SnCommAfarNetIf.h" 00004 00005 SnCommWinAfar::SnCommWinAfar(SnConfigFrame& conf) : 00006 SnCommWin(new SnCommAfarNetIf(conf.GetRemoteServer(), 00007 conf.GetRemotePort(), 00008 conf.GetMbedIP(), 00009 conf.GetMbedMask(), 00010 conf.GetMbedGate())) { 00011 00012 } 00013 00014 SnCommWin::ECommWinResult SnCommWinAfar::OpenWindow(const bool sendStatus, 00015 const SnConfigFrame& conf, 00016 const SnPowerFrame& pow, // com win power 00017 const SnEventFrame& stEvent, 00018 const uint16_t seq, 00019 const uint32_t numThmTrigs, 00020 const uint32_t numSavedEvts, 00021 const float seqlive, 00022 const uint32_t powerOnTime, 00023 const SnTempFrame& temper, // com win temp 00024 char* const genBuf, 00025 const uint32_t timeout_clock) { 00026 #ifdef DEBUG 00027 printf("SnCommWinAfar::OpenWindow\r\n"); 00028 #endif 00029 00030 const bool canCon = fComm->Connect(timeout_clock); 00031 00032 SnCommWin::ECommWinResult ret = canCon ? SnCommWin::kConnected 00033 : SnCommWin::kCanNotConnect; 00034 00035 if (canCon && sendStatus) { 00036 #ifdef DEBUG 00037 printf("calling SendStatus\r\n"); 00038 #endif 00039 ret = SendStatus(conf, pow, stEvent, seq, 00040 numThmTrigs, numSavedEvts, seqlive, 00041 powerOnTime, temper, 00042 genBuf, 00043 timeout_clock); 00044 00045 #ifdef DEBUG 00046 printf("Send Status returned\r\n"); 00047 #endif 00048 } 00049 00050 return ret; 00051 }
Generated on Thu Jul 14 2022 21:01:57 by
1.7.2