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

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

                dutra.InitDefaults();
                switch (input.ReadBits(1))
                {
                case 0:
                    dutra.utra_RSCP = input.ReadBits(7) + -5;
                    return(dutra);

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