SoftLRC 类 |
命名空间: HslCommunication.Serial
SoftLRC 类型公开以下成员。
名称 | 说明 | |
---|---|---|
CalculateAcc(Byte) |
根据传入的原始字节数组,计算和校验信息,可以指定起始的偏移地址和尾部的字节数量信息 Calculate and check the information according to the incoming original byte array, you can specify the starting offset address and the number of bytes at the end | |
CalculateAcc(Byte, Int32, Int32) |
根据传入的原始字节数组,计算和校验信息,可以指定起始的偏移地址和尾部的字节数量信息 Calculate and check the information according to the incoming original byte array, you can specify the starting offset address and the number of bytes at the end | |
CalculateAccAndCheck |
计算数据的和校验,并且和当前已经存在的和校验信息进行匹配,返回是否匹配成功 Calculate the sum check of the data, and match it with the existing sum check information, and return whether the match is successful | |
CalculateAccAndFill |
计算数据的和校验,并且输入和校验的值信息 Calculate the sum check of the data, and enter the value information of the sum check | |
CalculateFcs |
计算数据的异或信息,也称为 FCS,可以指定前面无用的字节数量,以及尾部无用的字节数量
| |
CheckLRC |
检查数据是否符合LRC的验证 Check data for compliance with LRC validation | |
Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) | |
GetHashCode | Serves as the default hash function. (继承自 Object。) | |
GetType | Gets the Type of the current instance. (继承自 Object。) | |
LRC(Byte) |
获取对应的数据的LRC校验码 Class for LRC validation that provides a standard validation method | |
LRC(Byte, Int32, Int32) |
获取对应的数据的LRC校验码 Class for LRC validation that provides a standard validation method | |
MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) | |
ToString | Returns a string that represents the current object. (继承自 Object。) |
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |