isotp

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Jul 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 int64
View Source
var TXID int64

Functions

This section is empty.

Types

type Address

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

func NewAddress

func NewAddress(rxid, txid int64) Address

type AnyConn

type AnyConn interface {
	Empty_rxqueue()
	Empty_txqueue()
	Send(payload []byte)
	Wait_frame() []byte
	Send_and_grant_flow_request(payload []byte, length int) []byte
	Send_and_wait_for_reply(payload []byte) []byte
	Send_and_no_wait_for_reply(payload []byte) []byte
}

type IsotpConnection

type IsotpConnection struct {
	Stack *Transport
	// contains filtered or unexported fields
}

func NewIsotpConnection

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

func (*IsotpConnection) Empty_rxqueue

func (ic *IsotpConnection) Empty_rxqueue()

func (*IsotpConnection) Empty_txqueue

func (ic *IsotpConnection) Empty_txqueue()

func (*IsotpConnection) Open added in v0.0.27

func (ic *IsotpConnection) Open()

func (*IsotpConnection) Send

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

func (*IsotpConnection) Send_and_grant_flow_request added in v0.0.29

func (ic *IsotpConnection) Send_and_grant_flow_request(payload []byte, length int) []byte

func (*IsotpConnection) Send_and_no_wait_for_reply added in v0.0.31

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

func (*IsotpConnection) Send_and_wait_for_reply added in v0.0.29

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

func (*IsotpConnection) Wait_frame

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

type Message

type Message struct {
	Id      int64
	Payload []byte
	// contains filtered or unexported fields
}

func NewMessage

func NewMessage(id int64, payload []byte) Message

func (Message) ToBytes added in v0.0.27

func (m Message) ToBytes() []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 {
	Stmin     int
	Blocksize int
	// 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) Send added in v0.0.27

func (t *Transport) Send(data []byte)

Jump to

Keyboard shortcuts

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