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

Method readStatus

SPIFlash.cpp:207–214  ·  view source on GitHub ↗

return the STATUS register

Source from the content-addressed store, hash-verified

205
206/// return the STATUS register
207uint8_t SPIFlash::readStatus()
208{
209 select();
210 SPI.transfer(SPIFLASH_STATUSREAD);
211 uint8_t status = SPI.transfer(0);
212 unselect();
213 return status;
214}
215
216
217/// Write 1 byte to flash memory

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected