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.
43 lines
1013 B
43 lines
1013 B
using System;
|
|
using HybirdFrameworkCore.Autofac.Attribute;
|
|
|
|
namespace Service.Charger.Msg.Host.Req;
|
|
|
|
/// <summary>
|
|
/// 参数设置
|
|
/// </summary>
|
|
public class ParameterSettingsReq : ASDU {
|
|
|
|
///// <summary>
|
|
///// 信息体地址
|
|
///// </summary>
|
|
// [Property(0, 24 )]
|
|
//public byte[] MessageBodyAddress {get;set;}
|
|
/// <summary>
|
|
/// 参数类型
|
|
/// </summary>
|
|
[Property(0, 8 )]
|
|
public byte ParameterType {get;set;}
|
|
/// <summary>
|
|
/// 参数
|
|
/// </summary>
|
|
[Property(8, 8 )]
|
|
public byte Parameter {get;set;}
|
|
|
|
// byte[] messageBodyAddress,
|
|
|
|
public ParameterSettingsReq( byte parameterType, byte parameter)
|
|
{
|
|
FrameTypeNo = 62;
|
|
MsgBodyCount = 1;
|
|
TransReason = 3;
|
|
PublicAddr = 0;
|
|
MsgBodyAddr = new byte[] { 0, 0, 0 };
|
|
// MessageBodyAddress = new byte[] { 00, 00, 00 };
|
|
ParameterType =parameterType;
|
|
Parameter = parameter;
|
|
}
|
|
|
|
|
|
}
|