예제 #1
0
            public MeasurementThresholdA2 Decode(BitArrayInputStream input)
            {
                MeasurementThresholdA2 da = new MeasurementThresholdA2();

                da.InitDefaults();
                input.ReadBit();
                switch (input.ReadBits(1))
                {
                case 0:
                    da.threshold_RSRP = input.ReadBits(7);
                    return(da);

                case 1:
                    da.threshold_RSRQ = input.ReadBits(6);
                    return(da);
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }
예제 #2
0
            public MeasurementThresholdA2 Decode(BitArrayInputStream input)
            {
                MeasurementThresholdA2 da = new MeasurementThresholdA2();
                da.InitDefaults();
                input.readBit();
                switch (input.readBits(1))
                {
                    case 0:
                        da.threshold_RSRP = input.readBits(7);
                        return da;

                    case 1:
                        da.threshold_RSRQ = input.readBits(6);
                        return da;
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }