Allen Litton
/
BreakoutBoardDemo
Demo Application for the Celeritous Breakout Board
Embed:
(wiki syntax)
Show/hide line numbers
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