コード例 #1
0
ファイル: ThresholdEUTRA.cs プロジェクト: ouyh18/LtePlatform
            public ThresholdEUTRA Decode(BitArrayInputStream input)
            {
                ThresholdEUTRA deutra = new ThresholdEUTRA();
                deutra.InitDefaults();
                switch (input.ReadBits(1))
                {
                    case 0:
                        deutra.threshold_RSRP = input.ReadBits(7);
                        return deutra;

                    case 1:
                        deutra.threshold_RSRQ = input.ReadBits(6);
                        return deutra;
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }
コード例 #2
0
            public ThresholdEUTRA Decode(BitArrayInputStream input)
            {
                ThresholdEUTRA deutra = new ThresholdEUTRA();

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

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