添加项目文件。
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
namespace HardwareControl.Core.Spectrometer
|
||||
{
|
||||
/// <summary>
|
||||
/// 多台同步采集时,某一台设备返回的一帧光谱。
|
||||
/// 流式回调不携带报文头,因此这里没有温度/负载率等元数据;
|
||||
/// 需要这些字段请使用单帧 <c>AcquireFrame</c> 接口。
|
||||
/// </summary>
|
||||
/// <param name="DeviceIndex">设备索引(0 起)。</param>
|
||||
/// <param name="SerialNumber">设备序列号。</param>
|
||||
/// <param name="Wavelengths">波长数组。</param>
|
||||
/// <param name="Spectrum">强度数组,与波长等长。</param>
|
||||
/// <param name="ReceivedAt">回调在本机收到该帧的时间。</param>
|
||||
public sealed record SynchronizedSpectrumFrame(
|
||||
int DeviceIndex,
|
||||
string SerialNumber,
|
||||
float[] Wavelengths,
|
||||
float[] Spectrum,
|
||||
DateTimeOffset ReceivedAt)
|
||||
{
|
||||
public int PixelCount => Wavelengths.Length;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user