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

Method readLinearData

external/floppybridge/src/ArduinoFloppyBridge.cpp:310–318  ·  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

308// pll: required
309// Returns: ReadResponse, explains its self
310CommonBridgeTemplate::ReadResponse ArduinoFloppyDiskBridge::readLinearData(PLL::BridgePLL& pll) {
311 ArduinoFloppyReader::DiagnosticResponse result = m_io.readData(pll);
312
313 switch (result) {
314 case ArduinoFloppyReader::DiagnosticResponse::drOK: return ReadResponse::rrOK;
315 case ArduinoFloppyReader::DiagnosticResponse::drNoDiskInDrive: return ReadResponse::rrNoDiskInDrive;
316 default: return ReadResponse::rrError;
317 }
318}
319
320// Called when a cylinder revolution should be written to the disk.
321// Parameters are: rawMFMData The raw data to be written. This is an actual MFM stream, going from MSB to LSB for each byte

Callers

nothing calls this directly

Calls 1

readDataMethod · 0.45

Tested by

no test coverage detected