crc

package
v1.0.10006 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Crc3 added in v1.0.10002

func Crc3(data []byte) uint8

Name: Crc3 x^3 + x^1 + x^0 Poly: 0x03 Init: 0x00 Refin: False Refout: False Xorout: 0x00

func Crc4Itu

func Crc4Itu(data []byte) uint8

Name: CRC-4/ITU x4+x+1 Poly: 0x03 Init: 0x00 Refin: True Refout: True Xorout: 0x00

func Crc5Epc

func Crc5Epc(data []byte) uint8

Name: CRC-5/EPC x5+x3+1 Poly: 0x09 Init: 0x09 Refin: False Refout: False Xorout: 0x00

func Crc5Itu

func Crc5Itu(data []byte) uint8

Name: CRC-5/ITU x5+x4+x2+1 Poly: 0x15 Init: 0x00 Refin: True Refout: True Xorout: 0x00

func Crc5Usb

func Crc5Usb(data []byte) uint8

Name: CRC-5/USB x5+x2+1 Poly: 0x05 Init: 0x1F Refin: True Refout: True Xorout: 0x1F

func Crc6Itu

func Crc6Itu(data []byte) uint8

Name: CRC-6/ITU x6+x+1 Poly: 0x03 Init: 0x00 Refin: True Refout: True Xorout: 0x00

func Crc7Mmc

func Crc7Mmc(data []byte) uint8

Name: CRC-7/MMC x7+x3+1 Poly: 0x09 Init: 0x00 Refin: False Refout: False Xorout: 0x00 Use: MultiMediaCard,SD,ect.

func ToBinString

func ToBinString(data uint8, typ ...string) string

输出二进制字符

func ToHexString

func ToHexString(data uint8, typ ...string) string

输出 16 进制字符

Types

This section is empty.

Jump to

Keyboard shortcuts

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