| 1077 | */ |
| 1078 | |
| 1079 | std::pair<int, R2Response> writeAcmdReadR2(const SpiMasterHandle& spiMasterHandle, const uint8_t command, |
| 1080 | const uint32_t argument = {}, const uint8_t crc7 = {}, const bool stuffByte = {}) |
| 1081 | { |
| 1082 | const auto ret = writeAcmd(spiMasterHandle, command, argument, crc7, stuffByte); |
| 1083 | if (ret != 0) |
| 1084 | return {ret, {}}; |
| 1085 | |
| 1086 | return readR2(spiMasterHandle); |
| 1087 | } |
| 1088 | |
| 1089 | /** |
| 1090 | * \brief Executes ACMD13 command on SD card connected via SPI. |
no test coverage detected