You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.0 KiB

using System;
using GPSBusiness.Helper;
namespace GPSBusiness.BBGPSStandard
{
/// <summary>
/// �����ն˲���
/// </summary>
public class Data_8103
{
/// <summary>
/// ��������
/// </summary>
public byte ParameterSum;
/// <summary>
/// ����ID
/// </summary>
public UInt16 ParameterID;
/// <summary>
/// ��������
/// </summary>
public byte ParameterLength;
/// <summary>
/// ����ֵ
/// </summary>
public UInt16 ParameterValue;
public byte[] GetBytes(DataHead model)
{
ByteBuilder bb = new ByteBuilder();
bb.Append(this.ParameterSum);
bb.Append(ByteConvert.ToBytes(this.ParameterID));
bb.Append(ByteConvert.ToBytes(this.ParameterLength));
bb.Append(ByteConvert.ToBytes(this.ParameterValue));
model.DataContent = bb.GetBytes();
byte[] bModel = ByteConvert.Zy(model.GetBytes());
return bModel;
}
}
}