Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
L25AA02EA48.h
00001 #ifndef L25AA02EA48_H 00002 #define L25AA02EA48_H 00003 #include <string> 00004 #include <mbed.h> 00005 00006 #define COMMAND_READ 0x03 00007 #define COMMAND_WRITE 0x02 00008 00009 class L25AA02EA48 00010 { 00011 public: 00012 00013 L25AA02EA48(PinName MOSI, PinName MISO, PinName SCK, PinName CS); 00014 00015 std::string GetEEPROM(); 00016 00017 00018 char * getMacAddress(); 00019 int command(int c); 00020 int read_address(int a); 00021 private: 00022 SPI _serial; 00023 DigitalOut _cs; 00024 private: 00025 char MacAddress[6]; 00026 00027 }; 00028 00029 00030 #endif
Generated on Tue Jul 12 2022 13:41:30 by
1.7.2