/// <summary> /// 转换为扩展中频测量描述头 /// </summary> /// <param name="pDataFrame"></param> /// <param name="pParameter"></param> protected override void InternalConverter(RmtpDataFrame pDataFrame, object pParameter) { int index = 0; IType = pDataFrame.Data[index]; Freq = BitConverter.ToInt64(pDataFrame.Data, index += 1); Span = BitConverter.ToInt64(pDataFrame.Data, index += 8); Ifbw = BitConverter.ToInt64(pDataFrame.Data, index += 8); Antennafactors = BitConverter.ToInt32(pDataFrame.Data, index += 8); NIfqeXkind = BitConverter.ToInt16(pDataFrame.Data, index += 4); index += 2; for (Int16 i = 0; i < NIfqeXkind; i++) { DeviceData dd = DeviceData.AnalysisDataClass(pDataFrame, ref index); DataTypeList.Add(dd); } }
protected override void InternalConverter(RmtpDataFrame pDataFrame, object pParameter) { iType = pDataFrame.Data[0]; freq = BitConverter.ToInt64(pDataFrame.Data, 1); nFIXFQkind = BitConverter.ToInt16(pDataFrame.Data, 9); int index = 11; for (int i = 0; i < nFIXFQkind; i++) { DeviceData dd = DeviceData.AnalysisDataClass(pDataFrame, ref index); if (dd == null) { continue; } DataTypeList.Add(dd); } }