Arianna autonomous DAQ firmware
Dependencies: mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW
SnCommWinUsb.cpp
- Committer:
- uci1
- Date:
- 2013-10-05
- Revision:
- 40:1324da35afd4
- Parent:
- 38:9070c17536cd
- Child:
- 41:d6f5e2f09e07
File content as of revision 40:1324da35afd4:
#include "SnCommWinUsb.h" #include "SnCommUsb.h" #ifdef USE_MODSERIAL #include "MODSERIAL.h" #define SN_CWUSB_SER MODSERIAL #else #define SN_CWUSB_SER Serial #endif SnCommWinUsb::SnCommWinUsb(Serial* cpu) : SnCommWin(new SnCommUsb(static_cast<SN_CWUSB_SER*>(cpu))) { } SnCommWin::ECommWinResult SnCommWinUsb::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, char* const genBuf) { #ifdef DEBUG printf("SnCommWinUsb::OpenWindow\r\n"); #endif SnCommWin::ECommWinResult ret = fComm->Connect(timeout) ? SnCommWin::kConnected : SnCommWin::kCanNotConnect; if (sendStatus) { #ifdef DEBUG printf("SnCommWinUsb calling SendStatus\r\n"); #endif ret = SendStatus(conf, evt, pow, seq, thmrate, evtrate, genBuf, timeout); } return ret; }