MCPcopy Create free account
hub / github.com/OpenEPaperLink/OpenEPaperLink / read_flash

Method read_flash

ESP32_AP-Flasher/src/zbs_interface.cpp:169–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169uint8_t ZBS_interface::read_flash(uint16_t addr) {
170 uint8_t data = 0x00;
171 send_byte(ZBS_CMD_R_FLASH);
172 send_byte(addr >> 8);
173 send_byte(addr);
174 data = read_byte();
175 delayMicroseconds(after_byte_delay);
176 return data;
177}
178
179void ZBS_interface::write_ram(uint8_t addr, uint8_t data) {
180 write_byte(ZBS_CMD_W_RAM, addr, data);

Callers 12

getFirmwareMD5Method · 0.45
getInfoBlockMacMethod · 0.45
getInfoBlockMD5Method · 0.45
getInfoBlockTypeMethod · 0.45
backupFlashMethod · 0.45
get_mac_format1Method · 0.45
get_mac_format2Method · 0.45
writeFlashMethod · 0.45
writeBlock256Method · 0.45
readInfoBlockMethod · 0.45
writeInfoBlockMethod · 0.45
readBlockMethod · 0.45

Calls 1

delayMicrosecondsFunction · 0.85

Tested by

no test coverage detected