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

Function CreateSource

lib/mdflib/mdflib/src/ethconfigadapter.cpp:16–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace {
15
16void CreateSource(mdf::IChannel& cn_frame) {
17 std::ostringstream name;
18 name << cn_frame.Name() << ".Source";
19 if (mdf::IChannel* source = cn_frame.CreateChannelComposition(name.str());
20 source != nullptr) {
21 source->Type(mdf::ChannelType::FixedLength);
22 source->BitCount(48);
23 source->Sync(mdf::ChannelSyncType::None);
24 source->DataType(mdf::ChannelDataType::ByteArray);
25 source->Flags(mdf::CnFlag::BusEvent);
26 source->ByteOffset(9);
27 source->BitOffset(0);
28 }
29}
30
31void CreateDestination(mdf::IChannel& cn_frame) {
32 std::ostringstream name;

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