Message¶
-
class
canlib.kvadblib.
Message
(db, handle, name=None, id=None, flags=None, dlc=None, comment=None)[source]¶ Database message, holds signals.
-
bind
(frame=None)[source]¶ Bind this message to a frame
Creates a new BoundMessage object representing this message bound to the given Frame object, or a new Frame object if
frame
isNone
.
-
comment
¶ Comment message
Type: str
-
delete_signal
(signal)[source]¶ Delete signal from message.
Parameters: signal ( Signal
) – signal to be deleted
-
dlc
¶ The message dlc
Type: int
-
flags
¶ The message flags
Type: MessageFlag
-
get_attribute_value
(name)[source]¶ Return attribute value
If the attribute is not set on the message, we return the attribute definition default value.
Changed in version 1.18: When an EnumAttribute is not set, the default value will now be returned as
int
(instead ofEnumValue
with emptyname
).
-
id
¶ The message identifier
Type: int
-
name
¶ The message name
Type: str
-
new_signal
(name, type=<SignalType.UNSIGNED: 2>, byte_order=<SignalByteOrder.INTEL: 0>, mode=<SignalMultiplexMode.SIGNAL: 0>, representation=None, size=None, scaling=ValueScaling(factor=1, offset=0), limits=None, unit=None, comment=None, enums={})[source]¶ Create and add a new signal to the message.
-
qualified_name
¶ The qualified message name
Returns database and message names separated by a dot.
Type: str
-