virtual

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: 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 VirtualCanBus

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

func (*VirtualCanBus) Connect

func (client *VirtualCanBus) Connect(...any) error

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

func (*VirtualCanBus) Disconnect

func (client *VirtualCanBus) Disconnect() error

"Disconnect" from server

func (*VirtualCanBus) Recv

func (client *VirtualCanBus) Recv() (*canopen.Frame, error)

Receive new CAN message

func (*VirtualCanBus) Send

func (client *VirtualCanBus) Send(frame canopen.Frame) error

"Send" implementation of Bus interface

func (*VirtualCanBus) SetReceiveOwn

func (client *VirtualCanBus) SetReceiveOwn(receiveOwn bool)

func (*VirtualCanBus) Subscribe

func (client *VirtualCanBus) 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