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

Function executeCmdWithR3Response

source/devices/memory/SdCard.cpp:806–812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

804 */
805
806std::pair<int, R3Response> executeCmdWithR3Response(SynchronousSdMmcCardLowLevel& sdCard, const uint8_t command,
807 const uint32_t argument, const SdMmcCardLowLevel::Transfer transfer)
808{
809 const auto ret = executeCmdWithShortResponse(sdCard, command, argument, transfer);
810 const auto result = ret.first == Result::responseCrcMismatch ? Result::success : ret.first;
811 return {resultToErrorCode(result), R3Response{ret.second}};
812}
813
814/**
815 * \brief Executes transaction with command that has R6 response.

Callers 1

Calls 2

resultToErrorCodeFunction · 0.85

Tested by

no test coverage detected