Arianna autonomous DAQ firmware
Dependencies: mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW
Diff: SnEventFrame.h
- Revision:
- 15:f2569d8e4176
- Parent:
- 12:d472f9811262
- Child:
- 21:ce51bb0ba4a5
--- a/SnEventFrame.h Tue Aug 21 02:19:35 2012 +0000 +++ b/SnEventFrame.h Fri Aug 31 02:09:09 2012 +0000 @@ -4,6 +4,8 @@ #include <stdint.h> #include "SnConstants.h" +//#define EVDEBUG + class SnEventFrame { public: @@ -80,9 +82,17 @@ SnBitUtils::SetChanNumBits(ch, cardHiBit, cardLoBit); for( uint8_t i = 0; i < kNsamps; i++, dev++ ) { *dev = spi.write(0x00) >> 1; - //printf("ch%hhd, s%03hhd = %hd\r\n",ch,i,*dev); } } +#ifdef EVDEBUG + dev = fData; + for (uint8_t ch=0; ch<kNchans; ch++) { + for (uint8_t i=0; i<kNsamps; i++, dev++) { + printf("(%hhd,%03hhd,%hd) ",ch,i,*dev); + } + printf("\r\n"); + } +#endif CalcCRC(); }