linux

package
v0.1.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CAN_EFF_FLAG = 0x80000000
	CAN_RTR_FLAG = 0x40000000
	CAN_ERR_FLAG = 0x20000000
	CAN_SFF_MASK = 0x7ff
	CAN_EFF_MASK = 0x1fffffff
	CAN_ERR_MASK = 0x1fffffff

	CANFD_BRS = 0x1
	CANFD_ESI = 0x2

	CAN_MTU   = 0x10
	CANFD_MTU = 0x48

	CAN_ERR_TX_TIMEOUT = 0x1
	CAN_ERR_LOSTARB    = 0x2
	CAN_ERR_CRTL       = 0x4
	CAN_ERR_PROT       = 0x8
	CAN_ERR_TRX        = 0x10
	CAN_ERR_ACK        = 0x20
	CAN_ERR_BUSOFF     = 0x40
	CAN_ERR_BUSERROR   = 0x80
	CAN_ERR_RESTARTED  = 0x100

	CAN_ERR_CRTL_UNSPEC      = 0x0
	CAN_ERR_CRTL_RX_OVERFLOW = 0x1
	CAN_ERR_CRTL_TX_OVERFLOW = 0x2
	CAN_ERR_CRTL_RX_WARNING  = 0x4
	CAN_ERR_CRTL_TX_WARNING  = 0x8
	CAN_ERR_CRTL_RX_PASSIVE  = 0x10
	CAN_ERR_CRTL_TX_PASSIVE  = 0x20
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CanFrame

type CanFrame struct {
	Id      uint32
	Dlc     uint8
	X__pad  uint8
	X__res0 uint8
	X__res1 uint8
	Data    [8]uint8
}

type CanfdFrame

type CanfdFrame struct {
	Id      uint32
	Len     uint8
	Flags   uint8
	X__res0 uint8
	X__res1 uint8
	Data    [64]uint8
}

Jump to

Keyboard shortcuts

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