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

Method wait

mpython/extFlash/lib/spiflash.py:119–125  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

117 return res
118
119 def wait(self):
120 self._buf[0] = 1
121 while self._buf[0]:
122 self._cs(0)
123 self._write_cmd(CMD_READ_STATUS)
124 self._spi.readinto(self._buf)
125 self._cs(1)
126
127 def flash_read(self, addr, buf):
128 self._write_addr(self._cmds[_READ_INDEX], addr)

Callers 3

__init__Method · 0.95
flash_writeMethod · 0.95
flash_eraseMethod · 0.95

Calls 2

_write_cmdMethod · 0.95
readintoMethod · 0.80

Tested by

no test coverage detected