dbc

package
v0.0.0-...-4b0f3de Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

type Compiler struct {
	// contains filtered or unexported fields
}

Decoder decodes CAN frames using DBC information

func NewCompiler

func NewCompiler(filePath string) (*Compiler, error)

func (*Compiler) Message

func (c *Compiler) Message(id uint32) (*descriptor.Message, bool)

func (*Compiler) SourceFile

func (c *Compiler) SourceFile() string

type DecodedSignal

type DecodedSignal struct {
	Raw         any
	Physical    *float64
	Description string
	Signal      *descriptor.Signal
	Timestamp   time.Time
}

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(compiler *Compiler) *Decoder

func (*Decoder) Decode

func (d *Decoder) Decode(f *can.TimedFrame) (map[string]DecodedSignal, error)

Jump to

Keyboard shortcuts

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