public SlaveStorage() { CoilDiscretes = new SparsePointSource <bool>(); // Discrete Inputs CoilInputs = new SparsePointSource <bool>(); // Coils InputRegisters = new SparsePointSource <ushort>(); HoldingRegisters = new SparsePointSource <ushort>(); }
public SlaveRegisterViewModel(SparsePointSource <ushort> source, ushort address) : base(address) { if (source == null) { throw new ArgumentNullException(nameof(source)); } _source = source; }
public CoilViewModel(SparsePointSource <bool> source, ushort address) { if (source == null) { throw new ArgumentNullException(nameof(source)); } _address = address; _source = source; }