| 715 | */ |
| 716 | |
| 717 | std::pair<int, R3Response> writeCmdReadR3(const SpiMasterHandle& spiMasterHandle, const uint8_t command, |
| 718 | const uint32_t argument = {}, const uint8_t crc7 = {}, const bool stuffByte = {}) |
| 719 | { |
| 720 | const auto ret = writeCmd(spiMasterHandle, command, argument, crc7, stuffByte); |
| 721 | if (ret != 0) |
| 722 | return {ret, {}}; |
| 723 | |
| 724 | return readR3(spiMasterHandle); |
| 725 | } |
| 726 | |
| 727 | /** |
| 728 | * \brief Writes regular (CMD) command and reads R7 response to/from SD card connected via SPI. |
no test coverage detected