MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / readCommand

Method readCommand

tests/ntrcard-probe-test.cpp:147–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 }
146
147 std::array<std::uint8_t, 8> readCommand(void) const override
148 {
149 stealCommandAtSameControl();
150 if (behavior == Behavior::CommandReadbackUnavailable) {
151 return {};
152 }
153
154 std::array<std::uint8_t, 8> value{};
155 for (std::size_t i = 0; i < 4; i++) {
156 value[i] = static_cast<std::uint8_t>(commandHigh >> (i * 8));
157 value[i + 4] = static_cast<std::uint8_t>(commandLow >> (i * 8));
158 }
159 return value;
160 }
161
162 void write16(NtrCard::RegisterOffset offset, std::uint16_t value) override
163 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected