MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / CombineBusID

Method CombineBusID

src/plugin/bus/src/AFCBusModule.cpp:216–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216int AFCBusModule::CombineBusID(const ARK_APP_TYPE app_type, const uint8_t inst_id)
217{
218 ARK_ASSERT_RET_VAL(app_type > ARK_APP_TYPE::ARK_APP_DEFAULT && app_type < ARK_APP_TYPE::ARK_APP_MAX, 0);
219
220 int self_bus = GetSelfBusID();
221 AFBusAddr self_bus_addr(self_bus);
222 AFBusAddr target_bus_addr(self_bus_addr.channel_id, self_bus_addr.zone_id, static_cast<uint8_t>(app_type), inst_id);
223 return target_bus_addr.bus_id;
224}
225
226bool AFCBusModule::GetTargetBusRelations(std::vector<ARK_APP_TYPE>& target_list)
227{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected