namespace SSPCTester.Devices.Interfaces;
///
/// 固态功率控制器(SSPC,被测设备)抽象接口。
/// 提供 24 路开关控制。
///
public interface ISspc : IDeviceConnection
{
/// 通道总数(本项目为 24)。
int ChannelCount { get; }
/// 导通指定物理插位(1~24)。
Task TurnOnAsync(int physicalSlot, CancellationToken ct = default);
/// 关断指定通道。
Task TurnOffAsync(int physicalSlot, CancellationToken ct = default);
/// 短暂导通(闪开),指定毫秒后自动关断。
Task FlashAsync(int physicalSlot, int milliseconds, CancellationToken ct = default);
/// 查询指定通道当前是否导通。
Task GetChannelStateAsync(int physicalSlot, CancellationToken ct = default);
/// 读取指定物理插位的电压和电流。
Task ReadMeasurementAsync(int physicalSlot, CancellationToken ct = default);
/// 整帧读取并返回物理插位 1~24 的电压和电流。
Task> ReadMeasurementsAsync(CancellationToken ct = default);
}