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.

99 lines
1.6 KiB

using System.ComponentModel;
using System.Reflection;
using HybirdFrameworkCore.Attribute;
namespace Entity.Constant;
public class SwapConstant
{
/// <summary>
/// 通讯类型
/// </summary>
public enum CommunicationType
{
[Const("发送")]
Send=1,
[Const("接受")]
Receive,
}
/// <summary>
/// 步骤类型
/// </summary>
public enum StepType
{
[Const("自动")]
AUTO=1,
[Const("手动")]
MANUAL,
}
/// <summary>
/// 换电plc 通讯
/// </summary>
public enum PlcProtocol
{
[Const("初始化")]
Init,
[Const("下发启动换电")]
StartSwap,
}
/// <summary>
/// 雷达 通讯
/// </summary>
public enum RadarProtocol
{
[Const("开启雷达")]
Open,
[Const("关闭雷达")]
Close,
[Const("车辆状态")]
CarStatus,
}
/// <summary>
/// Rfid 通讯
/// </summary>
public enum RfidProtocol
{
[Const("连接Rfid")]
Connect,
[Const("开始读")]
BeginRead,
[Const("读取Rfid数据")]
ReadRfidData,
[Const("停止读Rfid")]
StopRead,
[Const("断开连接")]
DisConnect,
}
/// <summary>
/// Tbox 通讯
/// </summary>
public enum TboxProtocol
{
[Const("心跳数据")]
Heart,
[Const("加锁")]
Lock,
[Const("解锁")]
UnLock,
}
}