MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / ExtendedId

Method ExtendedId

lib/mdflib/mdflib/src/canmessage.cpp:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47uint32_t CanMessage::CanId() const { return message_id_ & ~kExtendedBit; }
48
49void CanMessage::ExtendedId(bool extended) {
50 if (extended) {
51 message_id_ |= kExtendedBit;
52 } else {
53 message_id_ &= ~kExtendedBit;
54 }
55}
56
57bool CanMessage::ExtendedId() const {
58 return (message_id_ & kExtendedBit) != 0;

Callers 5

TEST_FFunction · 0.80
EXPORTFEATUREFUNCFunction · 0.80
setMethod · 0.80
getMethod · 0.80
ParseCanMessageMethod · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64