can

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AvailableInterfaces = make(map[string]NewInterfaceFunc)
View Source
var ImplementedInterfaces = []string{
	"socketcan",
	"socketcanv2",
	"virtualcan",
	"kvaser",
}

Functions

func RegisterInterface

func RegisterInterface(interfaceType string, newInterface NewInterfaceFunc)

Register a new CAN bus interface type This should be called inside an init() function of plugin

Types

type NewInterfaceFunc

type NewInterfaceFunc func(channel string) (canopen.Bus, error)

Directories

Path Synopsis
provide fallback when not compiling kvaser
provide fallback when not compiling kvaser

Jump to

Keyboard shortcuts

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