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

Function executeAcmd41

source/devices/memory/SdCard.cpp:1291–1296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1289 */
1290
1291std::pair<int, R3Response> executeAcmd41(SynchronousSdMmcCardLowLevel& sdCard, const uint16_t rca, const bool hcs,
1292 const bool xpc, const bool s18r, const uint32_t vddVoltageWindow)
1293{
1294 return executeAcmdWithR3Response(sdCard, rca, 41, static_cast<uint32_t>(hcs) << 30 |
1295 static_cast<uint32_t>(xpc) << 28 | static_cast<uint32_t>(s18r) << 24 | (vddVoltageWindow & 0xffffff), {});
1296}
1297
1298/**
1299 * \brief Waits until card goes back to transfer (tran) state.

Callers 1

initializeMethod · 0.70

Calls 1

Tested by

no test coverage detected