MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / readLinearData

Method readLinearData

external/floppybridge/src/GreaseWeazleBridge.cpp:289–298  ·  view source on GitHub ↗

Called for a direct read. This does not match up a rotation and should be used with the pll initialized with the LinearExtractor pll: required Returns: ReadResponse, explains its self

Source from the content-addressed store, hash-verified

287// pll: required
288// Returns: ReadResponse, explains its self
289CommonBridgeTemplate::ReadResponse GreaseWeazleDiskBridge::readLinearData(PLL::BridgePLL& pll) {
290 GWResponse result = m_io.readData(pll);
291 m_motorTurnOnTime = std::chrono::steady_clock::now();
292
293 switch (result) {
294 case GWResponse::drOK: return ReadResponse::rrOK;
295 case GWResponse::drNoDiskInDrive: return ReadResponse::rrNoDiskInDrive;
296 default: return ReadResponse::rrError;
297 }
298}
299
300
301

Callers

nothing calls this directly

Calls 1

readDataMethod · 0.45

Tested by

no test coverage detected