util

package
v0.0.0-...-b0ef731 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BigEndianFromBit0ToBit6

func BigEndianFromBit0ToBit6(b byte) int64

func BigEndianInt12

func BigEndianInt12(b []byte) int16

BigEndianInt12 parse bit2-bit13

func FormatBCD

func FormatBCD(b byte) string

func FromDecStrToHexStr

func FromDecStrToHexStr(str string) []byte

func FromStrToUint32

func FromStrToUint32(str string) []byte

func GetEndBytes

func GetEndBytes(input []byte, size int) []byte

func LogDownException

func LogDownException(eventTime string, pin string, originalPacket []byte, err interface{})

func ParseDateStrFromBCD6

func ParseDateStrFromBCD6(bcd []byte) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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