Documentation ¶
Overview ¶
Package usbcanendpoint contains the USBCANEndpoint struct described below
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type USBCANEndpoint ¶
type USBCANEndpoint struct {
// contains filtered or unexported fields
}
USBCANEndpoint is an endpoint backed by a USBCAN interface, pulling down CAN frames
func (*USBCANEndpoint) Close ¶
func (c *USBCANEndpoint) Close() error
Close will stop the endpoint from processing further frames
func (*USBCANEndpoint) Run ¶
func (c *USBCANEndpoint) Run(ctx context.Context) error
Run should, in theory, run the endpoint and block until completion/error, but the canbus implementation doesn't work like that right now unfortunately, so it just spawns in the background and keeps running until Shutdown kills it...
func (*USBCANEndpoint) SetOutput ¶
func (c *USBCANEndpoint) SetOutput(mh endpoint.MessageHandler)
SetOutput subscribes a callback handler for whenever a message is ready
Click to show internal directories.
Click to hide internal directories.