您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

23 行
567 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace ModbusDemo.Device
  7. {
  8. interface IModbusRTU
  9. {
  10. public bool[] ReadCoil(byte slaveAddress, ushort startAddress, ushort numberOfPoints);
  11. public void WriteCoil(byte slaveAddress, ushort startAddress, bool[] data);
  12. public ushort[] ReadRegisters(byte slaveAddress, ushort startAddress, ushort numberOfPoints);
  13. public void WriteRegisters(byte slaveAddress, ushort startAddress, ushort[] data);
  14. }
  15. }