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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
using BatCharging.Model ;
namespace BatCharging.Service.Decoder.New
{
public class AuxiliaryPowerControlDecoder
{
/// <summary>
/// 解包1 应答结果 BIN 1字节 0: 成功 1: 失败
/// 2 失败原因 BIN 1字节 0: 正常 1: 电池包/或者充电枪未连接 0xFF:其他原因
/// </summary>
/// <param name="msgRecv">接收到字节数组</param>
/// <returns>/returns>
public AuxiliaryPowerControlResult GetAuxiliaryPowerControlResult ( byte [ ] msgRecv )
{
AuxiliaryPowerControlResult msgResult = null ;
if ( msgRecv ! = null )
{
int num = msgRecv . Length ;
if ( num > = 27 )
{
msgResult = new AuxiliaryPowerControlResult
{
ResponseResults = msgRecv [ 25 ] ,
FailurReason = msgRecv [ 26 ] ,
} ;
}
}
return msgResult ;
}
}
}