RASCSI/cpp/controllers/phase_handler.cpp
Uwe Seimet 8cb4105409
Fix SonarQube issues (#1276)
* Fix SonarQube issues

* Fix error handling when target ID for INQUIRY is missing
2023-11-01 12:53:05 +01:00

23 lines
806 B
C++

//---------------------------------------------------------------------------
//
// SCSI Target Emulator PiSCSI
// for Raspberry Pi
//
// Copyright (C) 2023 Uwe Seimet
//
//---------------------------------------------------------------------------
#include "phase_handler.h"
void PhaseHandler::Init()
{
phase_executors[phase_t::busfree] = [this] () { BusFree(); };
phase_executors[phase_t::selection] = [this] () { Selection(); };
phase_executors[phase_t::dataout] = [this] () { DataOut(); };
phase_executors[phase_t::datain] = [this] () { DataIn(); };
phase_executors[phase_t::command] = [this] () { Command(); };
phase_executors[phase_t::status] = [this] () { Status(); };
phase_executors[phase_t::msgout] = [this] () { MsgOut(); };
phase_executors[phase_t::msgin] = [this] () { MsgIn(); };
}