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