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

Function CreateDataBytes

lib/mdflib/mdflib/src/ethconfigadapter.cpp:45–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 }
44}
45void CreateDataBytes(mdf::IChannel& cn_frame,uint16_t byte_offset) {
46 std::ostringstream name;
47 name << cn_frame.Name() << ".DataBytes";
48 if (mdf::IChannel* frame_bytes = cn_frame.CreateChannelComposition(name.str());
49 frame_bytes != nullptr) {
50 frame_bytes->Type(mdf::ChannelType::VariableLength);
51 frame_bytes->BitCount(64);
52 frame_bytes->Sync(mdf::ChannelSyncType::None);
53 frame_bytes->DataType(mdf::ChannelDataType::ByteArray);
54 frame_bytes->Flags(mdf::CnFlag::BusEvent);
55 frame_bytes->ByteOffset(byte_offset);
56 frame_bytes->BitOffset(0);
57 }
58
59}
60
61} //end namespace
62

Callers 4

CreateFrameChannelsMethod · 0.85

Calls 9

NameMethod · 0.45
TypeMethod · 0.45
BitCountMethod · 0.45
SyncMethod · 0.45
DataTypeMethod · 0.45
FlagsMethod · 0.45
ByteOffsetMethod · 0.45
BitOffsetMethod · 0.45

Tested by

no test coverage detected