添加项目文件。
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using HardwareControl.Core.UsbCamera;
|
||||
|
||||
namespace HardwareControl.Core.HardwareServiceImpl.HardwareService
|
||||
{
|
||||
public interface IUsbCameraService : IAsyncDisposable
|
||||
{
|
||||
bool IsConnected { get; }
|
||||
|
||||
/// <summary>最近一次成功打开的设备名称。</summary>
|
||||
string? DeviceName { get; }
|
||||
|
||||
/// <summary>当前(或最近一次)采集格式;未打开过设备时为 null。</summary>
|
||||
CameraFrameFormat? FrameFormat { get; }
|
||||
|
||||
/// <summary>最近一帧的到达时间(UTC);尚未收到帧时为 null。</summary>
|
||||
DateTimeOffset? LastFrameAt { get; }
|
||||
|
||||
/// <summary>本次连接累计收到的帧数。</summary>
|
||||
long FramesReceived { get; }
|
||||
|
||||
Task ConnectAsync(CancellationToken ct = default);
|
||||
Task DisconnectAsync(CancellationToken ct = default);
|
||||
|
||||
event EventHandler<UsbCameraStatusChangedEventArgs>? StatusChanged;
|
||||
event EventHandler<FrameArrivedEventArgs>? FrameArrived;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user