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

Method readLinearData

external/floppybridge/src/SuperCardProBridge.cpp:242–251  ·  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

240// pll: required
241// Returns: ReadResponse, explains its self
242CommonBridgeTemplate::ReadResponse SupercardProDiskBridge::readLinearData(PLL::BridgePLL& pll) {
243 SCPErr result = m_io.readData(pll);
244 m_motorTurnOnTime = std::chrono::steady_clock::now();
245
246 switch (result) {
247 case SCPErr::scpOK: return ReadResponse::rrOK;
248 case SCPErr::scpNoDiskInDrive: return ReadResponse::rrNoDiskInDrive;
249 default: return ReadResponse::rrError;
250 }
251}
252
253
254// Called when a cylinder revolution should be written to the disk.

Callers

nothing calls this directly

Calls 1

readDataMethod · 0.45

Tested by

no test coverage detected