virtual

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVirtualCanBus

func NewVirtualCanBus(channel string) (canopen.Bus, error)

Types

type Bus added in v1.4.0

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

func (*Bus) Connect added in v1.4.0

func (b *Bus) Connect(...any) error

"Connect" to server e.g. localhost:18000

func (*Bus) Disconnect added in v1.4.0

func (b *Bus) Disconnect() error

"Disconnect" from server

func (*Bus) Recv added in v1.4.0

func (b *Bus) Recv() (*canopen.Frame, error)

Receive new CAN message

func (*Bus) Send added in v1.4.0

func (b *Bus) Send(frame canopen.Frame) error

"Send" implementation of Bus interface

func (*Bus) SetReceiveOwn added in v1.4.0

func (b *Bus) SetReceiveOwn(receiveOwn bool)

func (*Bus) Subscribe added in v1.4.0

func (b *Bus) Subscribe(framehandler canopen.FrameListener) error

"Subscribe" implementation of Bus interface

Jump to

Keyboard shortcuts

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