public BreakoutDigitalInputDataFrame(ONIManagedFrame <ushort> frame, ulong frameOffset) : base(frame, frameOffset) { Port = (byte)(0x00FF & frame.Sample[4]); Buttons = (byte)(0x00FF & frame.Sample[5]); Links = (byte)((0x0F00 & frame.Sample[5]) >> 8); }
public MemoryUsageDataFrame(ONIManagedFrame <ushort> frame, ulong frameOffset, uint total_words) : base(frame, frameOffset) { uint words = ((uint)frame.Sample[4] << 16) | ((uint)frame.Sample[5] << 0); MemoryUsagePercentage = 100.0 * words / total_words; MemoryUsageBytes = words * sizeof(uint); }
public U16DataFrame(ONIManagedFrame <ushort> frame, ulong offset) { Clock = frame.FrameClock - offset; HubSyncCounter = ((ulong)frame.Sample[0] << 48) | ((ulong)frame.Sample[1] << 32) | ((ulong)frame.Sample[2] << 16) | ((ulong)frame.Sample[3] << 0); }
public TS4231V1DataFrame(ONIManagedFrame <ushort> frame, ulong frameOffset) : base(frame, frameOffset) { // Data Index = frame.Sample[4]; PulseWidth = ((uint)frame.Sample[5] << 16) | ((uint)frame.Sample[6] << 0); PulseType = (short)frame.Sample[7]; }
public HARPSyncInputDataFrame(ONIManagedFrame <ushort> frame, ulong frameOffset) : base(frame, frameOffset) { HARPTime = ((uint)frame.Sample[4] << 16) | ((uint)frame.Sample[5] << 0); }