Versions in this module Expand all Collapse all v1 v1.0.1 Apr 26, 2024 v1.0.0 Apr 16, 2024 Changes in this version + const IndependentSignalsMessageID + const IndependentSignalsMessageName + const IndependentSignalsMessageSize + func IsIndependentSignalsMessage(m *MessageDef) bool + type AccessType string + const AccessTypeRead + const AccessTypeReadWrite + const AccessTypeUnrestricted + const AccessTypeWrite + func (a AccessType) Validate() error + type AttributeDef struct + EnumValues []string + MaximumFloat float64 + MaximumInt int64 + MinimumFloat float64 + MinimumInt int64 + Name Identifier + ObjectType ObjectType + Pos scanner.Position + Type AttributeValueType + func (d *AttributeDef) Position() scanner.Position + type AttributeDefaultValueDef struct + AttributeName Identifier + DefaultFloatValue float64 + DefaultIntValue int64 + DefaultStringValue string + Pos scanner.Position + func (d *AttributeDefaultValueDef) Position() scanner.Position + type AttributeValueForObjectDef struct + AttributeName Identifier + EnvironmentVariableName Identifier + FloatValue float64 + IntValue int64 + MessageID MessageID + NodeName Identifier + ObjectType ObjectType + Pos scanner.Position + SignalName Identifier + StringValue string + func (d *AttributeValueForObjectDef) Position() scanner.Position + type AttributeValueType string + const AttributeValueTypeEnum + const AttributeValueTypeFloat + const AttributeValueTypeHex + const AttributeValueTypeInt + const AttributeValueTypeString + func (a AttributeValueType) Validate() error + type BitTimingDef struct + BTR1 uint64 + BTR2 uint64 + BaudRate uint64 + Pos scanner.Position + func (d *BitTimingDef) Position() scanner.Position + type CommentDef struct + Comment string + EnvironmentVariableName Identifier + MessageID MessageID + NodeName Identifier + ObjectType ObjectType + Pos scanner.Position + SignalName Identifier + func (d *CommentDef) Position() scanner.Position + type Def interface + Position func() scanner.Position + type EnvironmentVariableDataDef struct + DataSize uint64 + EnvironmentVariableName Identifier + Pos scanner.Position + func (d *EnvironmentVariableDataDef) Position() scanner.Position + type EnvironmentVariableDef struct + AccessNodes []Identifier + AccessType AccessType + ID uint64 + InitialValue float64 + Maximum float64 + Minimum float64 + Name Identifier + Pos scanner.Position + Type EnvironmentVariableType + Unit string + func (d *EnvironmentVariableDef) Position() scanner.Position + type EnvironmentVariableType uint64 + const EnvironmentVariableTypeFloat + const EnvironmentVariableTypeInteger + const EnvironmentVariableTypeString + func (e EnvironmentVariableType) Validate() error + type Error interface + Position func() scanner.Position + Reason func() string + type File struct + Data []byte + Defs []Def + Name string + type Identifier string + const NodePlaceholder + func (id Identifier) Validate() (err error) + type Keyword string + const KeywordAttribute + const KeywordAttributeDefault + const KeywordAttributeValue + const KeywordBitTiming + const KeywordComment + const KeywordEnvironmentVariable + const KeywordEnvironmentVariableData + const KeywordMessage + const KeywordMessageTransmitters + const KeywordNewSymbols + const KeywordNodes + const KeywordSignal + const KeywordSignalGroup + const KeywordSignalType + const KeywordSignalValueType + const KeywordValueDescriptions + const KeywordValueTable + const KeywordVersion + type MessageDef struct + MessageID MessageID + Name Identifier + Pos scanner.Position + Signals []SignalDef + Size uint64 + Transmitter Identifier + func (d *MessageDef) Position() scanner.Position + type MessageID uint32 + func (m MessageID) IsExtended() bool + func (m MessageID) ToCAN() uint32 + func (m MessageID) Validate() error + type MessageTransmittersDef struct + MessageID MessageID + Pos scanner.Position + Transmitters []Identifier + func (d *MessageTransmittersDef) Position() scanner.Position + type NewSymbolsDef struct + Pos scanner.Position + Symbols []Keyword + func (d *NewSymbolsDef) Position() scanner.Position + type NodesDef struct + NodeNames []Identifier + Pos scanner.Position + func (d *NodesDef) Position() scanner.Position + type ObjectType string + const ObjectTypeEnvironmentVariable + const ObjectTypeMessage + const ObjectTypeNetworkNode + const ObjectTypeSignal + const ObjectTypeUnspecified + func (o ObjectType) Validate() error + type Parser struct + func NewParser(filename string, data []byte) *Parser + func (p *Parser) Defs() []Def + func (p *Parser) File() *File + func (p *Parser) Parse() (err Error) + type SignalDef struct + Factor float64 + IsBigEndian bool + IsMultiplexed bool + IsMultiplexerSwitch bool + IsSigned bool + Maximum float64 + Minimum float64 + MultiplexerSwitch uint64 + Name Identifier + Offset float64 + Pos scanner.Position + Receivers []Identifier + Size uint64 + StartBit uint64 + Unit string + func (d *SignalDef) Position() scanner.Position + type SignalValueType uint64 + const SignalValueTypeFloat32 + const SignalValueTypeFloat64 + const SignalValueTypeInt + func (s SignalValueType) Validate() error + type SignalValueTypeDef struct + MessageID MessageID + Pos scanner.Position + SignalName Identifier + SignalValueType SignalValueType + func (d *SignalValueTypeDef) Position() scanner.Position + type UnknownDef struct + Keyword Keyword + Pos scanner.Position + func (d *UnknownDef) Position() scanner.Position + type ValueDescriptionDef struct + Description string + Pos scanner.Position + Value float64 + func (d *ValueDescriptionDef) Position() scanner.Position + type ValueDescriptionsDef struct + EnvironmentVariableName Identifier + MessageID MessageID + ObjectType ObjectType + Pos scanner.Position + SignalName Identifier + ValueDescriptions []ValueDescriptionDef + func (d *ValueDescriptionsDef) Position() scanner.Position + type ValueTableDef struct + Pos scanner.Position + TableName Identifier + ValueDescriptions []ValueDescriptionDef + func (d *ValueTableDef) Position() scanner.Position + type VersionDef struct + Pos scanner.Position + Version string + func (d *VersionDef) Position() scanner.Position