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.
 
 

38 lines
882 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Runtime.InteropServices;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace HBLDevice.ICChip
  8. {
  9. /// <summary>
  10. /// Dr咖啡机基础协议
  11. /// </summary>
  12. [StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
  13. public struct ICChipPackage
  14. {
  15. /// <summary>
  16. /// 包头(固定0xAA)
  17. /// </summary>
  18. public byte Header;
  19. /// <summary>
  20. /// 发送方
  21. /// </summary>
  22. public IC_SENDER Sender;
  23. /// <summary>
  24. /// 命令
  25. /// </summary>
  26. public IC_CMD Cmd;
  27. /// <summary>
  28. /// 值
  29. /// </summary>
  30. public byte Value;
  31. /// <summary>
  32. /// 包尾(固定为0xBB)
  33. /// </summary>
  34. public byte End;
  35. }
  36. }