using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ModbusDemo.Device { public interface IModbusRTU { public bool[] ReadCoil(byte slaveAddress, ushort startAddress, ushort numberOfPoints); public void WriteCoil(byte slaveAddress, ushort startAddress, bool[] data); public ushort[] ReadRegisters(byte slaveAddress, ushort startAddress, ushort numberOfPoints); public void WriteRegisters(byte slaveAddress, ushort startAddress, ushort[] data); } }