github.com/blueinnovationsgroup/can-go@v0.0.0-20230518195432-d0567cda0028/pkg/dbc/independent_signals.go (about) 1 package dbc 2 3 // Independent signals constants. 4 // 5 // DBC files may contain a special message with the following message name and message ID. 6 // 7 // This message will have size 0 and may contain duplicate signal names. 8 const ( 9 // IndependentSignalsMessageName is the message name used by the special independent signals message. 10 IndependentSignalsMessageName Identifier = "VECTOR__INDEPENDENT_SIG_MSG" 11 // IndependentSignalsMessageName is the message ID used by the special independent signals message. 12 IndependentSignalsMessageID MessageID = 0xc0000000 13 // IndependentSignalsMessageSize is the size used by the special independent signals message. 14 IndependentSignalsMessageSize = 0 15 ) 16 17 // IsIndependentSignalsMessage returns true if m is the special independent signals message. 18 func IsIndependentSignalsMessage(m *MessageDef) bool { 19 return m.Name == IndependentSignalsMessageName && 20 m.MessageID == IndependentSignalsMessageID && 21 m.Size == IndependentSignalsMessageSize 22 }