Arianna autonomous DAQ firmware

Dependencies:   mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW

Committer:
uci1
Date:
Wed Jun 05 17:29:31 2019 +0000
Revision:
125:ce4045184366
Parent:
116:8099b754fbb4
Added SnRateListner proto-class, publishing this version of the code in order to enable exporting of most recent features.

Who changed what in which revision?

UserRevisionLine numberNew 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