初始化上传
This commit is contained in:
30
常用工具集/Utility/SerialDebug/FileTransmit/ITransmitUart.cs
Normal file
30
常用工具集/Utility/SerialDebug/FileTransmit/ITransmitUart.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace XMX.FileTransmit
|
||||
{
|
||||
public delegate void SendToUartEventHandler(object sender,SendToUartEventArgs e);
|
||||
|
||||
interface ITransmitUart
|
||||
{
|
||||
event SendToUartEventHandler SendToUartEvent;
|
||||
|
||||
void ReceivedFromUart(byte[] data);
|
||||
}
|
||||
|
||||
public class SendToUartEventArgs : EventArgs
|
||||
{
|
||||
private readonly byte[] _Data;
|
||||
|
||||
public SendToUartEventArgs(byte[] data)
|
||||
{
|
||||
_Data = data;
|
||||
}
|
||||
|
||||
public byte[] Data
|
||||
{
|
||||
get { return _Data; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user