Documentation ¶
Index ¶
Constants ¶
View Source
const ( SerialCanDefaultPort = "/dev/ttyS1234" SerialCanDefaultBaudrate = 25000 SerialCanParity = serial.NoParity SerialCanDataBits = 8 SerialCanStopBits = serial.OneStopBit )
View Source
const (
CanInterfaceDefaultName = "can0"
)
View Source
const CanbusBufferSize = 2048
View Source
const (
TCP_CAN_DEFAULT_PORT = 9001
)
View Source
const (
TcpCanNetworkType = "tcp"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CanFrameParser ¶
type NetworkIf ¶
type NetworkIf struct {
// contains filtered or unexported fields
}
func (*NetworkIf) Disconnect ¶
type Serial ¶
type Serial struct {
// contains filtered or unexported fields
}
func NewSerialCustomParser ¶
func NewSerialCustomParser(port string, baudrate int, parser CanFrameParser) *Serial
func (*Serial) Disconnect ¶
type TcpClient ¶
type TcpClient struct {
// contains filtered or unexported fields
}
func NewTcpClient ¶
func NewTcpClientCustomParser ¶
func NewTcpClientCustomParser(address string, port uint16, parser CanFrameParser) *TcpClient
func (*TcpClient) Disconnect ¶
Click to show internal directories.
Click to hide internal directories.