123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using Edge.Core.Parser;
- using Edge.Core.Parser.BinaryParser.Attributes;
- using Edge.Core.Parser.BinaryParser.MessageEntity;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace LanTian_Pump_664_Or_886.MessageEntity
- {
- public abstract class MessageBase : MessageTemplateBase
- {
- /// <summary>
- /// 包头第一字节,固定值。
- /// </summary>
- [Format(1, EncodingType.BIN, -1000)]
- public virtual byte PrefixFirstByte
- {
- get { return 0xF5; }
- set
- {
- ;
- }
- }
- /// <summary>
- /// 当前油枪的物理地址,于加油机端进行设置。
- /// </summary>
- [Format(1, EncodingType.BIN, -900)]
- public virtual byte Adrs { get; set; } = 1;
- /// <summary>
- /// 0xAn n is the real length.
- /// </summary>
- [Format(1, EncodingType.BIN, -800)]
- public virtual byte LengthByte
- {
- get; set;
- }
- [EnumerableFormat("%cascade", 1000)]
- public virtual List<byte> BodyAndXRL { get; set; }
- }
- }
|