示例#1
0
        /// <summary>
        /// 数据扩展段地址
        /// </summary>
        /// <param name="addr"></param>
        /// <returns></returns>
        public static string ToHexLineExternSegmentAddrRecord(long addr)
        {
            string _return = "";

            byte[] line = new byte[2] {
                (byte)((addr >> 8) & 0xFF), (byte)(addr & 0xFF)
            };
            _return = HexLine.ToHexLine(0, HexType.EXTEND_SEGMENT_ADDRESS_RECORD, line);
            return(_return);
        }
示例#2
0
 /// <summary>
 /// 数据记录行
 /// </summary>
 /// <param name="addr"></param>
 /// <param name="buffer"></param>
 /// <returns></returns>
 public static string ToHexLineDataRecord(long addr, byte[] buffer)
 {
     return(HexLine.ToHexLine(addr, HexType.DATA_RECORD, buffer));
 }