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
| 308 | // pll: required |
| 309 | // Returns: ReadResponse, explains its self |
| 310 | CommonBridgeTemplate::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 |