SI

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Header blocks.Header
	Link   Link
	Data   Data
}

func New

func New(file *os.File, version uint16, startAdress int64) *Block

func (*Block) BlankBlock

func (b *Block) BlankBlock() *Block

func (*Block) BusType

func (b *Block) BusType() string

GetBusType returns classification of used bus (should be "NONE" for si_type ≥ 3)

- NONE: no bus

- OTHER: unknown or not fit

- CAN,

- LIN,

- MOST,

- FLEXRAY,

- K_LINE,

- ETHERNET,

- USB

func (*Block) Comment

func (b *Block) Comment(file *os.File) string

func (*Block) Flag

func (b *Block) Flag() string

GetFlag returns if source is a simulation

func (*Block) Name

func (b *Block) Name(file *os.File) string

func (*Block) Path

func (b *Block) Path(file *os.File) string

GetPath returns human readable string containing additional information about the source

func (*Block) Type

func (b *Block) Type() string

GetType returns classification of source

- OTHER: unknown or not fit

- ECU: ECU

- BUS: Bus

- I/O: I/O device

- TOOL: software generated

- USER: user interaction/input

type Data

type Data struct {
	//Source type classification
	Type uint8

	//Bus type classification of used bus
	BusType  uint8
	Flags    uint8
	Reserved [5]byte
}
type Link struct {
	//Pointer to TXBLOCK that represent indentification name
	TxName int64

	//Pointer to TXBLOCK path
	TxPath int64

	//Pointer to comment and additional information (TXBLOCK or MDBLOCK)
	MdComment int64
}

type SourceInfo

type SourceInfo struct {
	Name    string
	Path    string
	Comment string
	Type    string
	BusType string
	Flag    string
}

func Get

func Get(file *os.File, version uint16, address int64) SourceInfo

Jump to

Keyboard shortcuts

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