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.
38 lines
1.0 KiB
38 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;
|
|
}
|
|
}
|
|
}
|
|
|