Arianna autonomous DAQ firmware

Dependencies:   mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW

Committer:
uci1
Date:
Fri Oct 30 04:49:40 2015 +0000
Revision:
84:80b15993944e
Parent:
56:0bba0ef15697
Child:
116:8099b754fbb4
conf v11,12. ip to ints. write 64chr lbl. send status data packs. comm pwr as needed. comm each evt. conn/list TO separate afar, sbd. calc FFT, L1 trigger, L1 scaledown. pre-compl opts in own file. max comm fail 75. htbt and clock frames store vars.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
uci1 37:ff95e7070f26 1 #include "SnCommWinUsb.h"
uci1 37:ff95e7070f26 2
uci1 37:ff95e7070f26 3 #include "SnCommUsb.h"
uci1 37:ff95e7070f26 4
uci1 37:ff95e7070f26 5 #ifdef USE_MODSERIAL
uci1 38:9070c17536cd 6 #include "MODSERIAL.h"
uci1 37:ff95e7070f26 7 #endif
uci1 37:ff95e7070f26 8
uci1 41:d6f5e2f09e07 9 SnCommWinUsb::SnCommWinUsb(COMM_SERIALTYPE* cpu) :
uci1 41:d6f5e2f09e07 10 SnCommWin(new SnCommUsb(cpu)) {
uci1 37:ff95e7070f26 11
uci1 37:ff95e7070f26 12 }
uci1 84:80b15993944e 13 /*
uci1 37:ff95e7070f26 14 SnCommWin::ECommWinResult SnCommWinUsb::OpenWindow(const uint32_t timeout,
uci1 37:ff95e7070f26 15 const bool sendStatus,
uci1 37:ff95e7070f26 16 const SnConfigFrame& conf,
uci1 37:ff95e7070f26 17 const SnEventFrame& evt,
uci1 37:ff95e7070f26 18 const SnPowerFrame& pow,
uci1 37:ff95e7070f26 19 const uint16_t seq,
uci1 37:ff95e7070f26 20 const float thmrate,
uci1 37:ff95e7070f26 21 const float evtrate,
uci1 56:0bba0ef15697 22 const uint32_t powerOnTime,
uci1 56:0bba0ef15697 23 const SnTempFrame& temper,
uci1 37:ff95e7070f26 24 char* const genBuf) {
uci1 84:80b15993944e 25 */
uci1 84:80b15993944e 26 SnCommWin::ECommWinResult SnCommWinUsb::OpenWindow(const bool sendStatus,
uci1 84:80b15993944e 27 const SnConfigFrame& conf,
uci1 84:80b15993944e 28 const SnPowerFrame& pow, // com win power
uci1 84:80b15993944e 29 const SnEventFrame& stEvent,
uci1 84:80b15993944e 30 const uint16_t seq,
uci1 84:80b15993944e 31 const float thmrate,
uci1 84:80b15993944e 32 const float evtrate,
uci1 84:80b15993944e 33 const uint32_t powerOnTime,
uci1 84:80b15993944e 34 const SnTempFrame& temper, // com win temp
uci1 84:80b15993944e 35 char* const genBuf,
uci1 84:80b15993944e 36 const uint32_t timeout_clock) {
uci1 37:ff95e7070f26 37 #ifdef DEBUG
uci1 37:ff95e7070f26 38 printf("SnCommWinUsb::OpenWindow\r\n");
uci1 37:ff95e7070f26 39 #endif
uci1 37:ff95e7070f26 40
uci1 37:ff95e7070f26 41 SnCommWin::ECommWinResult ret =
uci1 84:80b15993944e 42 fComm->Connect(timeout_clock) ? SnCommWin::kConnected : SnCommWin::kCanNotConnect;
uci1 37:ff95e7070f26 43
uci1 37:ff95e7070f26 44 if (sendStatus) {
uci1 37:ff95e7070f26 45 #ifdef DEBUG
uci1 37:ff95e7070f26 46 printf("SnCommWinUsb calling SendStatus\r\n");
uci1 37:ff95e7070f26 47 #endif
uci1 84:80b15993944e 48
uci1 84:80b15993944e 49 ret = SendStatus(conf, pow, stEvent, seq, thmrate, evtrate, powerOnTime, temper,
uci1 84:80b15993944e 50 genBuf,
uci1 84:80b15993944e 51 timeout_clock);
uci1 84:80b15993944e 52 //ret = SendStatus(conf, evt, pow, seq, thmrate, evtrate, powerOnTime, temper, genBuf, timeout);
uci1 37:ff95e7070f26 53 }
uci1 37:ff95e7070f26 54
uci1 37:ff95e7070f26 55 return ret;
uci1 37:ff95e7070f26 56 }