2022-10-29 16:10:00 +00:00
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
//
|
2022-12-05 17:58:23 +00:00
|
|
|
// SCSI Target Emulator PiSCSI
|
2022-10-29 16:10:00 +00:00
|
|
|
// for Raspberry Pi
|
|
|
|
//
|
|
|
|
// Copyright (C) 2022 Uwe Seimet
|
|
|
|
//
|
|
|
|
// Abstraction for the DaynaPort and the host bridge, which both have methods for writing byte sequences
|
|
|
|
//
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
class ByteWriter
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
ByteWriter() = default;
|
|
|
|
virtual ~ByteWriter() = default;
|
|
|
|
|
2022-11-02 06:36:25 +00:00
|
|
|
virtual bool WriteBytes(const vector<int>&, vector<uint8_t>&, uint32_t) = 0;
|
2022-10-29 16:10:00 +00:00
|
|
|
};
|