| 739 | */ |
| 740 | |
| 741 | std::pair<int, R7Response> writeCmdReadR7(const SpiMasterHandle& spiMasterHandle, const uint8_t command, |
| 742 | const uint32_t argument = {}, const uint8_t crc7 = {}, const bool stuffByte = {}) |
| 743 | { |
| 744 | const auto ret = writeCmd(spiMasterHandle, command, argument, crc7, stuffByte); |
| 745 | if (ret != 0) |
| 746 | return {ret, {}}; |
| 747 | |
| 748 | return readR7(spiMasterHandle); |
| 749 | } |
| 750 | |
| 751 | /** |
| 752 | * \brief Executes CMD0 command on SD card connected via SPI. |
no test coverage detected