MCPcopy Create free account
hub / github.com/RetiredWizard/PyDOS / flash_read

Method flash_read

mpython/extFlash/lib/spiflash.py:127–130  ·  view source on GitHub ↗
(self, addr, buf)

Source from the content-addressed store, hash-verified

125 self._cs(1)
126
127 def flash_read(self, addr, buf):
128 self._write_addr(self._cmds[_READ_INDEX], addr)
129 self._spi.readinto(buf)
130 self._cs(1)
131
132 def flash_write(self, addr, buf):
133 # Write in 256-byte chunks

Callers 1

readblocksMethod · 0.80

Calls 2

_write_addrMethod · 0.95
readintoMethod · 0.80

Tested by

no test coverage detected