add libcomm for plc layer

This commit is contained in:
2025-12-24 14:46:43 +08:00
parent 6308aee750
commit 8d4774964c
6 changed files with 199 additions and 0 deletions

22
LibComm/ICommPLC.cs Normal file
View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LibComm
{
public delegate void OnDataReceived(byte[] data);
public delegate void OnConnectStatus(bool connected);
public delegate void OnTrigCamera(int index);
public delegate void OnCameraStatus(int index, bool enable);
public interface ICommPLC
{
event OnDataReceived OnDataReceived;
event OnConnectStatus OnConnectStatus;
event OnTrigCamera OnTrigCamera;
void Initialize();
void Stop();
void NoticeCamComplete(int index, byte[] datax);
}
}