Arianna autonomous DAQ firmware
Dependencies: mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW
SnCommWinUsb.cpp
- Committer:
- uci1
- Date:
- 2015-11-24
- Revision:
- 110:d1da040a0cf2
- Parent:
- 84:80b15993944e
- Child:
- 116:8099b754fbb4
File content as of revision 110:d1da040a0cf2:
#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, const uint32_t powerOnTime, const SnTempFrame& temper, char* const genBuf) { */ SnCommWin::ECommWinResult SnCommWinUsb::OpenWindow(const bool sendStatus, const SnConfigFrame& conf, const SnPowerFrame& pow, // com win power const SnEventFrame& stEvent, const uint16_t seq, const float thmrate, const float evtrate, const uint32_t powerOnTime, const SnTempFrame& temper, // com win temp char* const genBuf, const uint32_t timeout_clock) { #ifdef DEBUG printf("SnCommWinUsb::OpenWindow\r\n"); #endif SnCommWin::ECommWinResult ret = fComm->Connect(timeout_clock) ? SnCommWin::kConnected : SnCommWin::kCanNotConnect; if (sendStatus) { #ifdef DEBUG printf("SnCommWinUsb calling SendStatus\r\n"); #endif ret = SendStatus(conf, pow, stEvent, seq, thmrate, evtrate, powerOnTime, temper, genBuf, timeout_clock); //ret = SendStatus(conf, evt, pow, seq, thmrate, evtrate, powerOnTime, temper, genBuf, timeout); } return ret; }