Documentation
¶
Overview ¶
Package canbus provides high-level access to CAN bus sockets.
A typical usage might look like:
sck, err := canbus.New() err = sck.Bind("vcan0") for { msg, err := sck.Recv() }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Socket ¶
type Socket struct {
// contains filtered or unexported fields
}
Socket is a high-level representation of a CANBus socket.
func (*Socket) Bind ¶
Bind binds the socket on the CAN bus with the given address.
Example:
err = sck.Bind("vcan0")
Click to show internal directories.
Click to hide internal directories.