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

Function executeAcmdWithR3Response

source/devices/memory/SdCard.cpp:1196–1210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1194 */
1195
1196std::pair<int, R3Response> executeAcmdWithR3Response(SynchronousSdMmcCardLowLevel& sdCard, const uint16_t rca,
1197 const uint8_t command, const uint32_t argument, const SdMmcCardLowLevel::Transfer transfer)
1198{
1199 {
1200 int ret;
1201 R1Response r1Response;
1202 std::tie(ret, r1Response) = executeCmd55(sdCard, rca);
1203 if (ret != 0)
1204 return {ret, {}};
1205 if (r1Response.isError() == true)
1206 return {EIO, {}};
1207 }
1208
1209 return executeCmdWithR3Response(sdCard, command, argument, transfer);
1210}
1211
1212/**
1213 * \brief Executes ACMD6 command on SD card.

Callers 1

executeAcmd41Function · 0.85

Calls 3

executeCmdWithR3ResponseFunction · 0.85
executeCmd55Function · 0.70
isErrorMethod · 0.45

Tested by

no test coverage detected