Esempio n. 1
0
        public SlaveInfo(ec_slave_info_t slaveIdentification, List <SlaveInfo> children)
        {
            this.Manufacturer = slaveIdentification.manufacturer;
            this.ProductCode  = slaveIdentification.productCode;
            this.Revision     = slaveIdentification.revision;
            this.OldCsa       = slaveIdentification.oldCsa;
            this.Csa          = slaveIdentification.csa;
            this.Children     = children;

            this.Extensions = new List <SlaveExtension>();
        }
Esempio n. 2
0
        public SlaveInfo(ec_slave_info_t slaveIdentification, List <SlaveInfo> childSet)
        {
            Contract.Requires(childSet != null, nameof(childSet));

            this.Manufacturer = slaveIdentification.manufacturer;
            this.ProductCode  = slaveIdentification.productCode;
            this.Revision     = slaveIdentification.revision;
            this.OldCsa       = slaveIdentification.oldCsa;
            this.Csa          = slaveIdentification.csa;
            this.ChildSet     = childSet;

            this.SlaveExtensionSet = new List <SlaveExtensionSettingsBase>();
        }
Esempio n. 3
0
 public SlaveInfo(ec_slave_info_t slaveIdentification) : this(slaveIdentification, new List <SlaveInfo>())
 {
     //
 }