Documentation
¶
Overview ¶
Package cantact implements an interface to the CANtact device, to provide to Controller Area Network (CAN) buses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
Device is a reference to a hardware CANtact device connected to this computer.
func (*Device) Close ¶
Close closes the connection to the CAN bus, disabling reception and transmission of CAN frames.
func (*Device) Open ¶
Open opens the connection to the CAN bus, enabling reception and transmission of CAN frames.
func (*Device) ReadFrame ¶
ReadFrame reads a single Frame from the CAN bus, blocks until a frame is received.
func (*Device) SetBitrate ¶
SetBitrate sets the bitrate of the device.
func (*Device) WriteFrame ¶
WriteFrame writes a single Frame to the CAN bus.
Click to show internal directories.
Click to hide internal directories.