1 //
2 // Copyright (c) 2010-2023 Antmicro
3 //
4 // This file is licensed under the MIT License.
5 // Full license text is available in 'licenses/MIT.txt'.
6 //
7 using System.Collections.Generic;
8 using static Antmicro.Renode.Peripherals.SPI.Cadence_xSPI;
9 
10 namespace Antmicro.Renode.Peripherals.SPI.Cadence_xSPICommands
11 {
12     internal interface IDMACommand
13     {
WriteData(IReadOnlyList<byte> data)14         void WriteData(IReadOnlyList<byte> data);
ReadData(int length)15         IList<byte> ReadData(int length);
16 
17         TransmissionDirection DMADirection { get; }
18         uint DMADataCount { get; }
19         bool DMATriggered { get; }
20         bool DMAError { get; }
21     }
22 }
23