Ejemplo n.º 1
0
 public SlaveStorage()
 {
     CoilDiscretes    = new SparsePointSource <bool>(); // Discrete Inputs
     CoilInputs       = new SparsePointSource <bool>(); // Coils
     InputRegisters   = new SparsePointSource <ushort>();
     HoldingRegisters = new SparsePointSource <ushort>();
 }
Ejemplo n.º 2
0
 public SlaveRegisterViewModel(SparsePointSource <ushort> source, ushort address)
     : base(address)
 {
     if (source == null)
     {
         throw new ArgumentNullException(nameof(source));
     }
     _source = source;
 }
Ejemplo n.º 3
0
        public CoilViewModel(SparsePointSource <bool> source, ushort address)
        {
            if (source == null)
            {
                throw new ArgumentNullException(nameof(source));
            }

            _address = address;
            _source  = source;
        }