You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
617 B

using System;
namespace SSComm
{
public interface IUniComm : IDisposable
{
bool Connected { get; }
Int32 BytesSent();
Int32 BytesReceived();
void Init();
bool Connect();
void Disconnect();
byte ReadByte();
Int32 Read(ref byte[] DBuffer, Int32 DOffset, Int32 MaxBytes);
void WriteByte(ref byte wb, bool DoWake = true);
bool Write(ref byte[] DBuffer, Int32 DOffset, Int32 NumBytes);
Int32 RXDataCount { get; }
Int32 TXFreeSpace { get; }
event EventHandler DataReceived;
}
}