NegotiateResponseParams.cs 644 B

12345678910111213141516171819202122
  1. using PlcSiemens.O;
  2. namespace PlcSiemens.Protocol.Negotiate
  3. {
  4. public class NegotiateResponseParams
  5. {
  6. public byte FunNegotiate { get; set; }
  7. public byte Unknown { get; set; }
  8. public ushort ParallelJobs1 { get; set; }
  9. public ushort ParallelJobs2 { get; set; }
  10. public ushort PduLength { get; set; }
  11. public void Build(ByteBuffer buffer)
  12. {
  13. FunNegotiate = buffer.PopByte();
  14. Unknown = buffer.PopByte();
  15. ParallelJobs1 = buffer.PopUshort();
  16. ParallelJobs2 = buffer.PopUshort();
  17. PduLength = buffer.PopUshort();
  18. }
  19. }
  20. }