| 1053 | */ |
| 1054 | |
| 1055 | std::pair<int, uint8_t> writeAcmdReadR1(const SpiMasterHandle& spiMasterHandle, const uint8_t command, |
| 1056 | const uint32_t argument = {}, const uint8_t crc7 = {}, const bool stuffByte = {}) |
| 1057 | { |
| 1058 | const auto ret = writeAcmd(spiMasterHandle, command, argument, crc7, stuffByte); |
| 1059 | if (ret != 0) |
| 1060 | return {ret, {}}; |
| 1061 | |
| 1062 | return readR1(spiMasterHandle); |
| 1063 | } |
| 1064 | |
| 1065 | /** |
| 1066 | * \brief Writes application (ACMD) command and reads R2 response to/from SD card connected via SPI. |
no test coverage detected