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
| 240 | // pll: required |
| 241 | // Returns: ReadResponse, explains its self |
| 242 | CommonBridgeTemplate::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. |