Esempio n. 1
0
            public RadioResourceConfigCommon Decode(BitArrayInputStream input)
            {
                BitMaskStream             stream2;
                RadioResourceConfigCommon common = new RadioResourceConfigCommon();

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

                if (stream.Read())
                {
                    common.rach_ConfigCommon = RACH_ConfigCommon.PerDecoder.Instance.Decode(input);
                }
                common.prach_Config = PRACH_Config.PerDecoder.Instance.Decode(input);
                if (stream.Read())
                {
                    common.pdsch_ConfigCommon = PDSCH_ConfigCommon.PerDecoder.Instance.Decode(input);
                }
                common.pusch_ConfigCommon = PUSCH_ConfigCommon.PerDecoder.Instance.Decode(input);
                if (stream.Read())
                {
                    common.phich_Config = PHICH_Config.PerDecoder.Instance.Decode(input);
                }
                if (stream.Read())
                {
                    common.pucch_ConfigCommon = PUCCH_ConfigCommon.PerDecoder.Instance.Decode(input);
                }
                if (stream.Read())
                {
                    common.soundingRS_UL_ConfigCommon = SoundingRS_UL_ConfigCommon.PerDecoder.Instance.Decode(input);
                }
                if (stream.Read())
                {
                    common.uplinkPowerControlCommon = UplinkPowerControlCommon.PerDecoder.Instance.Decode(input);
                }
                if (stream.Read())
                {
                    common.antennaInfoCommon = AntennaInfoCommon.PerDecoder.Instance.Decode(input);
                }
                if (stream.Read())
                {
                    common.p_Max = input.readBits(6) + -30;
                }
                if (stream.Read())
                {
                    common.tdd_Config = TDD_Config.PerDecoder.Instance.Decode(input);
                }
                int nBits = 1;

                common.ul_CyclicPrefixLength = (UL_CyclicPrefixLength)input.readBits(nBits);
                if (flag)
                {
                    stream2 = new BitMaskStream(input, 1);
                    if (stream2.Read())
                    {
                        common.uplinkPowerControlCommon_v1020 = UplinkPowerControlCommon_v1020.PerDecoder.Instance.Decode(input);
                    }
                }
                if (flag)
                {
                    stream2 = new BitMaskStream(input, 1);
                    if (stream2.Read())
                    {
                        common.tdd_Config_v1130 = TDD_Config_v1130.PerDecoder.Instance.Decode(input);
                    }
                }
                return(common);
            }
Esempio n. 2
0
 public RadioResourceConfigCommon Decode(BitArrayInputStream input)
 {
     BitMaskStream stream2;
     RadioResourceConfigCommon common = new RadioResourceConfigCommon();
     common.InitDefaults();
     bool flag = input.ReadBit() != 0;
     BitMaskStream stream = new BitMaskStream(input, 9);
     if (stream.Read())
     {
         common.rach_ConfigCommon = RACH_ConfigCommon.PerDecoder.Instance.Decode(input);
     }
     common.prach_Config = PRACH_Config.PerDecoder.Instance.Decode(input);
     if (stream.Read())
     {
         common.pdsch_ConfigCommon = PDSCH_ConfigCommon.PerDecoder.Instance.Decode(input);
     }
     common.pusch_ConfigCommon = PUSCH_ConfigCommon.PerDecoder.Instance.Decode(input);
     if (stream.Read())
     {
         common.phich_Config = PHICH_Config.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         common.pucch_ConfigCommon = PUCCH_ConfigCommon.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         common.soundingRS_UL_ConfigCommon = SoundingRS_UL_ConfigCommon.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         common.uplinkPowerControlCommon = UplinkPowerControlCommon.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         common.antennaInfoCommon = AntennaInfoCommon.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         common.p_Max = input.ReadBits(6) + -30;
     }
     if (stream.Read())
     {
         common.tdd_Config = TDD_Config.PerDecoder.Instance.Decode(input);
     }
     int nBits = 1;
     common.ul_CyclicPrefixLength = (UL_CyclicPrefixLength)input.ReadBits(nBits);
     if (flag)
     {
         stream2 = new BitMaskStream(input, 1);
         if (stream2.Read())
         {
             common.uplinkPowerControlCommon_v1020 = UplinkPowerControlCommon_v1020.PerDecoder.Instance.Decode(input);
         }
     }
     if (flag)
     {
         stream2 = new BitMaskStream(input, 1);
         if (stream2.Read())
         {
             common.tdd_Config_v1130 = TDD_Config_v1130.PerDecoder.Instance.Decode(input);
         }
     }
     return common;
 }