Documentation ¶
Overview ¶
Package pkg provides utilities for the cli
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attribute ¶ added in v0.2.0
type Attribute struct { Int *AttributeInt `json:"int,omitempty"` String *AttributeString `json:"string,omitempty"` Enum *AttributeEnum `json:"enum,omitempty"` // contains filtered or unexported fields }
type AttributeAssignments ¶ added in v0.2.0
type AttributeEnum ¶ added in v0.2.0
type AttributeInt ¶ added in v0.2.0
type AttributeString ¶ added in v0.2.0
type AttributeString struct {
Default string `json:"default"`
}
type CanModel ¶
type CanModel struct { Version string `json:"version"` Boundrate uint32 `json:"boundrate"` Nodes map[string]*Node `json:"nodes"` GeneralAttributes map[string]*Attribute `json:"general_attributes"` NodeAttributes map[string]*NodeAttribute `json:"node_attributes"` MessageAttributes map[string]*MessageAttribute `json:"message_attributes"` SignalAttributes map[string]*SignalAttribute `json:"signal_attributes"` Messages map[string]*Message `json:"messages"` }
CanModel represents the CAN model.
type DBCReader ¶ added in v0.2.0
type DBCReader struct {
// contains filtered or unexported fields
}
func NewDBCReader ¶ added in v0.2.0
func NewDBCReader() *DBCReader
type DBCWriter ¶ added in v0.2.0
type DBCWriter struct{}
func NewDBCWriter ¶ added in v0.2.0
func NewDBCWriter() *DBCWriter
type JsonReader ¶ added in v0.2.0
type JsonReader struct{}
func NewJsonReader ¶ added in v0.2.0
func NewJsonReader() *JsonReader
type JsonWriter ¶ added in v0.2.0
type JsonWriter struct{}
func NewJsonWriter ¶ added in v0.2.0
func NewJsonWriter() *JsonWriter
type Message ¶
type Message struct { *AttributeAssignments ID uint32 `json:"id"` Description string `json:"description,omitempty"` Length uint32 `json:"length"` Sender string `json:"sender,omitempty"` Signals map[string]*Signal `json:"signals"` // contains filtered or unexported fields }
Message represents a CAN message.
func (*Message) HasDescription ¶
HasDescription returns true if the message has a description.
type MessageAttribute ¶ added in v0.2.0
type MessageAttribute struct { *Attribute // contains filtered or unexported fields }
type Node ¶
type Node struct { *AttributeAssignments Description string `json:"description,omitempty"` // contains filtered or unexported fields }
Node represents a CAN node.
func (*Node) HasDescription ¶
HasDescription returns true if the node has a description.
type NodeAttribute ¶ added in v0.2.0
type NodeAttribute struct { *Attribute // contains filtered or unexported fields }
type Signal ¶
type Signal struct { *AttributeAssignments Description string `json:"description,omitempty"` MuxSwitch uint32 `json:"mux_switch,omitempty"` StartBit uint32 `json:"start_bit"` Size uint32 `json:"size"` BigEndian bool `json:"big_endian,omitempty"` Signed bool `json:"signed,omitempty"` Unit string `json:"unit,omitempty"` Receivers []string `json:"receivers,omitempty"` Scale float64 `json:"scale"` Offset float64 `json:"offset"` Min float64 `json:"min"` Max float64 `json:"max"` Bitmap map[string]uint32 `json:"bitmap,omitempty"` MuxGroup map[string]*Signal `json:"mux_group,omitempty"` // contains filtered or unexported fields }
Signal represents a CAN signal in a message.
func (*Signal) HasDescription ¶
HasDescription returns true if the signal has a description.
func (*Signal) IsMultiplexor ¶
IsMultiplexor returns true if the signal is a multiplexor.
type SignalAttribute ¶ added in v0.2.0
type SignalAttribute struct { *Attribute // contains filtered or unexported fields }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.