Added additional logic to the AnimeMatrix USB classes to re-use them.

This commit is contained in:
IceStormNG
2023-07-22 22:47:14 +02:00
parent 8cedcb7b5d
commit d9cba16218
3 changed files with 67 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
namespace GHelper.AnimeMatrix.Communication.Platform
{
internal abstract class UsbProvider : IDisposable
public abstract class UsbProvider : IDisposable
{
protected ushort VendorID { get; }
protected ushort ProductID { get; }
@@ -13,6 +13,8 @@ namespace GHelper.AnimeMatrix.Communication.Platform
public abstract void Set(byte[] data);
public abstract byte[] Get(byte[] data);
public abstract void Read(byte[] data);
public abstract void Write(byte[] data);
public abstract void Dispose();
}