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

Method CreateSbcChannel

lib/mdflib/mdflib/src/mostconfigadapter.cpp:471–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469}
470
471void MostConfigAdapter::CreateSbcChannel(IChannel& parent_channel,
472 uint32_t byte_offset) const {
473 std::ostringstream name;
474 name << parent_channel.Name() << ".SBC";
475
476 if (IChannel* sbc = CreateBitsChannel(parent_channel, name.str(),
477 byte_offset, 0, 16);
478 sbc != nullptr) {
479 sbc->Flags(CnFlag::BusEvent);
480 sbc->Unit("B");
481
482 CnComment cn_comment("Synchronous Bandwidth Control. Width for synchronous area");
483 sbc->SetCnComment(cn_comment);
484 }
485}
486
487void MostConfigAdapter::CreateDeviceCountChannel(IChannel& parent_channel,
488 uint32_t byte_offset) const {

Callers

nothing calls this directly

Calls 4

SetCnCommentMethod · 0.80
NameMethod · 0.45
FlagsMethod · 0.45
UnitMethod · 0.45

Tested by

no test coverage detected