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

Function executeCmdWithR2Response

source/devices/memory/SdCard.cpp:787–792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

785 */
786
787std::pair<int, R2Response> executeCmdWithR2Response(SynchronousSdMmcCardLowLevel& sdCard, const uint8_t command,
788 const uint32_t argument, const SdMmcCardLowLevel::Transfer transfer)
789{
790 const auto ret = executeCmdWithLongResponse(sdCard, command, argument, transfer);
791 return {resultToErrorCode(ret.first), R2Response{ret.second}};
792}
793
794/**
795 * \brief Executes transaction with command that has R3 response.

Callers 2

executeCmd2Function · 0.85
executeCmd9Function · 0.85

Calls 2

resultToErrorCodeFunction · 0.85

Tested by

no test coverage detected