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

Method select_flash

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

Source from the content-addressed store, hash-verified

200}
201
202uint8_t ZBS_interface::select_flash(uint8_t page) {
203 uint8_t sfr_low_bank = page ? 0x80 : 0x00;
204 write_sfr(0xd8, sfr_low_bank);
205 delay(1);
206 return read_sfr(0xd8) == sfr_low_bank;
207}
208
209void ZBS_interface::erase_flash() {
210 send_byte(ZBS_CMD_ERASE_FLASH);

Callers 13

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
readInfoBlockMethod · 0.45
writeInfoBlockMethod · 0.45
readBlockMethod · 0.45

Calls 1

delayFunction · 0.50

Tested by

no test coverage detected