11 #ifndef __EEPROM_REPORT_HEADER
12 #define __EEPROM_REPORT_HEADER
21 typedef uint16_t size_type;
27 if(EEPROM.read(
i) !=
r)
32 const uint8_t mod = 32;
34 <<
F(
"+----------------");
35 for(uint8_t
i = 0;
i < mod; ++
i) {
39 <<
F(
"| EEPROM Report ");
40 for(uint8_t
i = 0;
i < mod; ++
i) {
44 <<
F(
"+----------------");
45 for(uint8_t
i = 0;
i < mod; ++
i) {
59 ustd::cout << ustd::setw(4) <<
i <<
F(
" - ") << ustd::setw(4) <<
i + mod-1 <<
F(
" : ");
63 ustd::cout << ustd::setfill(
'0') << ustd::setbase(16) << ustd::setw(2) << EEPROM.read(
i);
65 if(
i == eeprom_capacity - 1)
70 for(uint8_t
i = 0;
i < mod; ++
i) {
106 #endif //__EEPROM_REPORT_HEADER
#define GREEN
Definition: color.hpp:15
Definition: eeprom_report.hpp:20
void eeprom_report_data()
Definition: eeprom_report.hpp:75
struct ustd::cin_class cin
static size_type const eeprom_capacity
Definition: eeprom_report.hpp:23
#define NONE
Definition: color.hpp:37
void check_byte(char id= 'e')
Definition: eeprom_report.hpp:91
struct ustd::endl_class endl
void eeprom_report()
Definition: eeprom_report.hpp:102
char peek() const
Definition: iostream.hpp:209
char read() const
Definition: iostream.hpp:212
class diag::EEPROM_mirror_class mirror
void eeprom_report()
Definition: eeprom_report.hpp:31
#define REDB
Definition: color.hpp:14
size_type write(char const &data, uint8_t const &len=1)
Definition: std_serial.hpp:88
#define F(x)
Definition: ustd_generic.hpp:15
void reset(byte r=0xFF)
Definition: eeprom_report.hpp:25
void check(char id= 'e')
Definition: eeprom_report.hpp:81