You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
98 lines
1.7 KiB
98 lines
1.7 KiB
2 months ago
|
using System.ComponentModel;
|
||
|
using System.Reflection;
|
||
|
|
||
|
namespace Entity.Constant;
|
||
|
|
||
|
public class SwapConstant
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 通讯类型
|
||
|
/// </summary>
|
||
|
public enum CommunicationType
|
||
|
{
|
||
|
|
||
|
[Description("发送")]
|
||
|
Send=1,
|
||
|
[Description("接受")]
|
||
|
Receive,
|
||
|
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 步骤类型
|
||
|
/// </summary>
|
||
|
public enum StepType
|
||
|
{
|
||
|
|
||
|
[Description("自动")]
|
||
|
AUTO=1,
|
||
|
[Description("手动")]
|
||
|
MANUAL,
|
||
|
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 换电plc 通讯
|
||
|
/// </summary>
|
||
|
public enum PlcProtocol
|
||
|
{
|
||
|
|
||
|
[Description("初始化")]
|
||
|
Init,
|
||
|
[Description("下发启动换电")]
|
||
|
StartSwap,
|
||
|
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 雷达 通讯
|
||
|
/// </summary>
|
||
|
public enum RadarProtocol
|
||
|
{
|
||
|
|
||
|
[Description("开启雷达")]
|
||
|
Open,
|
||
|
[Description("关闭雷达")]
|
||
|
Close,
|
||
|
[Description("车辆状态")]
|
||
|
CarStatus,
|
||
|
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// Rfid 通讯
|
||
|
/// </summary>
|
||
|
public enum RfidProtocol
|
||
|
{
|
||
|
|
||
|
[Description("连接Rfid")]
|
||
|
Connect,
|
||
|
[Description("开始读")]
|
||
|
BeginRead,
|
||
|
[Description("读取Rfid数据")]
|
||
|
ReadRfidData,
|
||
|
[Description("停止读Rfid")]
|
||
|
StopRead,
|
||
|
[Description("断开连接")]
|
||
|
DisConnect,
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
/// <summary>
|
||
|
/// Tbox 通讯
|
||
|
/// </summary>
|
||
|
public enum TboxProtocol
|
||
|
{
|
||
|
|
||
|
[Description("心跳数据")]
|
||
|
Heart,
|
||
|
[Description("加锁")]
|
||
|
Lock,
|
||
|
[Description("解锁")]
|
||
|
UnLock,
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|