namespace SSPCTester.Devices.Interfaces;
///
/// 高速数据采集卡(PCIe8586)抽象接口。
///
public interface IDaq : IDeviceConnection
{
Task> EnumerateDevicesAsync(CancellationToken ct = default);
///
/// 高速采集一段波形。
///
/// 采集通道索引数组。
/// 采样率(Hz)。
/// 总时长(秒)。
Task CaptureAsync(
int[] channels,
int sampleRateHz,
double durationSec,
CancellationToken ct = default);
///
/// 读取瞬时值(功率损耗页/基础测试页用)。
/// 返回数组与传入 channels 一一对应。
///
Task ReadInstantAsync(int[] channels, CancellationToken ct = default);
Task CaptureAroundActionAsync(
DaqActionCaptureRequest request,
Func action,
CancellationToken ct = default);
/// 流式采集事件(可选实现)。
event EventHandler? SampleReceived;
}