utils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanTimeStringToTime

func CanTimeStringToTime(timeStr string) (time.Time, error)

func ComaSeperatedDecimalsToAscii

func ComaSeperatedDecimalsToAscii(in string) string

func InterfaceToString

func InterfaceToString(i any) string

func ReplaceHexWithDecimal

func ReplaceHexWithDecimal(text string) string

Types

type CanDriveParser

type CanDriveParser struct {
}

func NewCanDriveParser

func NewCanDriveParser() *CanDriveParser

can drive frame: [ID],[RTR],[IDE],[DATABYTES 0..8B]\n

func (*CanDriveParser) Marshal

func (p *CanDriveParser) Marshal(in *can.Frame) []byte

func (*CanDriveParser) Unmarshal

func (p *CanDriveParser) Unmarshal(in []byte) *can.Frame

Jump to

Keyboard shortcuts

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