IModbusSerialMaster.cs 900 B

123456789101112131415161718192021222324
  1. namespace NModbus
  2. {
  3. /// <summary>
  4. /// Modbus Serial Master device.
  5. /// </summary>
  6. public interface IModbusSerialMaster : IModbusMaster
  7. {
  8. /// <summary>
  9. /// Transport for used by this master.
  10. /// </summary>
  11. new IModbusSerialTransport Transport { get; }
  12. /// <summary>
  13. /// Serial Line only.
  14. /// Diagnostic function which loops back the original data.
  15. /// NModbus only supports looping back one ushort value, this is a
  16. /// limitation of the "Best Effort" implementation of the RTU protocol.
  17. /// </summary>
  18. /// <param name="slaveAddress">Address of device to test.</param>
  19. /// <param name="data">Data to return.</param>
  20. /// <returns>Return true if slave device echoed data.</returns>
  21. bool ReturnQueryData(byte slaveAddress, ushort data);
  22. }
  23. }