PointEventArgs.cs 594 B

12345678910111213141516171819202122232425
  1. using System;
  2. namespace NModbus.Device
  3. {
  4. /// <summary>
  5. /// Modbus Slave request event args containing information on the message.
  6. /// </summary>
  7. public class PointEventArgs : EventArgs
  8. {
  9. private ushort _numberOfPoints;
  10. private ushort _startAddress;
  11. public PointEventArgs(ushort startAddress, ushort numberOfPoints)
  12. {
  13. _startAddress = startAddress;
  14. _numberOfPoints = numberOfPoints;
  15. }
  16. public ushort NumberOfPoints => _numberOfPoints;
  17. public ushort StartAddress => _startAddress;
  18. }
  19. }