using System; namespace AMWD.Protocols.Modbus.Common { /// /// Represents a input register. /// public class InputRegister : ModbusObject { /// public override ModbusObjectType Type => ModbusObjectType.InputRegister; /// /// Gets or sets the value of the input register. /// public ushort Value { get { return new[] { HighByte, LowByte }.GetBigEndianUInt16(); } } /// public override string ToString() => $"Input Register #{Address} | {Value} | HI: {HighByte:X2}, LO: {LowByte:X2}"; } }