crc16

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

crc16

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Crc16_A001

func Crc16_A001(dat []byte) (crc16 uint16, hi byte, lo byte)

计算dat数组中字节的CRC16值,多项式 0xA001

func Crc16_A001_Check

func Crc16_A001_Check(buf []byte) (match bool, hi, lo byte)

校验CRC16 buf <数据...><CRC16_低位字节><CRC16_高位字节>

func Crc16_A001_Padding

func Crc16_A001_Padding(buf []byte) []byte

为buf计算crc16校验码,并填充到末尾:低位,高位。 buf缓冲器不含CRC16数据

func Crc16_A001_Update

func Crc16_A001_Update(buf []byte)

buf中包含数据及CRC16校验码,更新校验码

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL