isotp

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const CONSECUTIVE = "CONSECUTIVE"
View Source
const CONTINUE = "CONTINUE"
View Source
const Extended_11bits = 3
View Source
const Extended_29bits = 4
View Source
const FIRST = "FIRST"
View Source
const FLOW = "FLOW"
View Source
const Functional = 1
View Source
const IDLE = "IDLE"
View Source
const Mixed_11bits = 5
View Source
const Mixed_29bits = 6
View Source
const NormalFixed_29bits = 2
View Source
const Normal_11bits = 0
View Source
const Normal_29bits = 1
View Source
const OVERFLOW = "OVERFLOW"
View Source
const Physical = 0
View Source
const SINGLE = "SINGLE"
View Source
const TRANSMIT = "TRANSMIT"
View Source
const WAIT = "WAIT"

Variables

View Source
var RXID int
View Source
var TXID int

Functions

This section is empty.

Types

type Address

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

func NewAddress

func NewAddress(rxid, txid int) Address

type AnyConn added in v0.0.11

type AnyConn interface {
	Empty_rxqueue()
	Empty_txqueue()
	Send(payload []byte)
	Wait_frame() []byte
}

type IsotpConnection added in v0.0.10

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

func NewIsotpConnection added in v0.0.10

func NewIsotpConnection(rx, tx int, rxfn func() (Message, bool),
	txfn func(msg Message)) *IsotpConnection

func (*IsotpConnection) Empty_rxqueue added in v0.0.12

func (ic *IsotpConnection) Empty_rxqueue()

func (*IsotpConnection) Empty_txqueue added in v0.0.12

func (ic *IsotpConnection) Empty_txqueue()

func (*IsotpConnection) Send added in v0.0.12

func (ic *IsotpConnection) Send(payload []byte)

func (*IsotpConnection) Wait_frame added in v0.0.12

func (ic *IsotpConnection) Wait_frame() []byte

type Message

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

func NewMessage

func NewMessage(arbitration_id int, payload []byte) Message

func (Message) GetData added in v0.0.6

func (m Message) GetData() []byte

type PDU

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

func NewPDU

func NewPDU(msg Message, start_of_data int, data_length int) PDU

type Timer

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

func NewTimer

func NewTimer(timeout float32) *Timer

type Transport

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

func NewTransport

func NewTransport(a Address, rxfn func() (Message, bool), txfn func(m Message)) *Transport

func (*Transport) Process

func (t *Transport) Process()

func (*Transport) Recv

func (t *Transport) Recv() []byte

func (*Transport) Recv2

func (t *Transport) Recv2() []byte

Jump to

Keyboard shortcuts

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