Exemple #1
0
            public PhysicalConfigDedicatedSCell_r10 Decode(BitArrayInputStream input)
            {
                BitMaskStream stream2;
                PhysicalConfigDedicatedSCell_r10 _r = new PhysicalConfigDedicatedSCell_r10();

                _r.InitDefaults();
                bool          flag   = input.ReadBit() != 0;
                BitMaskStream stream = new BitMaskStream(input, 2);

                if (stream.Read())
                {
                    _r.nonUL_Configuration_r10 = nonUL_Configuration_r10_Type.PerDecoder.Instance.Decode(input);
                }
                if (stream.Read())
                {
                    _r.ul_Configuration_r10 = ul_Configuration_r10_Type.PerDecoder.Instance.Decode(input);
                }
                if (flag)
                {
                    int num2;
                    stream2 = new BitMaskStream(input, 9);
                    if (stream2.Read())
                    {
                        _r.csi_RS_ConfigNZPToReleaseList_r11 = new List <long>();
                        num2 = 2;
                        int num3 = input.ReadBits(num2) + 1;
                        for (int i = 0; i < num3; i++)
                        {
                            long item = input.ReadBits(2) + 1;
                            _r.csi_RS_ConfigNZPToReleaseList_r11.Add(item);
                        }
                    }
                    if (stream2.Read())
                    {
                        _r.csi_RS_ConfigNZPToAddModList_r11 = new List <CSI_RS_ConfigNZP_r11>();
                        num2 = 2;
                        int num6 = input.ReadBits(num2) + 1;
                        for (int j = 0; j < num6; j++)
                        {
                            CSI_RS_ConfigNZP_r11 _r2 = CSI_RS_ConfigNZP_r11.PerDecoder.Instance.Decode(input);
                            _r.csi_RS_ConfigNZPToAddModList_r11.Add(_r2);
                        }
                    }
                    if (stream2.Read())
                    {
                        _r.csi_RS_ConfigZPToReleaseList_r11 = new List <long>();
                        num2 = 2;
                        int num8 = input.ReadBits(num2) + 1;
                        for (int k = 0; k < num8; k++)
                        {
                            long num10 = input.ReadBits(2) + 1;
                            _r.csi_RS_ConfigZPToReleaseList_r11.Add(num10);
                        }
                    }
                    if (stream2.Read())
                    {
                        _r.csi_RS_ConfigZPToAddModList_r11 = new List <CSI_RS_ConfigZP_r11>();
                        num2 = 2;
                        int num11 = input.ReadBits(num2) + 1;
                        for (int m = 0; m < num11; m++)
                        {
                            CSI_RS_ConfigZP_r11 _r3 = CSI_RS_ConfigZP_r11.PerDecoder.Instance.Decode(input);
                            _r.csi_RS_ConfigZPToAddModList_r11.Add(_r3);
                        }
                    }
                    if (stream2.Read())
                    {
                        _r.epdcch_Config_r11 = EPDCCH_Config_r11.PerDecoder.Instance.Decode(input);
                    }
                    if (stream2.Read())
                    {
                        _r.pdsch_ConfigDedicated_v1130 = PDSCH_ConfigDedicated_v1130.PerDecoder.Instance.Decode(input);
                    }
                    if (stream2.Read())
                    {
                        _r.cqi_ReportConfig_v1130 = CQI_ReportConfig_v1130.PerDecoder.Instance.Decode(input);
                    }
                    if (stream2.Read())
                    {
                        _r.pusch_ConfigDedicated_v1130 = PUSCH_ConfigDedicated_v1130.PerDecoder.Instance.Decode(input);
                    }
                    if (stream2.Read())
                    {
                        _r.uplinkPowerControlDedicatedSCell_v1130 = UplinkPowerControlDedicated_v1130.PerDecoder.Instance.Decode(input);
                    }
                }
                if (flag)
                {
                    stream2 = new BitMaskStream(input, 1);
                    if (stream2.Read())
                    {
                        _r.antennaInfo_v12xx = AntennaInfoDedicated_v12xx.PerDecoder.Instance.Decode(input);
                    }
                }
                return(_r);
            }
Exemple #2
0
 public PhysicalConfigDedicatedSCell_r10 Decode(BitArrayInputStream input)
 {
     BitMaskStream stream2;
     PhysicalConfigDedicatedSCell_r10 _r = new PhysicalConfigDedicatedSCell_r10();
     _r.InitDefaults();
     bool flag = input.ReadBit() != 0;
     BitMaskStream stream = new BitMaskStream(input, 2);
     if (stream.Read())
     {
         _r.nonUL_Configuration_r10 = nonUL_Configuration_r10_Type.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         _r.ul_Configuration_r10 = ul_Configuration_r10_Type.PerDecoder.Instance.Decode(input);
     }
     if (flag)
     {
         int num2;
         stream2 = new BitMaskStream(input, 9);
         if (stream2.Read())
         {
             _r.csi_RS_ConfigNZPToReleaseList_r11 = new List<long>();
             num2 = 2;
             int num3 = input.ReadBits(num2) + 1;
             for (int i = 0; i < num3; i++)
             {
                 long item = input.ReadBits(2) + 1;
                 _r.csi_RS_ConfigNZPToReleaseList_r11.Add(item);
             }
         }
         if (stream2.Read())
         {
             _r.csi_RS_ConfigNZPToAddModList_r11 = new List<CSI_RS_ConfigNZP_r11>();
             num2 = 2;
             int num6 = input.ReadBits(num2) + 1;
             for (int j = 0; j < num6; j++)
             {
                 CSI_RS_ConfigNZP_r11 _r2 = CSI_RS_ConfigNZP_r11.PerDecoder.Instance.Decode(input);
                 _r.csi_RS_ConfigNZPToAddModList_r11.Add(_r2);
             }
         }
         if (stream2.Read())
         {
             _r.csi_RS_ConfigZPToReleaseList_r11 = new List<long>();
             num2 = 2;
             int num8 = input.ReadBits(num2) + 1;
             for (int k = 0; k < num8; k++)
             {
                 long num10 = input.ReadBits(2) + 1;
                 _r.csi_RS_ConfigZPToReleaseList_r11.Add(num10);
             }
         }
         if (stream2.Read())
         {
             _r.csi_RS_ConfigZPToAddModList_r11 = new List<CSI_RS_ConfigZP_r11>();
             num2 = 2;
             int num11 = input.ReadBits(num2) + 1;
             for (int m = 0; m < num11; m++)
             {
                 CSI_RS_ConfigZP_r11 _r3 = CSI_RS_ConfigZP_r11.PerDecoder.Instance.Decode(input);
                 _r.csi_RS_ConfigZPToAddModList_r11.Add(_r3);
             }
         }
         if (stream2.Read())
         {
             _r.epdcch_Config_r11 = EPDCCH_Config_r11.PerDecoder.Instance.Decode(input);
         }
         if (stream2.Read())
         {
             _r.pdsch_ConfigDedicated_v1130 = PDSCH_ConfigDedicated_v1130.PerDecoder.Instance.Decode(input);
         }
         if (stream2.Read())
         {
             _r.cqi_ReportConfig_v1130 = CQI_ReportConfig_v1130.PerDecoder.Instance.Decode(input);
         }
         if (stream2.Read())
         {
             _r.pusch_ConfigDedicated_v1130 = PUSCH_ConfigDedicated_v1130.PerDecoder.Instance.Decode(input);
         }
         if (stream2.Read())
         {
             _r.uplinkPowerControlDedicatedSCell_v1130 = UplinkPowerControlDedicated_v1130.PerDecoder.Instance.Decode(input);
         }
     }
     if (flag)
     {
         stream2 = new BitMaskStream(input, 1);
         if (stream2.Read())
         {
             _r.antennaInfo_v12xx = AntennaInfoDedicated_v12xx.PerDecoder.Instance.Decode(input);
         }
     }
     return _r;
 }