MCPcopy Create free account
hub / github.com/PaulStoffregen/SerialFlash / sleep

Method sleep

SerialFlashChip.cpp:397–404  ·  view source on GitHub ↗

chips tested: https://github.com/PaulStoffregen/SerialFlash/pull/12#issuecomment-169596992

Source from the content-addressed store, hash-verified

395// chips tested: https://github.com/PaulStoffregen/SerialFlash/pull/12#issuecomment-169596992
396//
397void SerialFlashChip::sleep()
398{
399 if (busy) wait();
400 SPIPORT.beginTransaction(SPICONFIG);
401 CSASSERT();
402 SPIPORT.transfer(0xB9); // Deep power down command
403 CSRELEASE();
404}
405
406void SerialFlashChip::wakeup()
407{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected