MCPcopy Create free account
hub / github.com/LowPowerLab/SPIFlash / busy

Method busy

SPIFlash.cpp:194–204  ·  view source on GitHub ↗

check if the chip is busy erasing/writing

Source from the content-addressed store, hash-verified

192
193/// check if the chip is busy erasing/writing
194boolean SPIFlash::busy()
195{
196 /*
197 select();
198 SPI.transfer(SPIFLASH_STATUSREAD);
199 uint8_t status = SPI.transfer(0);
200 unselect();
201 return status & 1;
202 */
203 return readStatus() & 1;
204}
205
206/// return the STATUS register
207uint8_t SPIFlash::readStatus()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected