GetVersionResponse.cs 930 B

12345678910111213141516171819202122232425262728293031323334
  1. using Parser.BinaryParser.Attributes;
  2. namespace HengShan_Pump_NonIC.MessageEntity
  3. {
  4. /// <summary>
  5. /// 0BAH----- 取版本号
  6. /// 0FFH+0EH+0BAH+版本号4+背光状态0开1关+单价(2)+密度(2)+精度(2)+提前量1+校验
  7. /// </summary>
  8. public class GetVersionResponse : NonICMessageTemplateBase
  9. {
  10. public GetVersionResponse()
  11. {
  12. //CMD = 0xBA;
  13. }
  14. [Format(4, EncodingType.BIN, 2)]
  15. public int versionNumber { get; set; }
  16. [Format(1, EncodingType.BIN, 6)]
  17. public int backLightStatus { get; set; }
  18. [Format(2, EncodingType.BIN, 7)]
  19. public int price { get; set; }
  20. [Format(2, EncodingType.BIN, 9)]
  21. public int 密度 { get; set; }
  22. [Format(2,EncodingType.BIN, 11)]
  23. public int 精度 { get; set; }
  24. [Format(1, EncodingType.BIN, 12)]
  25. public int 提前量 { get; set; }
  26. }
  27. }