MCPcopy Create free account
hub / github.com/PiSCSI/piscsi / DataIn

Method DataIn

cpp/controllers/scsi_controller.cpp:322–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322void ScsiController::DataIn()
323{
324 if (!IsDataIn()) {
325 // Minimum execution time
326 if (execstart > 0) {
327 Sleep();
328 }
329
330 // If the length is 0, go to the status phase
331 if (!HasValidLength()) {
332 Status();
333 return;
334 }
335
336 LogTrace("Data In phase");
337 SetPhase(phase_t::datain);
338
339 GetBus().SetMSG(false);
340 GetBus().SetCD(false);
341 GetBus().SetIO(true);
342
343 ResetOffset();
344
345 return;
346 }
347
348 Send();
349}
350
351void ScsiController::DataOut()
352{

Callers

nothing calls this directly

Calls 3

SetMSGMethod · 0.45
SetCDMethod · 0.45
SetIOMethod · 0.45

Tested by

no test coverage detected