Пример #1
0
 public void SetCwIandBwi(byte cwi, byte bwi)
 {
     this.SetInterfaceByte(0, InterfaceByteType.Tb, CodingUtils.NibbleToByte(bwi, cwi));
     this.InvokePropertyChanged(nameof(T1ProtocolParameters.Cwi));
     this.InvokePropertyChanged(nameof(T1ProtocolParameters.CwiValue));
     this.InvokePropertyChanged(nameof(T1ProtocolParameters.Bwi));
     this.InvokePropertyChanged(nameof(T1ProtocolParameters.BwiValue));
 }
Пример #2
0
        public void SetDiFiFmax(Di?di, FiFmax?fiFmax)
        {
            DbC.Assure((di.HasValue && fiFmax.HasValue) ||
                       (di.HasValue == false && fiFmax.HasValue == false), "di and fi/fmax must be either both defined or undefined");

            if (di.HasValue && fiFmax.HasValue)
            {
                this.SetInterfaceByte(0, InterfaceByteType.Ta, CodingUtils.NibbleToByte((byte)fiFmax, (byte)di));
            }
            else
            {
                this.SetInterfaceByte(0, InterfaceByteType.Ta, null);
            }
            this.InvokePropertyChanged(nameof(GlobalInterfaceBytes.Di));
            this.InvokePropertyChanged(nameof(GlobalInterfaceBytes.DiValue));
            this.InvokePropertyChanged(nameof(GlobalInterfaceBytes.FiFmax));
            this.InvokePropertyChanged(nameof(GlobalInterfaceBytes.FiFmaxValue));
        }