Versions in this module Expand all Collapse all v1 v1.0.1 Apr 3, 2023 Changes in this version + type Database struct + Messages []*Message + Nodes []*Node + SourceFile string + Version string + func (d *Database) Message(id uint32) (*Message, bool) + func (d *Database) Name() string + func (d *Database) Node(nodeName string) (*Node, bool) + func (d *Database) Signal(messageID uint32, signalName string) (*Signal, bool) + type Message struct + CycleTime time.Duration + DelayTime time.Duration + Description string + ID uint32 + IsExtended bool + Length uint8 + Name string + SendType SendType + SenderNode string + Signals []*Signal + func (m *Message) MultiplexerSignal() (*Signal, bool) + type Node struct + Description string + Name string + type SendType uint8 + const SendTypeCyclic + const SendTypeEvent + const SendTypeNone + func (i SendType) String() string + func (s *SendType) UnmarshalString(str string) error + type Signal struct + DefaultValue int + Description string + IsBigEndian bool + IsMultiplexed bool + IsMultiplexer bool + IsSigned bool + Length uint8 + Max float64 + Min float64 + MultiplexerValue uint + Name string + Offset float64 + ReceiverNodes []string + Scale float64 + Start uint8 + Unit string + ValueDescriptions []*ValueDescription + func (s *Signal) FromPhysical(physical float64) float64 + func (s *Signal) MarshalBool(d *can.Data, value bool) + func (s *Signal) MarshalSigned(d *can.Data, value int64) + func (s *Signal) MarshalUnsigned(d *can.Data, value uint64) + func (s *Signal) MaxSigned() int64 + func (s *Signal) MaxUnsigned() uint64 + func (s *Signal) MinSigned() int64 + func (s *Signal) SaturatedCastSigned(value int64) int64 + func (s *Signal) SaturatedCastUnsigned(value uint64) uint64 + func (s *Signal) ToPhysical(value float64) float64 + func (s *Signal) UnmarshalBool(d can.Data) bool + func (s *Signal) UnmarshalPhysical(d can.Data) float64 + func (s *Signal) UnmarshalSigned(d can.Data) int64 + func (s *Signal) UnmarshalUnsigned(d can.Data) uint64 + func (s *Signal) UnmarshalValueDescription(d can.Data) (string, bool) + func (s *Signal) ValueDescription(value int64) (string, bool) + type ValueDescription struct + Description string + Value int64