| 777 | */ |
| 778 | |
| 779 | std::tuple<int, uint8_t, bool> executeCmd8(const SpiMasterHandle& spiMasterHandle) |
| 780 | { |
| 781 | constexpr uint8_t supplyVoltage {1}; // 2.7 - 3.6 V |
| 782 | constexpr uint8_t checkPattern {0xaa}; |
| 783 | const auto ret = writeCmdReadR7(spiMasterHandle, 8, supplyVoltage << 8 | checkPattern, 0x43); |
| 784 | const auto match = ret.second.checkPattern == checkPattern && ret.second.voltageAccepted == supplyVoltage; |
| 785 | return std::make_tuple(ret.first, ret.second.r1, match); |
| 786 | } |
| 787 | |
| 788 | /** |
| 789 | * \brief Executes CMD9 command on SD card connected via SPI. |
no test coverage detected