Documentation ¶
Index ¶
- func NewVirtualCanBus(channel string) (canopen.Bus, error)
- type VirtualCanBus
- func (client *VirtualCanBus) Connect(...any) error
- func (client *VirtualCanBus) Disconnect() error
- func (client *VirtualCanBus) Recv() (*canopen.Frame, error)
- func (client *VirtualCanBus) Send(frame canopen.Frame) error
- func (client *VirtualCanBus) SetReceiveOwn(receiveOwn bool)
- func (client *VirtualCanBus) Subscribe(framehandler canopen.FrameListener) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.