Arianna autonomous DAQ firmware
Dependencies: mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW
SnUIDtoMac.h@116:8099b754fbb4, 2016-05-03 (annotated)
- Committer:
- uci1
- Date:
- Tue May 03 02:01:35 2016 +0000
- Revision:
- 116:8099b754fbb4
One program for all stns via UID/MAC lookup table or generation. Status sends number trg/evt and livetime, not rates. Add 512 sample evt and RFFT-LUTs. Add L1Scaledown trg bit. Allow skip SST reset at start. Fix dt at end of seq. End of comm signal.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
uci1 | 116:8099b754fbb4 | 1 | #ifndef SN_SnUIDtoMac |
uci1 | 116:8099b754fbb4 | 2 | #define SN_SnUIDtoMac |
uci1 | 116:8099b754fbb4 | 3 | |
uci1 | 116:8099b754fbb4 | 4 | #include <stdint.h> |
uci1 | 116:8099b754fbb4 | 5 | |
uci1 | 116:8099b754fbb4 | 6 | #include "SnPreCompOptions.h" |
uci1 | 116:8099b754fbb4 | 7 | #include "SnLPC1768UID.h" |
uci1 | 116:8099b754fbb4 | 8 | |
uci1 | 116:8099b754fbb4 | 9 | class SnUIDtoMac { |
uci1 | 116:8099b754fbb4 | 10 | public: |
uci1 | 116:8099b754fbb4 | 11 | |
uci1 | 116:8099b754fbb4 | 12 | static const uint8_t kNumMacBytes = 6; // 48 bit MAC addresses |
uci1 | 116:8099b754fbb4 | 13 | |
uci1 | 116:8099b754fbb4 | 14 | static |
uci1 | 116:8099b754fbb4 | 15 | void GetMacAddress( char mac[kNumMacBytes] ); |
uci1 | 116:8099b754fbb4 | 16 | |
uci1 | 116:8099b754fbb4 | 17 | static |
uci1 | 116:8099b754fbb4 | 18 | bool GetMacFromUIDtable(const uint32_t uid[SnLPC1768UID::kUIDlen], |
uci1 | 116:8099b754fbb4 | 19 | char mac[kNumMacBytes] ); |
uci1 | 116:8099b754fbb4 | 20 | |
uci1 | 116:8099b754fbb4 | 21 | static |
uci1 | 116:8099b754fbb4 | 22 | void GetMacFromCRCofUID(const uint32_t uid[SnLPC1768UID::kUIDlen], |
uci1 | 116:8099b754fbb4 | 23 | char mac[kNumMacBytes] ); |
uci1 | 116:8099b754fbb4 | 24 | |
uci1 | 116:8099b754fbb4 | 25 | }; |
uci1 | 116:8099b754fbb4 | 26 | |
uci1 | 116:8099b754fbb4 | 27 | #endif // SN_SnUIDtoMac |