Versions in this module Expand all Collapse all v0 v0.0.2 May 18, 2024 v0.0.1 May 6, 2024 Changes in this version + const CanInterfaceDefaultName + const CanbusBufferSize + const SerialCanDataBits + const SerialCanDefaultBaudrate + const SerialCanDefaultPort + const SerialCanParity + const SerialCanStopBits + const TCP_CAN_DEFAULT_PORT + const TcpCanNetworkType + type CanBus interface + Connect func(wg *sync.WaitGroup) (<-chan *can.Frame, error) + Disconnect func() error + Send func(message *can.Frame) error + type CanFrameParser interface + Marshal func(*can.Frame) []byte + Unmarshal func(in []byte) *can.Frame + type NetworkIf struct + func NewIface(iface string) *NetworkIf + func (i *NetworkIf) Connect(wg *sync.WaitGroup) (<-chan *can.Frame, error) + func (i *NetworkIf) Disconnect() error + func (i *NetworkIf) Send(message *can.Frame) error + type Serial struct + func NewSerial(port string, baudrate int) *Serial + func NewSerialCustomParser(port string, baudrate int, parser CanFrameParser) *Serial + func (s *Serial) Connect(wg *sync.WaitGroup) (<-chan *can.Frame, error) + func (s *Serial) Disconnect() error + func (s *Serial) Send(message *can.Frame) error + type TcpClient struct + func NewTcpClient(address string, port uint16) *TcpClient + func NewTcpClientCustomParser(address string, port uint16, parser CanFrameParser) *TcpClient + func (c *TcpClient) Connect(wg *sync.WaitGroup) (<-chan *can.Frame, error) + func (c *TcpClient) Disconnect() error + func (c *TcpClient) Send(message *can.Frame) error