Skip to content

golang实现的嵌入式里用的CRC16校验算法,该算法常用于Modbus校验

Notifications You must be signed in to change notification settings

zdreamx/embedcrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

说明

嵌入式领域通用CRC16校验的golang语言实现

用法

import ("github.com/zdreamx/embedcrc")

var buf [10]byte
buf[0]=0x01
buf[1]=0x02
//buf[...]=0x..
crc := embedcrc.CRC16Sum(buf[:8])

About

golang实现的嵌入式里用的CRC16校验算法,该算法常用于Modbus校验

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages