示例#1
0
        public RESET_B3_IND(byte[] lbData, int liOffset)
        {
            m_NetworkControlProtocolInformation = new CapiStruct_Data(this);

            m_NCCI.SetValue(BitConverter.ToUInt32(lbData, liOffset));
            liOffset = m_NetworkControlProtocolInformation.SetData(lbData, liOffset + 4);
        }
示例#2
0
        public INTEROPERABILITY_RESP()
            : base()
        {
            Header.SetCommand(CapiMessages_Enum.INTEROPERABILITY_RESP);

            m_USBInteroperabilityResponseParameter       = new CapiStruct_Data(this);
            m_BluetoothInteroperabilityResponseParameter = new CapiStruct_Data(this);
        }
示例#3
0
        public DISCONNECT_B3_IND(byte[] lbData, int liOffset)
        {
            m_NetworkControlProtocolInformation = new CapiStruct_Data(this);

            m_NCCI.SetValue(BitConverter.ToUInt32(lbData, liOffset));
            m_ReasonB3 = (ReasonB3_Enum)BitConverter.ToUInt16(lbData, liOffset + 4);
            liOffset   = m_NetworkControlProtocolInformation.SetData(lbData, liOffset + 6);
        }
示例#4
0
        public CONNECT_RESP() : base()
        {
            Header.SetCommand(CapiMessages_Enum.CONNECT_RESP);

            m_BProtocol             = new CapiStruct_BProtocol(this);
            m_ConnectedNumber       = new CapiStruct_ConnectedNumber(this);
            m_ConnectedSubaddress   = new CapiStruct_SubAddress(this);
            m_LowLayerCompatibility = new CapiStruct_Data(this);
            m_AdditionalInfo        = new CapiStruct_AdditionalInfo(this);
        }
示例#5
0
        public CONNECT_ACTIVE_IND(byte[] lbData, int liOffset)
        {
            m_ConnectedNumber       = new CapiStruct_ConnectedNumber(this);
            m_ConnectedSubaddress   = new CapiStruct_SubAddress(this);
            m_LowLayerCompatibility = new CapiStruct_Data(this);

            m_PLCI.SetValue(BitConverter.ToUInt32(lbData, liOffset));
            liOffset = m_ConnectedNumber.SetData(lbData, liOffset + 4);
            liOffset = m_ConnectedSubaddress.SetData(lbData, liOffset);
            liOffset = m_LowLayerCompatibility.SetData(lbData, liOffset);
        }
示例#6
0
        public CONNECT_REQ() : base()
        {
            Header.SetCommand(CapiMessages_Enum.CONNECT_REQ);

            m_CalledPartyNumber      = new CapiStruct_CalledNumber(this);
            m_CallingPartyNumber     = new CapiStruct_CallingNumber(this);
            m_CalledPartySubaddress  = new CapiStruct_SubAddress(this);
            m_CallingPartySubaddress = new CapiStruct_SubAddress(this);
            m_BProtocol              = new CapiStruct_BProtocol(this);
            m_BearerCapability       = new CapiStruct_Data(this);
            m_LowLayerCompatibility  = new CapiStruct_Data(this);
            m_HighLayerCompatibility = new CapiStruct_Data(this);
            m_AdditionalInfo         = new CapiStruct_AdditionalInfo(this);
        }
示例#7
0
        public INTEROPERABILITY_IND(byte[] lbData, int liOffset)
        {
            m_USBInteroperabilityIndicationParameter       = new CapiStruct_USBInteroperabilityIndicationParameter(this);
            m_BluetoothInteroperabilityIndicationParameter = new CapiStruct_Data(this);

            m_InteroperabilitySelector = (InteroperabilitySelector_Enum)BitConverter.ToUInt16(lbData, liOffset);
            if (m_InteroperabilitySelector == InteroperabilitySelector_Enum.USBDeviceMenagement)
            {
                liOffset = m_USBInteroperabilityIndicationParameter.SetData(lbData, liOffset + 2);
            }
            else
            {
                liOffset = m_BluetoothInteroperabilityIndicationParameter.SetData(lbData, liOffset + 2);
            }
        }
示例#8
0
        public INFO_IND(byte[] lbData, int liOffset)
        {
            m_EmptyStruct = new CapiStruct_Data(this);
            m_InfoElement = new CapiStruct_InfoElement(this);

            m_Controller_PLCI.SetValue(BitConverter.ToUInt32(lbData, liOffset));

            if ((BitConverter.ToUInt16(lbData, liOffset + 4) & 0x4000) == 0x4000)
            {
                m_DataType = InfoDataType.MessageType;
            }
            else
            {
                m_DataType = InfoDataType.ElementType;
            }

            if ((BitConverter.ToUInt16(lbData, liOffset + 4) & 0x2000) == 0x2000)
            {
                m_ChargeType = InfoChargeType.NationalCurrency;
            }
            else
            {
                m_ChargeType = InfoChargeType.ChargeUnits;
            }

            m_InfoNumber = (byte)(BitConverter.ToUInt16(lbData, liOffset + 4) & 0xFF);

            if (m_DataType == InfoDataType.MessageType)
            {
                liOffset = m_EmptyStruct.SetData(lbData, liOffset + 6);
            }
            else
            {
                liOffset = m_InfoElement.SetData(lbData, liOffset + 6);
            }
        }
示例#9
0
        public CONNECT_IND(byte[] lbData, int liOffset)
        {
            m_CalledPartyNumber             = new CapiStruct_CalledNumber(this);
            m_CallingPartyNumber            = new CapiStruct_CallingNumber(this);
            m_CalledPartySubaddress         = new CapiStruct_SubAddress(this);
            m_CallingPartySubaddress        = new CapiStruct_SubAddress(this);
            m_BearerCapability              = new CapiStruct_Data(this);
            m_LowLayerCopatibility          = new CapiStruct_Data(this);
            m_HighLayerCopatibility         = new CapiStruct_Data(this);
            m_AdditionalInformationElements = new CapiStruct_AdditionalInfo(this);
            m_SecondCallingPartyNumber      = new CapiStruct_CallingNumber(this);

            m_PLCI.SetValue(BitConverter.ToUInt32(lbData, liOffset));
            m_CIPValue = BitConverter.ToUInt16(lbData, liOffset + 4);
            liOffset   = m_CalledPartyNumber.SetData(lbData, liOffset + 6);
            liOffset   = m_CallingPartyNumber.SetData(lbData, liOffset);
            liOffset   = m_CalledPartySubaddress.SetData(lbData, liOffset);
            liOffset   = m_CallingPartySubaddress.SetData(lbData, liOffset);
            liOffset   = m_BearerCapability.SetData(lbData, liOffset);
            liOffset   = m_LowLayerCopatibility.SetData(lbData, liOffset);
            liOffset   = m_HighLayerCopatibility.SetData(lbData, liOffset);
            liOffset   = m_AdditionalInformationElements.SetData(lbData, liOffset);
            liOffset   = m_SecondCallingPartyNumber.SetData(lbData, liOffset);
        }
示例#10
0
        public RESET_B3_REQ() : base()
        {
            Header.SetCommand(CapiMessages_Enum.RESET_B3_REQ);

            m_NetworkControlProtocolInformation = new CapiStruct_Data(this);
        }