Arianna autonomous DAQ firmware
Dependencies: mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW
SnCommWinUsb.cpp
- Committer:
- uci1
- Date:
- 2013-10-08
- Revision:
- 41:d6f5e2f09e07
- Parent:
- 40:1324da35afd4
- Child:
- 56:0bba0ef15697
File content as of revision 41:d6f5e2f09e07:
#include "SnCommWinUsb.h" #include "SnCommUsb.h" #ifdef USE_MODSERIAL #include "MODSERIAL.h" #endif SnCommWinUsb::SnCommWinUsb(COMM_SERIALTYPE* cpu) : SnCommWin(new SnCommUsb(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; }