namespace RobotNet10.Script.IO;
///
/// Interface for CC-Link IE connection operations.
///
public interface ICcLinkIeConnection : IDisposable
{
///
/// Gets the IP address of the CC-Link IE device.
///
string IpAddress { get; }
///
/// Gets the station number.
///
int StationNumber { get; }
///
/// Gets whether the connection is currently connected.
///
bool IsConnected { get; }
///
/// Connects to the CC-Link IE device.
///
Task ConnectAsync();
///
/// Disconnects from the CC-Link IE device.
///
Task DisconnectAsync();
///
/// Reads data from the CC-Link IE device.
///
/// The memory address.
/// The number of words to read.
/// The read data as ushort array.
Task ReadAsync(int address, int length);
///
/// Writes data to the CC-Link IE device.
///
/// The memory address.
/// The data to write.
Task WriteAsync(int address, ushort[] data);
}