34 lines
702 B
C#
34 lines
702 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace OrpaonEMS.App.CANDrive
|
|
{
|
|
public class BinaryValue
|
|
{
|
|
/// <summary>
|
|
/// 实例化函数
|
|
/// </summary>
|
|
/// <param name="index"></param>
|
|
/// <param name="value"></param>
|
|
public BinaryValue(ushort index, bool value)
|
|
{
|
|
Index = index;
|
|
Value = value;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 序号
|
|
/// </summary>
|
|
public ushort Index { get; set; }
|
|
|
|
/// <summary>
|
|
/// 二进制数据
|
|
/// </summary>
|
|
public bool Value { get; set; }
|
|
|
|
}
|
|
}
|