can

package
v0.0.0-...-11aac9a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Closer

type Closer interface {
	CloseChannel() error
}

type RawMessage

type RawMessage struct {
	// Timestamp of receipt of CAN Message
	Timestamp time.Time
	// Message priority, 0 is highest priority [id >> 26]
	Priority uint8
	// Parameter group number/name id [(id & 0x3FFFFFF) >> 8]
	Pgn uint32
	// Sender ID [id & 0xFF]
	Source uint8
	// Destination of message. If the PF field (bits 24:17 of the
	// ID) are >= 0xF0, than dst is 255 (broadcast). Otherwise
	// use the FS field (bits 16:9 of the ID) as the destination
	// address
	Destination uint8
	// number of bytes which make up the frame
	Length uint8
	Data   []byte
}

func (*RawMessage) Print

func (msg *RawMessage) Print(verbose bool) (s string)

type ReadWriter

type ReadWriter interface {
	Reader
	Writer
}

type Reader

type Reader interface {
	Read() (*RawMessage, error)
}

type Writer

type Writer interface {
	Write([]byte) (int, error)
}

Jump to

Keyboard shortcuts

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