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

                scdma_hrpd.InitDefaults();
                scdma_hrpd.supportedBandListHRPD = new List <BandclassCDMA2000>();
                int nBits = 5;
                int num3  = input.ReadBits(nBits) + 1;

                for (int i = 0; i < num3; i++)
                {
                    nBits = (input.ReadBit() == 0) ? 5 : 5;
                    BandclassCDMA2000 item = (BandclassCDMA2000)input.ReadBits(nBits);
                    scdma_hrpd.supportedBandListHRPD.Add(item);
                }
                nBits = 1;
                scdma_hrpd.tx_ConfigHRPD = (tx_ConfigHRPD_Enum)input.ReadBits(nBits);
                nBits = 1;
                scdma_hrpd.rx_ConfigHRPD = (rx_ConfigHRPD_Enum)input.ReadBits(nBits);
                return(scdma_hrpd);
            }
Ejemplo n.º 2
0
 public IRAT_ParametersCDMA2000_HRPD Decode(BitArrayInputStream input)
 {
     IRAT_ParametersCDMA2000_HRPD scdma_hrpd = new IRAT_ParametersCDMA2000_HRPD();
     scdma_hrpd.InitDefaults();
     scdma_hrpd.supportedBandListHRPD = new List<BandclassCDMA2000>();
     int nBits = 5;
     int num3 = input.readBits(nBits) + 1;
     for (int i = 0; i < num3; i++)
     {
         nBits = (input.readBit() == 0) ? 5 : 5;
         BandclassCDMA2000 item = (BandclassCDMA2000)input.readBits(nBits);
         scdma_hrpd.supportedBandListHRPD.Add(item);
     }
     nBits = 1;
     scdma_hrpd.tx_ConfigHRPD = (tx_ConfigHRPD_Enum)input.readBits(nBits);
     nBits = 1;
     scdma_hrpd.rx_ConfigHRPD = (rx_ConfigHRPD_Enum)input.readBits(nBits);
     return scdma_hrpd;
 }