IPointSource.cs 717 B

123456789101112131415161718192021222324
  1. namespace NModbus
  2. {
  3. /// <summary>
  4. /// Represents a memory map.
  5. /// </summary>
  6. /// <typeparam name="TPoint"></typeparam>
  7. public interface IPointSource<TPoint>
  8. {
  9. /// <summary>
  10. /// Read a series of points.
  11. /// </summary>
  12. /// <param name="startAddress"></param>
  13. /// <param name="numberOfPoints"></param>
  14. /// <returns></returns>
  15. TPoint[] ReadPoints(ushort startAddress, ushort numberOfPoints);
  16. /// <summary>
  17. /// Write a series of points.
  18. /// </summary>
  19. /// <param name="startAddress"></param>
  20. /// <param name="points"></param>
  21. void WritePoints(ushort startAddress, TPoint[] points);
  22. }
  23. }