Command1063.cs 799 B

1234567891011121314151617181920212223242526
  1. using ProjectManagementSystem.Device.Core;
  2. using ProjectManagementSystem.Device.Extenions;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace ProjectManagementSystem.Device.Command
  9. {
  10. public class Command1063 : IDeviceCommand
  11. {
  12. private byte[] buffer = { 0x10, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  13. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  14. 0x00, 0x00, 0x73, 0x03 };
  15. public int FPS { get; set; }
  16. public byte[] Serialization()
  17. {
  18. buffer[21] = (byte)(buffer[21] | (FPS << 5));
  19. buffer[22] = buffer.XOR_Check(22);
  20. return buffer;
  21. }
  22. }
  23. }