MCPcopy Create free account
hub / github.com/DISTORTEC/distortos / writeCmdReadR7

Function writeCmdReadR7

source/devices/memory/SdCardSpiBased.cpp:741–749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739 */
740
741std::pair<int, R7Response> writeCmdReadR7(const SpiMasterHandle& spiMasterHandle, const uint8_t command,
742 const uint32_t argument = {}, const uint8_t crc7 = {}, const bool stuffByte = {})
743{
744 const auto ret = writeCmd(spiMasterHandle, command, argument, crc7, stuffByte);
745 if (ret != 0)
746 return {ret, {}};
747
748 return readR7(spiMasterHandle);
749}
750
751/**
752 * \brief Executes CMD0 command on SD card connected via SPI.

Callers 1

executeCmd8Function · 0.85

Calls 2

writeCmdFunction · 0.85
readR7Function · 0.85

Tested by

no test coverage detected