mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-29 01:49:19 +00:00
8cb4105409
* Fix SonarQube issues * Fix error handling when target ID for INQUIRY is missing
23 lines
806 B
C++
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(); };
|
|
}
|