can

package module
v0.0.0-...-96b7907 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Frame

type Frame struct {
	CanID uint32
	DLC   uint32
	Data  []byte
}

type ISOTPConn

type ISOTPConn struct {
	// contains filtered or unexported fields
}

func Dial

func Dial(iface string, srcID, dstID uint32) (*ISOTPConn, error)

func (ISOTPConn) Close

func (c ISOTPConn) Close() error

func (ISOTPConn) Read

func (c ISOTPConn) Read(p []byte) (int, error)

func (ISOTPConn) Write

func (c ISOTPConn) Write(p []byte) (int, error)

type Iface

type Iface struct {
	Name string
	Fd   int
}

func NewRawInterface

func NewRawInterface(ifName string) (*Iface, error)

func (Iface) RecvFrame

func (i Iface) RecvFrame() (*Frame, error)

func (Iface) SendFrame

func (i Iface) SendFrame(frame *Frame) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL