Ejemplo n.º 1
0
            public CarrierFreqUTRA_FDD Decode(BitArrayInputStream input)
            {
                CarrierFreqUTRA_FDD qutra_fdd = new CarrierFreqUTRA_FDD();

                qutra_fdd.InitDefaults();
                bool          flag   = input.readBit() != 0;
                BitMaskStream stream = new BitMaskStream(input, 1);

                qutra_fdd.carrierFreq = input.readBits(14);
                if (stream.Read())
                {
                    qutra_fdd.cellReselectionPriority = input.readBits(3);
                }
                qutra_fdd.threshX_High = input.readBits(5);
                qutra_fdd.threshX_Low  = input.readBits(5);
                qutra_fdd.q_RxLevMin   = input.readBits(6) + -60;
                qutra_fdd.p_MaxUTRA    = input.readBits(7) + -50;
                qutra_fdd.q_QualMin    = input.readBits(5) + -24;
                if (flag)
                {
                    BitMaskStream stream2 = new BitMaskStream(input, 1);
                    if (stream2.Read())
                    {
                        qutra_fdd.threshX_Q_r9 = threshX_Q_r9_Type.PerDecoder.Instance.Decode(input);
                    }
                }
                return(qutra_fdd);
            }
Ejemplo n.º 2
0
 public CarrierFreqUTRA_FDD Decode(BitArrayInputStream input)
 {
     CarrierFreqUTRA_FDD qutra_fdd = new CarrierFreqUTRA_FDD();
     qutra_fdd.InitDefaults();
     bool flag = input.readBit() != 0;
     BitMaskStream stream = new BitMaskStream(input, 1);
     qutra_fdd.carrierFreq = input.readBits(14);
     if (stream.Read())
     {
         qutra_fdd.cellReselectionPriority = input.readBits(3);
     }
     qutra_fdd.threshX_High = input.readBits(5);
     qutra_fdd.threshX_Low = input.readBits(5);
     qutra_fdd.q_RxLevMin = input.readBits(6) + -60;
     qutra_fdd.p_MaxUTRA = input.readBits(7) + -50;
     qutra_fdd.q_QualMin = input.readBits(5) + -24;
     if (flag)
     {
         BitMaskStream stream2 = new BitMaskStream(input, 1);
         if (stream2.Read())
         {
             qutra_fdd.threshX_Q_r9 = threshX_Q_r9_Type.PerDecoder.Instance.Decode(input);
         }
     }
     return qutra_fdd;
 }