IProtocol.cs 437 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Collections.Generic;
  3. namespace Core.StlMes.Client.LgResMgt.Mcms
  4. {
  5. public interface IProtocol
  6. {
  7. byte[] Framing(byte[] byteArray);
  8. DeframeType AnalaysData(List<byte> ReceiveData, out Object Data, out List<byte> rightData);
  9. }
  10. public enum DeframeType
  11. {
  12. RightFrame = 0,
  13. WrongHead = 1,
  14. LengthLess = 2,
  15. WrongFrame = 3,
  16. UnKnow
  17. }
  18. }