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

Method get_sfdp

mpython/extFlash/lib/spiflash.py:112–117  ·  view source on GitHub ↗
(self, addr, len)

Source from the content-addressed store, hash-verified

110 return res
111
112 def get_sfdp(self, addr, len):
113 self._write_addr(CMD_READ_SFDP, addr)
114 self._spi.write(bytearray(1))
115 res = self._spi.read(len)
116 self._cs(1)
117 return res
118
119 def wait(self):
120 self._buf[0] = 1

Callers 1

__init__Method · 0.95

Calls 2

_write_addrMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected