GCC Code Coverage Report


Directory: ./
File: build-fprime-automatic-native/Ref/Top/RefTopologyAc.cpp
Date: 2026-09-23 22:13:35
Exec Total Coverage
Lines: 3137 7159 43.8%
Functions: 316 561 56.3%
Branches: 520 1553 33.5%

Line Branch Exec Source
1 // ======================================================================
2 // \title RefTopologyAc.cpp
3 // \author Generated by fpp-to-cpp
4 // \brief cpp file for Ref topology
5 // ======================================================================
6
7 #include "Ref/Top/RefTopologyAc.hpp"
8
9 // ----------------------------------------------------------------------
10 // Component instances
11 // ----------------------------------------------------------------------
12
13 namespace CdhCore {
14
15 Svc::CommandDispatcher cmdDisp(FW_OPTIONAL_NAME("CdhCore.cmdDisp"));
16
17 }
18
19 namespace CdhCore {
20
21 Svc::EventManager events(FW_OPTIONAL_NAME("CdhCore.events"));
22
23 }
24
25 namespace CdhCore {
26
27 Svc::AssertFatalAdapter fatalAdapter(FW_OPTIONAL_NAME("CdhCore.fatalAdapter"));
28
29 }
30
31 namespace CdhCore {
32
33 Svc::FatalHandler fatalHandler(FW_OPTIONAL_NAME("CdhCore.fatalHandler"));
34
35 }
36
37 namespace CdhCore {
38
39 Svc::Health health(FW_OPTIONAL_NAME("CdhCore.health"));
40
41 }
42
43 namespace CdhCore {
44
45 Svc::PassiveTextLogger textLogger(FW_OPTIONAL_NAME("CdhCore.textLogger"));
46
47 }
48
49 namespace CdhCore {
50
51 Svc::TlmChan tlmSend(FW_OPTIONAL_NAME("CdhCore.tlmSend"));
52
53 }
54
55 namespace CdhCore {
56
57 Svc::Version version(FW_OPTIONAL_NAME("CdhCore.version"));
58
59 }
60
61 namespace ComCcsds {
62
63 Svc::ComAggregator aggregator(FW_OPTIONAL_NAME("ComCcsds.aggregator"));
64
65 }
66
67 namespace ComCcsds {
68
69 Svc::Ccsds::ApidManager apidManager(FW_OPTIONAL_NAME("ComCcsds.apidManager"));
70
71 }
72
73 namespace ComCcsds {
74
75 Svc::ComQueue comQueue(FW_OPTIONAL_NAME("ComCcsds.comQueue"));
76
77 }
78
79 namespace ComCcsds {
80
81 Svc::ComStub comStub(FW_OPTIONAL_NAME("ComCcsds.comStub"));
82
83 }
84
85 namespace ComCcsds {
86
87 Svc::BufferManager commsBufferManager(FW_OPTIONAL_NAME("ComCcsds.commsBufferManager"));
88
89 }
90
91 namespace ComCcsds {
92
93 Svc::FprimeRouter fprimeRouter(FW_OPTIONAL_NAME("ComCcsds.fprimeRouter"));
94
95 }
96
97 namespace ComCcsds {
98
99 Svc::FrameAccumulator frameAccumulator(FW_OPTIONAL_NAME("ComCcsds.frameAccumulator"));
100
101 }
102
103 namespace ComCcsds {
104
105 Svc::Ccsds::TmFramer framer(FW_OPTIONAL_NAME("ComCcsds.framer"));
106
107 }
108
109 namespace ComCcsds {
110
111 Svc::Ccsds::SpacePacketDeframer spacePacketDeframer(FW_OPTIONAL_NAME("ComCcsds.spacePacketDeframer"));
112
113 }
114
115 namespace ComCcsds {
116
117 Svc::Ccsds::SpacePacketFramer spacePacketFramer(FW_OPTIONAL_NAME("ComCcsds.spacePacketFramer"));
118
119 }
120
121 namespace ComCcsds {
122
123 Svc::Ccsds::TcDeframer tcDeframer(FW_OPTIONAL_NAME("ComCcsds.tcDeframer"));
124
125 }
126
127 namespace DataProducts {
128
129 Svc::BufferAccumulator dpBufferAccumulator(FW_OPTIONAL_NAME("DataProducts.dpBufferAccumulator"));
130
131 }
132
133 namespace DataProducts {
134
135 Svc::BufferManager dpBufferManager(FW_OPTIONAL_NAME("DataProducts.dpBufferManager"));
136
137 }
138
139 namespace DataProducts {
140
141 Svc::DpCatalog dpCat(FW_OPTIONAL_NAME("DataProducts.dpCat"));
142
143 }
144
145 namespace DataProducts {
146
147 Svc::DpManager dpMgr(FW_OPTIONAL_NAME("DataProducts.dpMgr"));
148
149 }
150
151 namespace DataProducts {
152
153 Svc::DpWriter dpWriter(FW_OPTIONAL_NAME("DataProducts.dpWriter"));
154
155 }
156
157 namespace FileHandling {
158
159 Svc::FileDownlink fileDownlink(FW_OPTIONAL_NAME("FileHandling.fileDownlink"));
160
161 }
162
163 namespace FileHandling {
164
165 Svc::FileManager fileManager(FW_OPTIONAL_NAME("FileHandling.fileManager"));
166
167 }
168
169 namespace FileHandling {
170
171 Svc::FileUplink fileUplink(FW_OPTIONAL_NAME("FileHandling.fileUplink"));
172
173 }
174
175 namespace FileHandling {
176
177 Svc::PrmDb prmDb(FW_OPTIONAL_NAME("FileHandling.prmDb"));
178
179 }
180
181 namespace Ref {
182
183 Ref::SignalGen SG1(FW_OPTIONAL_NAME("Ref.SG1"));
184
185 }
186
187 namespace Ref {
188
189 Ref::SignalGen SG2(FW_OPTIONAL_NAME("Ref.SG2"));
190
191 }
192
193 namespace Ref {
194
195 Ref::SignalGen SG3(FW_OPTIONAL_NAME("Ref.SG3"));
196
197 }
198
199 namespace Ref {
200
201 Ref::SignalGen SG4(FW_OPTIONAL_NAME("Ref.SG4"));
202
203 }
204
205 namespace Ref {
206
207 Ref::SignalGen SG5(FW_OPTIONAL_NAME("Ref.SG5"));
208
209 }
210
211 namespace Ref {
212
213 Ref::BlockDriver blockDrv(FW_OPTIONAL_NAME("Ref.blockDrv"));
214
215 }
216
217 namespace Ref {
218
219 Svc::CmdSequencer cmdSeq(FW_OPTIONAL_NAME("Ref.cmdSeq"));
220
221 }
222
223 namespace Ref {
224
225 Drv::TcpClient comDriver(FW_OPTIONAL_NAME("Ref.comDriver"));
226
227 }
228
229 namespace Ref {
230
231 Ref::DpDemo dpDemo(FW_OPTIONAL_NAME("Ref.dpDemo"));
232
233 }
234
235 namespace Ref {
236
237 Svc::LinuxTimer linuxTimer(FW_OPTIONAL_NAME("Ref.linuxTimer"));
238
239 }
240
241 namespace Ref {
242
243 Ref::PingReceiver pingRcvr(FW_OPTIONAL_NAME("Ref.pingRcvr"));
244
245 }
246
247 namespace Ref {
248
249 Svc::PosixTime posixTime(FW_OPTIONAL_NAME("Ref.posixTime"));
250
251 }
252
253 namespace Ref {
254
255 Svc::ActiveRateGroup rateGroup1Comp(FW_OPTIONAL_NAME("Ref.rateGroup1Comp"));
256
257 }
258
259 namespace Ref {
260
261 Svc::ActiveRateGroup rateGroup2Comp(FW_OPTIONAL_NAME("Ref.rateGroup2Comp"));
262
263 }
264
265 namespace Ref {
266
267 Svc::ActiveRateGroup rateGroup3Comp(FW_OPTIONAL_NAME("Ref.rateGroup3Comp"));
268
269 }
270
271 namespace Ref {
272
273 Svc::RateGroupDriver rateGroupDriverComp(FW_OPTIONAL_NAME("Ref.rateGroupDriverComp"));
274
275 }
276
277 namespace Ref {
278
279 Ref::RecvBuff recvBuffComp(FW_OPTIONAL_NAME("Ref.recvBuffComp"));
280
281 }
282
283 namespace Ref {
284
285 Ref::SendBuff sendBuffComp(FW_OPTIONAL_NAME("Ref.sendBuffComp"));
286
287 }
288
289 namespace Ref {
290
291 Svc::SystemResources systemResources(FW_OPTIONAL_NAME("Ref.systemResources"));
292
293 }
294
295 namespace Ref {
296
297 Ref::TypeDemo typeDemo(FW_OPTIONAL_NAME("Ref.typeDemo"));
298
299 }
300
301 namespace Ref {
302
303 Svc::WasmSequencer wasmSeq(FW_OPTIONAL_NAME("Ref.wasmSeq"));
304
305 }
306
307 namespace Ref {
308
309 // ----------------------------------------------------------------------
310 // Component configuration objects
311 // ----------------------------------------------------------------------
312
313 namespace ConfigObjects {
314
315 namespace CdhCore_health {
316 Svc::Health::PingEntry pingEntries[NUM_PING_ENTRIES] = {
317 {
318 PingEntries::CdhCore_cmdDisp::WARN,
319 PingEntries::CdhCore_cmdDisp::FATAL,
320 "CdhCore_cmdDisp"
321 },
322 {
323 PingEntries::CdhCore_events::WARN,
324 PingEntries::CdhCore_events::FATAL,
325 "CdhCore_events"
326 },
327 {
328 PingEntries::CdhCore_tlmSend::WARN,
329 PingEntries::CdhCore_tlmSend::FATAL,
330 "CdhCore_tlmSend"
331 },
332 {
333 PingEntries::DataProducts_dpBufferAccumulator::WARN,
334 PingEntries::DataProducts_dpBufferAccumulator::FATAL,
335 "DataProducts_dpBufferAccumulator"
336 },
337 {
338 PingEntries::DataProducts_dpCat::WARN,
339 PingEntries::DataProducts_dpCat::FATAL,
340 "DataProducts_dpCat"
341 },
342 {
343 PingEntries::FileHandling_fileDownlink::WARN,
344 PingEntries::FileHandling_fileDownlink::FATAL,
345 "FileHandling_fileDownlink"
346 },
347 {
348 PingEntries::FileHandling_fileManager::WARN,
349 PingEntries::FileHandling_fileManager::FATAL,
350 "FileHandling_fileManager"
351 },
352 {
353 PingEntries::FileHandling_fileUplink::WARN,
354 PingEntries::FileHandling_fileUplink::FATAL,
355 "FileHandling_fileUplink"
356 },
357 {
358 PingEntries::FileHandling_prmDb::WARN,
359 PingEntries::FileHandling_prmDb::FATAL,
360 "FileHandling_prmDb"
361 },
362 {
363 PingEntries::Ref_blockDrv::WARN,
364 PingEntries::Ref_blockDrv::FATAL,
365 "Ref_blockDrv"
366 },
367 {
368 PingEntries::Ref_cmdSeq::WARN,
369 PingEntries::Ref_cmdSeq::FATAL,
370 "Ref_cmdSeq"
371 },
372 {
373 PingEntries::Ref_pingRcvr::WARN,
374 PingEntries::Ref_pingRcvr::FATAL,
375 "Ref_pingRcvr"
376 },
377 {
378 PingEntries::Ref_rateGroup1Comp::WARN,
379 PingEntries::Ref_rateGroup1Comp::FATAL,
380 "Ref_rateGroup1Comp"
381 },
382 {
383 PingEntries::Ref_rateGroup2Comp::WARN,
384 PingEntries::Ref_rateGroup2Comp::FATAL,
385 "Ref_rateGroup2Comp"
386 },
387 {
388 PingEntries::Ref_rateGroup3Comp::WARN,
389 PingEntries::Ref_rateGroup3Comp::FATAL,
390 "Ref_rateGroup3Comp"
391 },
392 };
393 }
394
395 namespace ComCcsds_commsBufferManager {
396 Svc::BufferManager::BufferBins bins;
397 }
398
399 namespace ComCcsds_frameAccumulator {
400 Svc::FrameDetectors::CcsdsTcFrameDetector frameDetector;
401 }
402
403 namespace DataProducts_dpBufferManager {
404 Svc::BufferManager::BufferBins bins;
405 }
406
407 }
408
409 // ----------------------------------------------------------------------
410 // Helper functions
411 // ----------------------------------------------------------------------
412
413 1 void initComponents(const TopologyState& state) {
414 1 CdhCore::cmdDisp.init(QueueSizes::CdhCore_cmdDisp, InstanceIds::CdhCore_cmdDisp);
415 1 CdhCore::events.init(QueueSizes::CdhCore_events, InstanceIds::CdhCore_events);
416 1 CdhCore::fatalAdapter.init(InstanceIds::CdhCore_fatalAdapter);
417 1 CdhCore::fatalHandler.init(InstanceIds::CdhCore_fatalHandler);
418 1 CdhCore::health.init(QueueSizes::CdhCore_health, InstanceIds::CdhCore_health);
419 1 CdhCore::textLogger.init(InstanceIds::CdhCore_textLogger);
420 1 CdhCore::tlmSend.init(QueueSizes::CdhCore_tlmSend, InstanceIds::CdhCore_tlmSend);
421 1 CdhCore::version.init(InstanceIds::CdhCore_version);
422 1 ComCcsds::aggregator.init(QueueSizes::ComCcsds_aggregator, InstanceIds::ComCcsds_aggregator);
423 1 ComCcsds::apidManager.init(InstanceIds::ComCcsds_apidManager);
424 1 ComCcsds::comQueue.init(QueueSizes::ComCcsds_comQueue, InstanceIds::ComCcsds_comQueue);
425 1 ComCcsds::comStub.init(InstanceIds::ComCcsds_comStub);
426 1 ComCcsds::commsBufferManager.init(InstanceIds::ComCcsds_commsBufferManager);
427 1 ComCcsds::fprimeRouter.init(InstanceIds::ComCcsds_fprimeRouter);
428 1 ComCcsds::frameAccumulator.init(InstanceIds::ComCcsds_frameAccumulator);
429 1 ComCcsds::framer.init(InstanceIds::ComCcsds_framer);
430 1 ComCcsds::spacePacketDeframer.init(InstanceIds::ComCcsds_spacePacketDeframer);
431 1 ComCcsds::spacePacketFramer.init(InstanceIds::ComCcsds_spacePacketFramer);
432 1 ComCcsds::tcDeframer.init(InstanceIds::ComCcsds_tcDeframer);
433 1 DataProducts::dpBufferAccumulator.init(QueueSizes::DataProducts_dpBufferAccumulator, InstanceIds::DataProducts_dpBufferAccumulator);
434 1 DataProducts::dpBufferManager.init(InstanceIds::DataProducts_dpBufferManager);
435 1 DataProducts::dpCat.init(QueueSizes::DataProducts_dpCat, InstanceIds::DataProducts_dpCat);
436 1 DataProducts::dpMgr.init(QueueSizes::DataProducts_dpMgr, InstanceIds::DataProducts_dpMgr);
437 1 DataProducts::dpWriter.init(QueueSizes::DataProducts_dpWriter, InstanceIds::DataProducts_dpWriter);
438 1 FileHandling::fileDownlink.init(QueueSizes::FileHandling_fileDownlink, InstanceIds::FileHandling_fileDownlink);
439 1 FileHandling::fileManager.init(QueueSizes::FileHandling_fileManager, InstanceIds::FileHandling_fileManager);
440 1 FileHandling::fileUplink.init(QueueSizes::FileHandling_fileUplink, InstanceIds::FileHandling_fileUplink);
441 1 FileHandling::prmDb.init(QueueSizes::FileHandling_prmDb, InstanceIds::FileHandling_prmDb);
442 1 Ref::SG1.init(QueueSizes::Ref_SG1, InstanceIds::Ref_SG1);
443 1 Ref::SG2.init(QueueSizes::Ref_SG2, InstanceIds::Ref_SG2);
444 1 Ref::SG3.init(QueueSizes::Ref_SG3, InstanceIds::Ref_SG3);
445 1 Ref::SG4.init(QueueSizes::Ref_SG4, InstanceIds::Ref_SG4);
446 1 Ref::SG5.init(QueueSizes::Ref_SG5, InstanceIds::Ref_SG5);
447 1 Ref::blockDrv.init(QueueSizes::Ref_blockDrv, InstanceIds::Ref_blockDrv);
448 1 Ref::cmdSeq.init(QueueSizes::Ref_cmdSeq, InstanceIds::Ref_cmdSeq);
449 1 Ref::comDriver.init(InstanceIds::Ref_comDriver);
450 1 Ref::dpDemo.init(QueueSizes::Ref_dpDemo, InstanceIds::Ref_dpDemo);
451 1 Ref::linuxTimer.init(InstanceIds::Ref_linuxTimer);
452 1 Ref::pingRcvr.init(QueueSizes::Ref_pingRcvr, InstanceIds::Ref_pingRcvr);
453 1 Ref::posixTime.init(InstanceIds::Ref_posixTime);
454 1 Ref::rateGroup1Comp.init(QueueSizes::Ref_rateGroup1Comp, InstanceIds::Ref_rateGroup1Comp);
455 1 Ref::rateGroup2Comp.init(QueueSizes::Ref_rateGroup2Comp, InstanceIds::Ref_rateGroup2Comp);
456 1 Ref::rateGroup3Comp.init(QueueSizes::Ref_rateGroup3Comp, InstanceIds::Ref_rateGroup3Comp);
457 1 Ref::rateGroupDriverComp.init(InstanceIds::Ref_rateGroupDriverComp);
458 1 Ref::recvBuffComp.init(InstanceIds::Ref_recvBuffComp);
459 1 Ref::sendBuffComp.init(QueueSizes::Ref_sendBuffComp, InstanceIds::Ref_sendBuffComp);
460 1 Ref::systemResources.init(InstanceIds::Ref_systemResources);
461 1 Ref::typeDemo.init(InstanceIds::Ref_typeDemo);
462 1 Ref::wasmSeq.init(QueueSizes::Ref_wasmSeq, InstanceIds::Ref_wasmSeq);
463 1 }
464
465 1 void configComponents(const TopologyState& state) {
466 // Health is supplied a set of ping entires.
467
1/1
✓ Branch 1 taken 1 times.
1 CdhCore::health.setPingEntries(
468 ConfigObjects::CdhCore_health::pingEntries,
469 1 FW_NUM_ARRAY_ELEMENTS(ConfigObjects::CdhCore_health::pingEntries),
470 ConfigConstants::CdhCore_health::HEALTH_WATCHDOG_CODE
471 );
472 // Startup TLM and Config verbosity for Versions
473
1/1
✓ Branch 1 taken 1 times.
1 CdhCore::version.config(true);
474
1/1
✓ Branch 1 taken 1 times.
1 ComCcsds::aggregator.configure(ComCcsdsConfig::Aggregator::enablePacketSpanning);
475 using namespace ComCcsds;
476
1/1
✓ Branch 1 taken 1 times.
1 Svc::ComQueue::QueueConfigurationTable configurationTable;
477
478 // Events (highest-priority)
479 1 configurationTable.entries[Ports_ComPacketQueue::EVENTS].depth = ComCcsdsConfig::QueueDepths::events;
480 1 configurationTable.entries[Ports_ComPacketQueue::EVENTS].priority = ComCcsdsConfig::QueuePriorities::events;
481
482 // Telemetry
483 1 configurationTable.entries[Ports_ComPacketQueue::TELEMETRY].depth = ComCcsdsConfig::QueueDepths::tlm;
484 1 configurationTable.entries[Ports_ComPacketQueue::TELEMETRY].priority = ComCcsdsConfig::QueuePriorities::tlm;
485
486 // File Downlink Queue (buffer queue using NUM_CONSTANTS offset)
487 1 configurationTable.entries[Ports_ComPacketQueue::NUM_CONSTANTS + Ports_ComBufferQueue::FILE].depth = ComCcsdsConfig::QueueDepths::file;
488 1 configurationTable.entries[Ports_ComPacketQueue::NUM_CONSTANTS + Ports_ComBufferQueue::FILE].priority = ComCcsdsConfig::QueuePriorities::file;
489
490 // Allocation identifier is 0 as the MallocAllocator discards it
491
1/1
✓ Branch 1 taken 1 times.
1 ComCcsds::comQueue.configure(configurationTable, 0, ComCcsds::Allocation::memAllocator);
492 1 memset(&ConfigObjects::ComCcsds_commsBufferManager::bins, 0, sizeof(ConfigObjects::ComCcsds_commsBufferManager::bins));
493 1 ConfigObjects::ComCcsds_commsBufferManager::bins.bins[0].bufferSize = ComCcsdsConfig::BuffMgr::commsBuffSize;
494 1 ConfigObjects::ComCcsds_commsBufferManager::bins.bins[0].numBuffers = ComCcsdsConfig::BuffMgr::commsBuffCount;
495 1 ConfigObjects::ComCcsds_commsBufferManager::bins.bins[1].bufferSize = ComCcsdsConfig::BuffMgr::commsFileBuffSize;
496 1 ConfigObjects::ComCcsds_commsBufferManager::bins.bins[1].numBuffers = ComCcsdsConfig::BuffMgr::commsFileBuffCount;
497
1/1
✓ Branch 1 taken 1 times.
1 ComCcsds::commsBufferManager.setup(
498 ComCcsdsConfig::BuffMgr::commsBuffMgrId,
499 0,
500 ComCcsds::Allocation::memAllocator,
501 ConfigObjects::ComCcsds_commsBufferManager::bins
502 );
503
1/1
✓ Branch 1 taken 1 times.
1 ComCcsds::frameAccumulator.configure(
504 ConfigObjects::ComCcsds_frameAccumulator::frameDetector,
505 1,
506 ComCcsds::Allocation::memAllocator,
507 ComCcsdsConfig::BuffMgr::frameAccumulatorSize
508 );
509
2/2
✓ Branch 1 taken 1 times.
✓ Branch 4 taken 1 times.
1 DataProducts::dpBufferAccumulator.allocateQueue(
510 DataProductsConfig::BufferAccumulator::allocatorId,
511 DataProducts::Allocation::memAllocator,
512 DataProductsConfig::BufferAccumulator::maxNumBuffers,
513 Svc::BufferAccumulator_OpState::DRAIN
514 );
515 1 memset(&ConfigObjects::DataProducts_dpBufferManager::bins, 0, sizeof(ConfigObjects::DataProducts_dpBufferManager::bins));
516 1 ConfigObjects::DataProducts_dpBufferManager::bins.bins[0].bufferSize = DataProductsConfig::BuffMgr::dpBufferStoreSize;
517 1 ConfigObjects::DataProducts_dpBufferManager::bins.bins[0].numBuffers = DataProductsConfig::BuffMgr::dpBufferStoreCount;
518
1/1
✓ Branch 1 taken 1 times.
1 DataProducts::dpBufferManager.setup(
519 DataProductsConfig::BuffMgr::dpBufferManagerId,
520 0,
521 DataProducts::Allocation::memAllocator,
522 ConfigObjects::DataProducts_dpBufferManager::bins
523 );
524
1/1
✓ Branch 1 taken 1 times.
1 Fw::FileNameString dpDir(DataProductsConfig::Paths::dpDir);
525
1/1
✓ Branch 1 taken 1 times.
1 Fw::FileNameString dpState(DataProductsConfig::Paths::dpState);
526
1/1
✓ Branch 2 taken 1 times.
1 Os::FileSystem::createDirectory(dpDir.toChar());
527 1 Fw::ExternalArray<Fw::FileNameString> dpDirs(&dpDir, 1);
528
1/1
✓ Branch 1 taken 1 times.
1 DataProducts::dpCat.configure(dpDirs, dpState, 0, DataProducts::Allocation::memAllocator);
529
1/1
✓ Branch 1 taken 1 times.
1 DataProducts::dpWriter.configure(dpDir);
530
1/1
✓ Branch 1 taken 1 times.
1 FileHandling::fileDownlink.configure(
531 FileHandlingConfig::DownlinkConfig::cooldown,
532 FileHandlingConfig::DownlinkConfig::cycleTime,
533 FileHandlingConfig::DownlinkConfig::fileQueueDepth
534 );
535 // Sandbox for downlinked file reads; "/" is unrestricted. Re-configure to restrict.
536
1/1
✓ Branch 1 taken 1 times.
1 FileHandling::fileDownlink.configure(FileHandlingConfig::Paths::sandboxDir);
537 // Sandbox for file-management command paths; "/" is unrestricted. Re-configure to restrict.
538
1/1
✓ Branch 1 taken 1 times.
1 FileHandling::fileManager.configure(FileHandlingConfig::Paths::sandboxDir);
539 // Sandbox for uplinked file writes; "/" is unrestricted. Re-configure to restrict.
540
1/1
✓ Branch 1 taken 1 times.
1 FileHandling::fileUplink.configure(FileHandlingConfig::Paths::sandboxDir);
541
1/1
✓ Branch 1 taken 1 times.
1 FileHandling::prmDb.configure(FileHandlingConfig::Paths::prmDbFile);
542 // Sandbox for all PrmDb file access; "/" is unrestricted. Re-configure to restrict.
543
1/1
✓ Branch 1 taken 1 times.
1 FileHandling::prmDb.configureSandbox(FileHandlingConfig::Paths::sandboxDir);
544
1/1
✓ Branch 2 taken 1 times.
1 wasmSeq.configure(Svc::WasmSequencer::Config(), memAllocator);
545 1 }
546
547 1 void setBaseIds() {
548 1 Ref::dpDemo.setIdBase(BaseIds::Ref_dpDemo);
549 1 CdhCore::cmdDisp.setIdBase(BaseIds::CdhCore_cmdDisp);
550 1 CdhCore::events.setIdBase(BaseIds::CdhCore_events);
551 1 CdhCore::health.setIdBase(BaseIds::CdhCore_health);
552 1 CdhCore::version.setIdBase(BaseIds::CdhCore_version);
553 1 CdhCore::textLogger.setIdBase(BaseIds::CdhCore_textLogger);
554 1 CdhCore::fatalAdapter.setIdBase(BaseIds::CdhCore_fatalAdapter);
555 1 CdhCore::tlmSend.setIdBase(BaseIds::CdhCore_tlmSend);
556 1 CdhCore::fatalHandler.setIdBase(BaseIds::CdhCore_fatalHandler);
557 1 ComCcsds::comQueue.setIdBase(BaseIds::ComCcsds_comQueue);
558 1 ComCcsds::frameAccumulator.setIdBase(BaseIds::ComCcsds_frameAccumulator);
559 1 ComCcsds::commsBufferManager.setIdBase(BaseIds::ComCcsds_commsBufferManager);
560 1 ComCcsds::fprimeRouter.setIdBase(BaseIds::ComCcsds_fprimeRouter);
561 1 ComCcsds::tcDeframer.setIdBase(BaseIds::ComCcsds_tcDeframer);
562 1 ComCcsds::spacePacketDeframer.setIdBase(BaseIds::ComCcsds_spacePacketDeframer);
563 1 ComCcsds::aggregator.setIdBase(BaseIds::ComCcsds_aggregator);
564 1 ComCcsds::framer.setIdBase(BaseIds::ComCcsds_framer);
565 1 ComCcsds::spacePacketFramer.setIdBase(BaseIds::ComCcsds_spacePacketFramer);
566 1 ComCcsds::apidManager.setIdBase(BaseIds::ComCcsds_apidManager);
567 1 ComCcsds::comStub.setIdBase(BaseIds::ComCcsds_comStub);
568 1 DataProducts::dpCat.setIdBase(BaseIds::DataProducts_dpCat);
569 1 DataProducts::dpMgr.setIdBase(BaseIds::DataProducts_dpMgr);
570 1 DataProducts::dpWriter.setIdBase(BaseIds::DataProducts_dpWriter);
571 1 DataProducts::dpBufferManager.setIdBase(BaseIds::DataProducts_dpBufferManager);
572 1 DataProducts::dpBufferAccumulator.setIdBase(BaseIds::DataProducts_dpBufferAccumulator);
573 1 FileHandling::fileUplink.setIdBase(BaseIds::FileHandling_fileUplink);
574 1 FileHandling::fileDownlink.setIdBase(BaseIds::FileHandling_fileDownlink);
575 1 FileHandling::fileManager.setIdBase(BaseIds::FileHandling_fileManager);
576 1 FileHandling::prmDb.setIdBase(BaseIds::FileHandling_prmDb);
577 1 Ref::blockDrv.setIdBase(BaseIds::Ref_blockDrv);
578 1 Ref::rateGroup1Comp.setIdBase(BaseIds::Ref_rateGroup1Comp);
579 1 Ref::rateGroup2Comp.setIdBase(BaseIds::Ref_rateGroup2Comp);
580 1 Ref::rateGroup3Comp.setIdBase(BaseIds::Ref_rateGroup3Comp);
581 1 Ref::pingRcvr.setIdBase(BaseIds::Ref_pingRcvr);
582 1 Ref::typeDemo.setIdBase(BaseIds::Ref_typeDemo);
583 1 Ref::cmdSeq.setIdBase(BaseIds::Ref_cmdSeq);
584 1 Ref::wasmSeq.setIdBase(BaseIds::Ref_wasmSeq);
585 1 Ref::sendBuffComp.setIdBase(BaseIds::Ref_sendBuffComp);
586 1 Ref::SG1.setIdBase(BaseIds::Ref_SG1);
587 1 Ref::SG2.setIdBase(BaseIds::Ref_SG2);
588 1 Ref::SG3.setIdBase(BaseIds::Ref_SG3);
589 1 Ref::SG4.setIdBase(BaseIds::Ref_SG4);
590 1 Ref::SG5.setIdBase(BaseIds::Ref_SG5);
591 1 Ref::posixTime.setIdBase(BaseIds::Ref_posixTime);
592 1 Ref::rateGroupDriverComp.setIdBase(BaseIds::Ref_rateGroupDriverComp);
593 1 Ref::recvBuffComp.setIdBase(BaseIds::Ref_recvBuffComp);
594 1 Ref::systemResources.setIdBase(BaseIds::Ref_systemResources);
595 1 Ref::linuxTimer.setIdBase(BaseIds::Ref_linuxTimer);
596 1 Ref::comDriver.setIdBase(BaseIds::Ref_comDriver);
597 1 }
598
599 1 void connectComponents() {
600
601 #if !FW_DIRECT_PORT_CALLS
602
603 // ComCcsds_CdhCore
604 CdhCore::cmdDisp.set_seqCmdStatus_OutputPort(
605 0,
606 ComCcsds::fprimeRouter.get_cmdResponseIn_InputPort(0)
607 );
608 CdhCore::cmdDisp.set_seqCmdStatus_OutputPort(
609 1,
610 Ref::cmdSeq.get_cmdResponseIn_InputPort(0)
611 );
612 CdhCore::cmdDisp.set_seqCmdStatus_OutputPort(
613 2,
614 Ref::wasmSeq.get_cmdResponseIn_InputPort(0)
615 );
616 CdhCore::events.set_PktSend_OutputPort(
617 0,
618 ComCcsds::comQueue.get_comPacketQueueIn_InputPort(0)
619 );
620 CdhCore::tlmSend.set_PktSend_OutputPort(
621 0,
622 ComCcsds::comQueue.get_comPacketQueueIn_InputPort(1)
623 );
624 ComCcsds::fprimeRouter.set_commandOut_OutputPort(
625 0,
626 CdhCore::cmdDisp.get_seqCmdBuff_InputPort(0)
627 );
628 Ref::cmdSeq.set_comCmdOut_OutputPort(
629 0,
630 CdhCore::cmdDisp.get_seqCmdBuff_InputPort(1)
631 );
632 Ref::wasmSeq.set_cmdOut_OutputPort(
633 0,
634 CdhCore::cmdDisp.get_seqCmdBuff_InputPort(2)
635 );
636
637 // ComCcsds_FileHandling
638 ComCcsds::comQueue.set_bufferReturnOut_OutputPort(
639 0,
640 FileHandling::fileDownlink.get_bufferReturn_InputPort(0)
641 );
642 ComCcsds::fprimeRouter.set_fileOut_OutputPort(
643 0,
644 FileHandling::fileUplink.get_bufferSendIn_InputPort(0)
645 );
646 FileHandling::fileDownlink.set_bufferSendOut_OutputPort(
647 0,
648 ComCcsds::comQueue.get_bufferQueueIn_InputPort(0)
649 );
650 FileHandling::fileUplink.set_bufferSendOut_OutputPort(
651 0,
652 ComCcsds::fprimeRouter.get_fileBufferReturnIn_InputPort(0)
653 );
654
655 // ComStub
656 ComCcsds::comStub.set_comStatusOut_OutputPort(
657 0,
658 ComCcsds::framer.get_comStatusIn_InputPort(0)
659 );
660 ComCcsds::comStub.set_dataOut_OutputPort(
661 0,
662 ComCcsds::frameAccumulator.get_dataIn_InputPort(0)
663 );
664 ComCcsds::comStub.set_dataReturnOut_OutputPort(
665 0,
666 ComCcsds::framer.get_dataReturnIn_InputPort(0)
667 );
668 ComCcsds::frameAccumulator.set_dataReturnOut_OutputPort(
669 0,
670 ComCcsds::comStub.get_dataReturnIn_InputPort(0)
671 );
672 ComCcsds::framer.set_dataOut_OutputPort(
673 0,
674 ComCcsds::comStub.get_dataIn_InputPort(0)
675 );
676
677 // Command
678 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
679 0,
680 CdhCore::cmdDisp.get_CmdDisp_InputPort(0)
681 );
682 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
683 1,
684 CdhCore::events.get_CmdDisp_InputPort(0)
685 );
686 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
687 2,
688 CdhCore::health.get_CmdDisp_InputPort(0)
689 );
690 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
691 3,
692 CdhCore::version.get_cmdIn_InputPort(0)
693 );
694 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
695 4,
696 ComCcsds::comQueue.get_CmdDisp_InputPort(0)
697 );
698 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
699 5,
700 DataProducts::dpBufferAccumulator.get_cmdIn_InputPort(0)
701 );
702 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
703 6,
704 DataProducts::dpCat.get_CmdDisp_InputPort(0)
705 );
706 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
707 7,
708 DataProducts::dpMgr.get_cmdIn_InputPort(0)
709 );
710 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
711 8,
712 DataProducts::dpWriter.get_cmdIn_InputPort(0)
713 );
714 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
715 9,
716 FileHandling::fileDownlink.get_cmdIn_InputPort(0)
717 );
718 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
719 10,
720 FileHandling::fileManager.get_cmdIn_InputPort(0)
721 );
722 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
723 11,
724 FileHandling::prmDb.get_CmdDisp_InputPort(0)
725 );
726 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
727 12,
728 Ref::SG1.get_cmdIn_InputPort(0)
729 );
730 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
731 13,
732 Ref::SG2.get_cmdIn_InputPort(0)
733 );
734 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
735 14,
736 Ref::SG3.get_cmdIn_InputPort(0)
737 );
738 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
739 15,
740 Ref::SG4.get_cmdIn_InputPort(0)
741 );
742 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
743 16,
744 Ref::SG5.get_cmdIn_InputPort(0)
745 );
746 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
747 17,
748 Ref::cmdSeq.get_cmdIn_InputPort(0)
749 );
750 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
751 18,
752 Ref::dpDemo.get_cmdIn_InputPort(0)
753 );
754 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
755 19,
756 Ref::pingRcvr.get_CmdDisp_InputPort(0)
757 );
758 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
759 20,
760 Ref::recvBuffComp.get_CmdDisp_InputPort(0)
761 );
762 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
763 21,
764 Ref::sendBuffComp.get_CmdDisp_InputPort(0)
765 );
766 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
767 22,
768 Ref::systemResources.get_CmdDisp_InputPort(0)
769 );
770 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
771 23,
772 Ref::typeDemo.get_cmdIn_InputPort(0)
773 );
774 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
775 24,
776 Ref::wasmSeq.get_cmdIn_InputPort(0)
777 );
778
779 // CommandRegistration
780 CdhCore::cmdDisp.set_CmdReg_OutputPort(
781 0,
782 CdhCore::cmdDisp.get_compCmdReg_InputPort(0)
783 );
784 CdhCore::events.set_CmdReg_OutputPort(
785 0,
786 CdhCore::cmdDisp.get_compCmdReg_InputPort(1)
787 );
788 CdhCore::health.set_CmdReg_OutputPort(
789 0,
790 CdhCore::cmdDisp.get_compCmdReg_InputPort(2)
791 );
792 CdhCore::version.set_cmdRegOut_OutputPort(
793 0,
794 CdhCore::cmdDisp.get_compCmdReg_InputPort(3)
795 );
796 ComCcsds::comQueue.set_CmdReg_OutputPort(
797 0,
798 CdhCore::cmdDisp.get_compCmdReg_InputPort(4)
799 );
800 DataProducts::dpBufferAccumulator.set_cmdRegOut_OutputPort(
801 0,
802 CdhCore::cmdDisp.get_compCmdReg_InputPort(5)
803 );
804 DataProducts::dpCat.set_CmdReg_OutputPort(
805 0,
806 CdhCore::cmdDisp.get_compCmdReg_InputPort(6)
807 );
808 DataProducts::dpMgr.set_cmdRegIn_OutputPort(
809 0,
810 CdhCore::cmdDisp.get_compCmdReg_InputPort(7)
811 );
812 DataProducts::dpWriter.set_cmdRegIn_OutputPort(
813 0,
814 CdhCore::cmdDisp.get_compCmdReg_InputPort(8)
815 );
816 FileHandling::fileDownlink.set_cmdRegOut_OutputPort(
817 0,
818 CdhCore::cmdDisp.get_compCmdReg_InputPort(9)
819 );
820 FileHandling::fileManager.set_cmdRegOut_OutputPort(
821 0,
822 CdhCore::cmdDisp.get_compCmdReg_InputPort(10)
823 );
824 FileHandling::prmDb.set_CmdReg_OutputPort(
825 0,
826 CdhCore::cmdDisp.get_compCmdReg_InputPort(11)
827 );
828 Ref::SG1.set_cmdRegOut_OutputPort(
829 0,
830 CdhCore::cmdDisp.get_compCmdReg_InputPort(12)
831 );
832 Ref::SG2.set_cmdRegOut_OutputPort(
833 0,
834 CdhCore::cmdDisp.get_compCmdReg_InputPort(13)
835 );
836 Ref::SG3.set_cmdRegOut_OutputPort(
837 0,
838 CdhCore::cmdDisp.get_compCmdReg_InputPort(14)
839 );
840 Ref::SG4.set_cmdRegOut_OutputPort(
841 0,
842 CdhCore::cmdDisp.get_compCmdReg_InputPort(15)
843 );
844 Ref::SG5.set_cmdRegOut_OutputPort(
845 0,
846 CdhCore::cmdDisp.get_compCmdReg_InputPort(16)
847 );
848 Ref::cmdSeq.set_cmdRegOut_OutputPort(
849 0,
850 CdhCore::cmdDisp.get_compCmdReg_InputPort(17)
851 );
852 Ref::dpDemo.set_cmdRegOut_OutputPort(
853 0,
854 CdhCore::cmdDisp.get_compCmdReg_InputPort(18)
855 );
856 Ref::pingRcvr.set_CmdReg_OutputPort(
857 0,
858 CdhCore::cmdDisp.get_compCmdReg_InputPort(19)
859 );
860 Ref::recvBuffComp.set_CmdReg_OutputPort(
861 0,
862 CdhCore::cmdDisp.get_compCmdReg_InputPort(20)
863 );
864 Ref::sendBuffComp.set_CmdReg_OutputPort(
865 0,
866 CdhCore::cmdDisp.get_compCmdReg_InputPort(21)
867 );
868 Ref::systemResources.set_CmdReg_OutputPort(
869 0,
870 CdhCore::cmdDisp.get_compCmdReg_InputPort(22)
871 );
872 Ref::typeDemo.set_cmdRegOut_OutputPort(
873 0,
874 CdhCore::cmdDisp.get_compCmdReg_InputPort(23)
875 );
876 Ref::wasmSeq.set_cmdRegOut_OutputPort(
877 0,
878 CdhCore::cmdDisp.get_compCmdReg_InputPort(24)
879 );
880
881 // CommandResponse
882 CdhCore::cmdDisp.set_CmdStatus_OutputPort(
883 0,
884 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
885 );
886 CdhCore::events.set_CmdStatus_OutputPort(
887 0,
888 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
889 );
890 CdhCore::health.set_CmdStatus_OutputPort(
891 0,
892 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
893 );
894 CdhCore::version.set_cmdResponseOut_OutputPort(
895 0,
896 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
897 );
898 ComCcsds::comQueue.set_CmdStatus_OutputPort(
899 0,
900 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
901 );
902 DataProducts::dpBufferAccumulator.set_cmdResponseOut_OutputPort(
903 0,
904 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
905 );
906 DataProducts::dpCat.set_CmdStatus_OutputPort(
907 0,
908 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
909 );
910 DataProducts::dpMgr.set_cmdResponseOut_OutputPort(
911 0,
912 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
913 );
914 DataProducts::dpWriter.set_cmdResponseOut_OutputPort(
915 0,
916 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
917 );
918 FileHandling::fileDownlink.set_cmdResponseOut_OutputPort(
919 0,
920 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
921 );
922 FileHandling::fileManager.set_cmdResponseOut_OutputPort(
923 0,
924 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
925 );
926 FileHandling::prmDb.set_CmdStatus_OutputPort(
927 0,
928 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
929 );
930 Ref::SG1.set_cmdResponseOut_OutputPort(
931 0,
932 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
933 );
934 Ref::SG2.set_cmdResponseOut_OutputPort(
935 0,
936 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
937 );
938 Ref::SG3.set_cmdResponseOut_OutputPort(
939 0,
940 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
941 );
942 Ref::SG4.set_cmdResponseOut_OutputPort(
943 0,
944 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
945 );
946 Ref::SG5.set_cmdResponseOut_OutputPort(
947 0,
948 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
949 );
950 Ref::cmdSeq.set_cmdResponseOut_OutputPort(
951 0,
952 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
953 );
954 Ref::dpDemo.set_cmdResponseOut_OutputPort(
955 0,
956 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
957 );
958 Ref::pingRcvr.set_CmdStatus_OutputPort(
959 0,
960 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
961 );
962 Ref::recvBuffComp.set_CmdStatus_OutputPort(
963 0,
964 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
965 );
966 Ref::sendBuffComp.set_CmdStatus_OutputPort(
967 0,
968 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
969 );
970 Ref::systemResources.set_CmdStatus_OutputPort(
971 0,
972 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
973 );
974 Ref::typeDemo.set_cmdResponseOut_OutputPort(
975 0,
976 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
977 );
978 Ref::wasmSeq.set_cmdResponseOut_OutputPort(
979 0,
980 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
981 );
982
983 // Communications
984 ComCcsds::comStub.set_drvReceiveReturnOut_OutputPort(
985 0,
986 Ref::comDriver.get_recvReturnIn_InputPort(0)
987 );
988 ComCcsds::comStub.set_drvSendOut_OutputPort(
989 0,
990 Ref::comDriver.get_send_InputPort(0)
991 );
992 Ref::comDriver.set_allocate_OutputPort(
993 0,
994 ComCcsds::commsBufferManager.get_bufferGetCallee_InputPort(0)
995 );
996 Ref::comDriver.set_deallocate_OutputPort(
997 0,
998 ComCcsds::commsBufferManager.get_bufferSendIn_InputPort(0)
999 );
1000 Ref::comDriver.set_ready_OutputPort(
1001 0,
1002 ComCcsds::comStub.get_drvConnected_InputPort(0)
1003 );
1004 Ref::comDriver.set_recv_OutputPort(
1005 0,
1006 ComCcsds::comStub.get_drvReceiveIn_InputPort(0)
1007 );
1008
1009 // DataProducts
1010 DataProducts::dpBufferAccumulator.set_bufferSendOutDrain_OutputPort(
1011 0,
1012 DataProducts::dpWriter.get_bufferSendIn_InputPort(0)
1013 );
1014 DataProducts::dpBufferAccumulator.set_bufferSendOutReturn_OutputPort(
1015 0,
1016 DataProducts::dpBufferManager.get_bufferSendIn_InputPort(0)
1017 );
1018 DataProducts::dpMgr.set_bufferGetOut_OutputPort(
1019 0,
1020 DataProducts::dpBufferManager.get_bufferGetCallee_InputPort(0)
1021 );
1022 DataProducts::dpMgr.set_productSendOut_OutputPort(
1023 0,
1024 DataProducts::dpBufferAccumulator.get_bufferSendInFill_InputPort(0)
1025 );
1026 DataProducts::dpWriter.set_deallocBufferSendOut_OutputPort(
1027 0,
1028 DataProducts::dpBufferAccumulator.get_bufferSendInReturn_InputPort(0)
1029 );
1030 DataProducts::dpWriter.set_dpWrittenOut_OutputPort(
1031 0,
1032 DataProducts::dpCat.get_addToCat_InputPort(0)
1033 );
1034
1035 // Downlink
1036 ComCcsds::aggregator.set_comStatusOut_OutputPort(
1037 0,
1038 ComCcsds::spacePacketFramer.get_comStatusIn_InputPort(0)
1039 );
1040 ComCcsds::aggregator.set_dataOut_OutputPort(
1041 0,
1042 ComCcsds::framer.get_dataIn_InputPort(0)
1043 );
1044 ComCcsds::aggregator.set_dataReturnOut_OutputPort(
1045 0,
1046 ComCcsds::spacePacketFramer.get_dataReturnIn_InputPort(0)
1047 );
1048 ComCcsds::comQueue.set_dataOut_OutputPort(
1049 0,
1050 ComCcsds::spacePacketFramer.get_dataIn_InputPort(0)
1051 );
1052 ComCcsds::framer.set_comStatusOut_OutputPort(
1053 0,
1054 ComCcsds::aggregator.get_comStatusIn_InputPort(0)
1055 );
1056 ComCcsds::framer.set_dataReturnOut_OutputPort(
1057 0,
1058 ComCcsds::aggregator.get_dataReturnIn_InputPort(0)
1059 );
1060 ComCcsds::spacePacketFramer.set_bufferAllocate_OutputPort(
1061 0,
1062 ComCcsds::commsBufferManager.get_bufferGetCallee_InputPort(0)
1063 );
1064 ComCcsds::spacePacketFramer.set_bufferDeallocate_OutputPort(
1065 0,
1066 ComCcsds::commsBufferManager.get_bufferSendIn_InputPort(0)
1067 );
1068 ComCcsds::spacePacketFramer.set_comStatusOut_OutputPort(
1069 0,
1070 ComCcsds::comQueue.get_comStatusIn_InputPort(0)
1071 );
1072 ComCcsds::spacePacketFramer.set_dataOut_OutputPort(
1073 0,
1074 ComCcsds::aggregator.get_dataIn_InputPort(0)
1075 );
1076 ComCcsds::spacePacketFramer.set_dataReturnOut_OutputPort(
1077 0,
1078 ComCcsds::comQueue.get_dataReturnIn_InputPort(0)
1079 );
1080 ComCcsds::spacePacketFramer.set_getApidSeqCount_OutputPort(
1081 0,
1082 ComCcsds::apidManager.get_getApidSeqCountIn_InputPort(0)
1083 );
1084
1085 // Events
1086 CdhCore::cmdDisp.set_Log_OutputPort(
1087 0,
1088 CdhCore::events.get_LogRecv_InputPort(0)
1089 );
1090 CdhCore::events.set_Log_OutputPort(
1091 0,
1092 CdhCore::events.get_LogRecv_InputPort(0)
1093 );
1094 CdhCore::fatalAdapter.set_Log_OutputPort(
1095 0,
1096 CdhCore::events.get_LogRecv_InputPort(0)
1097 );
1098 CdhCore::health.set_Log_OutputPort(
1099 0,
1100 CdhCore::events.get_LogRecv_InputPort(0)
1101 );
1102 CdhCore::tlmSend.set_eventOut_OutputPort(
1103 0,
1104 CdhCore::events.get_LogRecv_InputPort(0)
1105 );
1106 CdhCore::version.set_logOut_OutputPort(
1107 0,
1108 CdhCore::events.get_LogRecv_InputPort(0)
1109 );
1110 ComCcsds::apidManager.set_logOut_OutputPort(
1111 0,
1112 CdhCore::events.get_LogRecv_InputPort(0)
1113 );
1114 ComCcsds::comQueue.set_Log_OutputPort(
1115 0,
1116 CdhCore::events.get_LogRecv_InputPort(0)
1117 );
1118 ComCcsds::commsBufferManager.set_eventOut_OutputPort(
1119 0,
1120 CdhCore::events.get_LogRecv_InputPort(0)
1121 );
1122 ComCcsds::fprimeRouter.set_logOut_OutputPort(
1123 0,
1124 CdhCore::events.get_LogRecv_InputPort(0)
1125 );
1126 ComCcsds::frameAccumulator.set_logOut_OutputPort(
1127 0,
1128 CdhCore::events.get_LogRecv_InputPort(0)
1129 );
1130 ComCcsds::framer.set_logOut_OutputPort(
1131 0,
1132 CdhCore::events.get_LogRecv_InputPort(0)
1133 );
1134 ComCcsds::spacePacketDeframer.set_logOut_OutputPort(
1135 0,
1136 CdhCore::events.get_LogRecv_InputPort(0)
1137 );
1138 ComCcsds::spacePacketFramer.set_logOut_OutputPort(
1139 0,
1140 CdhCore::events.get_LogRecv_InputPort(0)
1141 );
1142 ComCcsds::tcDeframer.set_logOut_OutputPort(
1143 0,
1144 CdhCore::events.get_LogRecv_InputPort(0)
1145 );
1146 DataProducts::dpBufferAccumulator.set_eventOut_OutputPort(
1147 0,
1148 CdhCore::events.get_LogRecv_InputPort(0)
1149 );
1150 DataProducts::dpBufferManager.set_eventOut_OutputPort(
1151 0,
1152 CdhCore::events.get_LogRecv_InputPort(0)
1153 );
1154 DataProducts::dpCat.set_Log_OutputPort(
1155 0,
1156 CdhCore::events.get_LogRecv_InputPort(0)
1157 );
1158 DataProducts::dpMgr.set_eventOut_OutputPort(
1159 0,
1160 CdhCore::events.get_LogRecv_InputPort(0)
1161 );
1162 DataProducts::dpWriter.set_eventOut_OutputPort(
1163 0,
1164 CdhCore::events.get_LogRecv_InputPort(0)
1165 );
1166 FileHandling::fileDownlink.set_eventOut_OutputPort(
1167 0,
1168 CdhCore::events.get_LogRecv_InputPort(0)
1169 );
1170 FileHandling::fileManager.set_eventOut_OutputPort(
1171 0,
1172 CdhCore::events.get_LogRecv_InputPort(0)
1173 );
1174 FileHandling::fileUplink.set_eventOut_OutputPort(
1175 0,
1176 CdhCore::events.get_LogRecv_InputPort(0)
1177 );
1178 FileHandling::prmDb.set_Log_OutputPort(
1179 0,
1180 CdhCore::events.get_LogRecv_InputPort(0)
1181 );
1182 Ref::SG1.set_logOut_OutputPort(
1183 0,
1184 CdhCore::events.get_LogRecv_InputPort(0)
1185 );
1186 Ref::SG2.set_logOut_OutputPort(
1187 0,
1188 CdhCore::events.get_LogRecv_InputPort(0)
1189 );
1190 Ref::SG3.set_logOut_OutputPort(
1191 0,
1192 CdhCore::events.get_LogRecv_InputPort(0)
1193 );
1194 Ref::SG4.set_logOut_OutputPort(
1195 0,
1196 CdhCore::events.get_LogRecv_InputPort(0)
1197 );
1198 Ref::SG5.set_logOut_OutputPort(
1199 0,
1200 CdhCore::events.get_LogRecv_InputPort(0)
1201 );
1202 Ref::cmdSeq.set_logOut_OutputPort(
1203 0,
1204 CdhCore::events.get_LogRecv_InputPort(0)
1205 );
1206 Ref::dpDemo.set_logOut_OutputPort(
1207 0,
1208 CdhCore::events.get_LogRecv_InputPort(0)
1209 );
1210 Ref::pingRcvr.set_Log_OutputPort(
1211 0,
1212 CdhCore::events.get_LogRecv_InputPort(0)
1213 );
1214 Ref::rateGroup1Comp.set_Log_OutputPort(
1215 0,
1216 CdhCore::events.get_LogRecv_InputPort(0)
1217 );
1218 Ref::rateGroup2Comp.set_Log_OutputPort(
1219 0,
1220 CdhCore::events.get_LogRecv_InputPort(0)
1221 );
1222 Ref::rateGroup3Comp.set_Log_OutputPort(
1223 0,
1224 CdhCore::events.get_LogRecv_InputPort(0)
1225 );
1226 Ref::recvBuffComp.set_Log_OutputPort(
1227 0,
1228 CdhCore::events.get_LogRecv_InputPort(0)
1229 );
1230 Ref::sendBuffComp.set_Log_OutputPort(
1231 0,
1232 CdhCore::events.get_LogRecv_InputPort(0)
1233 );
1234 Ref::systemResources.set_Log_OutputPort(
1235 0,
1236 CdhCore::events.get_LogRecv_InputPort(0)
1237 );
1238 Ref::typeDemo.set_logOut_OutputPort(
1239 0,
1240 CdhCore::events.get_LogRecv_InputPort(0)
1241 );
1242 Ref::wasmSeq.set_logOut_OutputPort(
1243 0,
1244 CdhCore::events.get_LogRecv_InputPort(0)
1245 );
1246
1247 // FaultProtection
1248 CdhCore::events.set_FatalAnnounce_OutputPort(
1249 0,
1250 CdhCore::fatalHandler.get_FatalReceive_InputPort(0)
1251 );
1252
1253 // FileHandling_DataProducts
1254 DataProducts::dpCat.set_fileOut_OutputPort(
1255 0,
1256 FileHandling::fileDownlink.get_SendFile_InputPort(0)
1257 );
1258 FileHandling::fileDownlink.set_FileComplete_OutputPort(
1259 0,
1260 DataProducts::dpCat.get_fileDone_InputPort(0)
1261 );
1262
1263 // Health
1264 CdhCore::cmdDisp.set_pingOut_OutputPort(
1265 0,
1266 CdhCore::health.get_PingReturn_InputPort(0)
1267 );
1268 CdhCore::events.set_pingOut_OutputPort(
1269 0,
1270 CdhCore::health.get_PingReturn_InputPort(1)
1271 );
1272 CdhCore::health.set_PingSend_OutputPort(
1273 0,
1274 CdhCore::cmdDisp.get_pingIn_InputPort(0)
1275 );
1276 CdhCore::health.set_PingSend_OutputPort(
1277 1,
1278 CdhCore::events.get_pingIn_InputPort(0)
1279 );
1280 CdhCore::health.set_PingSend_OutputPort(
1281 2,
1282 CdhCore::tlmSend.get_pingIn_InputPort(0)
1283 );
1284 CdhCore::health.set_PingSend_OutputPort(
1285 3,
1286 DataProducts::dpBufferAccumulator.get_pingIn_InputPort(0)
1287 );
1288 CdhCore::health.set_PingSend_OutputPort(
1289 4,
1290 DataProducts::dpCat.get_pingIn_InputPort(0)
1291 );
1292 CdhCore::health.set_PingSend_OutputPort(
1293 5,
1294 FileHandling::fileDownlink.get_pingIn_InputPort(0)
1295 );
1296 CdhCore::health.set_PingSend_OutputPort(
1297 6,
1298 FileHandling::fileManager.get_pingIn_InputPort(0)
1299 );
1300 CdhCore::health.set_PingSend_OutputPort(
1301 7,
1302 FileHandling::fileUplink.get_pingIn_InputPort(0)
1303 );
1304 CdhCore::health.set_PingSend_OutputPort(
1305 8,
1306 FileHandling::prmDb.get_pingIn_InputPort(0)
1307 );
1308 CdhCore::health.set_PingSend_OutputPort(
1309 9,
1310 Ref::blockDrv.get_PingIn_InputPort(0)
1311 );
1312 CdhCore::health.set_PingSend_OutputPort(
1313 10,
1314 Ref::cmdSeq.get_pingIn_InputPort(0)
1315 );
1316 CdhCore::health.set_PingSend_OutputPort(
1317 11,
1318 Ref::pingRcvr.get_PingIn_InputPort(0)
1319 );
1320 CdhCore::health.set_PingSend_OutputPort(
1321 12,
1322 Ref::rateGroup1Comp.get_PingIn_InputPort(0)
1323 );
1324 CdhCore::health.set_PingSend_OutputPort(
1325 13,
1326 Ref::rateGroup2Comp.get_PingIn_InputPort(0)
1327 );
1328 CdhCore::health.set_PingSend_OutputPort(
1329 14,
1330 Ref::rateGroup3Comp.get_PingIn_InputPort(0)
1331 );
1332 CdhCore::tlmSend.set_pingOut_OutputPort(
1333 0,
1334 CdhCore::health.get_PingReturn_InputPort(2)
1335 );
1336 DataProducts::dpBufferAccumulator.set_pingOut_OutputPort(
1337 0,
1338 CdhCore::health.get_PingReturn_InputPort(3)
1339 );
1340 DataProducts::dpCat.set_pingOut_OutputPort(
1341 0,
1342 CdhCore::health.get_PingReturn_InputPort(4)
1343 );
1344 FileHandling::fileDownlink.set_pingOut_OutputPort(
1345 0,
1346 CdhCore::health.get_PingReturn_InputPort(5)
1347 );
1348 FileHandling::fileManager.set_pingOut_OutputPort(
1349 0,
1350 CdhCore::health.get_PingReturn_InputPort(6)
1351 );
1352 FileHandling::fileUplink.set_pingOut_OutputPort(
1353 0,
1354 CdhCore::health.get_PingReturn_InputPort(7)
1355 );
1356 FileHandling::prmDb.set_pingOut_OutputPort(
1357 0,
1358 CdhCore::health.get_PingReturn_InputPort(8)
1359 );
1360 Ref::blockDrv.set_PingOut_OutputPort(
1361 0,
1362 CdhCore::health.get_PingReturn_InputPort(9)
1363 );
1364 Ref::cmdSeq.set_pingOut_OutputPort(
1365 0,
1366 CdhCore::health.get_PingReturn_InputPort(10)
1367 );
1368 Ref::pingRcvr.set_PingOut_OutputPort(
1369 0,
1370 CdhCore::health.get_PingReturn_InputPort(11)
1371 );
1372 Ref::rateGroup1Comp.set_PingOut_OutputPort(
1373 0,
1374 CdhCore::health.get_PingReturn_InputPort(12)
1375 );
1376 Ref::rateGroup2Comp.set_PingOut_OutputPort(
1377 0,
1378 CdhCore::health.get_PingReturn_InputPort(13)
1379 );
1380 Ref::rateGroup3Comp.set_PingOut_OutputPort(
1381 0,
1382 CdhCore::health.get_PingReturn_InputPort(14)
1383 );
1384
1385 // Parameters
1386 ComCcsds::framer.set_prmGetOut_OutputPort(
1387 0,
1388 FileHandling::prmDb.get_getPrm_InputPort(0)
1389 );
1390 ComCcsds::framer.set_prmSetOut_OutputPort(
1391 0,
1392 FileHandling::prmDb.get_setPrm_InputPort(0)
1393 );
1394 ComCcsds::spacePacketDeframer.set_prmGetOut_OutputPort(
1395 0,
1396 FileHandling::prmDb.get_getPrm_InputPort(0)
1397 );
1398 ComCcsds::spacePacketDeframer.set_prmSetOut_OutputPort(
1399 0,
1400 FileHandling::prmDb.get_setPrm_InputPort(0)
1401 );
1402 ComCcsds::spacePacketFramer.set_prmGetOut_OutputPort(
1403 0,
1404 FileHandling::prmDb.get_getPrm_InputPort(0)
1405 );
1406 ComCcsds::spacePacketFramer.set_prmSetOut_OutputPort(
1407 0,
1408 FileHandling::prmDb.get_setPrm_InputPort(0)
1409 );
1410 ComCcsds::tcDeframer.set_prmGetOut_OutputPort(
1411 0,
1412 FileHandling::prmDb.get_getPrm_InputPort(0)
1413 );
1414 ComCcsds::tcDeframer.set_prmSetOut_OutputPort(
1415 0,
1416 FileHandling::prmDb.get_setPrm_InputPort(0)
1417 );
1418 Ref::dpDemo.set_prmGetOut_OutputPort(
1419 0,
1420 FileHandling::prmDb.get_getPrm_InputPort(0)
1421 );
1422 Ref::dpDemo.set_prmSetOut_OutputPort(
1423 0,
1424 FileHandling::prmDb.get_setPrm_InputPort(0)
1425 );
1426 Ref::recvBuffComp.set_ParamGet_OutputPort(
1427 0,
1428 FileHandling::prmDb.get_getPrm_InputPort(0)
1429 );
1430 Ref::recvBuffComp.set_ParamSet_OutputPort(
1431 0,
1432 FileHandling::prmDb.get_setPrm_InputPort(0)
1433 );
1434 Ref::sendBuffComp.set_ParamGet_OutputPort(
1435 0,
1436 FileHandling::prmDb.get_getPrm_InputPort(0)
1437 );
1438 Ref::sendBuffComp.set_ParamSet_OutputPort(
1439 0,
1440 FileHandling::prmDb.get_setPrm_InputPort(0)
1441 );
1442 Ref::typeDemo.set_prmGetOut_OutputPort(
1443 0,
1444 FileHandling::prmDb.get_getPrm_InputPort(0)
1445 );
1446 Ref::typeDemo.set_prmSetOut_OutputPort(
1447 0,
1448 FileHandling::prmDb.get_setPrm_InputPort(0)
1449 );
1450 Ref::wasmSeq.set_prmGet_OutputPort(
1451 0,
1452 FileHandling::prmDb.get_getPrm_InputPort(0)
1453 );
1454 Ref::wasmSeq.set_prmSet_OutputPort(
1455 0,
1456 FileHandling::prmDb.get_setPrm_InputPort(0)
1457 );
1458
1459 // RateGroups
1460 Ref::linuxTimer.set_CycleOut_OutputPort(
1461 0,
1462 Ref::rateGroupDriverComp.get_CycleIn_InputPort(0)
1463 );
1464 Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort(
1465 0,
1466 Ref::SG1.get_schedIn_InputPort(0)
1467 );
1468 Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort(
1469 1,
1470 Ref::SG2.get_schedIn_InputPort(0)
1471 );
1472 Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort(
1473 2,
1474 CdhCore::tlmSend.get_Run_InputPort(0)
1475 );
1476 Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort(
1477 3,
1478 FileHandling::fileDownlink.get_Run_InputPort(0)
1479 );
1480 Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort(
1481 4,
1482 Ref::systemResources.get_run_InputPort(0)
1483 );
1484 Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort(
1485 5,
1486 ComCcsds::comQueue.get_run_InputPort(0)
1487 );
1488 Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort(
1489 6,
1490 CdhCore::cmdDisp.get_run_InputPort(0)
1491 );
1492 Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort(
1493 7,
1494 ComCcsds::aggregator.get_timeout_InputPort(0)
1495 );
1496 Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort(
1497 0,
1498 Ref::cmdSeq.get_schedIn_InputPort(0)
1499 );
1500 Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort(
1501 1,
1502 Ref::sendBuffComp.get_SchedIn_InputPort(0)
1503 );
1504 Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort(
1505 2,
1506 Ref::SG3.get_schedIn_InputPort(0)
1507 );
1508 Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort(
1509 3,
1510 Ref::SG4.get_schedIn_InputPort(0)
1511 );
1512 Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort(
1513 4,
1514 Ref::dpDemo.get_run_InputPort(0)
1515 );
1516 Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort(
1517 5,
1518 FileHandling::fileManager.get_schedIn_InputPort(0)
1519 );
1520 Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort(
1521 6,
1522 Ref::wasmSeq.get_checkTimers_InputPort(0)
1523 );
1524 Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort(
1525 7,
1526 Ref::wasmSeq.get_writeTelemetry_InputPort(0)
1527 );
1528 Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort(
1529 0,
1530 CdhCore::health.get_Run_InputPort(0)
1531 );
1532 Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort(
1533 1,
1534 Ref::SG5.get_schedIn_InputPort(0)
1535 );
1536 Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort(
1537 2,
1538 Ref::blockDrv.get_Sched_InputPort(0)
1539 );
1540 Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort(
1541 3,
1542 ComCcsds::commsBufferManager.get_schedIn_InputPort(0)
1543 );
1544 Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort(
1545 4,
1546 DataProducts::dpBufferManager.get_schedIn_InputPort(0)
1547 );
1548 Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort(
1549 5,
1550 DataProducts::dpWriter.get_schedIn_InputPort(0)
1551 );
1552 Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort(
1553 6,
1554 DataProducts::dpMgr.get_schedIn_InputPort(0)
1555 );
1556 Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort(
1557 7,
1558 CdhCore::events.get_run_InputPort(0)
1559 );
1560 Ref::rateGroupDriverComp.set_CycleOut_OutputPort(
1561 0,
1562 Ref::rateGroup1Comp.get_CycleIn_InputPort(0)
1563 );
1564 Ref::rateGroupDriverComp.set_CycleOut_OutputPort(
1565 1,
1566 Ref::rateGroup2Comp.get_CycleIn_InputPort(0)
1567 );
1568 Ref::rateGroupDriverComp.set_CycleOut_OutputPort(
1569 2,
1570 Ref::rateGroup3Comp.get_CycleIn_InputPort(0)
1571 );
1572
1573 // Ref
1574 DataProducts::dpMgr.set_productResponseOut_OutputPort(
1575 0,
1576 Ref::SG1.get_productRecvIn_InputPort(0)
1577 );
1578 DataProducts::dpMgr.set_productResponseOut_OutputPort(
1579 1,
1580 Ref::dpDemo.get_productRecvIn_InputPort(0)
1581 );
1582 Ref::SG1.set_productGetOut_OutputPort(
1583 0,
1584 DataProducts::dpMgr.get_productGetIn_InputPort(0)
1585 );
1586 Ref::SG1.set_productRequestOut_OutputPort(
1587 0,
1588 DataProducts::dpMgr.get_productRequestIn_InputPort(0)
1589 );
1590 Ref::SG1.set_productSendOut_OutputPort(
1591 0,
1592 DataProducts::dpMgr.get_productSendIn_InputPort(0)
1593 );
1594 Ref::blockDrv.set_BufferOut_OutputPort(
1595 0,
1596 Ref::recvBuffComp.get_Data_InputPort(0)
1597 );
1598 Ref::dpDemo.set_productGetOut_OutputPort(
1599 0,
1600 DataProducts::dpMgr.get_productGetIn_InputPort(0)
1601 );
1602 Ref::dpDemo.set_productRequestOut_OutputPort(
1603 0,
1604 DataProducts::dpMgr.get_productRequestIn_InputPort(0)
1605 );
1606 Ref::dpDemo.set_productSendOut_OutputPort(
1607 0,
1608 DataProducts::dpMgr.get_productSendIn_InputPort(0)
1609 );
1610 Ref::sendBuffComp.set_Data_OutputPort(
1611 0,
1612 Ref::blockDrv.get_BufferIn_InputPort(0)
1613 );
1614 Ref::wasmSeq.set_getParam_OutputPort(
1615 0,
1616 FileHandling::prmDb.get_getPrm_InputPort(0)
1617 );
1618 Ref::wasmSeq.set_getTlmChan_OutputPort(
1619 0,
1620 CdhCore::tlmSend.get_TlmGet_InputPort(0)
1621 );
1622
1623 // Telemetry
1624 CdhCore::cmdDisp.set_Tlm_OutputPort(
1625 0,
1626 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1627 );
1628 CdhCore::events.set_Tlm_OutputPort(
1629 0,
1630 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1631 );
1632 CdhCore::health.set_Tlm_OutputPort(
1633 0,
1634 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1635 );
1636 CdhCore::version.set_tlmOut_OutputPort(
1637 0,
1638 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1639 );
1640 ComCcsds::comQueue.set_Tlm_OutputPort(
1641 0,
1642 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1643 );
1644 ComCcsds::commsBufferManager.set_tlmOut_OutputPort(
1645 0,
1646 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1647 );
1648 ComCcsds::framer.set_tlmOut_OutputPort(
1649 0,
1650 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1651 );
1652 ComCcsds::spacePacketDeframer.set_tlmOut_OutputPort(
1653 0,
1654 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1655 );
1656 ComCcsds::spacePacketFramer.set_tlmOut_OutputPort(
1657 0,
1658 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1659 );
1660 ComCcsds::tcDeframer.set_tlmOut_OutputPort(
1661 0,
1662 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1663 );
1664 DataProducts::dpBufferAccumulator.set_tlmOut_OutputPort(
1665 0,
1666 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1667 );
1668 DataProducts::dpBufferManager.set_tlmOut_OutputPort(
1669 0,
1670 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1671 );
1672 DataProducts::dpCat.set_Tlm_OutputPort(
1673 0,
1674 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1675 );
1676 DataProducts::dpMgr.set_tlmOut_OutputPort(
1677 0,
1678 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1679 );
1680 DataProducts::dpWriter.set_tlmOut_OutputPort(
1681 0,
1682 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1683 );
1684 FileHandling::fileDownlink.set_tlmOut_OutputPort(
1685 0,
1686 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1687 );
1688 FileHandling::fileManager.set_tlmOut_OutputPort(
1689 0,
1690 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1691 );
1692 FileHandling::fileUplink.set_tlmOut_OutputPort(
1693 0,
1694 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1695 );
1696 Ref::SG1.set_tlmOut_OutputPort(
1697 0,
1698 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1699 );
1700 Ref::SG2.set_tlmOut_OutputPort(
1701 0,
1702 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1703 );
1704 Ref::SG3.set_tlmOut_OutputPort(
1705 0,
1706 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1707 );
1708 Ref::SG4.set_tlmOut_OutputPort(
1709 0,
1710 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1711 );
1712 Ref::SG5.set_tlmOut_OutputPort(
1713 0,
1714 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1715 );
1716 Ref::blockDrv.set_Tlm_OutputPort(
1717 0,
1718 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1719 );
1720 Ref::cmdSeq.set_tlmOut_OutputPort(
1721 0,
1722 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1723 );
1724 Ref::dpDemo.set_tlmOut_OutputPort(
1725 0,
1726 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1727 );
1728 Ref::pingRcvr.set_Tlm_OutputPort(
1729 0,
1730 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1731 );
1732 Ref::rateGroup1Comp.set_Tlm_OutputPort(
1733 0,
1734 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1735 );
1736 Ref::rateGroup2Comp.set_Tlm_OutputPort(
1737 0,
1738 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1739 );
1740 Ref::rateGroup3Comp.set_Tlm_OutputPort(
1741 0,
1742 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1743 );
1744 Ref::recvBuffComp.set_Tlm_OutputPort(
1745 0,
1746 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1747 );
1748 Ref::sendBuffComp.set_Tlm_OutputPort(
1749 0,
1750 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1751 );
1752 Ref::systemResources.set_Tlm_OutputPort(
1753 0,
1754 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1755 );
1756 Ref::typeDemo.set_tlmOut_OutputPort(
1757 0,
1758 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1759 );
1760 Ref::wasmSeq.set_tlmOut_OutputPort(
1761 0,
1762 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1763 );
1764
1765 // TextEvents
1766 CdhCore::cmdDisp.set_LogText_OutputPort(
1767 0,
1768 CdhCore::textLogger.get_TextLogger_InputPort(0)
1769 );
1770 CdhCore::events.set_LogText_OutputPort(
1771 0,
1772 CdhCore::textLogger.get_TextLogger_InputPort(0)
1773 );
1774 CdhCore::fatalAdapter.set_LogText_OutputPort(
1775 0,
1776 CdhCore::textLogger.get_TextLogger_InputPort(0)
1777 );
1778 CdhCore::health.set_LogText_OutputPort(
1779 0,
1780 CdhCore::textLogger.get_TextLogger_InputPort(0)
1781 );
1782 CdhCore::tlmSend.set_eventOutText_OutputPort(
1783 0,
1784 CdhCore::textLogger.get_TextLogger_InputPort(0)
1785 );
1786 CdhCore::version.set_logTextOut_OutputPort(
1787 0,
1788 CdhCore::textLogger.get_TextLogger_InputPort(0)
1789 );
1790 ComCcsds::apidManager.set_logTextOut_OutputPort(
1791 0,
1792 CdhCore::textLogger.get_TextLogger_InputPort(0)
1793 );
1794 ComCcsds::comQueue.set_LogText_OutputPort(
1795 0,
1796 CdhCore::textLogger.get_TextLogger_InputPort(0)
1797 );
1798 ComCcsds::commsBufferManager.set_textEventOut_OutputPort(
1799 0,
1800 CdhCore::textLogger.get_TextLogger_InputPort(0)
1801 );
1802 ComCcsds::fprimeRouter.set_logTextOut_OutputPort(
1803 0,
1804 CdhCore::textLogger.get_TextLogger_InputPort(0)
1805 );
1806 ComCcsds::frameAccumulator.set_logTextOut_OutputPort(
1807 0,
1808 CdhCore::textLogger.get_TextLogger_InputPort(0)
1809 );
1810 ComCcsds::framer.set_logTextOut_OutputPort(
1811 0,
1812 CdhCore::textLogger.get_TextLogger_InputPort(0)
1813 );
1814 ComCcsds::spacePacketDeframer.set_logTextOut_OutputPort(
1815 0,
1816 CdhCore::textLogger.get_TextLogger_InputPort(0)
1817 );
1818 ComCcsds::spacePacketFramer.set_logTextOut_OutputPort(
1819 0,
1820 CdhCore::textLogger.get_TextLogger_InputPort(0)
1821 );
1822 ComCcsds::tcDeframer.set_logTextOut_OutputPort(
1823 0,
1824 CdhCore::textLogger.get_TextLogger_InputPort(0)
1825 );
1826 DataProducts::dpBufferAccumulator.set_eventOutText_OutputPort(
1827 0,
1828 CdhCore::textLogger.get_TextLogger_InputPort(0)
1829 );
1830 DataProducts::dpBufferManager.set_textEventOut_OutputPort(
1831 0,
1832 CdhCore::textLogger.get_TextLogger_InputPort(0)
1833 );
1834 DataProducts::dpCat.set_LogText_OutputPort(
1835 0,
1836 CdhCore::textLogger.get_TextLogger_InputPort(0)
1837 );
1838 DataProducts::dpMgr.set_textEventOut_OutputPort(
1839 0,
1840 CdhCore::textLogger.get_TextLogger_InputPort(0)
1841 );
1842 DataProducts::dpWriter.set_textEventOut_OutputPort(
1843 0,
1844 CdhCore::textLogger.get_TextLogger_InputPort(0)
1845 );
1846 FileHandling::fileDownlink.set_textEventOut_OutputPort(
1847 0,
1848 CdhCore::textLogger.get_TextLogger_InputPort(0)
1849 );
1850 FileHandling::fileManager.set_LogText_OutputPort(
1851 0,
1852 CdhCore::textLogger.get_TextLogger_InputPort(0)
1853 );
1854 FileHandling::fileUplink.set_LogText_OutputPort(
1855 0,
1856 CdhCore::textLogger.get_TextLogger_InputPort(0)
1857 );
1858 FileHandling::prmDb.set_LogText_OutputPort(
1859 0,
1860 CdhCore::textLogger.get_TextLogger_InputPort(0)
1861 );
1862 Ref::SG1.set_logTextOut_OutputPort(
1863 0,
1864 CdhCore::textLogger.get_TextLogger_InputPort(0)
1865 );
1866 Ref::SG2.set_logTextOut_OutputPort(
1867 0,
1868 CdhCore::textLogger.get_TextLogger_InputPort(0)
1869 );
1870 Ref::SG3.set_logTextOut_OutputPort(
1871 0,
1872 CdhCore::textLogger.get_TextLogger_InputPort(0)
1873 );
1874 Ref::SG4.set_logTextOut_OutputPort(
1875 0,
1876 CdhCore::textLogger.get_TextLogger_InputPort(0)
1877 );
1878 Ref::SG5.set_logTextOut_OutputPort(
1879 0,
1880 CdhCore::textLogger.get_TextLogger_InputPort(0)
1881 );
1882 Ref::cmdSeq.set_LogText_OutputPort(
1883 0,
1884 CdhCore::textLogger.get_TextLogger_InputPort(0)
1885 );
1886 Ref::dpDemo.set_logTextOut_OutputPort(
1887 0,
1888 CdhCore::textLogger.get_TextLogger_InputPort(0)
1889 );
1890 Ref::pingRcvr.set_LogText_OutputPort(
1891 0,
1892 CdhCore::textLogger.get_TextLogger_InputPort(0)
1893 );
1894 Ref::rateGroup1Comp.set_LogText_OutputPort(
1895 0,
1896 CdhCore::textLogger.get_TextLogger_InputPort(0)
1897 );
1898 Ref::rateGroup2Comp.set_LogText_OutputPort(
1899 0,
1900 CdhCore::textLogger.get_TextLogger_InputPort(0)
1901 );
1902 Ref::rateGroup3Comp.set_LogText_OutputPort(
1903 0,
1904 CdhCore::textLogger.get_TextLogger_InputPort(0)
1905 );
1906 Ref::recvBuffComp.set_LogText_OutputPort(
1907 0,
1908 CdhCore::textLogger.get_TextLogger_InputPort(0)
1909 );
1910 Ref::sendBuffComp.set_LogText_OutputPort(
1911 0,
1912 CdhCore::textLogger.get_TextLogger_InputPort(0)
1913 );
1914 Ref::systemResources.set_LogText_OutputPort(
1915 0,
1916 CdhCore::textLogger.get_TextLogger_InputPort(0)
1917 );
1918 Ref::typeDemo.set_logTextOut_OutputPort(
1919 0,
1920 CdhCore::textLogger.get_TextLogger_InputPort(0)
1921 );
1922 Ref::wasmSeq.set_logTextOut_OutputPort(
1923 0,
1924 CdhCore::textLogger.get_TextLogger_InputPort(0)
1925 );
1926
1927 // Time
1928 CdhCore::cmdDisp.set_Time_OutputPort(
1929 0,
1930 Ref::posixTime.get_timeGetPort_InputPort(0)
1931 );
1932 CdhCore::events.set_Time_OutputPort(
1933 0,
1934 Ref::posixTime.get_timeGetPort_InputPort(0)
1935 );
1936 CdhCore::fatalAdapter.set_Time_OutputPort(
1937 0,
1938 Ref::posixTime.get_timeGetPort_InputPort(0)
1939 );
1940 CdhCore::health.set_Time_OutputPort(
1941 0,
1942 Ref::posixTime.get_timeGetPort_InputPort(0)
1943 );
1944 CdhCore::tlmSend.set_timeCaller_OutputPort(
1945 0,
1946 Ref::posixTime.get_timeGetPort_InputPort(0)
1947 );
1948 CdhCore::version.set_timeCaller_OutputPort(
1949 0,
1950 Ref::posixTime.get_timeGetPort_InputPort(0)
1951 );
1952 ComCcsds::apidManager.set_timeCaller_OutputPort(
1953 0,
1954 Ref::posixTime.get_timeGetPort_InputPort(0)
1955 );
1956 ComCcsds::comQueue.set_Time_OutputPort(
1957 0,
1958 Ref::posixTime.get_timeGetPort_InputPort(0)
1959 );
1960 ComCcsds::commsBufferManager.set_timeCaller_OutputPort(
1961 0,
1962 Ref::posixTime.get_timeGetPort_InputPort(0)
1963 );
1964 ComCcsds::fprimeRouter.set_timeCaller_OutputPort(
1965 0,
1966 Ref::posixTime.get_timeGetPort_InputPort(0)
1967 );
1968 ComCcsds::frameAccumulator.set_timeCaller_OutputPort(
1969 0,
1970 Ref::posixTime.get_timeGetPort_InputPort(0)
1971 );
1972 ComCcsds::framer.set_timeCaller_OutputPort(
1973 0,
1974 Ref::posixTime.get_timeGetPort_InputPort(0)
1975 );
1976 ComCcsds::spacePacketDeframer.set_timeCaller_OutputPort(
1977 0,
1978 Ref::posixTime.get_timeGetPort_InputPort(0)
1979 );
1980 ComCcsds::spacePacketFramer.set_timeCaller_OutputPort(
1981 0,
1982 Ref::posixTime.get_timeGetPort_InputPort(0)
1983 );
1984 ComCcsds::tcDeframer.set_timeCaller_OutputPort(
1985 0,
1986 Ref::posixTime.get_timeGetPort_InputPort(0)
1987 );
1988 DataProducts::dpBufferAccumulator.set_timeCaller_OutputPort(
1989 0,
1990 Ref::posixTime.get_timeGetPort_InputPort(0)
1991 );
1992 DataProducts::dpBufferManager.set_timeCaller_OutputPort(
1993 0,
1994 Ref::posixTime.get_timeGetPort_InputPort(0)
1995 );
1996 DataProducts::dpCat.set_Time_OutputPort(
1997 0,
1998 Ref::posixTime.get_timeGetPort_InputPort(0)
1999 );
2000 DataProducts::dpMgr.set_timeGetOut_OutputPort(
2001 0,
2002 Ref::posixTime.get_timeGetPort_InputPort(0)
2003 );
2004 DataProducts::dpWriter.set_timeGetOut_OutputPort(
2005 0,
2006 Ref::posixTime.get_timeGetPort_InputPort(0)
2007 );
2008 FileHandling::fileDownlink.set_timeCaller_OutputPort(
2009 0,
2010 Ref::posixTime.get_timeGetPort_InputPort(0)
2011 );
2012 FileHandling::fileManager.set_timeCaller_OutputPort(
2013 0,
2014 Ref::posixTime.get_timeGetPort_InputPort(0)
2015 );
2016 FileHandling::fileUplink.set_timeCaller_OutputPort(
2017 0,
2018 Ref::posixTime.get_timeGetPort_InputPort(0)
2019 );
2020 FileHandling::prmDb.set_Time_OutputPort(
2021 0,
2022 Ref::posixTime.get_timeGetPort_InputPort(0)
2023 );
2024 Ref::SG1.set_timeCaller_OutputPort(
2025 0,
2026 Ref::posixTime.get_timeGetPort_InputPort(0)
2027 );
2028 Ref::SG2.set_timeCaller_OutputPort(
2029 0,
2030 Ref::posixTime.get_timeGetPort_InputPort(0)
2031 );
2032 Ref::SG3.set_timeCaller_OutputPort(
2033 0,
2034 Ref::posixTime.get_timeGetPort_InputPort(0)
2035 );
2036 Ref::SG4.set_timeCaller_OutputPort(
2037 0,
2038 Ref::posixTime.get_timeGetPort_InputPort(0)
2039 );
2040 Ref::SG5.set_timeCaller_OutputPort(
2041 0,
2042 Ref::posixTime.get_timeGetPort_InputPort(0)
2043 );
2044 Ref::blockDrv.set_Time_OutputPort(
2045 0,
2046 Ref::posixTime.get_timeGetPort_InputPort(0)
2047 );
2048 Ref::cmdSeq.set_timeCaller_OutputPort(
2049 0,
2050 Ref::posixTime.get_timeGetPort_InputPort(0)
2051 );
2052 Ref::dpDemo.set_timeCaller_OutputPort(
2053 0,
2054 Ref::posixTime.get_timeGetPort_InputPort(0)
2055 );
2056 Ref::pingRcvr.set_Time_OutputPort(
2057 0,
2058 Ref::posixTime.get_timeGetPort_InputPort(0)
2059 );
2060 Ref::rateGroup1Comp.set_Time_OutputPort(
2061 0,
2062 Ref::posixTime.get_timeGetPort_InputPort(0)
2063 );
2064 Ref::rateGroup2Comp.set_Time_OutputPort(
2065 0,
2066 Ref::posixTime.get_timeGetPort_InputPort(0)
2067 );
2068 Ref::rateGroup3Comp.set_Time_OutputPort(
2069 0,
2070 Ref::posixTime.get_timeGetPort_InputPort(0)
2071 );
2072 Ref::recvBuffComp.set_Time_OutputPort(
2073 0,
2074 Ref::posixTime.get_timeGetPort_InputPort(0)
2075 );
2076 Ref::sendBuffComp.set_Time_OutputPort(
2077 0,
2078 Ref::posixTime.get_timeGetPort_InputPort(0)
2079 );
2080 Ref::systemResources.set_Time_OutputPort(
2081 0,
2082 Ref::posixTime.get_timeGetPort_InputPort(0)
2083 );
2084 Ref::typeDemo.set_timeCaller_OutputPort(
2085 0,
2086 Ref::posixTime.get_timeGetPort_InputPort(0)
2087 );
2088 Ref::wasmSeq.set_timeCaller_OutputPort(
2089 0,
2090 Ref::posixTime.get_timeGetPort_InputPort(0)
2091 );
2092
2093 // Uplink
2094 ComCcsds::fprimeRouter.set_dataReturnOut_OutputPort(
2095 0,
2096 ComCcsds::spacePacketDeframer.get_dataReturnIn_InputPort(0)
2097 );
2098 ComCcsds::frameAccumulator.set_bufferAllocate_OutputPort(
2099 0,
2100 ComCcsds::commsBufferManager.get_bufferGetCallee_InputPort(0)
2101 );
2102 ComCcsds::frameAccumulator.set_bufferDeallocate_OutputPort(
2103 0,
2104 ComCcsds::commsBufferManager.get_bufferSendIn_InputPort(0)
2105 );
2106 ComCcsds::frameAccumulator.set_dataOut_OutputPort(
2107 0,
2108 ComCcsds::tcDeframer.get_dataIn_InputPort(0)
2109 );
2110 ComCcsds::spacePacketDeframer.set_dataOut_OutputPort(
2111 0,
2112 ComCcsds::fprimeRouter.get_dataIn_InputPort(0)
2113 );
2114 ComCcsds::spacePacketDeframer.set_dataReturnOut_OutputPort(
2115 0,
2116 ComCcsds::tcDeframer.get_dataReturnIn_InputPort(0)
2117 );
2118 ComCcsds::spacePacketDeframer.set_validateApidSeqCount_OutputPort(
2119 0,
2120 ComCcsds::apidManager.get_validateApidSeqCountIn_InputPort(0)
2121 );
2122 ComCcsds::tcDeframer.set_dataOut_OutputPort(
2123 0,
2124 ComCcsds::spacePacketDeframer.get_dataIn_InputPort(0)
2125 );
2126 ComCcsds::tcDeframer.set_dataReturnOut_OutputPort(
2127 0,
2128 ComCcsds::frameAccumulator.get_dataReturnIn_InputPort(0)
2129 );
2130
2131 #endif
2132
2133 1 }
2134
2135 1 void regCommands() {
2136 1 CdhCore::cmdDisp.regCommands();
2137 1 CdhCore::events.regCommands();
2138 1 CdhCore::health.regCommands();
2139 1 CdhCore::version.regCommands();
2140 1 ComCcsds::comQueue.regCommands();
2141 1 DataProducts::dpBufferAccumulator.regCommands();
2142 1 DataProducts::dpCat.regCommands();
2143 1 DataProducts::dpMgr.regCommands();
2144 1 DataProducts::dpWriter.regCommands();
2145 1 FileHandling::fileDownlink.regCommands();
2146 1 FileHandling::fileManager.regCommands();
2147 1 FileHandling::prmDb.regCommands();
2148 1 Ref::SG1.regCommands();
2149 1 Ref::SG2.regCommands();
2150 1 Ref::SG3.regCommands();
2151 1 Ref::SG4.regCommands();
2152 1 Ref::SG5.regCommands();
2153 1 Ref::cmdSeq.regCommands();
2154 1 Ref::dpDemo.regCommands();
2155 1 Ref::pingRcvr.regCommands();
2156 1 Ref::recvBuffComp.regCommands();
2157 1 Ref::sendBuffComp.regCommands();
2158 1 Ref::systemResources.regCommands();
2159 1 Ref::typeDemo.regCommands();
2160 1 Ref::wasmSeq.regCommands();
2161 1 }
2162
2163 1 void readParameters() {
2164 1 FileHandling::prmDb.readParamFile();
2165 1 }
2166
2167 1 void loadParameters() {
2168 1 Ref::recvBuffComp.loadParameters();
2169 1 Ref::sendBuffComp.loadParameters();
2170 1 Ref::typeDemo.loadParameters();
2171 1 Ref::wasmSeq.loadParameters();
2172 1 }
2173
2174 1 void startTasks(const TopologyState& state) {
2175 1 CdhCore::cmdDisp.start(
2176 static_cast<FwTaskPriorityType>(Priorities::CdhCore_cmdDisp),
2177 static_cast<Os::Task::ParamType>(StackSizes::CdhCore_cmdDisp),
2178 static_cast<Os::Task::ParamType>(CPUs::CdhCore_cmdDisp),
2179 static_cast<Os::Task::ParamType>(TaskIds::CdhCore_cmdDisp)
2180 );
2181 1 CdhCore::events.start(
2182 static_cast<FwTaskPriorityType>(Priorities::CdhCore_events),
2183 static_cast<Os::Task::ParamType>(StackSizes::CdhCore_events),
2184 static_cast<Os::Task::ParamType>(CPUs::CdhCore_events),
2185 static_cast<Os::Task::ParamType>(TaskIds::CdhCore_events)
2186 );
2187 1 CdhCore::tlmSend.start(
2188 static_cast<FwTaskPriorityType>(Priorities::CdhCore_tlmSend),
2189 static_cast<Os::Task::ParamType>(StackSizes::CdhCore_tlmSend),
2190 static_cast<Os::Task::ParamType>(CPUs::CdhCore_tlmSend),
2191 static_cast<Os::Task::ParamType>(TaskIds::CdhCore_tlmSend)
2192 );
2193 // Startup TLM and EVENTS
2194 1 CdhCore::version.start();
2195 1 ComCcsds::aggregator.start(
2196 static_cast<FwTaskPriorityType>(Priorities::ComCcsds_aggregator),
2197 static_cast<Os::Task::ParamType>(StackSizes::ComCcsds_aggregator),
2198 static_cast<Os::Task::ParamType>(CPUs::ComCcsds_aggregator),
2199 static_cast<Os::Task::ParamType>(TaskIds::ComCcsds_aggregator)
2200 );
2201 1 ComCcsds::comQueue.start(
2202 static_cast<FwTaskPriorityType>(Priorities::ComCcsds_comQueue),
2203 static_cast<Os::Task::ParamType>(StackSizes::ComCcsds_comQueue),
2204 static_cast<Os::Task::ParamType>(CPUs::ComCcsds_comQueue),
2205 static_cast<Os::Task::ParamType>(TaskIds::ComCcsds_comQueue)
2206 );
2207 1 DataProducts::dpBufferAccumulator.start(
2208 static_cast<FwTaskPriorityType>(Priorities::DataProducts_dpBufferAccumulator),
2209 static_cast<Os::Task::ParamType>(StackSizes::DataProducts_dpBufferAccumulator),
2210 static_cast<Os::Task::ParamType>(CPUs::DataProducts_dpBufferAccumulator),
2211 static_cast<Os::Task::ParamType>(TaskIds::DataProducts_dpBufferAccumulator)
2212 );
2213 1 DataProducts::dpCat.start(
2214 static_cast<FwTaskPriorityType>(Priorities::DataProducts_dpCat),
2215 static_cast<Os::Task::ParamType>(StackSizes::DataProducts_dpCat),
2216 static_cast<Os::Task::ParamType>(CPUs::DataProducts_dpCat),
2217 static_cast<Os::Task::ParamType>(TaskIds::DataProducts_dpCat)
2218 );
2219 1 DataProducts::dpMgr.start(
2220 static_cast<FwTaskPriorityType>(Priorities::DataProducts_dpMgr),
2221 static_cast<Os::Task::ParamType>(StackSizes::DataProducts_dpMgr),
2222 static_cast<Os::Task::ParamType>(CPUs::DataProducts_dpMgr),
2223 static_cast<Os::Task::ParamType>(TaskIds::DataProducts_dpMgr)
2224 );
2225 1 DataProducts::dpWriter.start(
2226 static_cast<FwTaskPriorityType>(Priorities::DataProducts_dpWriter),
2227 static_cast<Os::Task::ParamType>(StackSizes::DataProducts_dpWriter),
2228 static_cast<Os::Task::ParamType>(CPUs::DataProducts_dpWriter),
2229 static_cast<Os::Task::ParamType>(TaskIds::DataProducts_dpWriter)
2230 );
2231 1 FileHandling::fileDownlink.start(
2232 static_cast<FwTaskPriorityType>(Priorities::FileHandling_fileDownlink),
2233 static_cast<Os::Task::ParamType>(StackSizes::FileHandling_fileDownlink),
2234 static_cast<Os::Task::ParamType>(CPUs::FileHandling_fileDownlink),
2235 static_cast<Os::Task::ParamType>(TaskIds::FileHandling_fileDownlink)
2236 );
2237 1 FileHandling::fileManager.start(
2238 static_cast<FwTaskPriorityType>(Priorities::FileHandling_fileManager),
2239 static_cast<Os::Task::ParamType>(StackSizes::FileHandling_fileManager),
2240 static_cast<Os::Task::ParamType>(CPUs::FileHandling_fileManager),
2241 static_cast<Os::Task::ParamType>(TaskIds::FileHandling_fileManager)
2242 );
2243 1 FileHandling::fileUplink.start(
2244 static_cast<FwTaskPriorityType>(Priorities::FileHandling_fileUplink),
2245 static_cast<Os::Task::ParamType>(StackSizes::FileHandling_fileUplink),
2246 static_cast<Os::Task::ParamType>(CPUs::FileHandling_fileUplink),
2247 static_cast<Os::Task::ParamType>(TaskIds::FileHandling_fileUplink)
2248 );
2249 1 FileHandling::prmDb.start(
2250 static_cast<FwTaskPriorityType>(Priorities::FileHandling_prmDb),
2251 static_cast<Os::Task::ParamType>(StackSizes::FileHandling_prmDb),
2252 static_cast<Os::Task::ParamType>(CPUs::FileHandling_prmDb),
2253 static_cast<Os::Task::ParamType>(TaskIds::FileHandling_prmDb)
2254 );
2255 1 Ref::blockDrv.start(
2256 static_cast<FwTaskPriorityType>(Priorities::Ref_blockDrv),
2257 static_cast<Os::Task::ParamType>(StackSizes::Ref_blockDrv),
2258 Os::Task::TASK_DEFAULT, // Default CPU
2259 static_cast<Os::Task::ParamType>(TaskIds::Ref_blockDrv)
2260 );
2261 1 Ref::cmdSeq.start(
2262 static_cast<FwTaskPriorityType>(Priorities::Ref_cmdSeq),
2263 static_cast<Os::Task::ParamType>(StackSizes::Ref_cmdSeq),
2264 Os::Task::TASK_DEFAULT, // Default CPU
2265 static_cast<Os::Task::ParamType>(TaskIds::Ref_cmdSeq)
2266 );
2267 1 Ref::dpDemo.start(
2268 static_cast<FwTaskPriorityType>(Priorities::Ref_dpDemo),
2269 static_cast<Os::Task::ParamType>(StackSizes::Ref_dpDemo),
2270 Os::Task::TASK_DEFAULT, // Default CPU
2271 static_cast<Os::Task::ParamType>(TaskIds::Ref_dpDemo)
2272 );
2273 1 Ref::pingRcvr.start(
2274 static_cast<FwTaskPriorityType>(Priorities::Ref_pingRcvr),
2275 static_cast<Os::Task::ParamType>(StackSizes::Ref_pingRcvr),
2276 Os::Task::TASK_DEFAULT, // Default CPU
2277 static_cast<Os::Task::ParamType>(TaskIds::Ref_pingRcvr)
2278 );
2279 1 Ref::rateGroup1Comp.start(
2280 static_cast<FwTaskPriorityType>(Priorities::Ref_rateGroup1Comp),
2281 static_cast<Os::Task::ParamType>(StackSizes::Ref_rateGroup1Comp),
2282 Os::Task::TASK_DEFAULT, // Default CPU
2283 static_cast<Os::Task::ParamType>(TaskIds::Ref_rateGroup1Comp)
2284 );
2285 1 Ref::rateGroup2Comp.start(
2286 static_cast<FwTaskPriorityType>(Priorities::Ref_rateGroup2Comp),
2287 static_cast<Os::Task::ParamType>(StackSizes::Ref_rateGroup2Comp),
2288 Os::Task::TASK_DEFAULT, // Default CPU
2289 static_cast<Os::Task::ParamType>(TaskIds::Ref_rateGroup2Comp)
2290 );
2291 1 Ref::rateGroup3Comp.start(
2292 static_cast<FwTaskPriorityType>(Priorities::Ref_rateGroup3Comp),
2293 static_cast<Os::Task::ParamType>(StackSizes::Ref_rateGroup3Comp),
2294 Os::Task::TASK_DEFAULT, // Default CPU
2295 static_cast<Os::Task::ParamType>(TaskIds::Ref_rateGroup3Comp)
2296 );
2297 1 Ref::wasmSeq.start(
2298 static_cast<FwTaskPriorityType>(Priorities::Ref_wasmSeq),
2299 static_cast<Os::Task::ParamType>(StackSizes::Ref_wasmSeq),
2300 Os::Task::TASK_DEFAULT, // Default CPU
2301 static_cast<Os::Task::ParamType>(TaskIds::Ref_wasmSeq)
2302 );
2303 1 }
2304
2305 1 void stopTasks(const TopologyState& state) {
2306 1 CdhCore::cmdDisp.exit();
2307 1 CdhCore::events.exit();
2308 1 CdhCore::tlmSend.exit();
2309 1 ComCcsds::aggregator.exit();
2310 1 ComCcsds::comQueue.exit();
2311 1 DataProducts::dpBufferAccumulator.exit();
2312 1 DataProducts::dpCat.exit();
2313 1 DataProducts::dpMgr.exit();
2314 1 DataProducts::dpWriter.exit();
2315 1 FileHandling::fileDownlink.exit();
2316 1 FileHandling::fileManager.exit();
2317 1 FileHandling::fileUplink.exit();
2318 1 FileHandling::prmDb.exit();
2319 1 Ref::blockDrv.exit();
2320 1 Ref::cmdSeq.exit();
2321 1 Ref::dpDemo.exit();
2322 1 Ref::pingRcvr.exit();
2323 1 Ref::rateGroup1Comp.exit();
2324 1 Ref::rateGroup2Comp.exit();
2325 1 Ref::rateGroup3Comp.exit();
2326 1 Ref::wasmSeq.exit();
2327 1 }
2328
2329 1 void freeThreads(const TopologyState& state) {
2330 1 (void) CdhCore::cmdDisp.ActiveComponentBase::join();
2331 1 (void) CdhCore::events.ActiveComponentBase::join();
2332 1 (void) CdhCore::tlmSend.ActiveComponentBase::join();
2333 1 (void) ComCcsds::aggregator.ActiveComponentBase::join();
2334 1 (void) ComCcsds::comQueue.ActiveComponentBase::join();
2335 1 (void) DataProducts::dpBufferAccumulator.ActiveComponentBase::join();
2336 1 (void) DataProducts::dpCat.ActiveComponentBase::join();
2337 1 (void) DataProducts::dpMgr.ActiveComponentBase::join();
2338 1 (void) DataProducts::dpWriter.ActiveComponentBase::join();
2339 1 (void) FileHandling::fileDownlink.ActiveComponentBase::join();
2340 1 (void) FileHandling::fileManager.ActiveComponentBase::join();
2341 1 (void) FileHandling::fileUplink.ActiveComponentBase::join();
2342 1 (void) FileHandling::prmDb.ActiveComponentBase::join();
2343 1 (void) Ref::blockDrv.ActiveComponentBase::join();
2344 1 (void) Ref::cmdSeq.ActiveComponentBase::join();
2345 1 (void) Ref::dpDemo.ActiveComponentBase::join();
2346 1 (void) Ref::pingRcvr.ActiveComponentBase::join();
2347 1 (void) Ref::rateGroup1Comp.ActiveComponentBase::join();
2348 1 (void) Ref::rateGroup2Comp.ActiveComponentBase::join();
2349 1 (void) Ref::rateGroup3Comp.ActiveComponentBase::join();
2350 1 (void) Ref::wasmSeq.ActiveComponentBase::join();
2351 1 }
2352
2353 1 void tearDownComponents(const TopologyState& state) {
2354 1 ComCcsds::comQueue.cleanup();
2355 1 ComCcsds::commsBufferManager.cleanup();
2356 1 ComCcsds::frameAccumulator.cleanup();
2357 1 DataProducts::dpBufferAccumulator.deallocateQueue(DataProducts::Allocation::memAllocator);
2358 1 DataProducts::dpCat.shutdown();
2359 1 DataProducts::dpBufferManager.cleanup();
2360 1 }
2361
2362 1 void deinitComponents(const TopologyState& state) {
2363 1 CdhCore::cmdDisp.deinit();
2364 1 CdhCore::events.deinit();
2365 1 CdhCore::fatalAdapter.deinit();
2366 1 CdhCore::fatalHandler.deinit();
2367 1 CdhCore::health.deinit();
2368 1 CdhCore::textLogger.deinit();
2369 1 CdhCore::tlmSend.deinit();
2370 1 CdhCore::version.deinit();
2371 1 ComCcsds::aggregator.deinit();
2372 1 ComCcsds::apidManager.deinit();
2373 1 ComCcsds::comQueue.deinit();
2374 1 ComCcsds::comStub.deinit();
2375 1 ComCcsds::commsBufferManager.deinit();
2376 1 ComCcsds::fprimeRouter.deinit();
2377 1 ComCcsds::frameAccumulator.deinit();
2378 1 ComCcsds::framer.deinit();
2379 1 ComCcsds::spacePacketDeframer.deinit();
2380 1 ComCcsds::spacePacketFramer.deinit();
2381 1 ComCcsds::tcDeframer.deinit();
2382 1 DataProducts::dpBufferAccumulator.deinit();
2383 1 DataProducts::dpBufferManager.deinit();
2384 1 DataProducts::dpCat.deinit();
2385 1 DataProducts::dpMgr.deinit();
2386 1 DataProducts::dpWriter.deinit();
2387 1 FileHandling::fileDownlink.deinit();
2388 1 FileHandling::fileManager.deinit();
2389 1 FileHandling::fileUplink.deinit();
2390 1 FileHandling::prmDb.deinit();
2391 1 Ref::SG1.deinit();
2392 1 Ref::SG2.deinit();
2393 1 Ref::SG3.deinit();
2394 1 Ref::SG4.deinit();
2395 1 Ref::SG5.deinit();
2396 1 Ref::blockDrv.deinit();
2397 1 Ref::cmdSeq.deinit();
2398 1 Ref::comDriver.deinit();
2399 1 Ref::dpDemo.deinit();
2400 1 Ref::linuxTimer.deinit();
2401 1 Ref::pingRcvr.deinit();
2402 1 Ref::posixTime.deinit();
2403 1 Ref::rateGroup1Comp.deinit();
2404 1 Ref::rateGroup2Comp.deinit();
2405 1 Ref::rateGroup3Comp.deinit();
2406 1 Ref::rateGroupDriverComp.deinit();
2407 1 Ref::recvBuffComp.deinit();
2408 1 Ref::sendBuffComp.deinit();
2409 1 Ref::systemResources.deinit();
2410 1 Ref::typeDemo.deinit();
2411 1 Ref::wasmSeq.deinit();
2412 1 }
2413
2414 // ----------------------------------------------------------------------
2415 // Setup and teardown functions
2416 // ----------------------------------------------------------------------
2417
2418 ✗ void setup(const TopologyState& state) {
2419 ✗ initComponents(state);
2420 ✗ configComponents(state);
2421 ✗ setBaseIds();
2422 ✗ connectComponents();
2423 ✗ regCommands();
2424 ✗ readParameters();
2425 ✗ loadParameters();
2426 ✗ startTasks(state);
2427 ✗ }
2428
2429 ✗ void teardown(const TopologyState& state) {
2430 ✗ stopTasks(state);
2431 ✗ freeThreads(state);
2432 ✗ tearDownComponents(state);
2433 ✗ deinitComponents(state);
2434 ✗ }
2435
2436 }
2437
2438 #if FW_DIRECT_PORT_CALLS
2439
2440 // ----------------------------------------------------------------------
2441 // Topology-dependent component implementation
2442 // ----------------------------------------------------------------------
2443
2444 namespace Drv {
2445
2446 ✗ bool TcpClientComponentBase::isConnected_allocate_OutputPort(FwIndexType portNum) const {
2447 ✗ FW_ASSERT(
2448 (0 <= portNum) && (portNum < NUM_ALLOCATE_OUTPUT_PORTS),
2449 static_cast<FwAssertArgType>(portNum),
2450 static_cast<FwAssertArgType>(NUM_ALLOCATE_OUTPUT_PORTS)
2451 );
2452 ✗ bool result = false;
2453 ✗ switch (portNum) {
2454 ✗ case 0:
2455 ✗ result = true;
2456 ✗ break;
2457 ✗ default:
2458 ✗ break;
2459 }
2460 ✗ return result;
2461 }
2462
2463 ✗ bool TcpClientComponentBase::isConnected_deallocate_OutputPort(FwIndexType portNum) const {
2464 ✗ FW_ASSERT(
2465 (0 <= portNum) && (portNum < NUM_DEALLOCATE_OUTPUT_PORTS),
2466 static_cast<FwAssertArgType>(portNum),
2467 static_cast<FwAssertArgType>(NUM_DEALLOCATE_OUTPUT_PORTS)
2468 );
2469 ✗ bool result = false;
2470 ✗ switch (portNum) {
2471 ✗ case 0:
2472 ✗ result = true;
2473 ✗ break;
2474 ✗ default:
2475 ✗ break;
2476 }
2477 ✗ return result;
2478 }
2479
2480 1 bool TcpClientComponentBase::isConnected_ready_OutputPort(FwIndexType portNum) const {
2481 1 FW_ASSERT(
2482 (0 <= portNum) && (portNum < NUM_READY_OUTPUT_PORTS),
2483 static_cast<FwAssertArgType>(portNum),
2484 static_cast<FwAssertArgType>(NUM_READY_OUTPUT_PORTS)
2485 );
2486 1 bool result = false;
2487
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
2488 1 case 0:
2489 1 result = true;
2490 1 break;
2491 ✗ default:
2492 ✗ break;
2493 }
2494 1 return result;
2495 }
2496
2497 ✗ bool TcpClientComponentBase::isConnected_recv_OutputPort(FwIndexType portNum) const {
2498 ✗ FW_ASSERT(
2499 (0 <= portNum) && (portNum < NUM_RECV_OUTPUT_PORTS),
2500 static_cast<FwAssertArgType>(portNum),
2501 static_cast<FwAssertArgType>(NUM_RECV_OUTPUT_PORTS)
2502 );
2503 ✗ bool result = false;
2504 ✗ switch (portNum) {
2505 ✗ case 0:
2506 ✗ result = true;
2507 ✗ break;
2508 ✗ default:
2509 ✗ break;
2510 }
2511 ✗ return result;
2512 }
2513
2514 630 Fw::Buffer TcpClientComponentBase::allocate_out(
2515 FwIndexType portNum,
2516 FwSizeType size
2517 ) const {
2518 630 FW_ASSERT(
2519 (0 <= portNum) && (portNum < NUM_ALLOCATE_OUTPUT_PORTS),
2520 static_cast<FwAssertArgType>(portNum),
2521 static_cast<FwAssertArgType>(NUM_ALLOCATE_OUTPUT_PORTS)
2522 );
2523 630 Fw::Buffer _result = {};
2524
1/2
✓ Branch 0 taken 630 times.
✗ Branch 1 not taken.
630 switch (portNum) {
2525 630 case 0:
2526
1/1
✓ Branch 1 taken 630 times.
1260 _result = ComCcsds::commsBufferManager.bufferGetCallee_handlerBase(
2527 0,
2528 size
2529
1/1
✓ Branch 1 taken 630 times.
630 );
2530 630 break;
2531 ✗ default:
2532 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
2533 ✗ break;
2534 }
2535 630 return _result;
2536 ✗ }
2537
2538 630 void TcpClientComponentBase::deallocate_out(
2539 FwIndexType portNum,
2540 Fw::Buffer& fwBuffer
2541 ) const {
2542 630 FW_ASSERT(
2543 (0 <= portNum) && (portNum < NUM_DEALLOCATE_OUTPUT_PORTS),
2544 static_cast<FwAssertArgType>(portNum),
2545 static_cast<FwAssertArgType>(NUM_DEALLOCATE_OUTPUT_PORTS)
2546 );
2547
1/2
✓ Branch 0 taken 630 times.
✗ Branch 1 not taken.
630 switch (portNum) {
2548 630 case 0:
2549 630 ComCcsds::commsBufferManager.bufferSendIn_handlerBase(
2550 0,
2551 fwBuffer
2552 );
2553 630 break;
2554 ✗ default:
2555 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
2556 ✗ break;
2557 }
2558 630 }
2559
2560 1 void TcpClientComponentBase::ready_out(FwIndexType portNum) const {
2561 1 FW_ASSERT(
2562 (0 <= portNum) && (portNum < NUM_READY_OUTPUT_PORTS),
2563 static_cast<FwAssertArgType>(portNum),
2564 static_cast<FwAssertArgType>(NUM_READY_OUTPUT_PORTS)
2565 );
2566
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
2567 1 case 0:
2568 1 ComCcsds::comStub.drvConnected_handlerBase(0);
2569 1 break;
2570 ✗ default:
2571 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
2572 ✗ break;
2573 }
2574 1 }
2575
2576 630 void TcpClientComponentBase::recv_out(
2577 FwIndexType portNum,
2578 Fw::Buffer& buffer,
2579 const Drv::ByteStreamStatus& status
2580 ) const {
2581 630 FW_ASSERT(
2582 (0 <= portNum) && (portNum < NUM_RECV_OUTPUT_PORTS),
2583 static_cast<FwAssertArgType>(portNum),
2584 static_cast<FwAssertArgType>(NUM_RECV_OUTPUT_PORTS)
2585 );
2586
1/2
✓ Branch 0 taken 630 times.
✗ Branch 1 not taken.
630 switch (portNum) {
2587 630 case 0:
2588 630 ComCcsds::comStub.drvReceiveIn_handlerBase(
2589 0,
2590 buffer,
2591 status
2592 );
2593 630 break;
2594 ✗ default:
2595 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
2596 ✗ break;
2597 }
2598 630 }
2599
2600 }
2601
2602 namespace Ref {
2603
2604 ✗ bool BlockDriverComponentBase::isConnected_BufferOut_OutputPort(FwIndexType portNum) const {
2605 ✗ FW_ASSERT(
2606 (0 <= portNum) && (portNum < NUM_BUFFEROUT_OUTPUT_PORTS),
2607 static_cast<FwAssertArgType>(portNum),
2608 static_cast<FwAssertArgType>(NUM_BUFFEROUT_OUTPUT_PORTS)
2609 );
2610 ✗ bool result = false;
2611 ✗ switch (portNum) {
2612 ✗ case 0:
2613 ✗ result = true;
2614 ✗ break;
2615 ✗ default:
2616 ✗ break;
2617 }
2618 ✗ return result;
2619 }
2620
2621 ✗ bool BlockDriverComponentBase::isConnected_CycleOut_OutputPort(FwIndexType portNum) const {
2622 ✗ FW_ASSERT(
2623 (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS),
2624 static_cast<FwAssertArgType>(portNum),
2625 static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS)
2626 );
2627 ✗ bool result = false;
2628 ✗ switch (portNum) {
2629 default:
2630 ✗ break;
2631 }
2632 ✗ return result;
2633 }
2634
2635 ✗ bool BlockDriverComponentBase::isConnected_PingOut_OutputPort(FwIndexType portNum) const {
2636 ✗ FW_ASSERT(
2637 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
2638 static_cast<FwAssertArgType>(portNum),
2639 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
2640 );
2641 ✗ bool result = false;
2642 ✗ switch (portNum) {
2643 ✗ case 0:
2644 ✗ result = true;
2645 ✗ break;
2646 ✗ default:
2647 ✗ break;
2648 }
2649 ✗ return result;
2650 }
2651
2652 61 bool BlockDriverComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
2653 61 FW_ASSERT(
2654 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
2655 static_cast<FwAssertArgType>(portNum),
2656 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
2657 );
2658 61 bool result = false;
2659
1/2
✓ Branch 0 taken 61 times.
✗ Branch 1 not taken.
61 switch (portNum) {
2660 61 case 0:
2661 61 result = true;
2662 61 break;
2663 ✗ default:
2664 ✗ break;
2665 }
2666 61 return result;
2667 }
2668
2669 122 bool BlockDriverComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const {
2670 122 FW_ASSERT(
2671 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
2672 static_cast<FwAssertArgType>(portNum),
2673 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
2674 );
2675 122 bool result = false;
2676
1/2
✓ Branch 0 taken 122 times.
✗ Branch 1 not taken.
122 switch (portNum) {
2677 122 case 0:
2678 122 result = true;
2679 122 break;
2680 ✗ default:
2681 ✗ break;
2682 }
2683 122 return result;
2684 }
2685
2686 ✗ void BlockDriverComponentBase::BufferOut_out(
2687 FwIndexType portNum,
2688 Drv::DataBuffer& buff
2689 ) const {
2690 ✗ FW_ASSERT(
2691 (0 <= portNum) && (portNum < NUM_BUFFEROUT_OUTPUT_PORTS),
2692 static_cast<FwAssertArgType>(portNum),
2693 static_cast<FwAssertArgType>(NUM_BUFFEROUT_OUTPUT_PORTS)
2694 );
2695 ✗ switch (portNum) {
2696 ✗ case 0:
2697 ✗ Ref::recvBuffComp.Data_handlerBase(
2698 0,
2699 buff
2700 );
2701 ✗ break;
2702 ✗ default:
2703 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
2704 ✗ break;
2705 }
2706 ✗ }
2707
2708 ✗ void BlockDriverComponentBase::CycleOut_out(
2709 FwIndexType portNum,
2710 Os::RawTime& cycleStart
2711 ) const {
2712 ✗ FW_ASSERT(
2713 (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS),
2714 static_cast<FwAssertArgType>(portNum),
2715 static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS)
2716 );
2717 ✗ switch (portNum) {
2718 default:
2719 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
2720 ✗ break;
2721 }
2722 ✗ }
2723
2724 61 void BlockDriverComponentBase::PingOut_out(
2725 FwIndexType portNum,
2726 U32 key
2727 ) const {
2728 61 FW_ASSERT(
2729 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
2730 static_cast<FwAssertArgType>(portNum),
2731 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
2732 );
2733
1/2
✓ Branch 0 taken 61 times.
✗ Branch 1 not taken.
61 switch (portNum) {
2734 61 case 0:
2735 61 CdhCore::health.PingReturn_handlerBase(
2736 9,
2737 key
2738 );
2739 61 break;
2740 ✗ default:
2741 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
2742 ✗ break;
2743 }
2744 61 }
2745
2746 61 void BlockDriverComponentBase::Time_out(
2747 FwIndexType portNum,
2748 Fw::Time& time
2749 ) const {
2750 61 FW_ASSERT(
2751 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
2752 static_cast<FwAssertArgType>(portNum),
2753 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
2754 );
2755
1/2
✓ Branch 0 taken 61 times.
✗ Branch 1 not taken.
61 switch (portNum) {
2756 61 case 0:
2757 61 Ref::posixTime.timeGetPort_handlerBase(
2758 0,
2759 time
2760 );
2761 61 break;
2762 ✗ default:
2763 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
2764 ✗ break;
2765 }
2766 61 }
2767
2768 61 void BlockDriverComponentBase::Tlm_out(
2769 FwIndexType portNum,
2770 FwChanIdType id,
2771 Fw::Time& timeTag,
2772 Fw::TlmBuffer& val
2773 ) const {
2774 61 FW_ASSERT(
2775 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
2776 static_cast<FwAssertArgType>(portNum),
2777 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
2778 );
2779
1/2
✓ Branch 0 taken 61 times.
✗ Branch 1 not taken.
61 switch (portNum) {
2780 61 case 0:
2781 61 CdhCore::tlmSend.TlmRecv_handlerBase(
2782 0,
2783 id,
2784 timeTag,
2785 val
2786 );
2787 61 break;
2788 ✗ default:
2789 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
2790 ✗ break;
2791 }
2792 61 }
2793
2794 }
2795
2796 namespace Ref {
2797
2798 1 bool DpDemoComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const {
2799 1 FW_ASSERT(
2800 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
2801 static_cast<FwAssertArgType>(portNum),
2802 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
2803 );
2804 1 bool result = false;
2805
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
2806 1 case 0:
2807 1 result = true;
2808 1 break;
2809 ✗ default:
2810 ✗ break;
2811 }
2812 1 return result;
2813 }
2814
2815 2 bool DpDemoComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const {
2816 2 FW_ASSERT(
2817 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
2818 static_cast<FwAssertArgType>(portNum),
2819 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
2820 );
2821 2 bool result = false;
2822
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
2823 2 case 0:
2824 2 result = true;
2825 2 break;
2826 ✗ default:
2827 ✗ break;
2828 }
2829 2 return result;
2830 }
2831
2832 8 bool DpDemoComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
2833 8 FW_ASSERT(
2834 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
2835 static_cast<FwAssertArgType>(portNum),
2836 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
2837 );
2838 8 bool result = false;
2839
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
2840 8 case 0:
2841 8 result = true;
2842 8 break;
2843 ✗ default:
2844 ✗ break;
2845 }
2846 8 return result;
2847 }
2848
2849 #if FW_ENABLE_TEXT_LOGGING == 1
2850
2851 8 bool DpDemoComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
2852 8 FW_ASSERT(
2853 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
2854 static_cast<FwAssertArgType>(portNum),
2855 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
2856 );
2857 8 bool result = false;
2858
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
2859 8 case 0:
2860 8 result = true;
2861 8 break;
2862 ✗ default:
2863 ✗ break;
2864 }
2865 8 return result;
2866 }
2867
2868 #endif
2869
2870 ✗ bool DpDemoComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const {
2871 ✗ FW_ASSERT(
2872 (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS),
2873 static_cast<FwAssertArgType>(portNum),
2874 static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS)
2875 );
2876 ✗ bool result = false;
2877 ✗ switch (portNum) {
2878 ✗ case 0:
2879 ✗ result = true;
2880 ✗ break;
2881 ✗ default:
2882 ✗ break;
2883 }
2884 ✗ return result;
2885 }
2886
2887 ✗ bool DpDemoComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const {
2888 ✗ FW_ASSERT(
2889 (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS),
2890 static_cast<FwAssertArgType>(portNum),
2891 static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS)
2892 );
2893 ✗ bool result = false;
2894 ✗ switch (portNum) {
2895 ✗ case 0:
2896 ✗ result = true;
2897 ✗ break;
2898 ✗ default:
2899 ✗ break;
2900 }
2901 ✗ return result;
2902 }
2903
2904 2 bool DpDemoComponentBase::isConnected_productGetOut_OutputPort(FwIndexType portNum) const {
2905 2 FW_ASSERT(
2906 (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS),
2907 static_cast<FwAssertArgType>(portNum),
2908 static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS)
2909 );
2910 2 bool result = false;
2911
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
2912 2 case 0:
2913 2 result = true;
2914 2 break;
2915 ✗ default:
2916 ✗ break;
2917 }
2918 2 return result;
2919 }
2920
2921 2 bool DpDemoComponentBase::isConnected_productRequestOut_OutputPort(FwIndexType portNum) const {
2922 2 FW_ASSERT(
2923 (0 <= portNum) && (portNum < NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS),
2924 static_cast<FwAssertArgType>(portNum),
2925 static_cast<FwAssertArgType>(NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS)
2926 );
2927 2 bool result = false;
2928
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
2929 2 case 0:
2930 2 result = true;
2931 2 break;
2932 ✗ default:
2933 ✗ break;
2934 }
2935 2 return result;
2936 }
2937
2938 ✗ bool DpDemoComponentBase::isConnected_productSendOut_OutputPort(FwIndexType portNum) const {
2939 ✗ FW_ASSERT(
2940 (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS),
2941 static_cast<FwAssertArgType>(portNum),
2942 static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS)
2943 );
2944 ✗ bool result = false;
2945 ✗ switch (portNum) {
2946 ✗ case 0:
2947 ✗ result = true;
2948 ✗ break;
2949 ✗ default:
2950 ✗ break;
2951 }
2952 ✗ return result;
2953 }
2954
2955 10 bool DpDemoComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
2956 10 FW_ASSERT(
2957 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
2958 static_cast<FwAssertArgType>(portNum),
2959 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
2960 );
2961 10 bool result = false;
2962
1/2
✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
10 switch (portNum) {
2963 10 case 0:
2964 10 result = true;
2965 10 break;
2966 ✗ default:
2967 ✗ break;
2968 }
2969 10 return result;
2970 }
2971
2972 ✗ bool DpDemoComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
2973 ✗ FW_ASSERT(
2974 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
2975 static_cast<FwAssertArgType>(portNum),
2976 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
2977 );
2978 ✗ bool result = false;
2979 ✗ switch (portNum) {
2980 ✗ case 0:
2981 ✗ result = true;
2982 ✗ break;
2983 ✗ default:
2984 ✗ break;
2985 }
2986 ✗ return result;
2987 }
2988
2989 2 void DpDemoComponentBase::cmdRegOut_out(
2990 FwIndexType portNum,
2991 FwOpcodeType opCode
2992 ) const {
2993 2 FW_ASSERT(
2994 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
2995 static_cast<FwAssertArgType>(portNum),
2996 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
2997 );
2998
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
2999 2 case 0:
3000 2 CdhCore::cmdDisp.compCmdReg_handlerBase(
3001 18,
3002 opCode
3003 );
3004 2 break;
3005 ✗ default:
3006 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3007 ✗ break;
3008 }
3009 2 }
3010
3011 2 void DpDemoComponentBase::cmdResponseOut_out(
3012 FwIndexType portNum,
3013 FwOpcodeType opCode,
3014 U32 cmdSeq,
3015 const Fw::CmdResponse& response
3016 ) const {
3017 2 FW_ASSERT(
3018 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
3019 static_cast<FwAssertArgType>(portNum),
3020 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
3021 );
3022
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
3023 2 case 0:
3024 2 CdhCore::cmdDisp.compCmdStat_handlerBase(
3025 0,
3026 opCode,
3027 cmdSeq,
3028 response
3029 );
3030 2 break;
3031 ✗ default:
3032 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3033 ✗ break;
3034 }
3035 2 }
3036
3037 8 void DpDemoComponentBase::logOut_out(
3038 FwIndexType portNum,
3039 FwEventIdType id,
3040 Fw::Time& timeTag,
3041 const Fw::LogSeverity& severity,
3042 Fw::LogBuffer& args
3043 ) const {
3044 8 FW_ASSERT(
3045 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
3046 static_cast<FwAssertArgType>(portNum),
3047 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
3048 );
3049
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
3050 8 case 0:
3051 8 CdhCore::events.LogRecv_handlerBase(
3052 0,
3053 id,
3054 timeTag,
3055 severity,
3056 args
3057 );
3058 8 break;
3059 ✗ default:
3060 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3061 ✗ break;
3062 }
3063 8 }
3064
3065 #if FW_ENABLE_TEXT_LOGGING == 1
3066
3067 8 void DpDemoComponentBase::logTextOut_out(
3068 FwIndexType portNum,
3069 FwEventIdType id,
3070 Fw::Time& timeTag,
3071 const Fw::LogSeverity& severity,
3072 Fw::TextLogString& text
3073 ) const {
3074 8 FW_ASSERT(
3075 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
3076 static_cast<FwAssertArgType>(portNum),
3077 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
3078 );
3079
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
3080 8 case 0:
3081 8 CdhCore::textLogger.TextLogger_handlerBase(
3082 0,
3083 id,
3084 timeTag,
3085 severity,
3086 text
3087 );
3088 8 break;
3089 ✗ default:
3090 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3091 ✗ break;
3092 }
3093 8 }
3094
3095 #endif
3096
3097 2 Fw::Success DpDemoComponentBase::productGetOut_out(
3098 FwIndexType portNum,
3099 FwDpIdType id,
3100 FwSizeType dataSize,
3101 Fw::Buffer& buffer
3102 ) const {
3103 2 FW_ASSERT(
3104 (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS),
3105 static_cast<FwAssertArgType>(portNum),
3106 static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS)
3107 );
3108 2 Fw::Success _result = {};
3109
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
3110 2 case 0:
3111
1/1
✓ Branch 1 taken 2 times.
4 _result = DataProducts::dpMgr.productGetIn_handlerBase(
3112 0,
3113 id,
3114 dataSize,
3115 buffer
3116
1/1
✓ Branch 1 taken 2 times.
2 );
3117 2 break;
3118 ✗ default:
3119 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3120 ✗ break;
3121 }
3122 2 return _result;
3123 ✗ }
3124
3125 ✗ void DpDemoComponentBase::productRequestOut_out(
3126 FwIndexType portNum,
3127 FwDpIdType id,
3128 FwSizeType dataSize
3129 ) const {
3130 ✗ FW_ASSERT(
3131 (0 <= portNum) && (portNum < NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS),
3132 static_cast<FwAssertArgType>(portNum),
3133 static_cast<FwAssertArgType>(NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS)
3134 );
3135 ✗ switch (portNum) {
3136 ✗ case 0:
3137 ✗ DataProducts::dpMgr.productRequestIn_handlerBase(
3138 0,
3139 id,
3140 dataSize
3141 );
3142 ✗ break;
3143 ✗ default:
3144 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3145 ✗ break;
3146 }
3147 ✗ }
3148
3149 2 void DpDemoComponentBase::productSendOut_out(
3150 FwIndexType portNum,
3151 FwDpIdType id,
3152 const Fw::Buffer& buffer
3153 ) const {
3154 2 FW_ASSERT(
3155 (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS),
3156 static_cast<FwAssertArgType>(portNum),
3157 static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS)
3158 );
3159
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
3160 2 case 0:
3161 2 DataProducts::dpMgr.productSendIn_handlerBase(
3162 0,
3163 id,
3164 buffer
3165 );
3166 2 break;
3167 ✗ default:
3168 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3169 ✗ break;
3170 }
3171 2 }
3172
3173 10 void DpDemoComponentBase::timeCaller_out(
3174 FwIndexType portNum,
3175 Fw::Time& time
3176 ) const {
3177 10 FW_ASSERT(
3178 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
3179 static_cast<FwAssertArgType>(portNum),
3180 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
3181 );
3182
1/2
✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
10 switch (portNum) {
3183 10 case 0:
3184 10 Ref::posixTime.timeGetPort_handlerBase(
3185 0,
3186 time
3187 );
3188 10 break;
3189 ✗ default:
3190 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3191 ✗ break;
3192 }
3193 10 }
3194
3195 }
3196
3197 namespace Ref {
3198
3199 1 bool PingReceiverComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const {
3200 1 FW_ASSERT(
3201 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
3202 static_cast<FwAssertArgType>(portNum),
3203 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
3204 );
3205 1 bool result = false;
3206
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
3207 1 case 0:
3208 1 result = true;
3209 1 break;
3210 ✗ default:
3211 ✗ break;
3212 }
3213 1 return result;
3214 }
3215
3216 ✗ bool PingReceiverComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const {
3217 ✗ FW_ASSERT(
3218 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
3219 static_cast<FwAssertArgType>(portNum),
3220 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
3221 );
3222 ✗ bool result = false;
3223 ✗ switch (portNum) {
3224 ✗ case 0:
3225 ✗ result = true;
3226 ✗ break;
3227 ✗ default:
3228 ✗ break;
3229 }
3230 ✗ return result;
3231 }
3232
3233 ✗ bool PingReceiverComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
3234 ✗ FW_ASSERT(
3235 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
3236 static_cast<FwAssertArgType>(portNum),
3237 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
3238 );
3239 ✗ bool result = false;
3240 ✗ switch (portNum) {
3241 ✗ case 0:
3242 ✗ result = true;
3243 ✗ break;
3244 ✗ default:
3245 ✗ break;
3246 }
3247 ✗ return result;
3248 }
3249
3250 #if FW_ENABLE_TEXT_LOGGING == 1
3251
3252 ✗ bool PingReceiverComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
3253 ✗ FW_ASSERT(
3254 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
3255 static_cast<FwAssertArgType>(portNum),
3256 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
3257 );
3258 ✗ bool result = false;
3259 ✗ switch (portNum) {
3260 ✗ case 0:
3261 ✗ result = true;
3262 ✗ break;
3263 ✗ default:
3264 ✗ break;
3265 }
3266 ✗ return result;
3267 }
3268
3269 #endif
3270
3271 ✗ bool PingReceiverComponentBase::isConnected_PingOut_OutputPort(FwIndexType portNum) const {
3272 ✗ FW_ASSERT(
3273 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
3274 static_cast<FwAssertArgType>(portNum),
3275 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
3276 );
3277 ✗ bool result = false;
3278 ✗ switch (portNum) {
3279 ✗ case 0:
3280 ✗ result = true;
3281 ✗ break;
3282 ✗ default:
3283 ✗ break;
3284 }
3285 ✗ return result;
3286 }
3287
3288 61 bool PingReceiverComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
3289 61 FW_ASSERT(
3290 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
3291 static_cast<FwAssertArgType>(portNum),
3292 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
3293 );
3294 61 bool result = false;
3295
1/2
✓ Branch 0 taken 61 times.
✗ Branch 1 not taken.
61 switch (portNum) {
3296 61 case 0:
3297 61 result = true;
3298 61 break;
3299 ✗ default:
3300 ✗ break;
3301 }
3302 61 return result;
3303 }
3304
3305 122 bool PingReceiverComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const {
3306 122 FW_ASSERT(
3307 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
3308 static_cast<FwAssertArgType>(portNum),
3309 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
3310 );
3311 122 bool result = false;
3312
1/2
✓ Branch 0 taken 122 times.
✗ Branch 1 not taken.
122 switch (portNum) {
3313 122 case 0:
3314 122 result = true;
3315 122 break;
3316 ✗ default:
3317 ✗ break;
3318 }
3319 122 return result;
3320 }
3321
3322 1 void PingReceiverComponentBase::CmdReg_out(
3323 FwIndexType portNum,
3324 FwOpcodeType opCode
3325 ) const {
3326 1 FW_ASSERT(
3327 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
3328 static_cast<FwAssertArgType>(portNum),
3329 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
3330 );
3331
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
3332 1 case 0:
3333 1 CdhCore::cmdDisp.compCmdReg_handlerBase(
3334 19,
3335 opCode
3336 );
3337 1 break;
3338 ✗ default:
3339 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3340 ✗ break;
3341 }
3342 1 }
3343
3344 ✗ void PingReceiverComponentBase::CmdStatus_out(
3345 FwIndexType portNum,
3346 FwOpcodeType opCode,
3347 U32 cmdSeq,
3348 const Fw::CmdResponse& response
3349 ) const {
3350 ✗ FW_ASSERT(
3351 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
3352 static_cast<FwAssertArgType>(portNum),
3353 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
3354 );
3355 ✗ switch (portNum) {
3356 ✗ case 0:
3357 ✗ CdhCore::cmdDisp.compCmdStat_handlerBase(
3358 0,
3359 opCode,
3360 cmdSeq,
3361 response
3362 );
3363 ✗ break;
3364 ✗ default:
3365 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3366 ✗ break;
3367 }
3368 ✗ }
3369
3370 ✗ void PingReceiverComponentBase::Log_out(
3371 FwIndexType portNum,
3372 FwEventIdType id,
3373 Fw::Time& timeTag,
3374 const Fw::LogSeverity& severity,
3375 Fw::LogBuffer& args
3376 ) const {
3377 ✗ FW_ASSERT(
3378 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
3379 static_cast<FwAssertArgType>(portNum),
3380 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
3381 );
3382 ✗ switch (portNum) {
3383 ✗ case 0:
3384 ✗ CdhCore::events.LogRecv_handlerBase(
3385 0,
3386 id,
3387 timeTag,
3388 severity,
3389 args
3390 );
3391 ✗ break;
3392 ✗ default:
3393 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3394 ✗ break;
3395 }
3396 ✗ }
3397
3398 #if FW_ENABLE_TEXT_LOGGING == 1
3399
3400 ✗ void PingReceiverComponentBase::LogText_out(
3401 FwIndexType portNum,
3402 FwEventIdType id,
3403 Fw::Time& timeTag,
3404 const Fw::LogSeverity& severity,
3405 Fw::TextLogString& text
3406 ) const {
3407 ✗ FW_ASSERT(
3408 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
3409 static_cast<FwAssertArgType>(portNum),
3410 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
3411 );
3412 ✗ switch (portNum) {
3413 ✗ case 0:
3414 ✗ CdhCore::textLogger.TextLogger_handlerBase(
3415 0,
3416 id,
3417 timeTag,
3418 severity,
3419 text
3420 );
3421 ✗ break;
3422 ✗ default:
3423 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3424 ✗ break;
3425 }
3426 ✗ }
3427
3428 #endif
3429
3430 61 void PingReceiverComponentBase::PingOut_out(
3431 FwIndexType portNum,
3432 U32 key
3433 ) const {
3434 61 FW_ASSERT(
3435 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
3436 static_cast<FwAssertArgType>(portNum),
3437 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
3438 );
3439
1/2
✓ Branch 0 taken 61 times.
✗ Branch 1 not taken.
61 switch (portNum) {
3440 61 case 0:
3441 61 CdhCore::health.PingReturn_handlerBase(
3442 11,
3443 key
3444 );
3445 61 break;
3446 ✗ default:
3447 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3448 ✗ break;
3449 }
3450 61 }
3451
3452 61 void PingReceiverComponentBase::Time_out(
3453 FwIndexType portNum,
3454 Fw::Time& time
3455 ) const {
3456 61 FW_ASSERT(
3457 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
3458 static_cast<FwAssertArgType>(portNum),
3459 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
3460 );
3461
1/2
✓ Branch 0 taken 61 times.
✗ Branch 1 not taken.
61 switch (portNum) {
3462 61 case 0:
3463 61 Ref::posixTime.timeGetPort_handlerBase(
3464 0,
3465 time
3466 );
3467 61 break;
3468 ✗ default:
3469 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3470 ✗ break;
3471 }
3472 61 }
3473
3474 61 void PingReceiverComponentBase::Tlm_out(
3475 FwIndexType portNum,
3476 FwChanIdType id,
3477 Fw::Time& timeTag,
3478 Fw::TlmBuffer& val
3479 ) const {
3480 61 FW_ASSERT(
3481 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
3482 static_cast<FwAssertArgType>(portNum),
3483 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
3484 );
3485
1/2
✓ Branch 0 taken 61 times.
✗ Branch 1 not taken.
61 switch (portNum) {
3486 61 case 0:
3487 61 CdhCore::tlmSend.TlmRecv_handlerBase(
3488 0,
3489 id,
3490 timeTag,
3491 val
3492 );
3493 61 break;
3494 ✗ default:
3495 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3496 ✗ break;
3497 }
3498 61 }
3499
3500 }
3501
3502 namespace Ref {
3503
3504 1 bool RecvBuffComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const {
3505 1 FW_ASSERT(
3506 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
3507 static_cast<FwAssertArgType>(portNum),
3508 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
3509 );
3510 1 bool result = false;
3511
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
3512 1 case 0:
3513 1 result = true;
3514 1 break;
3515 ✗ default:
3516 ✗ break;
3517 }
3518 1 return result;
3519 }
3520
3521 6 bool RecvBuffComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const {
3522 6 FW_ASSERT(
3523 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
3524 static_cast<FwAssertArgType>(portNum),
3525 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
3526 );
3527 6 bool result = false;
3528
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
3529 6 case 0:
3530 6 result = true;
3531 6 break;
3532 ✗ default:
3533 ✗ break;
3534 }
3535 6 return result;
3536 }
3537
3538 6 bool RecvBuffComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
3539 6 FW_ASSERT(
3540 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
3541 static_cast<FwAssertArgType>(portNum),
3542 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
3543 );
3544 6 bool result = false;
3545
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
3546 6 case 0:
3547 6 result = true;
3548 6 break;
3549 ✗ default:
3550 ✗ break;
3551 }
3552 6 return result;
3553 }
3554
3555 #if FW_ENABLE_TEXT_LOGGING == 1
3556
3557 6 bool RecvBuffComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
3558 6 FW_ASSERT(
3559 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
3560 static_cast<FwAssertArgType>(portNum),
3561 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
3562 );
3563 6 bool result = false;
3564
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
3565 6 case 0:
3566 6 result = true;
3567 6 break;
3568 ✗ default:
3569 ✗ break;
3570 }
3571 6 return result;
3572 }
3573
3574 #endif
3575
3576 1 bool RecvBuffComponentBase::isConnected_ParamGet_OutputPort(FwIndexType portNum) const {
3577 1 FW_ASSERT(
3578 (0 <= portNum) && (portNum < NUM_PARAMGET_OUTPUT_PORTS),
3579 static_cast<FwAssertArgType>(portNum),
3580 static_cast<FwAssertArgType>(NUM_PARAMGET_OUTPUT_PORTS)
3581 );
3582 1 bool result = false;
3583
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
3584 1 case 0:
3585 1 result = true;
3586 1 break;
3587 ✗ default:
3588 ✗ break;
3589 }
3590 1 return result;
3591 }
3592
3593 2 bool RecvBuffComponentBase::isConnected_ParamSet_OutputPort(FwIndexType portNum) const {
3594 2 FW_ASSERT(
3595 (0 <= portNum) && (portNum < NUM_PARAMSET_OUTPUT_PORTS),
3596 static_cast<FwAssertArgType>(portNum),
3597 static_cast<FwAssertArgType>(NUM_PARAMSET_OUTPUT_PORTS)
3598 );
3599 2 bool result = false;
3600
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
3601 2 case 0:
3602 2 result = true;
3603 2 break;
3604 ✗ default:
3605 ✗ break;
3606 }
3607 2 return result;
3608 }
3609
3610 12 bool RecvBuffComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
3611 12 FW_ASSERT(
3612 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
3613 static_cast<FwAssertArgType>(portNum),
3614 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
3615 );
3616 12 bool result = false;
3617
1/2
✓ Branch 0 taken 12 times.
✗ Branch 1 not taken.
12 switch (portNum) {
3618 12 case 0:
3619 12 result = true;
3620 12 break;
3621 ✗ default:
3622 ✗ break;
3623 }
3624 12 return result;
3625 }
3626
3627 12 bool RecvBuffComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const {
3628 12 FW_ASSERT(
3629 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
3630 static_cast<FwAssertArgType>(portNum),
3631 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
3632 );
3633 12 bool result = false;
3634
1/2
✓ Branch 0 taken 12 times.
✗ Branch 1 not taken.
12 switch (portNum) {
3635 12 case 0:
3636 12 result = true;
3637 12 break;
3638 ✗ default:
3639 ✗ break;
3640 }
3641 12 return result;
3642 }
3643
3644 4 void RecvBuffComponentBase::CmdReg_out(
3645 FwIndexType portNum,
3646 FwOpcodeType opCode
3647 ) const {
3648 4 FW_ASSERT(
3649 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
3650 static_cast<FwAssertArgType>(portNum),
3651 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
3652 );
3653
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
3654 4 case 0:
3655 4 CdhCore::cmdDisp.compCmdReg_handlerBase(
3656 20,
3657 opCode
3658 );
3659 4 break;
3660 ✗ default:
3661 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3662 ✗ break;
3663 }
3664 4 }
3665
3666 6 void RecvBuffComponentBase::CmdStatus_out(
3667 FwIndexType portNum,
3668 FwOpcodeType opCode,
3669 U32 cmdSeq,
3670 const Fw::CmdResponse& response
3671 ) const {
3672 6 FW_ASSERT(
3673 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
3674 static_cast<FwAssertArgType>(portNum),
3675 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
3676 );
3677
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
3678 6 case 0:
3679 6 CdhCore::cmdDisp.compCmdStat_handlerBase(
3680 0,
3681 opCode,
3682 cmdSeq,
3683 response
3684 );
3685 6 break;
3686 ✗ default:
3687 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3688 ✗ break;
3689 }
3690 6 }
3691
3692 6 void RecvBuffComponentBase::Log_out(
3693 FwIndexType portNum,
3694 FwEventIdType id,
3695 Fw::Time& timeTag,
3696 const Fw::LogSeverity& severity,
3697 Fw::LogBuffer& args
3698 ) const {
3699 6 FW_ASSERT(
3700 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
3701 static_cast<FwAssertArgType>(portNum),
3702 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
3703 );
3704
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
3705 6 case 0:
3706 6 CdhCore::events.LogRecv_handlerBase(
3707 0,
3708 id,
3709 timeTag,
3710 severity,
3711 args
3712 );
3713 6 break;
3714 ✗ default:
3715 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3716 ✗ break;
3717 }
3718 6 }
3719
3720 #if FW_ENABLE_TEXT_LOGGING == 1
3721
3722 6 void RecvBuffComponentBase::LogText_out(
3723 FwIndexType portNum,
3724 FwEventIdType id,
3725 Fw::Time& timeTag,
3726 const Fw::LogSeverity& severity,
3727 Fw::TextLogString& text
3728 ) const {
3729 6 FW_ASSERT(
3730 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
3731 static_cast<FwAssertArgType>(portNum),
3732 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
3733 );
3734
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
3735 6 case 0:
3736 6 CdhCore::textLogger.TextLogger_handlerBase(
3737 0,
3738 id,
3739 timeTag,
3740 severity,
3741 text
3742 );
3743 6 break;
3744 ✗ default:
3745 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3746 ✗ break;
3747 }
3748 6 }
3749
3750 #endif
3751
3752 2 Fw::ParamValid RecvBuffComponentBase::ParamGet_out(
3753 FwIndexType portNum,
3754 FwPrmIdType id,
3755 Fw::ParamBuffer& val
3756 ) const {
3757 2 FW_ASSERT(
3758 (0 <= portNum) && (portNum < NUM_PARAMGET_OUTPUT_PORTS),
3759 static_cast<FwAssertArgType>(portNum),
3760 static_cast<FwAssertArgType>(NUM_PARAMGET_OUTPUT_PORTS)
3761 );
3762 2 Fw::ParamValid _result = {};
3763
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
3764 2 case 0:
3765
1/1
✓ Branch 1 taken 2 times.
4 _result = FileHandling::prmDb.getPrm_handlerBase(
3766 0,
3767 id,
3768 val
3769
1/1
✓ Branch 1 taken 2 times.
2 );
3770 2 break;
3771 ✗ default:
3772 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3773 ✗ break;
3774 }
3775 2 return _result;
3776 ✗ }
3777
3778 2 void RecvBuffComponentBase::ParamSet_out(
3779 FwIndexType portNum,
3780 FwPrmIdType id,
3781 Fw::ParamBuffer& val
3782 ) const {
3783 2 FW_ASSERT(
3784 (0 <= portNum) && (portNum < NUM_PARAMSET_OUTPUT_PORTS),
3785 static_cast<FwAssertArgType>(portNum),
3786 static_cast<FwAssertArgType>(NUM_PARAMSET_OUTPUT_PORTS)
3787 );
3788
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
3789 2 case 0:
3790 2 FileHandling::prmDb.setPrm_handlerBase(
3791 0,
3792 id,
3793 val
3794 );
3795 2 break;
3796 ✗ default:
3797 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3798 ✗ break;
3799 }
3800 2 }
3801
3802 12 void RecvBuffComponentBase::Time_out(
3803 FwIndexType portNum,
3804 Fw::Time& time
3805 ) const {
3806 12 FW_ASSERT(
3807 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
3808 static_cast<FwAssertArgType>(portNum),
3809 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
3810 );
3811
1/2
✓ Branch 0 taken 12 times.
✗ Branch 1 not taken.
12 switch (portNum) {
3812 12 case 0:
3813 12 Ref::posixTime.timeGetPort_handlerBase(
3814 0,
3815 time
3816 );
3817 12 break;
3818 ✗ default:
3819 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3820 ✗ break;
3821 }
3822 12 }
3823
3824 6 void RecvBuffComponentBase::Tlm_out(
3825 FwIndexType portNum,
3826 FwChanIdType id,
3827 Fw::Time& timeTag,
3828 Fw::TlmBuffer& val
3829 ) const {
3830 6 FW_ASSERT(
3831 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
3832 static_cast<FwAssertArgType>(portNum),
3833 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
3834 );
3835
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
3836 6 case 0:
3837 6 CdhCore::tlmSend.TlmRecv_handlerBase(
3838 0,
3839 id,
3840 timeTag,
3841 val
3842 );
3843 6 break;
3844 ✗ default:
3845 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3846 ✗ break;
3847 }
3848 6 }
3849
3850 }
3851
3852 namespace Ref {
3853
3854 1 bool SendBuffComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const {
3855 1 FW_ASSERT(
3856 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
3857 static_cast<FwAssertArgType>(portNum),
3858 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
3859 );
3860 1 bool result = false;
3861
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
3862 1 case 0:
3863 1 result = true;
3864 1 break;
3865 ✗ default:
3866 ✗ break;
3867 }
3868 1 return result;
3869 }
3870
3871 6 bool SendBuffComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const {
3872 6 FW_ASSERT(
3873 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
3874 static_cast<FwAssertArgType>(portNum),
3875 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
3876 );
3877 6 bool result = false;
3878
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
3879 6 case 0:
3880 6 result = true;
3881 6 break;
3882 ✗ default:
3883 ✗ break;
3884 }
3885 6 return result;
3886 }
3887
3888 ✗ bool SendBuffComponentBase::isConnected_Data_OutputPort(FwIndexType portNum) const {
3889 ✗ FW_ASSERT(
3890 (0 <= portNum) && (portNum < NUM_DATA_OUTPUT_PORTS),
3891 static_cast<FwAssertArgType>(portNum),
3892 static_cast<FwAssertArgType>(NUM_DATA_OUTPUT_PORTS)
3893 );
3894 ✗ bool result = false;
3895 ✗ switch (portNum) {
3896 ✗ case 0:
3897 ✗ result = true;
3898 ✗ break;
3899 ✗ default:
3900 ✗ break;
3901 }
3902 ✗ return result;
3903 }
3904
3905 6 bool SendBuffComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
3906 6 FW_ASSERT(
3907 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
3908 static_cast<FwAssertArgType>(portNum),
3909 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
3910 );
3911 6 bool result = false;
3912
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
3913 6 case 0:
3914 6 result = true;
3915 6 break;
3916 ✗ default:
3917 ✗ break;
3918 }
3919 6 return result;
3920 }
3921
3922 #if FW_ENABLE_TEXT_LOGGING == 1
3923
3924 6 bool SendBuffComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
3925 6 FW_ASSERT(
3926 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
3927 static_cast<FwAssertArgType>(portNum),
3928 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
3929 );
3930 6 bool result = false;
3931
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
3932 6 case 0:
3933 6 result = true;
3934 6 break;
3935 ✗ default:
3936 ✗ break;
3937 }
3938 6 return result;
3939 }
3940
3941 #endif
3942
3943 1 bool SendBuffComponentBase::isConnected_ParamGet_OutputPort(FwIndexType portNum) const {
3944 1 FW_ASSERT(
3945 (0 <= portNum) && (portNum < NUM_PARAMGET_OUTPUT_PORTS),
3946 static_cast<FwAssertArgType>(portNum),
3947 static_cast<FwAssertArgType>(NUM_PARAMGET_OUTPUT_PORTS)
3948 );
3949 1 bool result = false;
3950
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
3951 1 case 0:
3952 1 result = true;
3953 1 break;
3954 ✗ default:
3955 ✗ break;
3956 }
3957 1 return result;
3958 }
3959
3960 2 bool SendBuffComponentBase::isConnected_ParamSet_OutputPort(FwIndexType portNum) const {
3961 2 FW_ASSERT(
3962 (0 <= portNum) && (portNum < NUM_PARAMSET_OUTPUT_PORTS),
3963 static_cast<FwAssertArgType>(portNum),
3964 static_cast<FwAssertArgType>(NUM_PARAMSET_OUTPUT_PORTS)
3965 );
3966 2 bool result = false;
3967
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
3968 2 case 0:
3969 2 result = true;
3970 2 break;
3971 ✗ default:
3972 ✗ break;
3973 }
3974 2 return result;
3975 }
3976
3977 133 bool SendBuffComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
3978 133 FW_ASSERT(
3979 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
3980 static_cast<FwAssertArgType>(portNum),
3981 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
3982 );
3983 133 bool result = false;
3984
1/2
✓ Branch 0 taken 133 times.
✗ Branch 1 not taken.
133 switch (portNum) {
3985 133 case 0:
3986 133 result = true;
3987 133 break;
3988 ✗ default:
3989 ✗ break;
3990 }
3991 133 return result;
3992 }
3993
3994 254 bool SendBuffComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const {
3995 254 FW_ASSERT(
3996 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
3997 static_cast<FwAssertArgType>(portNum),
3998 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
3999 );
4000 254 bool result = false;
4001
1/2
✓ Branch 0 taken 254 times.
✗ Branch 1 not taken.
254 switch (portNum) {
4002 254 case 0:
4003 254 result = true;
4004 254 break;
4005 ✗ default:
4006 ✗ break;
4007 }
4008 254 return result;
4009 }
4010
4011 8 void SendBuffComponentBase::CmdReg_out(
4012 FwIndexType portNum,
4013 FwOpcodeType opCode
4014 ) const {
4015 8 FW_ASSERT(
4016 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
4017 static_cast<FwAssertArgType>(portNum),
4018 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
4019 );
4020
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
4021 8 case 0:
4022 8 CdhCore::cmdDisp.compCmdReg_handlerBase(
4023 21,
4024 opCode
4025 );
4026 8 break;
4027 ✗ default:
4028 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4029 ✗ break;
4030 }
4031 8 }
4032
4033 6 void SendBuffComponentBase::CmdStatus_out(
4034 FwIndexType portNum,
4035 FwOpcodeType opCode,
4036 U32 cmdSeq,
4037 const Fw::CmdResponse& response
4038 ) const {
4039 6 FW_ASSERT(
4040 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
4041 static_cast<FwAssertArgType>(portNum),
4042 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
4043 );
4044
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
4045 6 case 0:
4046 6 CdhCore::cmdDisp.compCmdStat_handlerBase(
4047 0,
4048 opCode,
4049 cmdSeq,
4050 response
4051 );
4052 6 break;
4053 ✗ default:
4054 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4055 ✗ break;
4056 }
4057 6 }
4058
4059 ✗ void SendBuffComponentBase::Data_out(
4060 FwIndexType portNum,
4061 Drv::DataBuffer& buff
4062 ) const {
4063 ✗ FW_ASSERT(
4064 (0 <= portNum) && (portNum < NUM_DATA_OUTPUT_PORTS),
4065 static_cast<FwAssertArgType>(portNum),
4066 static_cast<FwAssertArgType>(NUM_DATA_OUTPUT_PORTS)
4067 );
4068 ✗ switch (portNum) {
4069 ✗ case 0:
4070 ✗ Ref::blockDrv.BufferIn_handlerBase(
4071 0,
4072 buff
4073 );
4074 ✗ break;
4075 ✗ default:
4076 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4077 ✗ break;
4078 }
4079 ✗ }
4080
4081 6 void SendBuffComponentBase::Log_out(
4082 FwIndexType portNum,
4083 FwEventIdType id,
4084 Fw::Time& timeTag,
4085 const Fw::LogSeverity& severity,
4086 Fw::LogBuffer& args
4087 ) const {
4088 6 FW_ASSERT(
4089 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
4090 static_cast<FwAssertArgType>(portNum),
4091 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
4092 );
4093
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
4094 6 case 0:
4095 6 CdhCore::events.LogRecv_handlerBase(
4096 0,
4097 id,
4098 timeTag,
4099 severity,
4100 args
4101 );
4102 6 break;
4103 ✗ default:
4104 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4105 ✗ break;
4106 }
4107 6 }
4108
4109 #if FW_ENABLE_TEXT_LOGGING == 1
4110
4111 6 void SendBuffComponentBase::LogText_out(
4112 FwIndexType portNum,
4113 FwEventIdType id,
4114 Fw::Time& timeTag,
4115 const Fw::LogSeverity& severity,
4116 Fw::TextLogString& text
4117 ) const {
4118 6 FW_ASSERT(
4119 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
4120 static_cast<FwAssertArgType>(portNum),
4121 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
4122 );
4123
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
4124 6 case 0:
4125 6 CdhCore::textLogger.TextLogger_handlerBase(
4126 0,
4127 id,
4128 timeTag,
4129 severity,
4130 text
4131 );
4132 6 break;
4133 ✗ default:
4134 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4135 ✗ break;
4136 }
4137 6 }
4138
4139 #endif
4140
4141 2 Fw::ParamValid SendBuffComponentBase::ParamGet_out(
4142 FwIndexType portNum,
4143 FwPrmIdType id,
4144 Fw::ParamBuffer& val
4145 ) const {
4146 2 FW_ASSERT(
4147 (0 <= portNum) && (portNum < NUM_PARAMGET_OUTPUT_PORTS),
4148 static_cast<FwAssertArgType>(portNum),
4149 static_cast<FwAssertArgType>(NUM_PARAMGET_OUTPUT_PORTS)
4150 );
4151 2 Fw::ParamValid _result = {};
4152
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
4153 2 case 0:
4154
1/1
✓ Branch 1 taken 2 times.
4 _result = FileHandling::prmDb.getPrm_handlerBase(
4155 0,
4156 id,
4157 val
4158
1/1
✓ Branch 1 taken 2 times.
2 );
4159 2 break;
4160 ✗ default:
4161 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4162 ✗ break;
4163 }
4164 2 return _result;
4165 ✗ }
4166
4167 2 void SendBuffComponentBase::ParamSet_out(
4168 FwIndexType portNum,
4169 FwPrmIdType id,
4170 Fw::ParamBuffer& val
4171 ) const {
4172 2 FW_ASSERT(
4173 (0 <= portNum) && (portNum < NUM_PARAMSET_OUTPUT_PORTS),
4174 static_cast<FwAssertArgType>(portNum),
4175 static_cast<FwAssertArgType>(NUM_PARAMSET_OUTPUT_PORTS)
4176 );
4177
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
4178 2 case 0:
4179 2 FileHandling::prmDb.setPrm_handlerBase(
4180 0,
4181 id,
4182 val
4183 );
4184 2 break;
4185 ✗ default:
4186 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4187 ✗ break;
4188 }
4189 2 }
4190
4191 133 void SendBuffComponentBase::Time_out(
4192 FwIndexType portNum,
4193 Fw::Time& time
4194 ) const {
4195 133 FW_ASSERT(
4196 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
4197 static_cast<FwAssertArgType>(portNum),
4198 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
4199 );
4200
1/2
✓ Branch 0 taken 133 times.
✗ Branch 1 not taken.
133 switch (portNum) {
4201 133 case 0:
4202 133 Ref::posixTime.timeGetPort_handlerBase(
4203 0,
4204 time
4205 );
4206 133 break;
4207 ✗ default:
4208 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4209 ✗ break;
4210 }
4211 133 }
4212
4213 127 void SendBuffComponentBase::Tlm_out(
4214 FwIndexType portNum,
4215 FwChanIdType id,
4216 Fw::Time& timeTag,
4217 Fw::TlmBuffer& val
4218 ) const {
4219 127 FW_ASSERT(
4220 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
4221 static_cast<FwAssertArgType>(portNum),
4222 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
4223 );
4224
1/2
✓ Branch 0 taken 127 times.
✗ Branch 1 not taken.
127 switch (portNum) {
4225 127 case 0:
4226 127 CdhCore::tlmSend.TlmRecv_handlerBase(
4227 0,
4228 id,
4229 timeTag,
4230 val
4231 );
4232 127 break;
4233 ✗ default:
4234 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4235 ✗ break;
4236 }
4237 127 }
4238
4239 }
4240
4241 namespace Ref {
4242
4243 5 bool SignalGenComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const {
4244 5 FW_ASSERT(
4245 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
4246 static_cast<FwAssertArgType>(portNum),
4247 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
4248 );
4249 5 bool result = false;
4250 5 const auto instance = this->getInstance();
4251
5/6
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 1 times.
✓ Branch 4 taken 1 times.
✓ Branch 5 taken 1 times.
5 switch (instance) {
4252 ✗ default:
4253 #ifdef FW_STRICT_ASSERTIONS
4254 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4255 ✗ break;
4256 #else
4257 // Fall through
4258 #endif
4259 1 case ::Ref::InstanceIds::Ref_SG1:
4260
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
4261 1 case 0:
4262 1 result = true;
4263 1 break;
4264 ✗ default:
4265 ✗ break;
4266 }
4267 1 break;
4268 1 case ::Ref::InstanceIds::Ref_SG2:
4269
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
4270 1 case 0:
4271 1 result = true;
4272 1 break;
4273 ✗ default:
4274 ✗ break;
4275 }
4276 1 break;
4277 1 case ::Ref::InstanceIds::Ref_SG3:
4278
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
4279 1 case 0:
4280 1 result = true;
4281 1 break;
4282 ✗ default:
4283 ✗ break;
4284 }
4285 1 break;
4286 1 case ::Ref::InstanceIds::Ref_SG4:
4287
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
4288 1 case 0:
4289 1 result = true;
4290 1 break;
4291 ✗ default:
4292 ✗ break;
4293 }
4294 1 break;
4295 1 case ::Ref::InstanceIds::Ref_SG5:
4296
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
4297 1 case 0:
4298 1 result = true;
4299 1 break;
4300 ✗ default:
4301 ✗ break;
4302 }
4303 1 break;
4304 }
4305 5 return result;
4306 }
4307
4308 3 bool SignalGenComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const {
4309 3 FW_ASSERT(
4310 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
4311 static_cast<FwAssertArgType>(portNum),
4312 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
4313 );
4314 3 bool result = false;
4315 3 const auto instance = this->getInstance();
4316
1/6
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 3 times.
✗ Branch 5 not taken.
3 switch (instance) {
4317 ✗ default:
4318 #ifdef FW_STRICT_ASSERTIONS
4319 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4320 ✗ break;
4321 #else
4322 // Fall through
4323 #endif
4324 ✗ case ::Ref::InstanceIds::Ref_SG1:
4325 ✗ switch (portNum) {
4326 ✗ case 0:
4327 ✗ result = true;
4328 ✗ break;
4329 ✗ default:
4330 ✗ break;
4331 }
4332 ✗ break;
4333 ✗ case ::Ref::InstanceIds::Ref_SG2:
4334 ✗ switch (portNum) {
4335 ✗ case 0:
4336 ✗ result = true;
4337 ✗ break;
4338 ✗ default:
4339 ✗ break;
4340 }
4341 ✗ break;
4342 ✗ case ::Ref::InstanceIds::Ref_SG3:
4343 ✗ switch (portNum) {
4344 ✗ case 0:
4345 ✗ result = true;
4346 ✗ break;
4347 ✗ default:
4348 ✗ break;
4349 }
4350 ✗ break;
4351 3 case ::Ref::InstanceIds::Ref_SG4:
4352
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
4353 3 case 0:
4354 3 result = true;
4355 3 break;
4356 ✗ default:
4357 ✗ break;
4358 }
4359 3 break;
4360 ✗ case ::Ref::InstanceIds::Ref_SG5:
4361 ✗ switch (portNum) {
4362 ✗ case 0:
4363 ✗ result = true;
4364 ✗ break;
4365 ✗ default:
4366 ✗ break;
4367 }
4368 ✗ break;
4369 }
4370 3 return result;
4371 }
4372
4373 1 bool SignalGenComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
4374 1 FW_ASSERT(
4375 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
4376 static_cast<FwAssertArgType>(portNum),
4377 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
4378 );
4379 1 bool result = false;
4380 1 const auto instance = this->getInstance();
4381
1/6
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
1 switch (instance) {
4382 ✗ default:
4383 #ifdef FW_STRICT_ASSERTIONS
4384 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4385 ✗ break;
4386 #else
4387 // Fall through
4388 #endif
4389 ✗ case ::Ref::InstanceIds::Ref_SG1:
4390 ✗ switch (portNum) {
4391 ✗ case 0:
4392 ✗ result = true;
4393 ✗ break;
4394 ✗ default:
4395 ✗ break;
4396 }
4397 ✗ break;
4398 ✗ case ::Ref::InstanceIds::Ref_SG2:
4399 ✗ switch (portNum) {
4400 ✗ case 0:
4401 ✗ result = true;
4402 ✗ break;
4403 ✗ default:
4404 ✗ break;
4405 }
4406 ✗ break;
4407 ✗ case ::Ref::InstanceIds::Ref_SG3:
4408 ✗ switch (portNum) {
4409 ✗ case 0:
4410 ✗ result = true;
4411 ✗ break;
4412 ✗ default:
4413 ✗ break;
4414 }
4415 ✗ break;
4416 1 case ::Ref::InstanceIds::Ref_SG4:
4417
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
4418 1 case 0:
4419 1 result = true;
4420 1 break;
4421 ✗ default:
4422 ✗ break;
4423 }
4424 1 break;
4425 ✗ case ::Ref::InstanceIds::Ref_SG5:
4426 ✗ switch (portNum) {
4427 ✗ case 0:
4428 ✗ result = true;
4429 ✗ break;
4430 ✗ default:
4431 ✗ break;
4432 }
4433 ✗ break;
4434 }
4435 1 return result;
4436 }
4437
4438 #if FW_ENABLE_TEXT_LOGGING == 1
4439
4440 1 bool SignalGenComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
4441 1 FW_ASSERT(
4442 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
4443 static_cast<FwAssertArgType>(portNum),
4444 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
4445 );
4446 1 bool result = false;
4447 1 const auto instance = this->getInstance();
4448
1/6
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
1 switch (instance) {
4449 ✗ default:
4450 #ifdef FW_STRICT_ASSERTIONS
4451 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4452 ✗ break;
4453 #else
4454 // Fall through
4455 #endif
4456 ✗ case ::Ref::InstanceIds::Ref_SG1:
4457 ✗ switch (portNum) {
4458 ✗ case 0:
4459 ✗ result = true;
4460 ✗ break;
4461 ✗ default:
4462 ✗ break;
4463 }
4464 ✗ break;
4465 ✗ case ::Ref::InstanceIds::Ref_SG2:
4466 ✗ switch (portNum) {
4467 ✗ case 0:
4468 ✗ result = true;
4469 ✗ break;
4470 ✗ default:
4471 ✗ break;
4472 }
4473 ✗ break;
4474 ✗ case ::Ref::InstanceIds::Ref_SG3:
4475 ✗ switch (portNum) {
4476 ✗ case 0:
4477 ✗ result = true;
4478 ✗ break;
4479 ✗ default:
4480 ✗ break;
4481 }
4482 ✗ break;
4483 1 case ::Ref::InstanceIds::Ref_SG4:
4484
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
4485 1 case 0:
4486 1 result = true;
4487 1 break;
4488 ✗ default:
4489 ✗ break;
4490 }
4491 1 break;
4492 ✗ case ::Ref::InstanceIds::Ref_SG5:
4493 ✗ switch (portNum) {
4494 ✗ case 0:
4495 ✗ result = true;
4496 ✗ break;
4497 ✗ default:
4498 ✗ break;
4499 }
4500 ✗ break;
4501 }
4502 1 return result;
4503 }
4504
4505 #endif
4506
4507 ✗ bool SignalGenComponentBase::isConnected_productGetOut_OutputPort(FwIndexType portNum) const {
4508 ✗ FW_ASSERT(
4509 (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS),
4510 static_cast<FwAssertArgType>(portNum),
4511 static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS)
4512 );
4513 ✗ bool result = false;
4514 ✗ const auto instance = this->getInstance();
4515 ✗ switch (instance) {
4516 ✗ default:
4517 #ifdef FW_STRICT_ASSERTIONS
4518 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4519 ✗ break;
4520 #else
4521 // Fall through
4522 #endif
4523 ✗ case ::Ref::InstanceIds::Ref_SG1:
4524 ✗ switch (portNum) {
4525 ✗ case 0:
4526 ✗ result = true;
4527 ✗ break;
4528 ✗ default:
4529 ✗ break;
4530 }
4531 ✗ break;
4532 ✗ case ::Ref::InstanceIds::Ref_SG2:
4533 ✗ switch (portNum) {
4534 default:
4535 ✗ break;
4536 }
4537 ✗ break;
4538 ✗ case ::Ref::InstanceIds::Ref_SG3:
4539 ✗ switch (portNum) {
4540 default:
4541 ✗ break;
4542 }
4543 ✗ break;
4544 ✗ case ::Ref::InstanceIds::Ref_SG4:
4545 ✗ switch (portNum) {
4546 default:
4547 ✗ break;
4548 }
4549 ✗ break;
4550 ✗ case ::Ref::InstanceIds::Ref_SG5:
4551 ✗ switch (portNum) {
4552 default:
4553 ✗ break;
4554 }
4555 ✗ break;
4556 }
4557 ✗ return result;
4558 }
4559
4560 ✗ bool SignalGenComponentBase::isConnected_productRequestOut_OutputPort(FwIndexType portNum) const {
4561 ✗ FW_ASSERT(
4562 (0 <= portNum) && (portNum < NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS),
4563 static_cast<FwAssertArgType>(portNum),
4564 static_cast<FwAssertArgType>(NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS)
4565 );
4566 ✗ bool result = false;
4567 ✗ const auto instance = this->getInstance();
4568 ✗ switch (instance) {
4569 ✗ default:
4570 #ifdef FW_STRICT_ASSERTIONS
4571 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4572 ✗ break;
4573 #else
4574 // Fall through
4575 #endif
4576 ✗ case ::Ref::InstanceIds::Ref_SG1:
4577 ✗ switch (portNum) {
4578 ✗ case 0:
4579 ✗ result = true;
4580 ✗ break;
4581 ✗ default:
4582 ✗ break;
4583 }
4584 ✗ break;
4585 ✗ case ::Ref::InstanceIds::Ref_SG2:
4586 ✗ switch (portNum) {
4587 default:
4588 ✗ break;
4589 }
4590 ✗ break;
4591 ✗ case ::Ref::InstanceIds::Ref_SG3:
4592 ✗ switch (portNum) {
4593 default:
4594 ✗ break;
4595 }
4596 ✗ break;
4597 ✗ case ::Ref::InstanceIds::Ref_SG4:
4598 ✗ switch (portNum) {
4599 default:
4600 ✗ break;
4601 }
4602 ✗ break;
4603 ✗ case ::Ref::InstanceIds::Ref_SG5:
4604 ✗ switch (portNum) {
4605 default:
4606 ✗ break;
4607 }
4608 ✗ break;
4609 }
4610 ✗ return result;
4611 }
4612
4613 ✗ bool SignalGenComponentBase::isConnected_productSendOut_OutputPort(FwIndexType portNum) const {
4614 ✗ FW_ASSERT(
4615 (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS),
4616 static_cast<FwAssertArgType>(portNum),
4617 static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS)
4618 );
4619 ✗ bool result = false;
4620 ✗ const auto instance = this->getInstance();
4621 ✗ switch (instance) {
4622 ✗ default:
4623 #ifdef FW_STRICT_ASSERTIONS
4624 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4625 ✗ break;
4626 #else
4627 // Fall through
4628 #endif
4629 ✗ case ::Ref::InstanceIds::Ref_SG1:
4630 ✗ switch (portNum) {
4631 ✗ case 0:
4632 ✗ result = true;
4633 ✗ break;
4634 ✗ default:
4635 ✗ break;
4636 }
4637 ✗ break;
4638 ✗ case ::Ref::InstanceIds::Ref_SG2:
4639 ✗ switch (portNum) {
4640 default:
4641 ✗ break;
4642 }
4643 ✗ break;
4644 ✗ case ::Ref::InstanceIds::Ref_SG3:
4645 ✗ switch (portNum) {
4646 default:
4647 ✗ break;
4648 }
4649 ✗ break;
4650 ✗ case ::Ref::InstanceIds::Ref_SG4:
4651 ✗ switch (portNum) {
4652 default:
4653 ✗ break;
4654 }
4655 ✗ break;
4656 ✗ case ::Ref::InstanceIds::Ref_SG5:
4657 ✗ switch (portNum) {
4658 default:
4659 ✗ break;
4660 }
4661 ✗ break;
4662 }
4663 ✗ return result;
4664 }
4665
4666 8 bool SignalGenComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
4667 8 FW_ASSERT(
4668 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
4669 static_cast<FwAssertArgType>(portNum),
4670 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
4671 );
4672 8 bool result = false;
4673 8 const auto instance = this->getInstance();
4674
1/6
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 8 times.
✗ Branch 5 not taken.
8 switch (instance) {
4675 ✗ default:
4676 #ifdef FW_STRICT_ASSERTIONS
4677 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4678 ✗ break;
4679 #else
4680 // Fall through
4681 #endif
4682 ✗ case ::Ref::InstanceIds::Ref_SG1:
4683 ✗ switch (portNum) {
4684 ✗ case 0:
4685 ✗ result = true;
4686 ✗ break;
4687 ✗ default:
4688 ✗ break;
4689 }
4690 ✗ break;
4691 ✗ case ::Ref::InstanceIds::Ref_SG2:
4692 ✗ switch (portNum) {
4693 ✗ case 0:
4694 ✗ result = true;
4695 ✗ break;
4696 ✗ default:
4697 ✗ break;
4698 }
4699 ✗ break;
4700 ✗ case ::Ref::InstanceIds::Ref_SG3:
4701 ✗ switch (portNum) {
4702 ✗ case 0:
4703 ✗ result = true;
4704 ✗ break;
4705 ✗ default:
4706 ✗ break;
4707 }
4708 ✗ break;
4709 8 case ::Ref::InstanceIds::Ref_SG4:
4710
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
4711 8 case 0:
4712 8 result = true;
4713 8 break;
4714 ✗ default:
4715 ✗ break;
4716 }
4717 8 break;
4718 ✗ case ::Ref::InstanceIds::Ref_SG5:
4719 ✗ switch (portNum) {
4720 ✗ case 0:
4721 ✗ result = true;
4722 ✗ break;
4723 ✗ default:
4724 ✗ break;
4725 }
4726 ✗ break;
4727 }
4728 8 return result;
4729 }
4730
4731 14 bool SignalGenComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
4732 14 FW_ASSERT(
4733 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
4734 static_cast<FwAssertArgType>(portNum),
4735 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
4736 );
4737 14 bool result = false;
4738 14 const auto instance = this->getInstance();
4739
1/6
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 14 times.
✗ Branch 5 not taken.
14 switch (instance) {
4740 ✗ default:
4741 #ifdef FW_STRICT_ASSERTIONS
4742 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4743 ✗ break;
4744 #else
4745 // Fall through
4746 #endif
4747 ✗ case ::Ref::InstanceIds::Ref_SG1:
4748 ✗ switch (portNum) {
4749 ✗ case 0:
4750 ✗ result = true;
4751 ✗ break;
4752 ✗ default:
4753 ✗ break;
4754 }
4755 ✗ break;
4756 ✗ case ::Ref::InstanceIds::Ref_SG2:
4757 ✗ switch (portNum) {
4758 ✗ case 0:
4759 ✗ result = true;
4760 ✗ break;
4761 ✗ default:
4762 ✗ break;
4763 }
4764 ✗ break;
4765 ✗ case ::Ref::InstanceIds::Ref_SG3:
4766 ✗ switch (portNum) {
4767 ✗ case 0:
4768 ✗ result = true;
4769 ✗ break;
4770 ✗ default:
4771 ✗ break;
4772 }
4773 ✗ break;
4774 14 case ::Ref::InstanceIds::Ref_SG4:
4775
1/2
✓ Branch 0 taken 14 times.
✗ Branch 1 not taken.
14 switch (portNum) {
4776 14 case 0:
4777 14 result = true;
4778 14 break;
4779 ✗ default:
4780 ✗ break;
4781 }
4782 14 break;
4783 ✗ case ::Ref::InstanceIds::Ref_SG5:
4784 ✗ switch (portNum) {
4785 ✗ case 0:
4786 ✗ result = true;
4787 ✗ break;
4788 ✗ default:
4789 ✗ break;
4790 }
4791 ✗ break;
4792 }
4793 14 return result;
4794 }
4795
4796 20 void SignalGenComponentBase::cmdRegOut_out(
4797 FwIndexType portNum,
4798 FwOpcodeType opCode
4799 ) const {
4800 20 FW_ASSERT(
4801 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
4802 static_cast<FwAssertArgType>(portNum),
4803 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
4804 );
4805 20 const auto instance = this->getInstance();
4806
5/6
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
✓ Branch 2 taken 4 times.
✓ Branch 3 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 5 taken 4 times.
20 switch (instance) {
4807 ✗ default:
4808 #ifdef FW_STRICT_ASSERTIONS
4809 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4810 ✗ break;
4811 #else
4812 // Fall through
4813 #endif
4814 4 case ::Ref::InstanceIds::Ref_SG1:
4815
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
4816 4 case 0:
4817 4 CdhCore::cmdDisp.compCmdReg_handlerBase(
4818 12,
4819 opCode
4820 );
4821 4 break;
4822 ✗ default:
4823 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4824 ✗ break;
4825 }
4826 4 break;
4827 4 case ::Ref::InstanceIds::Ref_SG2:
4828
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
4829 4 case 0:
4830 4 CdhCore::cmdDisp.compCmdReg_handlerBase(
4831 13,
4832 opCode
4833 );
4834 4 break;
4835 ✗ default:
4836 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4837 ✗ break;
4838 }
4839 4 break;
4840 4 case ::Ref::InstanceIds::Ref_SG3:
4841
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
4842 4 case 0:
4843 4 CdhCore::cmdDisp.compCmdReg_handlerBase(
4844 14,
4845 opCode
4846 );
4847 4 break;
4848 ✗ default:
4849 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4850 ✗ break;
4851 }
4852 4 break;
4853 4 case ::Ref::InstanceIds::Ref_SG4:
4854
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
4855 4 case 0:
4856 4 CdhCore::cmdDisp.compCmdReg_handlerBase(
4857 15,
4858 opCode
4859 );
4860 4 break;
4861 ✗ default:
4862 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4863 ✗ break;
4864 }
4865 4 break;
4866 4 case ::Ref::InstanceIds::Ref_SG5:
4867
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
4868 4 case 0:
4869 4 CdhCore::cmdDisp.compCmdReg_handlerBase(
4870 16,
4871 opCode
4872 );
4873 4 break;
4874 ✗ default:
4875 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4876 ✗ break;
4877 }
4878 4 break;
4879 }
4880 20 }
4881
4882 3 void SignalGenComponentBase::cmdResponseOut_out(
4883 FwIndexType portNum,
4884 FwOpcodeType opCode,
4885 U32 cmdSeq,
4886 const Fw::CmdResponse& response
4887 ) const {
4888 3 FW_ASSERT(
4889 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
4890 static_cast<FwAssertArgType>(portNum),
4891 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
4892 );
4893 3 const auto instance = this->getInstance();
4894
1/6
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 3 times.
✗ Branch 5 not taken.
3 switch (instance) {
4895 ✗ default:
4896 #ifdef FW_STRICT_ASSERTIONS
4897 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4898 ✗ break;
4899 #else
4900 // Fall through
4901 #endif
4902 ✗ case ::Ref::InstanceIds::Ref_SG1:
4903 ✗ switch (portNum) {
4904 ✗ case 0:
4905 ✗ CdhCore::cmdDisp.compCmdStat_handlerBase(
4906 0,
4907 opCode,
4908 cmdSeq,
4909 response
4910 );
4911 ✗ break;
4912 ✗ default:
4913 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4914 ✗ break;
4915 }
4916 ✗ break;
4917 ✗ case ::Ref::InstanceIds::Ref_SG2:
4918 ✗ switch (portNum) {
4919 ✗ case 0:
4920 ✗ CdhCore::cmdDisp.compCmdStat_handlerBase(
4921 0,
4922 opCode,
4923 cmdSeq,
4924 response
4925 );
4926 ✗ break;
4927 ✗ default:
4928 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4929 ✗ break;
4930 }
4931 ✗ break;
4932 ✗ case ::Ref::InstanceIds::Ref_SG3:
4933 ✗ switch (portNum) {
4934 ✗ case 0:
4935 ✗ CdhCore::cmdDisp.compCmdStat_handlerBase(
4936 0,
4937 opCode,
4938 cmdSeq,
4939 response
4940 );
4941 ✗ break;
4942 ✗ default:
4943 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4944 ✗ break;
4945 }
4946 ✗ break;
4947 3 case ::Ref::InstanceIds::Ref_SG4:
4948
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
4949 3 case 0:
4950 3 CdhCore::cmdDisp.compCmdStat_handlerBase(
4951 0,
4952 opCode,
4953 cmdSeq,
4954 response
4955 );
4956 3 break;
4957 ✗ default:
4958 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4959 ✗ break;
4960 }
4961 3 break;
4962 ✗ case ::Ref::InstanceIds::Ref_SG5:
4963 ✗ switch (portNum) {
4964 ✗ case 0:
4965 ✗ CdhCore::cmdDisp.compCmdStat_handlerBase(
4966 0,
4967 opCode,
4968 cmdSeq,
4969 response
4970 );
4971 ✗ break;
4972 ✗ default:
4973 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4974 ✗ break;
4975 }
4976 ✗ break;
4977 }
4978 3 }
4979
4980 1 void SignalGenComponentBase::logOut_out(
4981 FwIndexType portNum,
4982 FwEventIdType id,
4983 Fw::Time& timeTag,
4984 const Fw::LogSeverity& severity,
4985 Fw::LogBuffer& args
4986 ) const {
4987 1 FW_ASSERT(
4988 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
4989 static_cast<FwAssertArgType>(portNum),
4990 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
4991 );
4992 1 const auto instance = this->getInstance();
4993
1/6
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
1 switch (instance) {
4994 ✗ default:
4995 #ifdef FW_STRICT_ASSERTIONS
4996 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4997 ✗ break;
4998 #else
4999 // Fall through
5000 #endif
5001 ✗ case ::Ref::InstanceIds::Ref_SG1:
5002 ✗ switch (portNum) {
5003 ✗ case 0:
5004 ✗ CdhCore::events.LogRecv_handlerBase(
5005 0,
5006 id,
5007 timeTag,
5008 severity,
5009 args
5010 );
5011 ✗ break;
5012 ✗ default:
5013 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5014 ✗ break;
5015 }
5016 ✗ break;
5017 ✗ case ::Ref::InstanceIds::Ref_SG2:
5018 ✗ switch (portNum) {
5019 ✗ case 0:
5020 ✗ CdhCore::events.LogRecv_handlerBase(
5021 0,
5022 id,
5023 timeTag,
5024 severity,
5025 args
5026 );
5027 ✗ break;
5028 ✗ default:
5029 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5030 ✗ break;
5031 }
5032 ✗ break;
5033 ✗ case ::Ref::InstanceIds::Ref_SG3:
5034 ✗ switch (portNum) {
5035 ✗ case 0:
5036 ✗ CdhCore::events.LogRecv_handlerBase(
5037 0,
5038 id,
5039 timeTag,
5040 severity,
5041 args
5042 );
5043 ✗ break;
5044 ✗ default:
5045 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5046 ✗ break;
5047 }
5048 ✗ break;
5049 1 case ::Ref::InstanceIds::Ref_SG4:
5050
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
5051 1 case 0:
5052 1 CdhCore::events.LogRecv_handlerBase(
5053 0,
5054 id,
5055 timeTag,
5056 severity,
5057 args
5058 );
5059 1 break;
5060 ✗ default:
5061 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5062 ✗ break;
5063 }
5064 1 break;
5065 ✗ case ::Ref::InstanceIds::Ref_SG5:
5066 ✗ switch (portNum) {
5067 ✗ case 0:
5068 ✗ CdhCore::events.LogRecv_handlerBase(
5069 0,
5070 id,
5071 timeTag,
5072 severity,
5073 args
5074 );
5075 ✗ break;
5076 ✗ default:
5077 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5078 ✗ break;
5079 }
5080 ✗ break;
5081 }
5082 1 }
5083
5084 #if FW_ENABLE_TEXT_LOGGING == 1
5085
5086 1 void SignalGenComponentBase::logTextOut_out(
5087 FwIndexType portNum,
5088 FwEventIdType id,
5089 Fw::Time& timeTag,
5090 const Fw::LogSeverity& severity,
5091 Fw::TextLogString& text
5092 ) const {
5093 1 FW_ASSERT(
5094 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
5095 static_cast<FwAssertArgType>(portNum),
5096 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
5097 );
5098 1 const auto instance = this->getInstance();
5099
1/6
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
1 switch (instance) {
5100 ✗ default:
5101 #ifdef FW_STRICT_ASSERTIONS
5102 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
5103 ✗ break;
5104 #else
5105 // Fall through
5106 #endif
5107 ✗ case ::Ref::InstanceIds::Ref_SG1:
5108 ✗ switch (portNum) {
5109 ✗ case 0:
5110 ✗ CdhCore::textLogger.TextLogger_handlerBase(
5111 0,
5112 id,
5113 timeTag,
5114 severity,
5115 text
5116 );
5117 ✗ break;
5118 ✗ default:
5119 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5120 ✗ break;
5121 }
5122 ✗ break;
5123 ✗ case ::Ref::InstanceIds::Ref_SG2:
5124 ✗ switch (portNum) {
5125 ✗ case 0:
5126 ✗ CdhCore::textLogger.TextLogger_handlerBase(
5127 0,
5128 id,
5129 timeTag,
5130 severity,
5131 text
5132 );
5133 ✗ break;
5134 ✗ default:
5135 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5136 ✗ break;
5137 }
5138 ✗ break;
5139 ✗ case ::Ref::InstanceIds::Ref_SG3:
5140 ✗ switch (portNum) {
5141 ✗ case 0:
5142 ✗ CdhCore::textLogger.TextLogger_handlerBase(
5143 0,
5144 id,
5145 timeTag,
5146 severity,
5147 text
5148 );
5149 ✗ break;
5150 ✗ default:
5151 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5152 ✗ break;
5153 }
5154 ✗ break;
5155 1 case ::Ref::InstanceIds::Ref_SG4:
5156
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
5157 1 case 0:
5158 1 CdhCore::textLogger.TextLogger_handlerBase(
5159 0,
5160 id,
5161 timeTag,
5162 severity,
5163 text
5164 );
5165 1 break;
5166 ✗ default:
5167 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5168 ✗ break;
5169 }
5170 1 break;
5171 ✗ case ::Ref::InstanceIds::Ref_SG5:
5172 ✗ switch (portNum) {
5173 ✗ case 0:
5174 ✗ CdhCore::textLogger.TextLogger_handlerBase(
5175 0,
5176 id,
5177 timeTag,
5178 severity,
5179 text
5180 );
5181 ✗ break;
5182 ✗ default:
5183 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5184 ✗ break;
5185 }
5186 ✗ break;
5187 }
5188 1 }
5189
5190 #endif
5191
5192 ✗ Fw::Success SignalGenComponentBase::productGetOut_out(
5193 FwIndexType portNum,
5194 FwDpIdType id,
5195 FwSizeType dataSize,
5196 Fw::Buffer& buffer
5197 ) const {
5198 ✗ FW_ASSERT(
5199 (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS),
5200 static_cast<FwAssertArgType>(portNum),
5201 static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS)
5202 );
5203 ✗ Fw::Success _result = {};
5204 ✗ const auto instance = this->getInstance();
5205 ✗ switch (instance) {
5206 ✗ default:
5207 #ifdef FW_STRICT_ASSERTIONS
5208 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
5209 ✗ break;
5210 #else
5211 // Fall through
5212 #endif
5213 ✗ case ::Ref::InstanceIds::Ref_SG1:
5214 ✗ switch (portNum) {
5215 ✗ case 0:
5216 ✗ _result = DataProducts::dpMgr.productGetIn_handlerBase(
5217 0,
5218 id,
5219 dataSize,
5220 buffer
5221 ✗ );
5222 ✗ break;
5223 ✗ default:
5224 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5225 ✗ break;
5226 }
5227 ✗ break;
5228 ✗ case ::Ref::InstanceIds::Ref_SG2:
5229 ✗ switch (portNum) {
5230 default:
5231 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5232 ✗ break;
5233 }
5234 ✗ break;
5235 ✗ case ::Ref::InstanceIds::Ref_SG3:
5236 ✗ switch (portNum) {
5237 default:
5238 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5239 ✗ break;
5240 }
5241 ✗ break;
5242 ✗ case ::Ref::InstanceIds::Ref_SG4:
5243 ✗ switch (portNum) {
5244 default:
5245 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5246 ✗ break;
5247 }
5248 ✗ break;
5249 ✗ case ::Ref::InstanceIds::Ref_SG5:
5250 ✗ switch (portNum) {
5251 default:
5252 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5253 ✗ break;
5254 }
5255 ✗ break;
5256 }
5257 ✗ return _result;
5258 ✗ }
5259
5260 ✗ void SignalGenComponentBase::productRequestOut_out(
5261 FwIndexType portNum,
5262 FwDpIdType id,
5263 FwSizeType dataSize
5264 ) const {
5265 ✗ FW_ASSERT(
5266 (0 <= portNum) && (portNum < NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS),
5267 static_cast<FwAssertArgType>(portNum),
5268 static_cast<FwAssertArgType>(NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS)
5269 );
5270 ✗ const auto instance = this->getInstance();
5271 ✗ switch (instance) {
5272 ✗ default:
5273 #ifdef FW_STRICT_ASSERTIONS
5274 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
5275 ✗ break;
5276 #else
5277 // Fall through
5278 #endif
5279 ✗ case ::Ref::InstanceIds::Ref_SG1:
5280 ✗ switch (portNum) {
5281 ✗ case 0:
5282 ✗ DataProducts::dpMgr.productRequestIn_handlerBase(
5283 0,
5284 id,
5285 dataSize
5286 );
5287 ✗ break;
5288 ✗ default:
5289 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5290 ✗ break;
5291 }
5292 ✗ break;
5293 ✗ case ::Ref::InstanceIds::Ref_SG2:
5294 ✗ switch (portNum) {
5295 default:
5296 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5297 ✗ break;
5298 }
5299 ✗ break;
5300 ✗ case ::Ref::InstanceIds::Ref_SG3:
5301 ✗ switch (portNum) {
5302 default:
5303 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5304 ✗ break;
5305 }
5306 ✗ break;
5307 ✗ case ::Ref::InstanceIds::Ref_SG4:
5308 ✗ switch (portNum) {
5309 default:
5310 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5311 ✗ break;
5312 }
5313 ✗ break;
5314 ✗ case ::Ref::InstanceIds::Ref_SG5:
5315 ✗ switch (portNum) {
5316 default:
5317 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5318 ✗ break;
5319 }
5320 ✗ break;
5321 }
5322 ✗ }
5323
5324 ✗ void SignalGenComponentBase::productSendOut_out(
5325 FwIndexType portNum,
5326 FwDpIdType id,
5327 const Fw::Buffer& buffer
5328 ) const {
5329 ✗ FW_ASSERT(
5330 (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS),
5331 static_cast<FwAssertArgType>(portNum),
5332 static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS)
5333 );
5334 ✗ const auto instance = this->getInstance();
5335 ✗ switch (instance) {
5336 ✗ default:
5337 #ifdef FW_STRICT_ASSERTIONS
5338 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
5339 ✗ break;
5340 #else
5341 // Fall through
5342 #endif
5343 ✗ case ::Ref::InstanceIds::Ref_SG1:
5344 ✗ switch (portNum) {
5345 ✗ case 0:
5346 ✗ DataProducts::dpMgr.productSendIn_handlerBase(
5347 0,
5348 id,
5349 buffer
5350 );
5351 ✗ break;
5352 ✗ default:
5353 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5354 ✗ break;
5355 }
5356 ✗ break;
5357 ✗ case ::Ref::InstanceIds::Ref_SG2:
5358 ✗ switch (portNum) {
5359 default:
5360 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5361 ✗ break;
5362 }
5363 ✗ break;
5364 ✗ case ::Ref::InstanceIds::Ref_SG3:
5365 ✗ switch (portNum) {
5366 default:
5367 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5368 ✗ break;
5369 }
5370 ✗ break;
5371 ✗ case ::Ref::InstanceIds::Ref_SG4:
5372 ✗ switch (portNum) {
5373 default:
5374 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5375 ✗ break;
5376 }
5377 ✗ break;
5378 ✗ case ::Ref::InstanceIds::Ref_SG5:
5379 ✗ switch (portNum) {
5380 default:
5381 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5382 ✗ break;
5383 }
5384 ✗ break;
5385 }
5386 ✗ }
5387
5388 8 void SignalGenComponentBase::timeCaller_out(
5389 FwIndexType portNum,
5390 Fw::Time& time
5391 ) const {
5392 8 FW_ASSERT(
5393 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
5394 static_cast<FwAssertArgType>(portNum),
5395 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
5396 );
5397 8 const auto instance = this->getInstance();
5398
1/6
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 8 times.
✗ Branch 5 not taken.
8 switch (instance) {
5399 ✗ default:
5400 #ifdef FW_STRICT_ASSERTIONS
5401 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
5402 ✗ break;
5403 #else
5404 // Fall through
5405 #endif
5406 ✗ case ::Ref::InstanceIds::Ref_SG1:
5407 ✗ switch (portNum) {
5408 ✗ case 0:
5409 ✗ Ref::posixTime.timeGetPort_handlerBase(
5410 0,
5411 time
5412 );
5413 ✗ break;
5414 ✗ default:
5415 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5416 ✗ break;
5417 }
5418 ✗ break;
5419 ✗ case ::Ref::InstanceIds::Ref_SG2:
5420 ✗ switch (portNum) {
5421 ✗ case 0:
5422 ✗ Ref::posixTime.timeGetPort_handlerBase(
5423 0,
5424 time
5425 );
5426 ✗ break;
5427 ✗ default:
5428 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5429 ✗ break;
5430 }
5431 ✗ break;
5432 ✗ case ::Ref::InstanceIds::Ref_SG3:
5433 ✗ switch (portNum) {
5434 ✗ case 0:
5435 ✗ Ref::posixTime.timeGetPort_handlerBase(
5436 0,
5437 time
5438 );
5439 ✗ break;
5440 ✗ default:
5441 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5442 ✗ break;
5443 }
5444 ✗ break;
5445 8 case ::Ref::InstanceIds::Ref_SG4:
5446
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
5447 8 case 0:
5448 8 Ref::posixTime.timeGetPort_handlerBase(
5449 0,
5450 time
5451 );
5452 8 break;
5453 ✗ default:
5454 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5455 ✗ break;
5456 }
5457 8 break;
5458 ✗ case ::Ref::InstanceIds::Ref_SG5:
5459 ✗ switch (portNum) {
5460 ✗ case 0:
5461 ✗ Ref::posixTime.timeGetPort_handlerBase(
5462 0,
5463 time
5464 );
5465 ✗ break;
5466 ✗ default:
5467 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5468 ✗ break;
5469 }
5470 ✗ break;
5471 }
5472 8 }
5473
5474 7 void SignalGenComponentBase::tlmOut_out(
5475 FwIndexType portNum,
5476 FwChanIdType id,
5477 Fw::Time& timeTag,
5478 Fw::TlmBuffer& val
5479 ) const {
5480 7 FW_ASSERT(
5481 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
5482 static_cast<FwAssertArgType>(portNum),
5483 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
5484 );
5485 7 const auto instance = this->getInstance();
5486
1/6
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 7 times.
✗ Branch 5 not taken.
7 switch (instance) {
5487 ✗ default:
5488 #ifdef FW_STRICT_ASSERTIONS
5489 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
5490 ✗ break;
5491 #else
5492 // Fall through
5493 #endif
5494 ✗ case ::Ref::InstanceIds::Ref_SG1:
5495 ✗ switch (portNum) {
5496 ✗ case 0:
5497 ✗ CdhCore::tlmSend.TlmRecv_handlerBase(
5498 0,
5499 id,
5500 timeTag,
5501 val
5502 );
5503 ✗ break;
5504 ✗ default:
5505 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5506 ✗ break;
5507 }
5508 ✗ break;
5509 ✗ case ::Ref::InstanceIds::Ref_SG2:
5510 ✗ switch (portNum) {
5511 ✗ case 0:
5512 ✗ CdhCore::tlmSend.TlmRecv_handlerBase(
5513 0,
5514 id,
5515 timeTag,
5516 val
5517 );
5518 ✗ break;
5519 ✗ default:
5520 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5521 ✗ break;
5522 }
5523 ✗ break;
5524 ✗ case ::Ref::InstanceIds::Ref_SG3:
5525 ✗ switch (portNum) {
5526 ✗ case 0:
5527 ✗ CdhCore::tlmSend.TlmRecv_handlerBase(
5528 0,
5529 id,
5530 timeTag,
5531 val
5532 );
5533 ✗ break;
5534 ✗ default:
5535 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5536 ✗ break;
5537 }
5538 ✗ break;
5539 7 case ::Ref::InstanceIds::Ref_SG4:
5540
1/2
✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
7 switch (portNum) {
5541 7 case 0:
5542 7 CdhCore::tlmSend.TlmRecv_handlerBase(
5543 0,
5544 id,
5545 timeTag,
5546 val
5547 );
5548 7 break;
5549 ✗ default:
5550 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5551 ✗ break;
5552 }
5553 7 break;
5554 ✗ case ::Ref::InstanceIds::Ref_SG5:
5555 ✗ switch (portNum) {
5556 ✗ case 0:
5557 ✗ CdhCore::tlmSend.TlmRecv_handlerBase(
5558 0,
5559 id,
5560 timeTag,
5561 val
5562 );
5563 ✗ break;
5564 ✗ default:
5565 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5566 ✗ break;
5567 }
5568 ✗ break;
5569 }
5570 7 }
5571
5572 }
5573
5574 namespace Ref {
5575
5576 1 bool TypeDemoComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const {
5577 1 FW_ASSERT(
5578 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
5579 static_cast<FwAssertArgType>(portNum),
5580 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
5581 );
5582 1 bool result = false;
5583
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
5584 1 case 0:
5585 1 result = true;
5586 1 break;
5587 ✗ default:
5588 ✗ break;
5589 }
5590 1 return result;
5591 }
5592
5593 3 bool TypeDemoComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const {
5594 3 FW_ASSERT(
5595 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
5596 static_cast<FwAssertArgType>(portNum),
5597 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
5598 );
5599 3 bool result = false;
5600
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
5601 3 case 0:
5602 3 result = true;
5603 3 break;
5604 ✗ default:
5605 ✗ break;
5606 }
5607 3 return result;
5608 }
5609
5610 3 bool TypeDemoComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
5611 3 FW_ASSERT(
5612 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
5613 static_cast<FwAssertArgType>(portNum),
5614 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
5615 );
5616 3 bool result = false;
5617
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
5618 3 case 0:
5619 3 result = true;
5620 3 break;
5621 ✗ default:
5622 ✗ break;
5623 }
5624 3 return result;
5625 }
5626
5627 #if FW_ENABLE_TEXT_LOGGING == 1
5628
5629 3 bool TypeDemoComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
5630 3 FW_ASSERT(
5631 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
5632 static_cast<FwAssertArgType>(portNum),
5633 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
5634 );
5635 3 bool result = false;
5636
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
5637 3 case 0:
5638 3 result = true;
5639 3 break;
5640 ✗ default:
5641 ✗ break;
5642 }
5643 3 return result;
5644 }
5645
5646 #endif
5647
5648 1 bool TypeDemoComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const {
5649 1 FW_ASSERT(
5650 (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS),
5651 static_cast<FwAssertArgType>(portNum),
5652 static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS)
5653 );
5654 1 bool result = false;
5655
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
5656 1 case 0:
5657 1 result = true;
5658 1 break;
5659 ✗ default:
5660 ✗ break;
5661 }
5662 1 return result;
5663 }
5664
5665 ✗ bool TypeDemoComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const {
5666 ✗ FW_ASSERT(
5667 (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS),
5668 static_cast<FwAssertArgType>(portNum),
5669 static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS)
5670 );
5671 ✗ bool result = false;
5672 ✗ switch (portNum) {
5673 ✗ case 0:
5674 ✗ result = true;
5675 ✗ break;
5676 ✗ default:
5677 ✗ break;
5678 }
5679 ✗ return result;
5680 }
5681
5682 6 bool TypeDemoComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
5683 6 FW_ASSERT(
5684 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
5685 static_cast<FwAssertArgType>(portNum),
5686 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
5687 );
5688 6 bool result = false;
5689
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
5690 6 case 0:
5691 6 result = true;
5692 6 break;
5693 ✗ default:
5694 ✗ break;
5695 }
5696 6 return result;
5697 }
5698
5699 6 bool TypeDemoComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
5700 6 FW_ASSERT(
5701 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
5702 static_cast<FwAssertArgType>(portNum),
5703 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
5704 );
5705 6 bool result = false;
5706
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
5707 6 case 0:
5708 6 result = true;
5709 6 break;
5710 ✗ default:
5711 ✗ break;
5712 }
5713 6 return result;
5714 }
5715
5716 22 void TypeDemoComponentBase::cmdRegOut_out(
5717 FwIndexType portNum,
5718 FwOpcodeType opCode
5719 ) const {
5720 22 FW_ASSERT(
5721 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
5722 static_cast<FwAssertArgType>(portNum),
5723 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
5724 );
5725
1/2
✓ Branch 0 taken 22 times.
✗ Branch 1 not taken.
22 switch (portNum) {
5726 22 case 0:
5727 22 CdhCore::cmdDisp.compCmdReg_handlerBase(
5728 23,
5729 opCode
5730 );
5731 22 break;
5732 ✗ default:
5733 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5734 ✗ break;
5735 }
5736 22 }
5737
5738 3 void TypeDemoComponentBase::cmdResponseOut_out(
5739 FwIndexType portNum,
5740 FwOpcodeType opCode,
5741 U32 cmdSeq,
5742 const Fw::CmdResponse& response
5743 ) const {
5744 3 FW_ASSERT(
5745 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
5746 static_cast<FwAssertArgType>(portNum),
5747 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
5748 );
5749
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
5750 3 case 0:
5751 3 CdhCore::cmdDisp.compCmdStat_handlerBase(
5752 0,
5753 opCode,
5754 cmdSeq,
5755 response
5756 );
5757 3 break;
5758 ✗ default:
5759 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5760 ✗ break;
5761 }
5762 3 }
5763
5764 3 void TypeDemoComponentBase::logOut_out(
5765 FwIndexType portNum,
5766 FwEventIdType id,
5767 Fw::Time& timeTag,
5768 const Fw::LogSeverity& severity,
5769 Fw::LogBuffer& args
5770 ) const {
5771 3 FW_ASSERT(
5772 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
5773 static_cast<FwAssertArgType>(portNum),
5774 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
5775 );
5776
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
5777 3 case 0:
5778 3 CdhCore::events.LogRecv_handlerBase(
5779 0,
5780 id,
5781 timeTag,
5782 severity,
5783 args
5784 );
5785 3 break;
5786 ✗ default:
5787 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5788 ✗ break;
5789 }
5790 3 }
5791
5792 #if FW_ENABLE_TEXT_LOGGING == 1
5793
5794 3 void TypeDemoComponentBase::logTextOut_out(
5795 FwIndexType portNum,
5796 FwEventIdType id,
5797 Fw::Time& timeTag,
5798 const Fw::LogSeverity& severity,
5799 Fw::TextLogString& text
5800 ) const {
5801 3 FW_ASSERT(
5802 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
5803 static_cast<FwAssertArgType>(portNum),
5804 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
5805 );
5806
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
5807 3 case 0:
5808 3 CdhCore::textLogger.TextLogger_handlerBase(
5809 0,
5810 id,
5811 timeTag,
5812 severity,
5813 text
5814 );
5815 3 break;
5816 ✗ default:
5817 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5818 ✗ break;
5819 }
5820 3 }
5821
5822 #endif
5823
5824 5 Fw::ParamValid TypeDemoComponentBase::prmGetOut_out(
5825 FwIndexType portNum,
5826 FwPrmIdType id,
5827 Fw::ParamBuffer& val
5828 ) const {
5829 5 FW_ASSERT(
5830 (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS),
5831 static_cast<FwAssertArgType>(portNum),
5832 static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS)
5833 );
5834 5 Fw::ParamValid _result = {};
5835
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 switch (portNum) {
5836 5 case 0:
5837
1/1
✓ Branch 1 taken 5 times.
10 _result = FileHandling::prmDb.getPrm_handlerBase(
5838 0,
5839 id,
5840 val
5841
1/1
✓ Branch 1 taken 5 times.
5 );
5842 5 break;
5843 ✗ default:
5844 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5845 ✗ break;
5846 }
5847 5 return _result;
5848 ✗ }
5849
5850 ✗ void TypeDemoComponentBase::prmSetOut_out(
5851 FwIndexType portNum,
5852 FwPrmIdType id,
5853 Fw::ParamBuffer& val
5854 ) const {
5855 ✗ FW_ASSERT(
5856 (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS),
5857 static_cast<FwAssertArgType>(portNum),
5858 static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS)
5859 );
5860 ✗ switch (portNum) {
5861 ✗ case 0:
5862 ✗ FileHandling::prmDb.setPrm_handlerBase(
5863 0,
5864 id,
5865 val
5866 );
5867 ✗ break;
5868 ✗ default:
5869 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5870 ✗ break;
5871 }
5872 ✗ }
5873
5874 6 void TypeDemoComponentBase::timeCaller_out(
5875 FwIndexType portNum,
5876 Fw::Time& time
5877 ) const {
5878 6 FW_ASSERT(
5879 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
5880 static_cast<FwAssertArgType>(portNum),
5881 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
5882 );
5883
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
5884 6 case 0:
5885 6 Ref::posixTime.timeGetPort_handlerBase(
5886 0,
5887 time
5888 );
5889 6 break;
5890 ✗ default:
5891 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5892 ✗ break;
5893 }
5894 6 }
5895
5896 3 void TypeDemoComponentBase::tlmOut_out(
5897 FwIndexType portNum,
5898 FwChanIdType id,
5899 Fw::Time& timeTag,
5900 Fw::TlmBuffer& val
5901 ) const {
5902 3 FW_ASSERT(
5903 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
5904 static_cast<FwAssertArgType>(portNum),
5905 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
5906 );
5907
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
5908 3 case 0:
5909 3 CdhCore::tlmSend.TlmRecv_handlerBase(
5910 0,
5911 id,
5912 timeTag,
5913 val
5914 );
5915 3 break;
5916 ✗ default:
5917 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5918 ✗ break;
5919 }
5920 3 }
5921
5922 }
5923
5924 namespace Svc {
5925
5926 3 bool ActiveRateGroupComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
5927 3 FW_ASSERT(
5928 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
5929 static_cast<FwAssertArgType>(portNum),
5930 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
5931 );
5932 3 bool result = false;
5933 3 const auto instance = this->getInstance();
5934
3/4
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 1 times.
3 switch (instance) {
5935 ✗ default:
5936 #ifdef FW_STRICT_ASSERTIONS
5937 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
5938 ✗ break;
5939 #else
5940 // Fall through
5941 #endif
5942 1 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
5943
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
5944 1 case 0:
5945 1 result = true;
5946 1 break;
5947 ✗ default:
5948 ✗ break;
5949 }
5950 1 break;
5951 1 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
5952
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
5953 1 case 0:
5954 1 result = true;
5955 1 break;
5956 ✗ default:
5957 ✗ break;
5958 }
5959 1 break;
5960 1 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
5961
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
5962 1 case 0:
5963 1 result = true;
5964 1 break;
5965 ✗ default:
5966 ✗ break;
5967 }
5968 1 break;
5969 }
5970 3 return result;
5971 }
5972
5973 #if FW_ENABLE_TEXT_LOGGING == 1
5974
5975 3 bool ActiveRateGroupComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
5976 3 FW_ASSERT(
5977 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
5978 static_cast<FwAssertArgType>(portNum),
5979 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
5980 );
5981 3 bool result = false;
5982 3 const auto instance = this->getInstance();
5983
3/4
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 1 times.
3 switch (instance) {
5984 ✗ default:
5985 #ifdef FW_STRICT_ASSERTIONS
5986 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
5987 ✗ break;
5988 #else
5989 // Fall through
5990 #endif
5991 1 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
5992
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
5993 1 case 0:
5994 1 result = true;
5995 1 break;
5996 ✗ default:
5997 ✗ break;
5998 }
5999 1 break;
6000 1 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
6001
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
6002 1 case 0:
6003 1 result = true;
6004 1 break;
6005 ✗ default:
6006 ✗ break;
6007 }
6008 1 break;
6009 1 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
6010
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
6011 1 case 0:
6012 1 result = true;
6013 1 break;
6014 ✗ default:
6015 ✗ break;
6016 }
6017 1 break;
6018 }
6019 3 return result;
6020 }
6021
6022 #endif
6023
6024 ✗ bool ActiveRateGroupComponentBase::isConnected_PingOut_OutputPort(FwIndexType portNum) const {
6025 ✗ FW_ASSERT(
6026 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
6027 static_cast<FwAssertArgType>(portNum),
6028 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
6029 );
6030 ✗ bool result = false;
6031 ✗ const auto instance = this->getInstance();
6032 ✗ switch (instance) {
6033 ✗ default:
6034 #ifdef FW_STRICT_ASSERTIONS
6035 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
6036 ✗ break;
6037 #else
6038 // Fall through
6039 #endif
6040 ✗ case ::Ref::InstanceIds::Ref_rateGroup1Comp:
6041 ✗ switch (portNum) {
6042 ✗ case 0:
6043 ✗ result = true;
6044 ✗ break;
6045 ✗ default:
6046 ✗ break;
6047 }
6048 ✗ break;
6049 ✗ case ::Ref::InstanceIds::Ref_rateGroup2Comp:
6050 ✗ switch (portNum) {
6051 ✗ case 0:
6052 ✗ result = true;
6053 ✗ break;
6054 ✗ default:
6055 ✗ break;
6056 }
6057 ✗ break;
6058 ✗ case ::Ref::InstanceIds::Ref_rateGroup3Comp:
6059 ✗ switch (portNum) {
6060 ✗ case 0:
6061 ✗ result = true;
6062 ✗ break;
6063 ✗ default:
6064 ✗ break;
6065 }
6066 ✗ break;
6067 }
6068 ✗ return result;
6069 }
6070
6071 4223 bool ActiveRateGroupComponentBase::isConnected_RateGroupMemberOut_OutputPort(FwIndexType portNum) const {
6072 4223 FW_ASSERT(
6073 (0 <= portNum) && (portNum < NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS),
6074 static_cast<FwAssertArgType>(portNum),
6075 static_cast<FwAssertArgType>(NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS)
6076 );
6077 4223 bool result = false;
6078 4223 const auto instance = this->getInstance();
6079
3/4
✗ Branch 0 not taken.
✓ Branch 1 taken 2410 times.
✓ Branch 2 taken 1210 times.
✓ Branch 3 taken 610 times.
4144 switch (instance) {
6080 ✗ default:
6081 #ifdef FW_STRICT_ASSERTIONS
6082 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
6083 ✗ break;
6084 #else
6085 // Fall through
6086 #endif
6087 2410 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
6088
9/9
✓ Branch 0 taken 241 times.
✓ Branch 1 taken 241 times.
✓ Branch 2 taken 241 times.
✓ Branch 3 taken 241 times.
✓ Branch 4 taken 241 times.
✓ Branch 5 taken 241 times.
✓ Branch 6 taken 241 times.
✓ Branch 7 taken 241 times.
✓ Branch 8 taken 482 times.
2410 switch (portNum) {
6089 241 case 0:
6090 241 result = true;
6091 241 break;
6092 241 case 1:
6093 241 result = true;
6094 241 break;
6095 241 case 2:
6096 241 result = true;
6097 241 break;
6098 241 case 3:
6099 241 result = true;
6100 241 break;
6101 241 case 4:
6102 241 result = true;
6103 241 break;
6104 241 case 5:
6105 241 result = true;
6106 241 break;
6107 241 case 6:
6108 241 result = true;
6109 241 break;
6110 241 case 7:
6111 241 result = true;
6112 241 break;
6113 482 default:
6114 482 break;
6115 }
6116 2410 break;
6117 1210 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
6118
9/9
✓ Branch 0 taken 121 times.
✓ Branch 1 taken 121 times.
✓ Branch 2 taken 121 times.
✓ Branch 3 taken 121 times.
✓ Branch 4 taken 121 times.
✓ Branch 5 taken 121 times.
✓ Branch 6 taken 121 times.
✓ Branch 7 taken 121 times.
✓ Branch 8 taken 242 times.
1210 switch (portNum) {
6119 121 case 0:
6120 121 result = true;
6121 121 break;
6122 121 case 1:
6123 121 result = true;
6124 121 break;
6125 121 case 2:
6126 121 result = true;
6127 121 break;
6128 121 case 3:
6129 121 result = true;
6130 121 break;
6131 121 case 4:
6132 121 result = true;
6133 121 break;
6134 121 case 5:
6135 121 result = true;
6136 121 break;
6137 121 case 6:
6138 121 result = true;
6139 121 break;
6140 121 case 7:
6141 121 result = true;
6142 121 break;
6143 242 default:
6144 242 break;
6145 }
6146 1210 break;
6147 610 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
6148
9/9
✓ Branch 0 taken 61 times.
✓ Branch 1 taken 61 times.
✓ Branch 2 taken 61 times.
✓ Branch 3 taken 61 times.
✓ Branch 4 taken 61 times.
✓ Branch 5 taken 61 times.
✓ Branch 6 taken 61 times.
✓ Branch 7 taken 61 times.
✓ Branch 8 taken 122 times.
610 switch (portNum) {
6149 61 case 0:
6150 61 result = true;
6151 61 break;
6152 61 case 1:
6153 61 result = true;
6154 61 break;
6155 61 case 2:
6156 61 result = true;
6157 61 break;
6158 61 case 3:
6159 61 result = true;
6160 61 break;
6161 61 case 4:
6162 61 result = true;
6163 61 break;
6164 61 case 5:
6165 61 result = true;
6166 61 break;
6167 61 case 6:
6168 61 result = true;
6169 61 break;
6170 61 case 7:
6171 61 result = true;
6172 61 break;
6173 122 default:
6174 122 break;
6175 }
6176 610 break;
6177 }
6178 4230 return result;
6179 }
6180
6181 19 bool ActiveRateGroupComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
6182 19 FW_ASSERT(
6183 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
6184 static_cast<FwAssertArgType>(portNum),
6185 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
6186 );
6187 19 bool result = false;
6188 19 const auto instance = this->getInstance();
6189
3/4
✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
✓ Branch 2 taken 3 times.
✓ Branch 3 taken 8 times.
19 switch (instance) {
6190 ✗ default:
6191 #ifdef FW_STRICT_ASSERTIONS
6192 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
6193 ✗ break;
6194 #else
6195 // Fall through
6196 #endif
6197 8 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
6198
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
6199 8 case 0:
6200 8 result = true;
6201 8 break;
6202 ✗ default:
6203 ✗ break;
6204 }
6205 8 break;
6206 3 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
6207
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
6208 3 case 0:
6209 3 result = true;
6210 3 break;
6211 ✗ default:
6212 ✗ break;
6213 }
6214 3 break;
6215 8 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
6216
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
6217 8 case 0:
6218 8 result = true;
6219 8 break;
6220 ✗ default:
6221 ✗ break;
6222 }
6223 8 break;
6224 }
6225 19 return result;
6226 }
6227
6228 32 bool ActiveRateGroupComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const {
6229 32 FW_ASSERT(
6230 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
6231 static_cast<FwAssertArgType>(portNum),
6232 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
6233 );
6234 32 bool result = false;
6235 32 const auto instance = this->getInstance();
6236
3/4
✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✓ Branch 2 taken 4 times.
✓ Branch 3 taken 14 times.
32 switch (instance) {
6237 ✗ default:
6238 #ifdef FW_STRICT_ASSERTIONS
6239 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
6240 ✗ break;
6241 #else
6242 // Fall through
6243 #endif
6244 14 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
6245
1/2
✓ Branch 0 taken 14 times.
✗ Branch 1 not taken.
14 switch (portNum) {
6246 14 case 0:
6247 14 result = true;
6248 14 break;
6249 ✗ default:
6250 ✗ break;
6251 }
6252 14 break;
6253 4 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
6254
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
6255 4 case 0:
6256 4 result = true;
6257 4 break;
6258 ✗ default:
6259 ✗ break;
6260 }
6261 4 break;
6262 14 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
6263
1/2
✓ Branch 0 taken 14 times.
✗ Branch 1 not taken.
14 switch (portNum) {
6264 14 case 0:
6265 14 result = true;
6266 14 break;
6267 ✗ default:
6268 ✗ break;
6269 }
6270 14 break;
6271 }
6272 32 return result;
6273 }
6274
6275 3 void ActiveRateGroupComponentBase::Log_out(
6276 FwIndexType portNum,
6277 FwEventIdType id,
6278 Fw::Time& timeTag,
6279 const Fw::LogSeverity& severity,
6280 Fw::LogBuffer& args
6281 ) const {
6282 3 FW_ASSERT(
6283 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
6284 static_cast<FwAssertArgType>(portNum),
6285 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
6286 );
6287 3 const auto instance = this->getInstance();
6288
3/4
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 1 times.
3 switch (instance) {
6289 ✗ default:
6290 #ifdef FW_STRICT_ASSERTIONS
6291 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
6292 ✗ break;
6293 #else
6294 // Fall through
6295 #endif
6296 1 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
6297
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
6298 1 case 0:
6299 1 CdhCore::events.LogRecv_handlerBase(
6300 0,
6301 id,
6302 timeTag,
6303 severity,
6304 args
6305 );
6306 1 break;
6307 ✗ default:
6308 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6309 ✗ break;
6310 }
6311 1 break;
6312 1 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
6313
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
6314 1 case 0:
6315 1 CdhCore::events.LogRecv_handlerBase(
6316 0,
6317 id,
6318 timeTag,
6319 severity,
6320 args
6321 );
6322 1 break;
6323 ✗ default:
6324 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6325 ✗ break;
6326 }
6327 1 break;
6328 1 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
6329
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
6330 1 case 0:
6331 1 CdhCore::events.LogRecv_handlerBase(
6332 0,
6333 id,
6334 timeTag,
6335 severity,
6336 args
6337 );
6338 1 break;
6339 ✗ default:
6340 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6341 ✗ break;
6342 }
6343 1 break;
6344 }
6345 3 }
6346
6347 #if FW_ENABLE_TEXT_LOGGING == 1
6348
6349 3 void ActiveRateGroupComponentBase::LogText_out(
6350 FwIndexType portNum,
6351 FwEventIdType id,
6352 Fw::Time& timeTag,
6353 const Fw::LogSeverity& severity,
6354 Fw::TextLogString& text
6355 ) const {
6356 3 FW_ASSERT(
6357 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
6358 static_cast<FwAssertArgType>(portNum),
6359 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
6360 );
6361 3 const auto instance = this->getInstance();
6362
3/4
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 1 times.
3 switch (instance) {
6363 ✗ default:
6364 #ifdef FW_STRICT_ASSERTIONS
6365 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
6366 ✗ break;
6367 #else
6368 // Fall through
6369 #endif
6370 1 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
6371
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
6372 1 case 0:
6373 1 CdhCore::textLogger.TextLogger_handlerBase(
6374 0,
6375 id,
6376 timeTag,
6377 severity,
6378 text
6379 );
6380 1 break;
6381 ✗ default:
6382 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6383 ✗ break;
6384 }
6385 1 break;
6386 1 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
6387
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
6388 1 case 0:
6389 1 CdhCore::textLogger.TextLogger_handlerBase(
6390 0,
6391 id,
6392 timeTag,
6393 severity,
6394 text
6395 );
6396 1 break;
6397 ✗ default:
6398 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6399 ✗ break;
6400 }
6401 1 break;
6402 1 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
6403
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
6404 1 case 0:
6405 1 CdhCore::textLogger.TextLogger_handlerBase(
6406 0,
6407 id,
6408 timeTag,
6409 severity,
6410 text
6411 );
6412 1 break;
6413 ✗ default:
6414 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6415 ✗ break;
6416 }
6417 1 break;
6418 }
6419 3 }
6420
6421 #endif
6422
6423 183 void ActiveRateGroupComponentBase::PingOut_out(
6424 FwIndexType portNum,
6425 U32 key
6426 ) const {
6427 183 FW_ASSERT(
6428 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
6429 static_cast<FwAssertArgType>(portNum),
6430 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
6431 );
6432 183 const auto instance = this->getInstance();
6433
3/4
✗ Branch 0 not taken.
✓ Branch 1 taken 61 times.
✓ Branch 2 taken 61 times.
✓ Branch 3 taken 61 times.
183 switch (instance) {
6434 ✗ default:
6435 #ifdef FW_STRICT_ASSERTIONS
6436 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
6437 ✗ break;
6438 #else
6439 // Fall through
6440 #endif
6441 61 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
6442
1/2
✓ Branch 0 taken 61 times.
✗ Branch 1 not taken.
61 switch (portNum) {
6443 61 case 0:
6444 61 CdhCore::health.PingReturn_handlerBase(
6445 12,
6446 key
6447 );
6448 61 break;
6449 ✗ default:
6450 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6451 ✗ break;
6452 }
6453 61 break;
6454 61 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
6455
1/2
✓ Branch 0 taken 61 times.
✗ Branch 1 not taken.
61 switch (portNum) {
6456 61 case 0:
6457 61 CdhCore::health.PingReturn_handlerBase(
6458 13,
6459 key
6460 );
6461 61 break;
6462 ✗ default:
6463 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6464 ✗ break;
6465 }
6466 61 break;
6467 61 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
6468
1/2
✓ Branch 0 taken 61 times.
✗ Branch 1 not taken.
61 switch (portNum) {
6469 61 case 0:
6470 61 CdhCore::health.PingReturn_handlerBase(
6471 14,
6472 key
6473 );
6474 61 break;
6475 ✗ default:
6476 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6477 ✗ break;
6478 }
6479 61 break;
6480 }
6481 183 }
6482
6483 3346 void ActiveRateGroupComponentBase::RateGroupMemberOut_out(
6484 FwIndexType portNum,
6485 U32 context
6486 ) const {
6487 3346 FW_ASSERT(
6488 (0 <= portNum) && (portNum < NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS),
6489 static_cast<FwAssertArgType>(portNum),
6490 static_cast<FwAssertArgType>(NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS)
6491 );
6492 3351 const auto instance = this->getInstance();
6493
3/4
✗ Branch 0 not taken.
✓ Branch 1 taken 1928 times.
✓ Branch 2 taken 968 times.
✓ Branch 3 taken 488 times.
3323 switch (instance) {
6494 ✗ default:
6495 #ifdef FW_STRICT_ASSERTIONS
6496 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
6497 ✗ break;
6498 #else
6499 // Fall through
6500 #endif
6501 1928 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
6502
8/9
✓ Branch 0 taken 241 times.
✓ Branch 1 taken 241 times.
✓ Branch 2 taken 241 times.
✓ Branch 3 taken 241 times.
✓ Branch 4 taken 241 times.
✓ Branch 5 taken 241 times.
✓ Branch 6 taken 241 times.
✓ Branch 7 taken 241 times.
✗ Branch 8 not taken.
1928 switch (portNum) {
6503 241 case 0:
6504 241 Ref::SG1.schedIn_handlerBase(
6505 0,
6506 context
6507 );
6508 241 break;
6509 241 case 1:
6510 241 Ref::SG2.schedIn_handlerBase(
6511 0,
6512 context
6513 );
6514 241 break;
6515 241 case 2:
6516 241 CdhCore::tlmSend.Run_handlerBase(
6517 0,
6518 context
6519 );
6520 241 break;
6521 241 case 3:
6522 241 FileHandling::fileDownlink.Run_handlerBase(
6523 0,
6524 context
6525 );
6526 241 break;
6527 241 case 4:
6528 241 Ref::systemResources.run_handlerBase(
6529 0,
6530 context
6531 );
6532 241 break;
6533 241 case 5:
6534 241 ComCcsds::comQueue.run_handlerBase(
6535 0,
6536 context
6537 );
6538 241 break;
6539 241 case 6:
6540 241 CdhCore::cmdDisp.run_handlerBase(
6541 0,
6542 context
6543 );
6544 241 break;
6545 241 case 7:
6546 241 ComCcsds::aggregator.timeout_handlerBase(
6547 0,
6548 context
6549 );
6550 241 break;
6551 ✗ default:
6552 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6553 ✗ break;
6554 }
6555 1928 break;
6556 968 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
6557
8/9
✓ Branch 0 taken 121 times.
✓ Branch 1 taken 121 times.
✓ Branch 2 taken 121 times.
✓ Branch 3 taken 121 times.
✓ Branch 4 taken 121 times.
✓ Branch 5 taken 121 times.
✓ Branch 6 taken 121 times.
✓ Branch 7 taken 121 times.
✗ Branch 8 not taken.
968 switch (portNum) {
6558 121 case 0:
6559 121 Ref::cmdSeq.schedIn_handlerBase(
6560 0,
6561 context
6562 );
6563 121 break;
6564 121 case 1:
6565 121 Ref::sendBuffComp.SchedIn_handlerBase(
6566 0,
6567 context
6568 );
6569 121 break;
6570 121 case 2:
6571 121 Ref::SG3.schedIn_handlerBase(
6572 0,
6573 context
6574 );
6575 121 break;
6576 121 case 3:
6577 121 Ref::SG4.schedIn_handlerBase(
6578 0,
6579 context
6580 );
6581 121 break;
6582 121 case 4:
6583 121 Ref::dpDemo.run_handlerBase(
6584 0,
6585 context
6586 );
6587 121 break;
6588 121 case 5:
6589 121 FileHandling::fileManager.schedIn_handlerBase(
6590 0,
6591 context
6592 );
6593 121 break;
6594 121 case 6:
6595 121 Ref::wasmSeq.checkTimers_handlerBase(
6596 0,
6597 context
6598 );
6599 121 break;
6600 121 case 7:
6601 121 Ref::wasmSeq.writeTelemetry_handlerBase(
6602 0,
6603 context
6604 );
6605 121 break;
6606 ✗ default:
6607 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6608 ✗ break;
6609 }
6610 968 break;
6611 488 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
6612
8/9
✓ Branch 0 taken 61 times.
✓ Branch 1 taken 61 times.
✓ Branch 2 taken 61 times.
✓ Branch 3 taken 61 times.
✓ Branch 4 taken 61 times.
✓ Branch 5 taken 61 times.
✓ Branch 6 taken 61 times.
✓ Branch 7 taken 61 times.
✗ Branch 8 not taken.
488 switch (portNum) {
6613 61 case 0:
6614 61 CdhCore::health.Run_handlerBase(
6615 0,
6616 context
6617 );
6618 61 break;
6619 61 case 1:
6620 61 Ref::SG5.schedIn_handlerBase(
6621 0,
6622 context
6623 );
6624 61 break;
6625 61 case 2:
6626 61 Ref::blockDrv.Sched_handlerBase(
6627 0,
6628 context
6629 );
6630 61 break;
6631 61 case 3:
6632 61 ComCcsds::commsBufferManager.schedIn_handlerBase(
6633 0,
6634 context
6635 );
6636 61 break;
6637 61 case 4:
6638 61 DataProducts::dpBufferManager.schedIn_handlerBase(
6639 0,
6640 context
6641 );
6642 61 break;
6643 61 case 5:
6644 61 DataProducts::dpWriter.schedIn_handlerBase(
6645 0,
6646 context
6647 );
6648 61 break;
6649 61 case 6:
6650 61 DataProducts::dpMgr.schedIn_handlerBase(
6651 0,
6652 context
6653 );
6654 61 break;
6655 61 case 7:
6656 61 CdhCore::events.run_handlerBase(
6657 0,
6658 context
6659 );
6660 61 break;
6661 ✗ default:
6662 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6663 ✗ break;
6664 }
6665 488 break;
6666 }
6667 3384 }
6668
6669 19 void ActiveRateGroupComponentBase::Time_out(
6670 FwIndexType portNum,
6671 Fw::Time& time
6672 ) const {
6673 19 FW_ASSERT(
6674 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
6675 static_cast<FwAssertArgType>(portNum),
6676 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
6677 );
6678 19 const auto instance = this->getInstance();
6679
3/4
✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
✓ Branch 2 taken 3 times.
✓ Branch 3 taken 8 times.
19 switch (instance) {
6680 ✗ default:
6681 #ifdef FW_STRICT_ASSERTIONS
6682 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
6683 ✗ break;
6684 #else
6685 // Fall through
6686 #endif
6687 8 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
6688
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
6689 8 case 0:
6690 8 Ref::posixTime.timeGetPort_handlerBase(
6691 0,
6692 time
6693 );
6694 8 break;
6695 ✗ default:
6696 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6697 ✗ break;
6698 }
6699 8 break;
6700 3 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
6701
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
6702 3 case 0:
6703 3 Ref::posixTime.timeGetPort_handlerBase(
6704 0,
6705 time
6706 );
6707 3 break;
6708 ✗ default:
6709 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6710 ✗ break;
6711 }
6712 3 break;
6713 8 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
6714
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
6715 8 case 0:
6716 8 Ref::posixTime.timeGetPort_handlerBase(
6717 0,
6718 time
6719 );
6720 8 break;
6721 ✗ default:
6722 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6723 ✗ break;
6724 }
6725 8 break;
6726 }
6727 19 }
6728
6729 16 void ActiveRateGroupComponentBase::Tlm_out(
6730 FwIndexType portNum,
6731 FwChanIdType id,
6732 Fw::Time& timeTag,
6733 Fw::TlmBuffer& val
6734 ) const {
6735 16 FW_ASSERT(
6736 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
6737 static_cast<FwAssertArgType>(portNum),
6738 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
6739 );
6740 16 const auto instance = this->getInstance();
6741
3/4
✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
✓ Branch 2 taken 2 times.
✓ Branch 3 taken 7 times.
16 switch (instance) {
6742 ✗ default:
6743 #ifdef FW_STRICT_ASSERTIONS
6744 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
6745 ✗ break;
6746 #else
6747 // Fall through
6748 #endif
6749 7 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
6750
1/2
✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
7 switch (portNum) {
6751 7 case 0:
6752 7 CdhCore::tlmSend.TlmRecv_handlerBase(
6753 0,
6754 id,
6755 timeTag,
6756 val
6757 );
6758 7 break;
6759 ✗ default:
6760 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6761 ✗ break;
6762 }
6763 7 break;
6764 2 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
6765
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
6766 2 case 0:
6767 2 CdhCore::tlmSend.TlmRecv_handlerBase(
6768 0,
6769 id,
6770 timeTag,
6771 val
6772 );
6773 2 break;
6774 ✗ default:
6775 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6776 ✗ break;
6777 }
6778 2 break;
6779 7 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
6780
1/2
✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
7 switch (portNum) {
6781 7 case 0:
6782 7 CdhCore::tlmSend.TlmRecv_handlerBase(
6783 0,
6784 id,
6785 timeTag,
6786 val
6787 );
6788 7 break;
6789 ✗ default:
6790 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6791 ✗ break;
6792 }
6793 7 break;
6794 }
6795 16 }
6796
6797 }
6798
6799 namespace Svc {
6800
6801 ✗ bool AssertFatalAdapterComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
6802 ✗ FW_ASSERT(
6803 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
6804 static_cast<FwAssertArgType>(portNum),
6805 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
6806 );
6807 ✗ bool result = false;
6808 ✗ switch (portNum) {
6809 ✗ case 0:
6810 ✗ result = true;
6811 ✗ break;
6812 ✗ default:
6813 ✗ break;
6814 }
6815 ✗ return result;
6816 }
6817
6818 #if FW_ENABLE_TEXT_LOGGING == 1
6819
6820 ✗ bool AssertFatalAdapterComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
6821 ✗ FW_ASSERT(
6822 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
6823 static_cast<FwAssertArgType>(portNum),
6824 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
6825 );
6826 ✗ bool result = false;
6827 ✗ switch (portNum) {
6828 ✗ case 0:
6829 ✗ result = true;
6830 ✗ break;
6831 ✗ default:
6832 ✗ break;
6833 }
6834 ✗ return result;
6835 }
6836
6837 #endif
6838
6839 ✗ bool AssertFatalAdapterComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
6840 ✗ FW_ASSERT(
6841 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
6842 static_cast<FwAssertArgType>(portNum),
6843 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
6844 );
6845 ✗ bool result = false;
6846 ✗ switch (portNum) {
6847 ✗ case 0:
6848 ✗ result = true;
6849 ✗ break;
6850 ✗ default:
6851 ✗ break;
6852 }
6853 ✗ return result;
6854 }
6855
6856 ✗ void AssertFatalAdapterComponentBase::Log_out(
6857 FwIndexType portNum,
6858 FwEventIdType id,
6859 Fw::Time& timeTag,
6860 const Fw::LogSeverity& severity,
6861 Fw::LogBuffer& args
6862 ) const {
6863 ✗ FW_ASSERT(
6864 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
6865 static_cast<FwAssertArgType>(portNum),
6866 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
6867 );
6868 ✗ switch (portNum) {
6869 ✗ case 0:
6870 ✗ CdhCore::events.LogRecv_handlerBase(
6871 0,
6872 id,
6873 timeTag,
6874 severity,
6875 args
6876 );
6877 ✗ break;
6878 ✗ default:
6879 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6880 ✗ break;
6881 }
6882 ✗ }
6883
6884 #if FW_ENABLE_TEXT_LOGGING == 1
6885
6886 ✗ void AssertFatalAdapterComponentBase::LogText_out(
6887 FwIndexType portNum,
6888 FwEventIdType id,
6889 Fw::Time& timeTag,
6890 const Fw::LogSeverity& severity,
6891 Fw::TextLogString& text
6892 ) const {
6893 ✗ FW_ASSERT(
6894 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
6895 static_cast<FwAssertArgType>(portNum),
6896 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
6897 );
6898 ✗ switch (portNum) {
6899 ✗ case 0:
6900 ✗ CdhCore::textLogger.TextLogger_handlerBase(
6901 0,
6902 id,
6903 timeTag,
6904 severity,
6905 text
6906 );
6907 ✗ break;
6908 ✗ default:
6909 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6910 ✗ break;
6911 }
6912 ✗ }
6913
6914 #endif
6915
6916 ✗ void AssertFatalAdapterComponentBase::Time_out(
6917 FwIndexType portNum,
6918 Fw::Time& time
6919 ) const {
6920 ✗ FW_ASSERT(
6921 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
6922 static_cast<FwAssertArgType>(portNum),
6923 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
6924 );
6925 ✗ switch (portNum) {
6926 ✗ case 0:
6927 ✗ Ref::posixTime.timeGetPort_handlerBase(
6928 0,
6929 time
6930 );
6931 ✗ break;
6932 ✗ default:
6933 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6934 ✗ break;
6935 }
6936 ✗ }
6937
6938 }
6939
6940 namespace Svc {
6941
6942 ✗ bool BufferAccumulatorComponentBase::isConnected_bufferSendOutDrain_OutputPort(FwIndexType portNum) const {
6943 ✗ FW_ASSERT(
6944 (0 <= portNum) && (portNum < NUM_BUFFERSENDOUTDRAIN_OUTPUT_PORTS),
6945 static_cast<FwAssertArgType>(portNum),
6946 static_cast<FwAssertArgType>(NUM_BUFFERSENDOUTDRAIN_OUTPUT_PORTS)
6947 );
6948 ✗ bool result = false;
6949 ✗ switch (portNum) {
6950 ✗ case 0:
6951 ✗ result = true;
6952 ✗ break;
6953 ✗ default:
6954 ✗ break;
6955 }
6956 ✗ return result;
6957 }
6958
6959 ✗ bool BufferAccumulatorComponentBase::isConnected_bufferSendOutReturn_OutputPort(FwIndexType portNum) const {
6960 ✗ FW_ASSERT(
6961 (0 <= portNum) && (portNum < NUM_BUFFERSENDOUTRETURN_OUTPUT_PORTS),
6962 static_cast<FwAssertArgType>(portNum),
6963 static_cast<FwAssertArgType>(NUM_BUFFERSENDOUTRETURN_OUTPUT_PORTS)
6964 );
6965 ✗ bool result = false;
6966 ✗ switch (portNum) {
6967 ✗ case 0:
6968 ✗ result = true;
6969 ✗ break;
6970 ✗ default:
6971 ✗ break;
6972 }
6973 ✗ return result;
6974 }
6975
6976 1 bool BufferAccumulatorComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const {
6977 1 FW_ASSERT(
6978 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
6979 static_cast<FwAssertArgType>(portNum),
6980 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
6981 );
6982 1 bool result = false;
6983
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
6984 1 case 0:
6985 1 result = true;
6986 1 break;
6987 ✗ default:
6988 ✗ break;
6989 }
6990 1 return result;
6991 }
6992
6993 ✗ bool BufferAccumulatorComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const {
6994 ✗ FW_ASSERT(
6995 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
6996 static_cast<FwAssertArgType>(portNum),
6997 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
6998 );
6999 ✗ bool result = false;
7000 ✗ switch (portNum) {
7001 ✗ case 0:
7002 ✗ result = true;
7003 ✗ break;
7004 ✗ default:
7005 ✗ break;
7006 }
7007 ✗ return result;
7008 }
7009
7010 ✗ bool BufferAccumulatorComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const {
7011 ✗ FW_ASSERT(
7012 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
7013 static_cast<FwAssertArgType>(portNum),
7014 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
7015 );
7016 ✗ bool result = false;
7017 ✗ switch (portNum) {
7018 ✗ case 0:
7019 ✗ result = true;
7020 ✗ break;
7021 ✗ default:
7022 ✗ break;
7023 }
7024 ✗ return result;
7025 }
7026
7027 #if FW_ENABLE_TEXT_LOGGING == 1
7028
7029 ✗ bool BufferAccumulatorComponentBase::isConnected_eventOutText_OutputPort(FwIndexType portNum) const {
7030 ✗ FW_ASSERT(
7031 (0 <= portNum) && (portNum < NUM_EVENTOUTTEXT_OUTPUT_PORTS),
7032 static_cast<FwAssertArgType>(portNum),
7033 static_cast<FwAssertArgType>(NUM_EVENTOUTTEXT_OUTPUT_PORTS)
7034 );
7035 ✗ bool result = false;
7036 ✗ switch (portNum) {
7037 ✗ case 0:
7038 ✗ result = true;
7039 ✗ break;
7040 ✗ default:
7041 ✗ break;
7042 }
7043 ✗ return result;
7044 }
7045
7046 #endif
7047
7048 ✗ bool BufferAccumulatorComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const {
7049 ✗ FW_ASSERT(
7050 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
7051 static_cast<FwAssertArgType>(portNum),
7052 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
7053 );
7054 ✗ bool result = false;
7055 ✗ switch (portNum) {
7056 ✗ case 0:
7057 ✗ result = true;
7058 ✗ break;
7059 ✗ default:
7060 ✗ break;
7061 }
7062 ✗ return result;
7063 }
7064
7065 6 bool BufferAccumulatorComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
7066 6 FW_ASSERT(
7067 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
7068 static_cast<FwAssertArgType>(portNum),
7069 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
7070 );
7071 6 bool result = false;
7072
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
7073 6 case 0:
7074 6 result = true;
7075 6 break;
7076 ✗ default:
7077 ✗ break;
7078 }
7079 6 return result;
7080 }
7081
7082 12 bool BufferAccumulatorComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
7083 12 FW_ASSERT(
7084 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
7085 static_cast<FwAssertArgType>(portNum),
7086 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
7087 );
7088 12 bool result = false;
7089
1/2
✓ Branch 0 taken 12 times.
✗ Branch 1 not taken.
12 switch (portNum) {
7090 12 case 0:
7091 12 result = true;
7092 12 break;
7093 ✗ default:
7094 ✗ break;
7095 }
7096 12 return result;
7097 }
7098
7099 2 void BufferAccumulatorComponentBase::bufferSendOutDrain_out(
7100 FwIndexType portNum,
7101 Fw::Buffer& fwBuffer
7102 ) const {
7103 2 FW_ASSERT(
7104 (0 <= portNum) && (portNum < NUM_BUFFERSENDOUTDRAIN_OUTPUT_PORTS),
7105 static_cast<FwAssertArgType>(portNum),
7106 static_cast<FwAssertArgType>(NUM_BUFFERSENDOUTDRAIN_OUTPUT_PORTS)
7107 );
7108
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
7109 2 case 0:
7110 2 DataProducts::dpWriter.bufferSendIn_handlerBase(
7111 0,
7112 fwBuffer
7113 );
7114 2 break;
7115 ✗ default:
7116 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7117 ✗ break;
7118 }
7119 2 }
7120
7121 2 void BufferAccumulatorComponentBase::bufferSendOutReturn_out(
7122 FwIndexType portNum,
7123 Fw::Buffer& fwBuffer
7124 ) const {
7125 2 FW_ASSERT(
7126 (0 <= portNum) && (portNum < NUM_BUFFERSENDOUTRETURN_OUTPUT_PORTS),
7127 static_cast<FwAssertArgType>(portNum),
7128 static_cast<FwAssertArgType>(NUM_BUFFERSENDOUTRETURN_OUTPUT_PORTS)
7129 );
7130
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
7131 2 case 0:
7132 2 DataProducts::dpBufferManager.bufferSendIn_handlerBase(
7133 0,
7134 fwBuffer
7135 );
7136 2 break;
7137 ✗ default:
7138 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7139 ✗ break;
7140 }
7141 2 }
7142
7143 2 void BufferAccumulatorComponentBase::cmdRegOut_out(
7144 FwIndexType portNum,
7145 FwOpcodeType opCode
7146 ) const {
7147 2 FW_ASSERT(
7148 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
7149 static_cast<FwAssertArgType>(portNum),
7150 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
7151 );
7152
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
7153 2 case 0:
7154 2 CdhCore::cmdDisp.compCmdReg_handlerBase(
7155 5,
7156 opCode
7157 );
7158 2 break;
7159 ✗ default:
7160 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7161 ✗ break;
7162 }
7163 2 }
7164
7165 ✗ void BufferAccumulatorComponentBase::cmdResponseOut_out(
7166 FwIndexType portNum,
7167 FwOpcodeType opCode,
7168 U32 cmdSeq,
7169 const Fw::CmdResponse& response
7170 ) const {
7171 ✗ FW_ASSERT(
7172 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
7173 static_cast<FwAssertArgType>(portNum),
7174 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
7175 );
7176 ✗ switch (portNum) {
7177 ✗ case 0:
7178 ✗ CdhCore::cmdDisp.compCmdStat_handlerBase(
7179 0,
7180 opCode,
7181 cmdSeq,
7182 response
7183 );
7184 ✗ break;
7185 ✗ default:
7186 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7187 ✗ break;
7188 }
7189 ✗ }
7190
7191 ✗ void BufferAccumulatorComponentBase::eventOut_out(
7192 FwIndexType portNum,
7193 FwEventIdType id,
7194 Fw::Time& timeTag,
7195 const Fw::LogSeverity& severity,
7196 Fw::LogBuffer& args
7197 ) const {
7198 ✗ FW_ASSERT(
7199 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
7200 static_cast<FwAssertArgType>(portNum),
7201 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
7202 );
7203 ✗ switch (portNum) {
7204 ✗ case 0:
7205 ✗ CdhCore::events.LogRecv_handlerBase(
7206 0,
7207 id,
7208 timeTag,
7209 severity,
7210 args
7211 );
7212 ✗ break;
7213 ✗ default:
7214 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7215 ✗ break;
7216 }
7217 ✗ }
7218
7219 #if FW_ENABLE_TEXT_LOGGING == 1
7220
7221 ✗ void BufferAccumulatorComponentBase::eventOutText_out(
7222 FwIndexType portNum,
7223 FwEventIdType id,
7224 Fw::Time& timeTag,
7225 const Fw::LogSeverity& severity,
7226 Fw::TextLogString& text
7227 ) const {
7228 ✗ FW_ASSERT(
7229 (0 <= portNum) && (portNum < NUM_EVENTOUTTEXT_OUTPUT_PORTS),
7230 static_cast<FwAssertArgType>(portNum),
7231 static_cast<FwAssertArgType>(NUM_EVENTOUTTEXT_OUTPUT_PORTS)
7232 );
7233 ✗ switch (portNum) {
7234 ✗ case 0:
7235 ✗ CdhCore::textLogger.TextLogger_handlerBase(
7236 0,
7237 id,
7238 timeTag,
7239 severity,
7240 text
7241 );
7242 ✗ break;
7243 ✗ default:
7244 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7245 ✗ break;
7246 }
7247 ✗ }
7248
7249 #endif
7250
7251 61 void BufferAccumulatorComponentBase::pingOut_out(
7252 FwIndexType portNum,
7253 U32 key
7254 ) const {
7255 61 FW_ASSERT(
7256 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
7257 static_cast<FwAssertArgType>(portNum),
7258 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
7259 );
7260
1/2
✓ Branch 0 taken 61 times.
✗ Branch 1 not taken.
61 switch (portNum) {
7261 61 case 0:
7262 61 CdhCore::health.PingReturn_handlerBase(
7263 3,
7264 key
7265 );
7266 61 break;
7267 ✗ default:
7268 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7269 ✗ break;
7270 }
7271 61 }
7272
7273 6 void BufferAccumulatorComponentBase::timeCaller_out(
7274 FwIndexType portNum,
7275 Fw::Time& time
7276 ) const {
7277 6 FW_ASSERT(
7278 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
7279 static_cast<FwAssertArgType>(portNum),
7280 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
7281 );
7282
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
7283 6 case 0:
7284 6 Ref::posixTime.timeGetPort_handlerBase(
7285 0,
7286 time
7287 );
7288 6 break;
7289 ✗ default:
7290 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7291 ✗ break;
7292 }
7293 6 }
7294
7295 6 void BufferAccumulatorComponentBase::tlmOut_out(
7296 FwIndexType portNum,
7297 FwChanIdType id,
7298 Fw::Time& timeTag,
7299 Fw::TlmBuffer& val
7300 ) const {
7301 6 FW_ASSERT(
7302 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
7303 static_cast<FwAssertArgType>(portNum),
7304 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
7305 );
7306
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
7307 6 case 0:
7308 6 CdhCore::tlmSend.TlmRecv_handlerBase(
7309 0,
7310 id,
7311 timeTag,
7312 val
7313 );
7314 6 break;
7315 ✗ default:
7316 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7317 ✗ break;
7318 }
7319 6 }
7320
7321 }
7322
7323 namespace Svc {
7324
7325 ✗ bool BufferManagerComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const {
7326 ✗ FW_ASSERT(
7327 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
7328 static_cast<FwAssertArgType>(portNum),
7329 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
7330 );
7331 ✗ bool result = false;
7332 ✗ const auto instance = this->getInstance();
7333 ✗ switch (instance) {
7334 ✗ default:
7335 #ifdef FW_STRICT_ASSERTIONS
7336 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
7337 ✗ break;
7338 #else
7339 // Fall through
7340 #endif
7341 ✗ case ::Ref::InstanceIds::ComCcsds_commsBufferManager:
7342 ✗ switch (portNum) {
7343 ✗ case 0:
7344 ✗ result = true;
7345 ✗ break;
7346 ✗ default:
7347 ✗ break;
7348 }
7349 ✗ break;
7350 ✗ case ::Ref::InstanceIds::DataProducts_dpBufferManager:
7351 ✗ switch (portNum) {
7352 ✗ case 0:
7353 ✗ result = true;
7354 ✗ break;
7355 ✗ default:
7356 ✗ break;
7357 }
7358 ✗ break;
7359 }
7360 ✗ return result;
7361 }
7362
7363 #if FW_ENABLE_TEXT_LOGGING == 1
7364
7365 ✗ bool BufferManagerComponentBase::isConnected_textEventOut_OutputPort(FwIndexType portNum) const {
7366 ✗ FW_ASSERT(
7367 (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS),
7368 static_cast<FwAssertArgType>(portNum),
7369 static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS)
7370 );
7371 ✗ bool result = false;
7372 ✗ const auto instance = this->getInstance();
7373 ✗ switch (instance) {
7374 ✗ default:
7375 #ifdef FW_STRICT_ASSERTIONS
7376 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
7377 ✗ break;
7378 #else
7379 // Fall through
7380 #endif
7381 ✗ case ::Ref::InstanceIds::ComCcsds_commsBufferManager:
7382 ✗ switch (portNum) {
7383 ✗ case 0:
7384 ✗ result = true;
7385 ✗ break;
7386 ✗ default:
7387 ✗ break;
7388 }
7389 ✗ break;
7390 ✗ case ::Ref::InstanceIds::DataProducts_dpBufferManager:
7391 ✗ switch (portNum) {
7392 ✗ case 0:
7393 ✗ result = true;
7394 ✗ break;
7395 ✗ default:
7396 ✗ break;
7397 }
7398 ✗ break;
7399 }
7400 ✗ return result;
7401 }
7402
7403 #endif
7404
7405 21 bool BufferManagerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
7406 21 FW_ASSERT(
7407 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
7408 static_cast<FwAssertArgType>(portNum),
7409 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
7410 );
7411 21 bool result = false;
7412 21 const auto instance = this->getInstance();
7413
2/3
✗ Branch 0 not taken.
✓ Branch 1 taken 13 times.
✓ Branch 2 taken 8 times.
21 switch (instance) {
7414 ✗ default:
7415 #ifdef FW_STRICT_ASSERTIONS
7416 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
7417 ✗ break;
7418 #else
7419 // Fall through
7420 #endif
7421 13 case ::Ref::InstanceIds::ComCcsds_commsBufferManager:
7422
1/2
✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
13 switch (portNum) {
7423 13 case 0:
7424 13 result = true;
7425 13 break;
7426 ✗ default:
7427 ✗ break;
7428 }
7429 13 break;
7430 8 case ::Ref::InstanceIds::DataProducts_dpBufferManager:
7431
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
7432 8 case 0:
7433 8 result = true;
7434 8 break;
7435 ✗ default:
7436 ✗ break;
7437 }
7438 8 break;
7439 }
7440 21 return result;
7441 }
7442
7443 42 bool BufferManagerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
7444 42 FW_ASSERT(
7445 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
7446 static_cast<FwAssertArgType>(portNum),
7447 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
7448 );
7449 42 bool result = false;
7450 42 const auto instance = this->getInstance();
7451
2/3
✗ Branch 0 not taken.
✓ Branch 1 taken 26 times.
✓ Branch 2 taken 16 times.
42 switch (instance) {
7452 ✗ default:
7453 #ifdef FW_STRICT_ASSERTIONS
7454 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
7455 ✗ break;
7456 #else
7457 // Fall through
7458 #endif
7459 26 case ::Ref::InstanceIds::ComCcsds_commsBufferManager:
7460
1/2
✓ Branch 0 taken 26 times.
✗ Branch 1 not taken.
26 switch (portNum) {
7461 26 case 0:
7462 26 result = true;
7463 26 break;
7464 ✗ default:
7465 ✗ break;
7466 }
7467 26 break;
7468 16 case ::Ref::InstanceIds::DataProducts_dpBufferManager:
7469
1/2
✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
16 switch (portNum) {
7470 16 case 0:
7471 16 result = true;
7472 16 break;
7473 ✗ default:
7474 ✗ break;
7475 }
7476 16 break;
7477 }
7478 42 return result;
7479 }
7480
7481 ✗ void BufferManagerComponentBase::eventOut_out(
7482 FwIndexType portNum,
7483 FwEventIdType id,
7484 Fw::Time& timeTag,
7485 const Fw::LogSeverity& severity,
7486 Fw::LogBuffer& args
7487 ) const {
7488 ✗ FW_ASSERT(
7489 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
7490 static_cast<FwAssertArgType>(portNum),
7491 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
7492 );
7493 ✗ const auto instance = this->getInstance();
7494 ✗ switch (instance) {
7495 ✗ default:
7496 #ifdef FW_STRICT_ASSERTIONS
7497 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
7498 ✗ break;
7499 #else
7500 // Fall through
7501 #endif
7502 ✗ case ::Ref::InstanceIds::ComCcsds_commsBufferManager:
7503 ✗ switch (portNum) {
7504 ✗ case 0:
7505 ✗ CdhCore::events.LogRecv_handlerBase(
7506 0,
7507 id,
7508 timeTag,
7509 severity,
7510 args
7511 );
7512 ✗ break;
7513 ✗ default:
7514 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7515 ✗ break;
7516 }
7517 ✗ break;
7518 ✗ case ::Ref::InstanceIds::DataProducts_dpBufferManager:
7519 ✗ switch (portNum) {
7520 ✗ case 0:
7521 ✗ CdhCore::events.LogRecv_handlerBase(
7522 0,
7523 id,
7524 timeTag,
7525 severity,
7526 args
7527 );
7528 ✗ break;
7529 ✗ default:
7530 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7531 ✗ break;
7532 }
7533 ✗ break;
7534 }
7535 ✗ }
7536
7537 #if FW_ENABLE_TEXT_LOGGING == 1
7538
7539 ✗ void BufferManagerComponentBase::textEventOut_out(
7540 FwIndexType portNum,
7541 FwEventIdType id,
7542 Fw::Time& timeTag,
7543 const Fw::LogSeverity& severity,
7544 Fw::TextLogString& text
7545 ) const {
7546 ✗ FW_ASSERT(
7547 (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS),
7548 static_cast<FwAssertArgType>(portNum),
7549 static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS)
7550 );
7551 ✗ const auto instance = this->getInstance();
7552 ✗ switch (instance) {
7553 ✗ default:
7554 #ifdef FW_STRICT_ASSERTIONS
7555 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
7556 ✗ break;
7557 #else
7558 // Fall through
7559 #endif
7560 ✗ case ::Ref::InstanceIds::ComCcsds_commsBufferManager:
7561 ✗ switch (portNum) {
7562 ✗ case 0:
7563 ✗ CdhCore::textLogger.TextLogger_handlerBase(
7564 0,
7565 id,
7566 timeTag,
7567 severity,
7568 text
7569 );
7570 ✗ break;
7571 ✗ default:
7572 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7573 ✗ break;
7574 }
7575 ✗ break;
7576 ✗ case ::Ref::InstanceIds::DataProducts_dpBufferManager:
7577 ✗ switch (portNum) {
7578 ✗ case 0:
7579 ✗ CdhCore::textLogger.TextLogger_handlerBase(
7580 0,
7581 id,
7582 timeTag,
7583 severity,
7584 text
7585 );
7586 ✗ break;
7587 ✗ default:
7588 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7589 ✗ break;
7590 }
7591 ✗ break;
7592 }
7593 ✗ }
7594
7595 #endif
7596
7597 21 void BufferManagerComponentBase::timeCaller_out(
7598 FwIndexType portNum,
7599 Fw::Time& time
7600 ) const {
7601 21 FW_ASSERT(
7602 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
7603 static_cast<FwAssertArgType>(portNum),
7604 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
7605 );
7606 21 const auto instance = this->getInstance();
7607
2/3
✗ Branch 0 not taken.
✓ Branch 1 taken 13 times.
✓ Branch 2 taken 8 times.
21 switch (instance) {
7608 ✗ default:
7609 #ifdef FW_STRICT_ASSERTIONS
7610 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
7611 ✗ break;
7612 #else
7613 // Fall through
7614 #endif
7615 13 case ::Ref::InstanceIds::ComCcsds_commsBufferManager:
7616
1/2
✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
13 switch (portNum) {
7617 13 case 0:
7618 13 Ref::posixTime.timeGetPort_handlerBase(
7619 0,
7620 time
7621 );
7622 13 break;
7623 ✗ default:
7624 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7625 ✗ break;
7626 }
7627 13 break;
7628 8 case ::Ref::InstanceIds::DataProducts_dpBufferManager:
7629
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
7630 8 case 0:
7631 8 Ref::posixTime.timeGetPort_handlerBase(
7632 0,
7633 time
7634 );
7635 8 break;
7636 ✗ default:
7637 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7638 ✗ break;
7639 }
7640 8 break;
7641 }
7642 21 }
7643
7644 21 void BufferManagerComponentBase::tlmOut_out(
7645 FwIndexType portNum,
7646 FwChanIdType id,
7647 Fw::Time& timeTag,
7648 Fw::TlmBuffer& val
7649 ) const {
7650 21 FW_ASSERT(
7651 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
7652 static_cast<FwAssertArgType>(portNum),
7653 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
7654 );
7655 21 const auto instance = this->getInstance();
7656
2/3
✗ Branch 0 not taken.
✓ Branch 1 taken 13 times.
✓ Branch 2 taken 8 times.
21 switch (instance) {
7657 ✗ default:
7658 #ifdef FW_STRICT_ASSERTIONS
7659 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
7660 ✗ break;
7661 #else
7662 // Fall through
7663 #endif
7664 13 case ::Ref::InstanceIds::ComCcsds_commsBufferManager:
7665
1/2
✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
13 switch (portNum) {
7666 13 case 0:
7667 13 CdhCore::tlmSend.TlmRecv_handlerBase(
7668 0,
7669 id,
7670 timeTag,
7671 val
7672 );
7673 13 break;
7674 ✗ default:
7675 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7676 ✗ break;
7677 }
7678 13 break;
7679 8 case ::Ref::InstanceIds::DataProducts_dpBufferManager:
7680
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
7681 8 case 0:
7682 8 CdhCore::tlmSend.TlmRecv_handlerBase(
7683 0,
7684 id,
7685 timeTag,
7686 val
7687 );
7688 8 break;
7689 ✗ default:
7690 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7691 ✗ break;
7692 }
7693 8 break;
7694 }
7695 21 }
7696
7697 }
7698
7699 namespace Svc {
7700 namespace Ccsds {
7701
7702 ✗ bool ApidManagerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
7703 ✗ FW_ASSERT(
7704 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
7705 static_cast<FwAssertArgType>(portNum),
7706 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
7707 );
7708 ✗ bool result = false;
7709 ✗ switch (portNum) {
7710 ✗ case 0:
7711 ✗ result = true;
7712 ✗ break;
7713 ✗ default:
7714 ✗ break;
7715 }
7716 ✗ return result;
7717 }
7718
7719 #if FW_ENABLE_TEXT_LOGGING == 1
7720
7721 ✗ bool ApidManagerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
7722 ✗ FW_ASSERT(
7723 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
7724 static_cast<FwAssertArgType>(portNum),
7725 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
7726 );
7727 ✗ bool result = false;
7728 ✗ switch (portNum) {
7729 ✗ case 0:
7730 ✗ result = true;
7731 ✗ break;
7732 ✗ default:
7733 ✗ break;
7734 }
7735 ✗ return result;
7736 }
7737
7738 #endif
7739
7740 ✗ bool ApidManagerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
7741 ✗ FW_ASSERT(
7742 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
7743 static_cast<FwAssertArgType>(portNum),
7744 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
7745 );
7746 ✗ bool result = false;
7747 ✗ switch (portNum) {
7748 ✗ case 0:
7749 ✗ result = true;
7750 ✗ break;
7751 ✗ default:
7752 ✗ break;
7753 }
7754 ✗ return result;
7755 }
7756
7757 ✗ void ApidManagerComponentBase::logOut_out(
7758 FwIndexType portNum,
7759 FwEventIdType id,
7760 Fw::Time& timeTag,
7761 const Fw::LogSeverity& severity,
7762 Fw::LogBuffer& args
7763 ) const {
7764 ✗ FW_ASSERT(
7765 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
7766 static_cast<FwAssertArgType>(portNum),
7767 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
7768 );
7769 ✗ switch (portNum) {
7770 ✗ case 0:
7771 ✗ CdhCore::events.LogRecv_handlerBase(
7772 0,
7773 id,
7774 timeTag,
7775 severity,
7776 args
7777 );
7778 ✗ break;
7779 ✗ default:
7780 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7781 ✗ break;
7782 }
7783 ✗ }
7784
7785 #if FW_ENABLE_TEXT_LOGGING == 1
7786
7787 ✗ void ApidManagerComponentBase::logTextOut_out(
7788 FwIndexType portNum,
7789 FwEventIdType id,
7790 Fw::Time& timeTag,
7791 const Fw::LogSeverity& severity,
7792 Fw::TextLogString& text
7793 ) const {
7794 ✗ FW_ASSERT(
7795 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
7796 static_cast<FwAssertArgType>(portNum),
7797 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
7798 );
7799 ✗ switch (portNum) {
7800 ✗ case 0:
7801 ✗ CdhCore::textLogger.TextLogger_handlerBase(
7802 0,
7803 id,
7804 timeTag,
7805 severity,
7806 text
7807 );
7808 ✗ break;
7809 ✗ default:
7810 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7811 ✗ break;
7812 }
7813 ✗ }
7814
7815 #endif
7816
7817 ✗ void ApidManagerComponentBase::timeCaller_out(
7818 FwIndexType portNum,
7819 Fw::Time& time
7820 ) const {
7821 ✗ FW_ASSERT(
7822 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
7823 static_cast<FwAssertArgType>(portNum),
7824 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
7825 );
7826 ✗ switch (portNum) {
7827 ✗ case 0:
7828 ✗ Ref::posixTime.timeGetPort_handlerBase(
7829 0,
7830 time
7831 );
7832 ✗ break;
7833 ✗ default:
7834 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7835 ✗ break;
7836 }
7837 ✗ }
7838
7839 }
7840 }
7841
7842 namespace Svc {
7843 namespace Ccsds {
7844
7845 ✗ bool SpacePacketDeframerComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const {
7846 ✗ FW_ASSERT(
7847 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
7848 static_cast<FwAssertArgType>(portNum),
7849 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
7850 );
7851 ✗ bool result = false;
7852 ✗ switch (portNum) {
7853 ✗ case 0:
7854 ✗ result = true;
7855 ✗ break;
7856 ✗ default:
7857 ✗ break;
7858 }
7859 ✗ return result;
7860 }
7861
7862 ✗ bool SpacePacketDeframerComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const {
7863 ✗ FW_ASSERT(
7864 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
7865 static_cast<FwAssertArgType>(portNum),
7866 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
7867 );
7868 ✗ bool result = false;
7869 ✗ switch (portNum) {
7870 ✗ case 0:
7871 ✗ result = true;
7872 ✗ break;
7873 ✗ default:
7874 ✗ break;
7875 }
7876 ✗ return result;
7877 }
7878
7879 ✗ bool SpacePacketDeframerComponentBase::isConnected_errorNotify_OutputPort(FwIndexType portNum) const {
7880 ✗ FW_ASSERT(
7881 (0 <= portNum) && (portNum < NUM_ERRORNOTIFY_OUTPUT_PORTS),
7882 static_cast<FwAssertArgType>(portNum),
7883 static_cast<FwAssertArgType>(NUM_ERRORNOTIFY_OUTPUT_PORTS)
7884 );
7885 ✗ bool result = false;
7886 ✗ switch (portNum) {
7887 default:
7888 ✗ break;
7889 }
7890 ✗ return result;
7891 }
7892
7893 ✗ bool SpacePacketDeframerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
7894 ✗ FW_ASSERT(
7895 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
7896 static_cast<FwAssertArgType>(portNum),
7897 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
7898 );
7899 ✗ bool result = false;
7900 ✗ switch (portNum) {
7901 ✗ case 0:
7902 ✗ result = true;
7903 ✗ break;
7904 ✗ default:
7905 ✗ break;
7906 }
7907 ✗ return result;
7908 }
7909
7910 #if FW_ENABLE_TEXT_LOGGING == 1
7911
7912 ✗ bool SpacePacketDeframerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
7913 ✗ FW_ASSERT(
7914 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
7915 static_cast<FwAssertArgType>(portNum),
7916 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
7917 );
7918 ✗ bool result = false;
7919 ✗ switch (portNum) {
7920 ✗ case 0:
7921 ✗ result = true;
7922 ✗ break;
7923 ✗ default:
7924 ✗ break;
7925 }
7926 ✗ return result;
7927 }
7928
7929 #endif
7930
7931 ✗ bool SpacePacketDeframerComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const {
7932 ✗ FW_ASSERT(
7933 (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS),
7934 static_cast<FwAssertArgType>(portNum),
7935 static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS)
7936 );
7937 ✗ bool result = false;
7938 ✗ switch (portNum) {
7939 ✗ case 0:
7940 ✗ result = true;
7941 ✗ break;
7942 ✗ default:
7943 ✗ break;
7944 }
7945 ✗ return result;
7946 }
7947
7948 ✗ bool SpacePacketDeframerComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const {
7949 ✗ FW_ASSERT(
7950 (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS),
7951 static_cast<FwAssertArgType>(portNum),
7952 static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS)
7953 );
7954 ✗ bool result = false;
7955 ✗ switch (portNum) {
7956 ✗ case 0:
7957 ✗ result = true;
7958 ✗ break;
7959 ✗ default:
7960 ✗ break;
7961 }
7962 ✗ return result;
7963 }
7964
7965 ✗ bool SpacePacketDeframerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
7966 ✗ FW_ASSERT(
7967 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
7968 static_cast<FwAssertArgType>(portNum),
7969 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
7970 );
7971 ✗ bool result = false;
7972 ✗ switch (portNum) {
7973 ✗ case 0:
7974 ✗ result = true;
7975 ✗ break;
7976 ✗ default:
7977 ✗ break;
7978 }
7979 ✗ return result;
7980 }
7981
7982 ✗ bool SpacePacketDeframerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
7983 ✗ FW_ASSERT(
7984 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
7985 static_cast<FwAssertArgType>(portNum),
7986 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
7987 );
7988 ✗ bool result = false;
7989 ✗ switch (portNum) {
7990 ✗ case 0:
7991 ✗ result = true;
7992 ✗ break;
7993 ✗ default:
7994 ✗ break;
7995 }
7996 ✗ return result;
7997 }
7998
7999 ✗ bool SpacePacketDeframerComponentBase::isConnected_validateApidSeqCount_OutputPort(FwIndexType portNum) const {
8000 ✗ FW_ASSERT(
8001 (0 <= portNum) && (portNum < NUM_VALIDATEAPIDSEQCOUNT_OUTPUT_PORTS),
8002 static_cast<FwAssertArgType>(portNum),
8003 static_cast<FwAssertArgType>(NUM_VALIDATEAPIDSEQCOUNT_OUTPUT_PORTS)
8004 );
8005 ✗ bool result = false;
8006 ✗ switch (portNum) {
8007 ✗ case 0:
8008 ✗ result = true;
8009 ✗ break;
8010 ✗ default:
8011 ✗ break;
8012 }
8013 ✗ return result;
8014 }
8015
8016 151 void SpacePacketDeframerComponentBase::dataOut_out(
8017 FwIndexType portNum,
8018 Fw::Buffer& data,
8019 const ComCfg::FrameContext& context
8020 ) const {
8021 151 FW_ASSERT(
8022 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
8023 static_cast<FwAssertArgType>(portNum),
8024 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
8025 );
8026
1/2
✓ Branch 0 taken 151 times.
✗ Branch 1 not taken.
151 switch (portNum) {
8027 151 case 0:
8028 151 ComCcsds::fprimeRouter.dataIn_handlerBase(
8029 0,
8030 data,
8031 context
8032 );
8033 151 break;
8034 ✗ default:
8035 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8036 ✗ break;
8037 }
8038 151 }
8039
8040 151 void SpacePacketDeframerComponentBase::dataReturnOut_out(
8041 FwIndexType portNum,
8042 Fw::Buffer& data,
8043 const ComCfg::FrameContext& context
8044 ) const {
8045 151 FW_ASSERT(
8046 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
8047 static_cast<FwAssertArgType>(portNum),
8048 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
8049 );
8050
1/2
✓ Branch 0 taken 151 times.
✗ Branch 1 not taken.
151 switch (portNum) {
8051 151 case 0:
8052 151 ComCcsds::tcDeframer.dataReturnIn_handlerBase(
8053 0,
8054 data,
8055 context
8056 );
8057 151 break;
8058 ✗ default:
8059 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8060 ✗ break;
8061 }
8062 151 }
8063
8064 ✗ void SpacePacketDeframerComponentBase::errorNotify_out(
8065 FwIndexType portNum,
8066 const Svc::Ccsds::FrameError& errorCode
8067 ) const {
8068 ✗ FW_ASSERT(
8069 (0 <= portNum) && (portNum < NUM_ERRORNOTIFY_OUTPUT_PORTS),
8070 static_cast<FwAssertArgType>(portNum),
8071 static_cast<FwAssertArgType>(NUM_ERRORNOTIFY_OUTPUT_PORTS)
8072 );
8073 ✗ switch (portNum) {
8074 default:
8075 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8076 ✗ break;
8077 }
8078 ✗ }
8079
8080 ✗ void SpacePacketDeframerComponentBase::logOut_out(
8081 FwIndexType portNum,
8082 FwEventIdType id,
8083 Fw::Time& timeTag,
8084 const Fw::LogSeverity& severity,
8085 Fw::LogBuffer& args
8086 ) const {
8087 ✗ FW_ASSERT(
8088 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
8089 static_cast<FwAssertArgType>(portNum),
8090 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
8091 );
8092 ✗ switch (portNum) {
8093 ✗ case 0:
8094 ✗ CdhCore::events.LogRecv_handlerBase(
8095 0,
8096 id,
8097 timeTag,
8098 severity,
8099 args
8100 );
8101 ✗ break;
8102 ✗ default:
8103 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8104 ✗ break;
8105 }
8106 ✗ }
8107
8108 #if FW_ENABLE_TEXT_LOGGING == 1
8109
8110 ✗ void SpacePacketDeframerComponentBase::logTextOut_out(
8111 FwIndexType portNum,
8112 FwEventIdType id,
8113 Fw::Time& timeTag,
8114 const Fw::LogSeverity& severity,
8115 Fw::TextLogString& text
8116 ) const {
8117 ✗ FW_ASSERT(
8118 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
8119 static_cast<FwAssertArgType>(portNum),
8120 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
8121 );
8122 ✗ switch (portNum) {
8123 ✗ case 0:
8124 ✗ CdhCore::textLogger.TextLogger_handlerBase(
8125 0,
8126 id,
8127 timeTag,
8128 severity,
8129 text
8130 );
8131 ✗ break;
8132 ✗ default:
8133 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8134 ✗ break;
8135 }
8136 ✗ }
8137
8138 #endif
8139
8140 ✗ void SpacePacketDeframerComponentBase::timeCaller_out(
8141 FwIndexType portNum,
8142 Fw::Time& time
8143 ) const {
8144 ✗ FW_ASSERT(
8145 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
8146 static_cast<FwAssertArgType>(portNum),
8147 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
8148 );
8149 ✗ switch (portNum) {
8150 ✗ case 0:
8151 ✗ Ref::posixTime.timeGetPort_handlerBase(
8152 0,
8153 time
8154 );
8155 ✗ break;
8156 ✗ default:
8157 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8158 ✗ break;
8159 }
8160 ✗ }
8161
8162 151 U16 SpacePacketDeframerComponentBase::validateApidSeqCount_out(
8163 FwIndexType portNum,
8164 const ComCfg::Apid& apid,
8165 U16 sequenceCount
8166 ) const {
8167 151 FW_ASSERT(
8168 (0 <= portNum) && (portNum < NUM_VALIDATEAPIDSEQCOUNT_OUTPUT_PORTS),
8169 static_cast<FwAssertArgType>(portNum),
8170 static_cast<FwAssertArgType>(NUM_VALIDATEAPIDSEQCOUNT_OUTPUT_PORTS)
8171 );
8172 151 U16 _result = {};
8173
1/2
✓ Branch 0 taken 151 times.
✗ Branch 1 not taken.
151 switch (portNum) {
8174 151 case 0:
8175 151 _result = ComCcsds::apidManager.validateApidSeqCountIn_handlerBase(
8176 0,
8177 apid,
8178 sequenceCount
8179 );
8180 151 break;
8181 ✗ default:
8182 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8183 ✗ break;
8184 }
8185 151 return _result;
8186 }
8187
8188 }
8189 }
8190
8191 namespace Svc {
8192 namespace Ccsds {
8193
8194 ✗ bool SpacePacketFramerComponentBase::isConnected_bufferAllocate_OutputPort(FwIndexType portNum) const {
8195 ✗ FW_ASSERT(
8196 (0 <= portNum) && (portNum < NUM_BUFFERALLOCATE_OUTPUT_PORTS),
8197 static_cast<FwAssertArgType>(portNum),
8198 static_cast<FwAssertArgType>(NUM_BUFFERALLOCATE_OUTPUT_PORTS)
8199 );
8200 ✗ bool result = false;
8201 ✗ switch (portNum) {
8202 ✗ case 0:
8203 ✗ result = true;
8204 ✗ break;
8205 ✗ default:
8206 ✗ break;
8207 }
8208 ✗ return result;
8209 }
8210
8211 ✗ bool SpacePacketFramerComponentBase::isConnected_bufferDeallocate_OutputPort(FwIndexType portNum) const {
8212 ✗ FW_ASSERT(
8213 (0 <= portNum) && (portNum < NUM_BUFFERDEALLOCATE_OUTPUT_PORTS),
8214 static_cast<FwAssertArgType>(portNum),
8215 static_cast<FwAssertArgType>(NUM_BUFFERDEALLOCATE_OUTPUT_PORTS)
8216 );
8217 ✗ bool result = false;
8218 ✗ switch (portNum) {
8219 ✗ case 0:
8220 ✗ result = true;
8221 ✗ break;
8222 ✗ default:
8223 ✗ break;
8224 }
8225 ✗ return result;
8226 }
8227
8228 704 bool SpacePacketFramerComponentBase::isConnected_comStatusOut_OutputPort(FwIndexType portNum) const {
8229 704 FW_ASSERT(
8230 (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS),
8231 static_cast<FwAssertArgType>(portNum),
8232 static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS)
8233 );
8234 704 bool result = false;
8235
1/2
✓ Branch 0 taken 704 times.
✗ Branch 1 not taken.
704 switch (portNum) {
8236 704 case 0:
8237 704 result = true;
8238 704 break;
8239 ✗ default:
8240 ✗ break;
8241 }
8242 704 return result;
8243 }
8244
8245 ✗ bool SpacePacketFramerComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const {
8246 ✗ FW_ASSERT(
8247 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
8248 static_cast<FwAssertArgType>(portNum),
8249 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
8250 );
8251 ✗ bool result = false;
8252 ✗ switch (portNum) {
8253 ✗ case 0:
8254 ✗ result = true;
8255 ✗ break;
8256 ✗ default:
8257 ✗ break;
8258 }
8259 ✗ return result;
8260 }
8261
8262 ✗ bool SpacePacketFramerComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const {
8263 ✗ FW_ASSERT(
8264 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
8265 static_cast<FwAssertArgType>(portNum),
8266 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
8267 );
8268 ✗ bool result = false;
8269 ✗ switch (portNum) {
8270 ✗ case 0:
8271 ✗ result = true;
8272 ✗ break;
8273 ✗ default:
8274 ✗ break;
8275 }
8276 ✗ return result;
8277 }
8278
8279 ✗ bool SpacePacketFramerComponentBase::isConnected_getApidSeqCount_OutputPort(FwIndexType portNum) const {
8280 ✗ FW_ASSERT(
8281 (0 <= portNum) && (portNum < NUM_GETAPIDSEQCOUNT_OUTPUT_PORTS),
8282 static_cast<FwAssertArgType>(portNum),
8283 static_cast<FwAssertArgType>(NUM_GETAPIDSEQCOUNT_OUTPUT_PORTS)
8284 );
8285 ✗ bool result = false;
8286 ✗ switch (portNum) {
8287 ✗ case 0:
8288 ✗ result = true;
8289 ✗ break;
8290 ✗ default:
8291 ✗ break;
8292 }
8293 ✗ return result;
8294 }
8295
8296 ✗ bool SpacePacketFramerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
8297 ✗ FW_ASSERT(
8298 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
8299 static_cast<FwAssertArgType>(portNum),
8300 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
8301 );
8302 ✗ bool result = false;
8303 ✗ switch (portNum) {
8304 ✗ case 0:
8305 ✗ result = true;
8306 ✗ break;
8307 ✗ default:
8308 ✗ break;
8309 }
8310 ✗ return result;
8311 }
8312
8313 #if FW_ENABLE_TEXT_LOGGING == 1
8314
8315 ✗ bool SpacePacketFramerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
8316 ✗ FW_ASSERT(
8317 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
8318 static_cast<FwAssertArgType>(portNum),
8319 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
8320 );
8321 ✗ bool result = false;
8322 ✗ switch (portNum) {
8323 ✗ case 0:
8324 ✗ result = true;
8325 ✗ break;
8326 ✗ default:
8327 ✗ break;
8328 }
8329 ✗ return result;
8330 }
8331
8332 #endif
8333
8334 ✗ bool SpacePacketFramerComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const {
8335 ✗ FW_ASSERT(
8336 (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS),
8337 static_cast<FwAssertArgType>(portNum),
8338 static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS)
8339 );
8340 ✗ bool result = false;
8341 ✗ switch (portNum) {
8342 ✗ case 0:
8343 ✗ result = true;
8344 ✗ break;
8345 ✗ default:
8346 ✗ break;
8347 }
8348 ✗ return result;
8349 }
8350
8351 ✗ bool SpacePacketFramerComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const {
8352 ✗ FW_ASSERT(
8353 (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS),
8354 static_cast<FwAssertArgType>(portNum),
8355 static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS)
8356 );
8357 ✗ bool result = false;
8358 ✗ switch (portNum) {
8359 ✗ case 0:
8360 ✗ result = true;
8361 ✗ break;
8362 ✗ default:
8363 ✗ break;
8364 }
8365 ✗ return result;
8366 }
8367
8368 ✗ bool SpacePacketFramerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
8369 ✗ FW_ASSERT(
8370 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
8371 static_cast<FwAssertArgType>(portNum),
8372 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
8373 );
8374 ✗ bool result = false;
8375 ✗ switch (portNum) {
8376 ✗ case 0:
8377 ✗ result = true;
8378 ✗ break;
8379 ✗ default:
8380 ✗ break;
8381 }
8382 ✗ return result;
8383 }
8384
8385 ✗ bool SpacePacketFramerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
8386 ✗ FW_ASSERT(
8387 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
8388 static_cast<FwAssertArgType>(portNum),
8389 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
8390 );
8391 ✗ bool result = false;
8392 ✗ switch (portNum) {
8393 ✗ case 0:
8394 ✗ result = true;
8395 ✗ break;
8396 ✗ default:
8397 ✗ break;
8398 }
8399 ✗ return result;
8400 }
8401
8402 703 Fw::Buffer SpacePacketFramerComponentBase::bufferAllocate_out(
8403 FwIndexType portNum,
8404 FwSizeType size
8405 ) const {
8406 703 FW_ASSERT(
8407 (0 <= portNum) && (portNum < NUM_BUFFERALLOCATE_OUTPUT_PORTS),
8408 static_cast<FwAssertArgType>(portNum),
8409 static_cast<FwAssertArgType>(NUM_BUFFERALLOCATE_OUTPUT_PORTS)
8410 );
8411 703 Fw::Buffer _result = {};
8412
1/2
✓ Branch 0 taken 703 times.
✗ Branch 1 not taken.
703 switch (portNum) {
8413 703 case 0:
8414
1/1
✓ Branch 1 taken 703 times.
1406 _result = ComCcsds::commsBufferManager.bufferGetCallee_handlerBase(
8415 0,
8416 size
8417
1/1
✓ Branch 1 taken 703 times.
703 );
8418 703 break;
8419 ✗ default:
8420 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8421 ✗ break;
8422 }
8423 703 return _result;
8424 ✗ }
8425
8426 703 void SpacePacketFramerComponentBase::bufferDeallocate_out(
8427 FwIndexType portNum,
8428 Fw::Buffer& fwBuffer
8429 ) const {
8430 703 FW_ASSERT(
8431 (0 <= portNum) && (portNum < NUM_BUFFERDEALLOCATE_OUTPUT_PORTS),
8432 static_cast<FwAssertArgType>(portNum),
8433 static_cast<FwAssertArgType>(NUM_BUFFERDEALLOCATE_OUTPUT_PORTS)
8434 );
8435
1/2
✓ Branch 0 taken 703 times.
✗ Branch 1 not taken.
703 switch (portNum) {
8436 703 case 0:
8437 703 ComCcsds::commsBufferManager.bufferSendIn_handlerBase(
8438 0,
8439 fwBuffer
8440 );
8441 703 break;
8442 ✗ default:
8443 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8444 ✗ break;
8445 }
8446 703 }
8447
8448 704 void SpacePacketFramerComponentBase::comStatusOut_out(
8449 FwIndexType portNum,
8450 Fw::Success& condition
8451 ) const {
8452 704 FW_ASSERT(
8453 (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS),
8454 static_cast<FwAssertArgType>(portNum),
8455 static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS)
8456 );
8457
1/2
✓ Branch 0 taken 704 times.
✗ Branch 1 not taken.
704 switch (portNum) {
8458 704 case 0:
8459 704 ComCcsds::comQueue.comStatusIn_handlerBase(
8460 0,
8461 condition
8462 );
8463 704 break;
8464 ✗ default:
8465 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8466 ✗ break;
8467 }
8468 704 }
8469
8470 703 void SpacePacketFramerComponentBase::dataOut_out(
8471 FwIndexType portNum,
8472 Fw::Buffer& data,
8473 const ComCfg::FrameContext& context
8474 ) const {
8475 703 FW_ASSERT(
8476 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
8477 static_cast<FwAssertArgType>(portNum),
8478 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
8479 );
8480
1/2
✓ Branch 0 taken 703 times.
✗ Branch 1 not taken.
703 switch (portNum) {
8481 703 case 0:
8482 703 ComCcsds::aggregator.dataIn_handlerBase(
8483 0,
8484 data,
8485 context
8486 );
8487 703 break;
8488 ✗ default:
8489 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8490 ✗ break;
8491 }
8492 703 }
8493
8494 703 void SpacePacketFramerComponentBase::dataReturnOut_out(
8495 FwIndexType portNum,
8496 Fw::Buffer& data,
8497 const ComCfg::FrameContext& context
8498 ) const {
8499 703 FW_ASSERT(
8500 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
8501 static_cast<FwAssertArgType>(portNum),
8502 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
8503 );
8504
1/2
✓ Branch 0 taken 703 times.
✗ Branch 1 not taken.
703 switch (portNum) {
8505 703 case 0:
8506 703 ComCcsds::comQueue.dataReturnIn_handlerBase(
8507 0,
8508 data,
8509 context
8510 );
8511 703 break;
8512 ✗ default:
8513 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8514 ✗ break;
8515 }
8516 703 }
8517
8518 703 U16 SpacePacketFramerComponentBase::getApidSeqCount_out(
8519 FwIndexType portNum,
8520 const ComCfg::Apid& apid,
8521 U16 sequenceCount
8522 ) const {
8523 703 FW_ASSERT(
8524 (0 <= portNum) && (portNum < NUM_GETAPIDSEQCOUNT_OUTPUT_PORTS),
8525 static_cast<FwAssertArgType>(portNum),
8526 static_cast<FwAssertArgType>(NUM_GETAPIDSEQCOUNT_OUTPUT_PORTS)
8527 );
8528 703 U16 _result = {};
8529
1/2
✓ Branch 0 taken 703 times.
✗ Branch 1 not taken.
703 switch (portNum) {
8530 703 case 0:
8531 703 _result = ComCcsds::apidManager.getApidSeqCountIn_handlerBase(
8532 0,
8533 apid,
8534 sequenceCount
8535 );
8536 703 break;
8537 ✗ default:
8538 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8539 ✗ break;
8540 }
8541 703 return _result;
8542 }
8543
8544 ✗ void SpacePacketFramerComponentBase::logOut_out(
8545 FwIndexType portNum,
8546 FwEventIdType id,
8547 Fw::Time& timeTag,
8548 const Fw::LogSeverity& severity,
8549 Fw::LogBuffer& args
8550 ) const {
8551 ✗ FW_ASSERT(
8552 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
8553 static_cast<FwAssertArgType>(portNum),
8554 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
8555 );
8556 ✗ switch (portNum) {
8557 ✗ case 0:
8558 ✗ CdhCore::events.LogRecv_handlerBase(
8559 0,
8560 id,
8561 timeTag,
8562 severity,
8563 args
8564 );
8565 ✗ break;
8566 ✗ default:
8567 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8568 ✗ break;
8569 }
8570 ✗ }
8571
8572 #if FW_ENABLE_TEXT_LOGGING == 1
8573
8574 ✗ void SpacePacketFramerComponentBase::logTextOut_out(
8575 FwIndexType portNum,
8576 FwEventIdType id,
8577 Fw::Time& timeTag,
8578 const Fw::LogSeverity& severity,
8579 Fw::TextLogString& text
8580 ) const {
8581 ✗ FW_ASSERT(
8582 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
8583 static_cast<FwAssertArgType>(portNum),
8584 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
8585 );
8586 ✗ switch (portNum) {
8587 ✗ case 0:
8588 ✗ CdhCore::textLogger.TextLogger_handlerBase(
8589 0,
8590 id,
8591 timeTag,
8592 severity,
8593 text
8594 );
8595 ✗ break;
8596 ✗ default:
8597 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8598 ✗ break;
8599 }
8600 ✗ }
8601
8602 #endif
8603
8604 ✗ void SpacePacketFramerComponentBase::timeCaller_out(
8605 FwIndexType portNum,
8606 Fw::Time& time
8607 ) const {
8608 ✗ FW_ASSERT(
8609 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
8610 static_cast<FwAssertArgType>(portNum),
8611 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
8612 );
8613 ✗ switch (portNum) {
8614 ✗ case 0:
8615 ✗ Ref::posixTime.timeGetPort_handlerBase(
8616 0,
8617 time
8618 );
8619 ✗ break;
8620 ✗ default:
8621 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8622 ✗ break;
8623 }
8624 ✗ }
8625
8626 }
8627 }
8628
8629 namespace Svc {
8630 namespace Ccsds {
8631
8632 ✗ bool TcDeframerComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const {
8633 ✗ FW_ASSERT(
8634 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
8635 static_cast<FwAssertArgType>(portNum),
8636 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
8637 );
8638 ✗ bool result = false;
8639 ✗ switch (portNum) {
8640 ✗ case 0:
8641 ✗ result = true;
8642 ✗ break;
8643 ✗ default:
8644 ✗ break;
8645 }
8646 ✗ return result;
8647 }
8648
8649 ✗ bool TcDeframerComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const {
8650 ✗ FW_ASSERT(
8651 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
8652 static_cast<FwAssertArgType>(portNum),
8653 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
8654 );
8655 ✗ bool result = false;
8656 ✗ switch (portNum) {
8657 ✗ case 0:
8658 ✗ result = true;
8659 ✗ break;
8660 ✗ default:
8661 ✗ break;
8662 }
8663 ✗ return result;
8664 }
8665
8666 ✗ bool TcDeframerComponentBase::isConnected_errorNotify_OutputPort(FwIndexType portNum) const {
8667 ✗ FW_ASSERT(
8668 (0 <= portNum) && (portNum < NUM_ERRORNOTIFY_OUTPUT_PORTS),
8669 static_cast<FwAssertArgType>(portNum),
8670 static_cast<FwAssertArgType>(NUM_ERRORNOTIFY_OUTPUT_PORTS)
8671 );
8672 ✗ bool result = false;
8673 ✗ switch (portNum) {
8674 default:
8675 ✗ break;
8676 }
8677 ✗ return result;
8678 }
8679
8680 ✗ bool TcDeframerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
8681 ✗ FW_ASSERT(
8682 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
8683 static_cast<FwAssertArgType>(portNum),
8684 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
8685 );
8686 ✗ bool result = false;
8687 ✗ switch (portNum) {
8688 ✗ case 0:
8689 ✗ result = true;
8690 ✗ break;
8691 ✗ default:
8692 ✗ break;
8693 }
8694 ✗ return result;
8695 }
8696
8697 #if FW_ENABLE_TEXT_LOGGING == 1
8698
8699 ✗ bool TcDeframerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
8700 ✗ FW_ASSERT(
8701 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
8702 static_cast<FwAssertArgType>(portNum),
8703 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
8704 );
8705 ✗ bool result = false;
8706 ✗ switch (portNum) {
8707 ✗ case 0:
8708 ✗ result = true;
8709 ✗ break;
8710 ✗ default:
8711 ✗ break;
8712 }
8713 ✗ return result;
8714 }
8715
8716 #endif
8717
8718 ✗ bool TcDeframerComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const {
8719 ✗ FW_ASSERT(
8720 (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS),
8721 static_cast<FwAssertArgType>(portNum),
8722 static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS)
8723 );
8724 ✗ bool result = false;
8725 ✗ switch (portNum) {
8726 ✗ case 0:
8727 ✗ result = true;
8728 ✗ break;
8729 ✗ default:
8730 ✗ break;
8731 }
8732 ✗ return result;
8733 }
8734
8735 ✗ bool TcDeframerComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const {
8736 ✗ FW_ASSERT(
8737 (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS),
8738 static_cast<FwAssertArgType>(portNum),
8739 static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS)
8740 );
8741 ✗ bool result = false;
8742 ✗ switch (portNum) {
8743 ✗ case 0:
8744 ✗ result = true;
8745 ✗ break;
8746 ✗ default:
8747 ✗ break;
8748 }
8749 ✗ return result;
8750 }
8751
8752 ✗ bool TcDeframerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
8753 ✗ FW_ASSERT(
8754 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
8755 static_cast<FwAssertArgType>(portNum),
8756 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
8757 );
8758 ✗ bool result = false;
8759 ✗ switch (portNum) {
8760 ✗ case 0:
8761 ✗ result = true;
8762 ✗ break;
8763 ✗ default:
8764 ✗ break;
8765 }
8766 ✗ return result;
8767 }
8768
8769 ✗ bool TcDeframerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
8770 ✗ FW_ASSERT(
8771 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
8772 static_cast<FwAssertArgType>(portNum),
8773 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
8774 );
8775 ✗ bool result = false;
8776 ✗ switch (portNum) {
8777 ✗ case 0:
8778 ✗ result = true;
8779 ✗ break;
8780 ✗ default:
8781 ✗ break;
8782 }
8783 ✗ return result;
8784 }
8785
8786 151 void TcDeframerComponentBase::dataOut_out(
8787 FwIndexType portNum,
8788 Fw::Buffer& data,
8789 const ComCfg::FrameContext& context
8790 ) const {
8791 151 FW_ASSERT(
8792 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
8793 static_cast<FwAssertArgType>(portNum),
8794 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
8795 );
8796
1/2
✓ Branch 0 taken 151 times.
✗ Branch 1 not taken.
151 switch (portNum) {
8797 151 case 0:
8798 151 ComCcsds::spacePacketDeframer.dataIn_handlerBase(
8799 0,
8800 data,
8801 context
8802 );
8803 151 break;
8804 ✗ default:
8805 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8806 ✗ break;
8807 }
8808 151 }
8809
8810 151 void TcDeframerComponentBase::dataReturnOut_out(
8811 FwIndexType portNum,
8812 Fw::Buffer& data,
8813 const ComCfg::FrameContext& context
8814 ) const {
8815 151 FW_ASSERT(
8816 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
8817 static_cast<FwAssertArgType>(portNum),
8818 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
8819 );
8820
1/2
✓ Branch 0 taken 151 times.
✗ Branch 1 not taken.
151 switch (portNum) {
8821 151 case 0:
8822 151 ComCcsds::frameAccumulator.dataReturnIn_handlerBase(
8823 0,
8824 data,
8825 context
8826 );
8827 151 break;
8828 ✗ default:
8829 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8830 ✗ break;
8831 }
8832 151 }
8833
8834 ✗ void TcDeframerComponentBase::errorNotify_out(
8835 FwIndexType portNum,
8836 const Svc::Ccsds::FrameError& errorCode
8837 ) const {
8838 ✗ FW_ASSERT(
8839 (0 <= portNum) && (portNum < NUM_ERRORNOTIFY_OUTPUT_PORTS),
8840 static_cast<FwAssertArgType>(portNum),
8841 static_cast<FwAssertArgType>(NUM_ERRORNOTIFY_OUTPUT_PORTS)
8842 );
8843 ✗ switch (portNum) {
8844 default:
8845 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8846 ✗ break;
8847 }
8848 ✗ }
8849
8850 ✗ void TcDeframerComponentBase::logOut_out(
8851 FwIndexType portNum,
8852 FwEventIdType id,
8853 Fw::Time& timeTag,
8854 const Fw::LogSeverity& severity,
8855 Fw::LogBuffer& args
8856 ) const {
8857 ✗ FW_ASSERT(
8858 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
8859 static_cast<FwAssertArgType>(portNum),
8860 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
8861 );
8862 ✗ switch (portNum) {
8863 ✗ case 0:
8864 ✗ CdhCore::events.LogRecv_handlerBase(
8865 0,
8866 id,
8867 timeTag,
8868 severity,
8869 args
8870 );
8871 ✗ break;
8872 ✗ default:
8873 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8874 ✗ break;
8875 }
8876 ✗ }
8877
8878 #if FW_ENABLE_TEXT_LOGGING == 1
8879
8880 ✗ void TcDeframerComponentBase::logTextOut_out(
8881 FwIndexType portNum,
8882 FwEventIdType id,
8883 Fw::Time& timeTag,
8884 const Fw::LogSeverity& severity,
8885 Fw::TextLogString& text
8886 ) const {
8887 ✗ FW_ASSERT(
8888 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
8889 static_cast<FwAssertArgType>(portNum),
8890 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
8891 );
8892 ✗ switch (portNum) {
8893 ✗ case 0:
8894 ✗ CdhCore::textLogger.TextLogger_handlerBase(
8895 0,
8896 id,
8897 timeTag,
8898 severity,
8899 text
8900 );
8901 ✗ break;
8902 ✗ default:
8903 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8904 ✗ break;
8905 }
8906 ✗ }
8907
8908 #endif
8909
8910 ✗ void TcDeframerComponentBase::timeCaller_out(
8911 FwIndexType portNum,
8912 Fw::Time& time
8913 ) const {
8914 ✗ FW_ASSERT(
8915 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
8916 static_cast<FwAssertArgType>(portNum),
8917 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
8918 );
8919 ✗ switch (portNum) {
8920 ✗ case 0:
8921 ✗ Ref::posixTime.timeGetPort_handlerBase(
8922 0,
8923 time
8924 );
8925 ✗ break;
8926 ✗ default:
8927 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8928 ✗ break;
8929 }
8930 ✗ }
8931
8932 }
8933 }
8934
8935 namespace Svc {
8936 namespace Ccsds {
8937
8938 240 bool TmFramerComponentBase::isConnected_comStatusOut_OutputPort(FwIndexType portNum) const {
8939 240 FW_ASSERT(
8940 (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS),
8941 static_cast<FwAssertArgType>(portNum),
8942 static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS)
8943 );
8944 240 bool result = false;
8945
1/2
✓ Branch 0 taken 240 times.
✗ Branch 1 not taken.
240 switch (portNum) {
8946 240 case 0:
8947 240 result = true;
8948 240 break;
8949 ✗ default:
8950 ✗ break;
8951 }
8952 240 return result;
8953 }
8954
8955 ✗ bool TmFramerComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const {
8956 ✗ FW_ASSERT(
8957 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
8958 static_cast<FwAssertArgType>(portNum),
8959 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
8960 );
8961 ✗ bool result = false;
8962 ✗ switch (portNum) {
8963 ✗ case 0:
8964 ✗ result = true;
8965 ✗ break;
8966 ✗ default:
8967 ✗ break;
8968 }
8969 ✗ return result;
8970 }
8971
8972 ✗ bool TmFramerComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const {
8973 ✗ FW_ASSERT(
8974 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
8975 static_cast<FwAssertArgType>(portNum),
8976 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
8977 );
8978 ✗ bool result = false;
8979 ✗ switch (portNum) {
8980 ✗ case 0:
8981 ✗ result = true;
8982 ✗ break;
8983 ✗ default:
8984 ✗ break;
8985 }
8986 ✗ return result;
8987 }
8988
8989 ✗ bool TmFramerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
8990 ✗ FW_ASSERT(
8991 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
8992 static_cast<FwAssertArgType>(portNum),
8993 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
8994 );
8995 ✗ bool result = false;
8996 ✗ switch (portNum) {
8997 ✗ case 0:
8998 ✗ result = true;
8999 ✗ break;
9000 ✗ default:
9001 ✗ break;
9002 }
9003 ✗ return result;
9004 }
9005
9006 #if FW_ENABLE_TEXT_LOGGING == 1
9007
9008 ✗ bool TmFramerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
9009 ✗ FW_ASSERT(
9010 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
9011 static_cast<FwAssertArgType>(portNum),
9012 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
9013 );
9014 ✗ bool result = false;
9015 ✗ switch (portNum) {
9016 ✗ case 0:
9017 ✗ result = true;
9018 ✗ break;
9019 ✗ default:
9020 ✗ break;
9021 }
9022 ✗ return result;
9023 }
9024
9025 #endif
9026
9027 ✗ bool TmFramerComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const {
9028 ✗ FW_ASSERT(
9029 (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS),
9030 static_cast<FwAssertArgType>(portNum),
9031 static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS)
9032 );
9033 ✗ bool result = false;
9034 ✗ switch (portNum) {
9035 ✗ case 0:
9036 ✗ result = true;
9037 ✗ break;
9038 ✗ default:
9039 ✗ break;
9040 }
9041 ✗ return result;
9042 }
9043
9044 ✗ bool TmFramerComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const {
9045 ✗ FW_ASSERT(
9046 (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS),
9047 static_cast<FwAssertArgType>(portNum),
9048 static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS)
9049 );
9050 ✗ bool result = false;
9051 ✗ switch (portNum) {
9052 ✗ case 0:
9053 ✗ result = true;
9054 ✗ break;
9055 ✗ default:
9056 ✗ break;
9057 }
9058 ✗ return result;
9059 }
9060
9061 ✗ bool TmFramerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
9062 ✗ FW_ASSERT(
9063 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
9064 static_cast<FwAssertArgType>(portNum),
9065 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
9066 );
9067 ✗ bool result = false;
9068 ✗ switch (portNum) {
9069 ✗ case 0:
9070 ✗ result = true;
9071 ✗ break;
9072 ✗ default:
9073 ✗ break;
9074 }
9075 ✗ return result;
9076 }
9077
9078 ✗ bool TmFramerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
9079 ✗ FW_ASSERT(
9080 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
9081 static_cast<FwAssertArgType>(portNum),
9082 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
9083 );
9084 ✗ bool result = false;
9085 ✗ switch (portNum) {
9086 ✗ case 0:
9087 ✗ result = true;
9088 ✗ break;
9089 ✗ default:
9090 ✗ break;
9091 }
9092 ✗ return result;
9093 }
9094
9095 240 void TmFramerComponentBase::comStatusOut_out(
9096 FwIndexType portNum,
9097 Fw::Success& condition
9098 ) const {
9099 240 FW_ASSERT(
9100 (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS),
9101 static_cast<FwAssertArgType>(portNum),
9102 static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS)
9103 );
9104
1/2
✓ Branch 0 taken 240 times.
✗ Branch 1 not taken.
240 switch (portNum) {
9105 240 case 0:
9106 240 ComCcsds::aggregator.comStatusIn_handlerBase(
9107 0,
9108 condition
9109 );
9110 240 break;
9111 ✗ default:
9112 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9113 ✗ break;
9114 }
9115 240 }
9116
9117 239 void TmFramerComponentBase::dataOut_out(
9118 FwIndexType portNum,
9119 Fw::Buffer& data,
9120 const ComCfg::FrameContext& context
9121 ) const {
9122 239 FW_ASSERT(
9123 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
9124 static_cast<FwAssertArgType>(portNum),
9125 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
9126 );
9127
1/2
✓ Branch 0 taken 239 times.
✗ Branch 1 not taken.
239 switch (portNum) {
9128 239 case 0:
9129 239 ComCcsds::comStub.dataIn_handlerBase(
9130 0,
9131 data,
9132 context
9133 );
9134 239 break;
9135 ✗ default:
9136 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9137 ✗ break;
9138 }
9139 239 }
9140
9141 239 void TmFramerComponentBase::dataReturnOut_out(
9142 FwIndexType portNum,
9143 Fw::Buffer& data,
9144 const ComCfg::FrameContext& context
9145 ) const {
9146 239 FW_ASSERT(
9147 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
9148 static_cast<FwAssertArgType>(portNum),
9149 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
9150 );
9151
1/2
✓ Branch 0 taken 239 times.
✗ Branch 1 not taken.
239 switch (portNum) {
9152 239 case 0:
9153 239 ComCcsds::aggregator.dataReturnIn_handlerBase(
9154 0,
9155 data,
9156 context
9157 );
9158 239 break;
9159 ✗ default:
9160 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9161 ✗ break;
9162 }
9163 239 }
9164
9165 ✗ void TmFramerComponentBase::timeCaller_out(
9166 FwIndexType portNum,
9167 Fw::Time& time
9168 ) const {
9169 ✗ FW_ASSERT(
9170 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
9171 static_cast<FwAssertArgType>(portNum),
9172 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
9173 );
9174 ✗ switch (portNum) {
9175 ✗ case 0:
9176 ✗ Ref::posixTime.timeGetPort_handlerBase(
9177 0,
9178 time
9179 );
9180 ✗ break;
9181 ✗ default:
9182 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9183 ✗ break;
9184 }
9185 ✗ }
9186
9187 }
9188 }
9189
9190 namespace Svc {
9191
9192 #if FW_ENABLE_TEXT_LOGGING == 1
9193
9194 9 bool CmdSequencerComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
9195 9 FW_ASSERT(
9196 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
9197 static_cast<FwAssertArgType>(portNum),
9198 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
9199 );
9200 9 bool result = false;
9201
1/2
✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
9 switch (portNum) {
9202 9 case 0:
9203 9 result = true;
9204 9 break;
9205 ✗ default:
9206 ✗ break;
9207 }
9208 9 return result;
9209 }
9210
9211 #endif
9212
9213 1 bool CmdSequencerComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const {
9214 1 FW_ASSERT(
9215 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
9216 static_cast<FwAssertArgType>(portNum),
9217 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
9218 );
9219 1 bool result = false;
9220
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
9221 1 case 0:
9222 1 result = true;
9223 1 break;
9224 ✗ default:
9225 ✗ break;
9226 }
9227 1 return result;
9228 }
9229
9230 2 bool CmdSequencerComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const {
9231 2 FW_ASSERT(
9232 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
9233 static_cast<FwAssertArgType>(portNum),
9234 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
9235 );
9236 2 bool result = false;
9237
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
9238 2 case 0:
9239 2 result = true;
9240 2 break;
9241 ✗ default:
9242 ✗ break;
9243 }
9244 2 return result;
9245 }
9246
9247 ✗ bool CmdSequencerComponentBase::isConnected_comCmdOut_OutputPort(FwIndexType portNum) const {
9248 ✗ FW_ASSERT(
9249 (0 <= portNum) && (portNum < NUM_COMCMDOUT_OUTPUT_PORTS),
9250 static_cast<FwAssertArgType>(portNum),
9251 static_cast<FwAssertArgType>(NUM_COMCMDOUT_OUTPUT_PORTS)
9252 );
9253 ✗ bool result = false;
9254 ✗ switch (portNum) {
9255 ✗ case 0:
9256 ✗ result = true;
9257 ✗ break;
9258 ✗ default:
9259 ✗ break;
9260 }
9261 ✗ return result;
9262 }
9263
9264 9 bool CmdSequencerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
9265 9 FW_ASSERT(
9266 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
9267 static_cast<FwAssertArgType>(portNum),
9268 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
9269 );
9270 9 bool result = false;
9271
1/2
✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
9 switch (portNum) {
9272 9 case 0:
9273 9 result = true;
9274 9 break;
9275 ✗ default:
9276 ✗ break;
9277 }
9278 9 return result;
9279 }
9280
9281 ✗ bool CmdSequencerComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const {
9282 ✗ FW_ASSERT(
9283 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
9284 static_cast<FwAssertArgType>(portNum),
9285 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
9286 );
9287 ✗ bool result = false;
9288 ✗ switch (portNum) {
9289 ✗ case 0:
9290 ✗ result = true;
9291 ✗ break;
9292 ✗ default:
9293 ✗ break;
9294 }
9295 ✗ return result;
9296 }
9297
9298 2 bool CmdSequencerComponentBase::isConnected_seqDone_OutputPort(FwIndexType portNum) const {
9299 2 FW_ASSERT(
9300 (0 <= portNum) && (portNum < NUM_SEQDONE_OUTPUT_PORTS),
9301 static_cast<FwAssertArgType>(portNum),
9302 static_cast<FwAssertArgType>(NUM_SEQDONE_OUTPUT_PORTS)
9303 );
9304 2 bool result = false;
9305 2 switch (portNum) {
9306 default:
9307 2 break;
9308 }
9309 2 return result;
9310 }
9311
9312 2 bool CmdSequencerComponentBase::isConnected_seqStartOut_OutputPort(FwIndexType portNum) const {
9313 2 FW_ASSERT(
9314 (0 <= portNum) && (portNum < NUM_SEQSTARTOUT_OUTPUT_PORTS),
9315 static_cast<FwAssertArgType>(portNum),
9316 static_cast<FwAssertArgType>(NUM_SEQSTARTOUT_OUTPUT_PORTS)
9317 );
9318 2 bool result = false;
9319 2 switch (portNum) {
9320 default:
9321 2 break;
9322 }
9323 2 return result;
9324 }
9325
9326 270 bool CmdSequencerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
9327 270 FW_ASSERT(
9328 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
9329 static_cast<FwAssertArgType>(portNum),
9330 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
9331 );
9332 270 bool result = false;
9333
1/2
✓ Branch 0 taken 270 times.
✗ Branch 1 not taken.
270 switch (portNum) {
9334 270 case 0:
9335 270 result = true;
9336 270 break;
9337 ✗ default:
9338 ✗ break;
9339 }
9340 270 return result;
9341 }
9342
9343 26 bool CmdSequencerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
9344 26 FW_ASSERT(
9345 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
9346 static_cast<FwAssertArgType>(portNum),
9347 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
9348 );
9349 26 bool result = false;
9350
1/2
✓ Branch 0 taken 26 times.
✗ Branch 1 not taken.
26 switch (portNum) {
9351 26 case 0:
9352 26 result = true;
9353 26 break;
9354 ✗ default:
9355 ✗ break;
9356 }
9357 26 return result;
9358 }
9359
9360 #if FW_ENABLE_TEXT_LOGGING == 1
9361
9362 9 void CmdSequencerComponentBase::LogText_out(
9363 FwIndexType portNum,
9364 FwEventIdType id,
9365 Fw::Time& timeTag,
9366 const Fw::LogSeverity& severity,
9367 Fw::TextLogString& text
9368 ) const {
9369 9 FW_ASSERT(
9370 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
9371 static_cast<FwAssertArgType>(portNum),
9372 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
9373 );
9374
1/2
✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
9 switch (portNum) {
9375 9 case 0:
9376 9 CdhCore::textLogger.TextLogger_handlerBase(
9377 0,
9378 id,
9379 timeTag,
9380 severity,
9381 text
9382 );
9383 9 break;
9384 ✗ default:
9385 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9386 ✗ break;
9387 }
9388 9 }
9389
9390 #endif
9391
9392 8 void CmdSequencerComponentBase::cmdRegOut_out(
9393 FwIndexType portNum,
9394 FwOpcodeType opCode
9395 ) const {
9396 8 FW_ASSERT(
9397 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
9398 static_cast<FwAssertArgType>(portNum),
9399 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
9400 );
9401
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
9402 8 case 0:
9403 8 CdhCore::cmdDisp.compCmdReg_handlerBase(
9404 17,
9405 opCode
9406 );
9407 8 break;
9408 ✗ default:
9409 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9410 ✗ break;
9411 }
9412 8 }
9413
9414 2 void CmdSequencerComponentBase::cmdResponseOut_out(
9415 FwIndexType portNum,
9416 FwOpcodeType opCode,
9417 U32 cmdSeq,
9418 const Fw::CmdResponse& response
9419 ) const {
9420 2 FW_ASSERT(
9421 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
9422 static_cast<FwAssertArgType>(portNum),
9423 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
9424 );
9425
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
9426 2 case 0:
9427 2 CdhCore::cmdDisp.compCmdStat_handlerBase(
9428 0,
9429 opCode,
9430 cmdSeq,
9431 response
9432 );
9433 2 break;
9434 ✗ default:
9435 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9436 ✗ break;
9437 }
9438 2 }
9439
9440 5 void CmdSequencerComponentBase::comCmdOut_out(
9441 FwIndexType portNum,
9442 Fw::ComBuffer& data,
9443 U32 context
9444 ) const {
9445 5 FW_ASSERT(
9446 (0 <= portNum) && (portNum < NUM_COMCMDOUT_OUTPUT_PORTS),
9447 static_cast<FwAssertArgType>(portNum),
9448 static_cast<FwAssertArgType>(NUM_COMCMDOUT_OUTPUT_PORTS)
9449 );
9450
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 switch (portNum) {
9451 5 case 0:
9452 5 CdhCore::cmdDisp.seqCmdBuff_handlerBase(
9453 1,
9454 data,
9455 context
9456 );
9457 5 break;
9458 ✗ default:
9459 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9460 ✗ break;
9461 }
9462 5 }
9463
9464 9 void CmdSequencerComponentBase::logOut_out(
9465 FwIndexType portNum,
9466 FwEventIdType id,
9467 Fw::Time& timeTag,
9468 const Fw::LogSeverity& severity,
9469 Fw::LogBuffer& args
9470 ) const {
9471 9 FW_ASSERT(
9472 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
9473 static_cast<FwAssertArgType>(portNum),
9474 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
9475 );
9476
1/2
✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
9 switch (portNum) {
9477 9 case 0:
9478 9 CdhCore::events.LogRecv_handlerBase(
9479 0,
9480 id,
9481 timeTag,
9482 severity,
9483 args
9484 );
9485 9 break;
9486 ✗ default:
9487 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9488 ✗ break;
9489 }
9490 9 }
9491
9492 61 void CmdSequencerComponentBase::pingOut_out(
9493 FwIndexType portNum,
9494 U32 key
9495 ) const {
9496 61 FW_ASSERT(
9497 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
9498 static_cast<FwAssertArgType>(portNum),
9499 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
9500 );
9501
1/2
✓ Branch 0 taken 61 times.
✗ Branch 1 not taken.
61 switch (portNum) {
9502 61 case 0:
9503 61 CdhCore::health.PingReturn_handlerBase(
9504 10,
9505 key
9506 );
9507 61 break;
9508 ✗ default:
9509 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9510 ✗ break;
9511 }
9512 61 }
9513
9514 ✗ void CmdSequencerComponentBase::seqDone_out(
9515 FwIndexType portNum,
9516 FwOpcodeType opCode,
9517 U32 cmdSeq,
9518 const Fw::CmdResponse& response
9519 ) const {
9520 ✗ FW_ASSERT(
9521 (0 <= portNum) && (portNum < NUM_SEQDONE_OUTPUT_PORTS),
9522 static_cast<FwAssertArgType>(portNum),
9523 static_cast<FwAssertArgType>(NUM_SEQDONE_OUTPUT_PORTS)
9524 );
9525 ✗ switch (portNum) {
9526 default:
9527 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9528 ✗ break;
9529 }
9530 ✗ }
9531
9532 ✗ void CmdSequencerComponentBase::seqStartOut_out(
9533 FwIndexType portNum,
9534 const Fw::StringBase& filename,
9535 const Svc::SeqArgs& args
9536 ) const {
9537 ✗ FW_ASSERT(
9538 (0 <= portNum) && (portNum < NUM_SEQSTARTOUT_OUTPUT_PORTS),
9539 static_cast<FwAssertArgType>(portNum),
9540 static_cast<FwAssertArgType>(NUM_SEQSTARTOUT_OUTPUT_PORTS)
9541 );
9542 ✗ switch (portNum) {
9543 default:
9544 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9545 ✗ break;
9546 }
9547 ✗ }
9548
9549 270 void CmdSequencerComponentBase::timeCaller_out(
9550 FwIndexType portNum,
9551 Fw::Time& time
9552 ) const {
9553 270 FW_ASSERT(
9554 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
9555 static_cast<FwAssertArgType>(portNum),
9556 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
9557 );
9558
1/2
✓ Branch 0 taken 270 times.
✗ Branch 1 not taken.
270 switch (portNum) {
9559 270 case 0:
9560 270 Ref::posixTime.timeGetPort_handlerBase(
9561 0,
9562 time
9563 );
9564 270 break;
9565 ✗ default:
9566 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9567 ✗ break;
9568 }
9569 270 }
9570
9571 13 void CmdSequencerComponentBase::tlmOut_out(
9572 FwIndexType portNum,
9573 FwChanIdType id,
9574 Fw::Time& timeTag,
9575 Fw::TlmBuffer& val
9576 ) const {
9577 13 FW_ASSERT(
9578 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
9579 static_cast<FwAssertArgType>(portNum),
9580 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
9581 );
9582
1/2
✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
13 switch (portNum) {
9583 13 case 0:
9584 13 CdhCore::tlmSend.TlmRecv_handlerBase(
9585 0,
9586 id,
9587 timeTag,
9588 val
9589 );
9590 13 break;
9591 ✗ default:
9592 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9593 ✗ break;
9594 }
9595 13 }
9596
9597 }
9598
9599 namespace Svc {
9600
9601 ✗ bool ComAggregatorComponentBase::isConnected_comStatusOut_OutputPort(FwIndexType portNum) const {
9602 ✗ FW_ASSERT(
9603 (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS),
9604 static_cast<FwAssertArgType>(portNum),
9605 static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS)
9606 );
9607 ✗ bool result = false;
9608 ✗ switch (portNum) {
9609 ✗ case 0:
9610 ✗ result = true;
9611 ✗ break;
9612 ✗ default:
9613 ✗ break;
9614 }
9615 ✗ return result;
9616 }
9617
9618 ✗ bool ComAggregatorComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const {
9619 ✗ FW_ASSERT(
9620 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
9621 static_cast<FwAssertArgType>(portNum),
9622 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
9623 );
9624 ✗ bool result = false;
9625 ✗ switch (portNum) {
9626 ✗ case 0:
9627 ✗ result = true;
9628 ✗ break;
9629 ✗ default:
9630 ✗ break;
9631 }
9632 ✗ return result;
9633 }
9634
9635 ✗ bool ComAggregatorComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const {
9636 ✗ FW_ASSERT(
9637 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
9638 static_cast<FwAssertArgType>(portNum),
9639 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
9640 );
9641 ✗ bool result = false;
9642 ✗ switch (portNum) {
9643 ✗ case 0:
9644 ✗ result = true;
9645 ✗ break;
9646 ✗ default:
9647 ✗ break;
9648 }
9649 ✗ return result;
9650 }
9651
9652 704 void ComAggregatorComponentBase::comStatusOut_out(
9653 FwIndexType portNum,
9654 Fw::Success& condition
9655 ) const {
9656 704 FW_ASSERT(
9657 (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS),
9658 static_cast<FwAssertArgType>(portNum),
9659 static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS)
9660 );
9661
1/2
✓ Branch 0 taken 704 times.
✗ Branch 1 not taken.
704 switch (portNum) {
9662 704 case 0:
9663 704 ComCcsds::spacePacketFramer.comStatusIn_handlerBase(
9664 0,
9665 condition
9666 );
9667 704 break;
9668 ✗ default:
9669 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9670 ✗ break;
9671 }
9672 704 }
9673
9674 239 void ComAggregatorComponentBase::dataOut_out(
9675 FwIndexType portNum,
9676 Fw::Buffer& data,
9677 const ComCfg::FrameContext& context
9678 ) const {
9679 239 FW_ASSERT(
9680 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
9681 static_cast<FwAssertArgType>(portNum),
9682 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
9683 );
9684
1/2
✓ Branch 0 taken 239 times.
✗ Branch 1 not taken.
239 switch (portNum) {
9685 239 case 0:
9686 239 ComCcsds::framer.dataIn_handlerBase(
9687 0,
9688 data,
9689 context
9690 );
9691 239 break;
9692 ✗ default:
9693 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9694 ✗ break;
9695 }
9696 239 }
9697
9698 703 void ComAggregatorComponentBase::dataReturnOut_out(
9699 FwIndexType portNum,
9700 Fw::Buffer& data,
9701 const ComCfg::FrameContext& context
9702 ) const {
9703 703 FW_ASSERT(
9704 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
9705 static_cast<FwAssertArgType>(portNum),
9706 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
9707 );
9708
1/2
✓ Branch 0 taken 703 times.
✗ Branch 1 not taken.
703 switch (portNum) {
9709 703 case 0:
9710 703 ComCcsds::spacePacketFramer.dataReturnIn_handlerBase(
9711 0,
9712 data,
9713 context
9714 );
9715 703 break;
9716 ✗ default:
9717 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9718 ✗ break;
9719 }
9720 703 }
9721
9722 }
9723
9724 namespace Svc {
9725
9726 1 bool ComQueueComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const {
9727 1 FW_ASSERT(
9728 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
9729 static_cast<FwAssertArgType>(portNum),
9730 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
9731 );
9732 1 bool result = false;
9733
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
9734 1 case 0:
9735 1 result = true;
9736 1 break;
9737 ✗ default:
9738 ✗ break;
9739 }
9740 1 return result;
9741 }
9742
9743 ✗ bool ComQueueComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const {
9744 ✗ FW_ASSERT(
9745 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
9746 static_cast<FwAssertArgType>(portNum),
9747 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
9748 );
9749 ✗ bool result = false;
9750 ✗ switch (portNum) {
9751 ✗ case 0:
9752 ✗ result = true;
9753 ✗ break;
9754 ✗ default:
9755 ✗ break;
9756 }
9757 ✗ return result;
9758 }
9759
9760 ✗ bool ComQueueComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
9761 ✗ FW_ASSERT(
9762 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
9763 static_cast<FwAssertArgType>(portNum),
9764 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
9765 );
9766 ✗ bool result = false;
9767 ✗ switch (portNum) {
9768 ✗ case 0:
9769 ✗ result = true;
9770 ✗ break;
9771 ✗ default:
9772 ✗ break;
9773 }
9774 ✗ return result;
9775 }
9776
9777 #if FW_ENABLE_TEXT_LOGGING == 1
9778
9779 ✗ bool ComQueueComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
9780 ✗ FW_ASSERT(
9781 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
9782 static_cast<FwAssertArgType>(portNum),
9783 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
9784 );
9785 ✗ bool result = false;
9786 ✗ switch (portNum) {
9787 ✗ case 0:
9788 ✗ result = true;
9789 ✗ break;
9790 ✗ default:
9791 ✗ break;
9792 }
9793 ✗ return result;
9794 }
9795
9796 #endif
9797
9798 482 bool ComQueueComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
9799 482 FW_ASSERT(
9800 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
9801 static_cast<FwAssertArgType>(portNum),
9802 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
9803 );
9804 482 bool result = false;
9805
1/2
✓ Branch 0 taken 482 times.
✗ Branch 1 not taken.
482 switch (portNum) {
9806 482 case 0:
9807 482 result = true;
9808 482 break;
9809 ✗ default:
9810 ✗ break;
9811 }
9812 482 return result;
9813 }
9814
9815 964 bool ComQueueComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const {
9816 964 FW_ASSERT(
9817 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
9818 static_cast<FwAssertArgType>(portNum),
9819 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
9820 );
9821 964 bool result = false;
9822
1/2
✓ Branch 0 taken 964 times.
✗ Branch 1 not taken.
964 switch (portNum) {
9823 964 case 0:
9824 964 result = true;
9825 964 break;
9826 ✗ default:
9827 ✗ break;
9828 }
9829 964 return result;
9830 }
9831
9832 ✗ bool ComQueueComponentBase::isConnected_bufferReturnOut_OutputPort(FwIndexType portNum) const {
9833 ✗ FW_ASSERT(
9834 (0 <= portNum) && (portNum < NUM_BUFFERRETURNOUT_OUTPUT_PORTS),
9835 static_cast<FwAssertArgType>(portNum),
9836 static_cast<FwAssertArgType>(NUM_BUFFERRETURNOUT_OUTPUT_PORTS)
9837 );
9838 ✗ bool result = false;
9839 ✗ switch (portNum) {
9840 ✗ case 0:
9841 ✗ result = true;
9842 ✗ break;
9843 ✗ default:
9844 ✗ break;
9845 }
9846 ✗ return result;
9847 }
9848
9849 ✗ bool ComQueueComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const {
9850 ✗ FW_ASSERT(
9851 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
9852 static_cast<FwAssertArgType>(portNum),
9853 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
9854 );
9855 ✗ bool result = false;
9856 ✗ switch (portNum) {
9857 ✗ case 0:
9858 ✗ result = true;
9859 ✗ break;
9860 ✗ default:
9861 ✗ break;
9862 }
9863 ✗ return result;
9864 }
9865
9866 3 void ComQueueComponentBase::CmdReg_out(
9867 FwIndexType portNum,
9868 FwOpcodeType opCode
9869 ) const {
9870 3 FW_ASSERT(
9871 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
9872 static_cast<FwAssertArgType>(portNum),
9873 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
9874 );
9875
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
9876 3 case 0:
9877 3 CdhCore::cmdDisp.compCmdReg_handlerBase(
9878 4,
9879 opCode
9880 );
9881 3 break;
9882 ✗ default:
9883 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9884 ✗ break;
9885 }
9886 3 }
9887
9888 ✗ void ComQueueComponentBase::CmdStatus_out(
9889 FwIndexType portNum,
9890 FwOpcodeType opCode,
9891 U32 cmdSeq,
9892 const Fw::CmdResponse& response
9893 ) const {
9894 ✗ FW_ASSERT(
9895 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
9896 static_cast<FwAssertArgType>(portNum),
9897 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
9898 );
9899 ✗ switch (portNum) {
9900 ✗ case 0:
9901 ✗ CdhCore::cmdDisp.compCmdStat_handlerBase(
9902 0,
9903 opCode,
9904 cmdSeq,
9905 response
9906 );
9907 ✗ break;
9908 ✗ default:
9909 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9910 ✗ break;
9911 }
9912 ✗ }
9913
9914 ✗ void ComQueueComponentBase::Log_out(
9915 FwIndexType portNum,
9916 FwEventIdType id,
9917 Fw::Time& timeTag,
9918 const Fw::LogSeverity& severity,
9919 Fw::LogBuffer& args
9920 ) const {
9921 ✗ FW_ASSERT(
9922 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
9923 static_cast<FwAssertArgType>(portNum),
9924 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
9925 );
9926 ✗ switch (portNum) {
9927 ✗ case 0:
9928 ✗ CdhCore::events.LogRecv_handlerBase(
9929 0,
9930 id,
9931 timeTag,
9932 severity,
9933 args
9934 );
9935 ✗ break;
9936 ✗ default:
9937 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9938 ✗ break;
9939 }
9940 ✗ }
9941
9942 #if FW_ENABLE_TEXT_LOGGING == 1
9943
9944 ✗ void ComQueueComponentBase::LogText_out(
9945 FwIndexType portNum,
9946 FwEventIdType id,
9947 Fw::Time& timeTag,
9948 const Fw::LogSeverity& severity,
9949 Fw::TextLogString& text
9950 ) const {
9951 ✗ FW_ASSERT(
9952 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
9953 static_cast<FwAssertArgType>(portNum),
9954 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
9955 );
9956 ✗ switch (portNum) {
9957 ✗ case 0:
9958 ✗ CdhCore::textLogger.TextLogger_handlerBase(
9959 0,
9960 id,
9961 timeTag,
9962 severity,
9963 text
9964 );
9965 ✗ break;
9966 ✗ default:
9967 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9968 ✗ break;
9969 }
9970 ✗ }
9971
9972 #endif
9973
9974 482 void ComQueueComponentBase::Time_out(
9975 FwIndexType portNum,
9976 Fw::Time& time
9977 ) const {
9978 482 FW_ASSERT(
9979 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
9980 static_cast<FwAssertArgType>(portNum),
9981 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
9982 );
9983
1/2
✓ Branch 0 taken 482 times.
✗ Branch 1 not taken.
482 switch (portNum) {
9984 482 case 0:
9985 482 Ref::posixTime.timeGetPort_handlerBase(
9986 0,
9987 time
9988 );
9989 482 break;
9990 ✗ default:
9991 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9992 ✗ break;
9993 }
9994 482 }
9995
9996 482 void ComQueueComponentBase::Tlm_out(
9997 FwIndexType portNum,
9998 FwChanIdType id,
9999 Fw::Time& timeTag,
10000 Fw::TlmBuffer& val
10001 ) const {
10002 482 FW_ASSERT(
10003 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
10004 static_cast<FwAssertArgType>(portNum),
10005 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
10006 );
10007
1/2
✓ Branch 0 taken 482 times.
✗ Branch 1 not taken.
482 switch (portNum) {
10008 482 case 0:
10009 482 CdhCore::tlmSend.TlmRecv_handlerBase(
10010 0,
10011 id,
10012 timeTag,
10013 val
10014 );
10015 482 break;
10016 ✗ default:
10017 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10018 ✗ break;
10019 }
10020 482 }
10021
10022 ✗ void ComQueueComponentBase::bufferReturnOut_out(
10023 FwIndexType portNum,
10024 Fw::Buffer& fwBuffer
10025 ) const {
10026 ✗ FW_ASSERT(
10027 (0 <= portNum) && (portNum < NUM_BUFFERRETURNOUT_OUTPUT_PORTS),
10028 static_cast<FwAssertArgType>(portNum),
10029 static_cast<FwAssertArgType>(NUM_BUFFERRETURNOUT_OUTPUT_PORTS)
10030 );
10031 ✗ switch (portNum) {
10032 ✗ case 0:
10033 ✗ FileHandling::fileDownlink.bufferReturn_handlerBase(
10034 0,
10035 fwBuffer
10036 );
10037 ✗ break;
10038 ✗ default:
10039 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10040 ✗ break;
10041 }
10042 ✗ }
10043
10044 703 void ComQueueComponentBase::dataOut_out(
10045 FwIndexType portNum,
10046 Fw::Buffer& data,
10047 const ComCfg::FrameContext& context
10048 ) const {
10049 703 FW_ASSERT(
10050 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
10051 static_cast<FwAssertArgType>(portNum),
10052 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
10053 );
10054
1/2
✓ Branch 0 taken 703 times.
✗ Branch 1 not taken.
703 switch (portNum) {
10055 703 case 0:
10056 703 ComCcsds::spacePacketFramer.dataIn_handlerBase(
10057 0,
10058 data,
10059 context
10060 );
10061 703 break;
10062 ✗ default:
10063 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10064 ✗ break;
10065 }
10066 703 }
10067
10068 }
10069
10070 namespace Svc {
10071
10072 1 bool ComStubComponentBase::isConnected_comStatusOut_OutputPort(FwIndexType portNum) const {
10073 1 FW_ASSERT(
10074 (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS),
10075 static_cast<FwAssertArgType>(portNum),
10076 static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS)
10077 );
10078 1 bool result = false;
10079
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
10080 1 case 0:
10081 1 result = true;
10082 1 break;
10083 ✗ default:
10084 ✗ break;
10085 }
10086 1 return result;
10087 }
10088
10089 ✗ bool ComStubComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const {
10090 ✗ FW_ASSERT(
10091 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
10092 static_cast<FwAssertArgType>(portNum),
10093 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
10094 );
10095 ✗ bool result = false;
10096 ✗ switch (portNum) {
10097 ✗ case 0:
10098 ✗ result = true;
10099 ✗ break;
10100 ✗ default:
10101 ✗ break;
10102 }
10103 ✗ return result;
10104 }
10105
10106 ✗ bool ComStubComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const {
10107 ✗ FW_ASSERT(
10108 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
10109 static_cast<FwAssertArgType>(portNum),
10110 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
10111 );
10112 ✗ bool result = false;
10113 ✗ switch (portNum) {
10114 ✗ case 0:
10115 ✗ result = true;
10116 ✗ break;
10117 ✗ default:
10118 ✗ break;
10119 }
10120 ✗ return result;
10121 }
10122
10123 ✗ bool ComStubComponentBase::isConnected_drvAsyncSendOut_OutputPort(FwIndexType portNum) const {
10124 ✗ FW_ASSERT(
10125 (0 <= portNum) && (portNum < NUM_DRVASYNCSENDOUT_OUTPUT_PORTS),
10126 static_cast<FwAssertArgType>(portNum),
10127 static_cast<FwAssertArgType>(NUM_DRVASYNCSENDOUT_OUTPUT_PORTS)
10128 );
10129 ✗ bool result = false;
10130 ✗ switch (portNum) {
10131 default:
10132 ✗ break;
10133 }
10134 ✗ return result;
10135 }
10136
10137 ✗ bool ComStubComponentBase::isConnected_drvReceiveReturnOut_OutputPort(FwIndexType portNum) const {
10138 ✗ FW_ASSERT(
10139 (0 <= portNum) && (portNum < NUM_DRVRECEIVERETURNOUT_OUTPUT_PORTS),
10140 static_cast<FwAssertArgType>(portNum),
10141 static_cast<FwAssertArgType>(NUM_DRVRECEIVERETURNOUT_OUTPUT_PORTS)
10142 );
10143 ✗ bool result = false;
10144 ✗ switch (portNum) {
10145 ✗ case 0:
10146 ✗ result = true;
10147 ✗ break;
10148 ✗ default:
10149 ✗ break;
10150 }
10151 ✗ return result;
10152 }
10153
10154 239 bool ComStubComponentBase::isConnected_drvSendOut_OutputPort(FwIndexType portNum) const {
10155 239 FW_ASSERT(
10156 (0 <= portNum) && (portNum < NUM_DRVSENDOUT_OUTPUT_PORTS),
10157 static_cast<FwAssertArgType>(portNum),
10158 static_cast<FwAssertArgType>(NUM_DRVSENDOUT_OUTPUT_PORTS)
10159 );
10160 239 bool result = false;
10161
1/2
✓ Branch 0 taken 239 times.
✗ Branch 1 not taken.
239 switch (portNum) {
10162 239 case 0:
10163 239 result = true;
10164 239 break;
10165 ✗ default:
10166 ✗ break;
10167 }
10168 239 return result;
10169 }
10170
10171 240 void ComStubComponentBase::comStatusOut_out(
10172 FwIndexType portNum,
10173 Fw::Success& condition
10174 ) const {
10175 240 FW_ASSERT(
10176 (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS),
10177 static_cast<FwAssertArgType>(portNum),
10178 static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS)
10179 );
10180
1/2
✓ Branch 0 taken 240 times.
✗ Branch 1 not taken.
240 switch (portNum) {
10181 240 case 0:
10182 240 ComCcsds::framer.comStatusIn_handlerBase(
10183 0,
10184 condition
10185 );
10186 240 break;
10187 ✗ default:
10188 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10189 ✗ break;
10190 }
10191 240 }
10192
10193 629 void ComStubComponentBase::dataOut_out(
10194 FwIndexType portNum,
10195 Fw::Buffer& data,
10196 const ComCfg::FrameContext& context
10197 ) const {
10198 629 FW_ASSERT(
10199 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
10200 static_cast<FwAssertArgType>(portNum),
10201 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
10202 );
10203
1/2
✓ Branch 0 taken 629 times.
✗ Branch 1 not taken.
629 switch (portNum) {
10204 629 case 0:
10205 629 ComCcsds::frameAccumulator.dataIn_handlerBase(
10206 0,
10207 data,
10208 context
10209 );
10210 629 break;
10211 ✗ default:
10212 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10213 ✗ break;
10214 }
10215 629 }
10216
10217 239 void ComStubComponentBase::dataReturnOut_out(
10218 FwIndexType portNum,
10219 Fw::Buffer& data,
10220 const ComCfg::FrameContext& context
10221 ) const {
10222 239 FW_ASSERT(
10223 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
10224 static_cast<FwAssertArgType>(portNum),
10225 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
10226 );
10227
1/2
✓ Branch 0 taken 239 times.
✗ Branch 1 not taken.
239 switch (portNum) {
10228 239 case 0:
10229 239 ComCcsds::framer.dataReturnIn_handlerBase(
10230 0,
10231 data,
10232 context
10233 );
10234 239 break;
10235 ✗ default:
10236 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10237 ✗ break;
10238 }
10239 239 }
10240
10241 ✗ void ComStubComponentBase::drvAsyncSendOut_out(
10242 FwIndexType portNum,
10243 Fw::Buffer& fwBuffer
10244 ) const {
10245 ✗ FW_ASSERT(
10246 (0 <= portNum) && (portNum < NUM_DRVASYNCSENDOUT_OUTPUT_PORTS),
10247 static_cast<FwAssertArgType>(portNum),
10248 static_cast<FwAssertArgType>(NUM_DRVASYNCSENDOUT_OUTPUT_PORTS)
10249 );
10250 ✗ switch (portNum) {
10251 default:
10252 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10253 ✗ break;
10254 }
10255 ✗ }
10256
10257 630 void ComStubComponentBase::drvReceiveReturnOut_out(
10258 FwIndexType portNum,
10259 Fw::Buffer& fwBuffer
10260 ) const {
10261 630 FW_ASSERT(
10262 (0 <= portNum) && (portNum < NUM_DRVRECEIVERETURNOUT_OUTPUT_PORTS),
10263 static_cast<FwAssertArgType>(portNum),
10264 static_cast<FwAssertArgType>(NUM_DRVRECEIVERETURNOUT_OUTPUT_PORTS)
10265 );
10266
1/2
✓ Branch 0 taken 630 times.
✗ Branch 1 not taken.
630 switch (portNum) {
10267 630 case 0:
10268 630 Ref::comDriver.recvReturnIn_handlerBase(
10269 0,
10270 fwBuffer
10271 );
10272 630 break;
10273 ✗ default:
10274 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10275 ✗ break;
10276 }
10277 630 }
10278
10279 239 Drv::ByteStreamStatus ComStubComponentBase::drvSendOut_out(
10280 FwIndexType portNum,
10281 Fw::Buffer& sendBuffer
10282 ) const {
10283 239 FW_ASSERT(
10284 (0 <= portNum) && (portNum < NUM_DRVSENDOUT_OUTPUT_PORTS),
10285 static_cast<FwAssertArgType>(portNum),
10286 static_cast<FwAssertArgType>(NUM_DRVSENDOUT_OUTPUT_PORTS)
10287 );
10288 239 Drv::ByteStreamStatus _result = {};
10289
1/2
✓ Branch 0 taken 239 times.
✗ Branch 1 not taken.
239 switch (portNum) {
10290 239 case 0:
10291
1/1
✓ Branch 1 taken 239 times.
478 _result = Ref::comDriver.send_handlerBase(
10292 0,
10293 sendBuffer
10294
1/1
✓ Branch 1 taken 239 times.
239 );
10295 239 break;
10296 ✗ default:
10297 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10298 ✗ break;
10299 }
10300 239 return _result;
10301 ✗ }
10302
10303 }
10304
10305 namespace Svc {
10306
10307 1 bool CommandDispatcherComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const {
10308 1 FW_ASSERT(
10309 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
10310 static_cast<FwAssertArgType>(portNum),
10311 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
10312 );
10313 1 bool result = false;
10314
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
10315 1 case 0:
10316 1 result = true;
10317 1 break;
10318 ✗ default:
10319 ✗ break;
10320 }
10321 1 return result;
10322 }
10323
10324 110 bool CommandDispatcherComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const {
10325 110 FW_ASSERT(
10326 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
10327 static_cast<FwAssertArgType>(portNum),
10328 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
10329 );
10330 110 bool result = false;
10331
1/2
✓ Branch 0 taken 110 times.
✗ Branch 1 not taken.
110 switch (portNum) {
10332 110 case 0:
10333 110 result = true;
10334 110 break;
10335 ✗ default:
10336 ✗ break;
10337 }
10338 110 return result;
10339 }
10340
10341 532 bool CommandDispatcherComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
10342 532 FW_ASSERT(
10343 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
10344 static_cast<FwAssertArgType>(portNum),
10345 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
10346 );
10347 532 bool result = false;
10348
1/2
✓ Branch 0 taken 532 times.
✗ Branch 1 not taken.
532 switch (portNum) {
10349 532 case 0:
10350 532 result = true;
10351 532 break;
10352 ✗ default:
10353 ✗ break;
10354 }
10355 532 return result;
10356 }
10357
10358 #if FW_ENABLE_TEXT_LOGGING == 1
10359
10360 532 bool CommandDispatcherComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
10361 532 FW_ASSERT(
10362 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
10363 static_cast<FwAssertArgType>(portNum),
10364 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
10365 );
10366 532 bool result = false;
10367
1/2
✓ Branch 0 taken 532 times.
✗ Branch 1 not taken.
532 switch (portNum) {
10368 532 case 0:
10369 532 result = true;
10370 532 break;
10371 ✗ default:
10372 ✗ break;
10373 }
10374 532 return result;
10375 }
10376
10377 #endif
10378
10379 670 bool CommandDispatcherComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
10380 670 FW_ASSERT(
10381 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
10382 static_cast<FwAssertArgType>(portNum),
10383 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
10384 );
10385 670 bool result = false;
10386
1/2
✓ Branch 0 taken 670 times.
✗ Branch 1 not taken.
670 switch (portNum) {
10387 670 case 0:
10388 670 result = true;
10389 670 break;
10390 ✗ default:
10391 ✗ break;
10392 }
10393 670 return result;
10394 }
10395
10396 276 bool CommandDispatcherComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const {
10397 276 FW_ASSERT(
10398 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
10399 static_cast<FwAssertArgType>(portNum),
10400 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
10401 );
10402 276 bool result = false;
10403
1/2
✓ Branch 0 taken 276 times.
✗ Branch 1 not taken.
276 switch (portNum) {
10404 276 case 0:
10405 276 result = true;
10406 276 break;
10407 ✗ default:
10408 ✗ break;
10409 }
10410 276 return result;
10411 }
10412
10413 150 bool CommandDispatcherComponentBase::isConnected_compCmdSend_OutputPort(FwIndexType portNum) const {
10414 150 FW_ASSERT(
10415 (0 <= portNum) && (portNum < NUM_COMPCMDSEND_OUTPUT_PORTS),
10416 static_cast<FwAssertArgType>(portNum),
10417 static_cast<FwAssertArgType>(NUM_COMPCMDSEND_OUTPUT_PORTS)
10418 );
10419 150 bool result = false;
10420
10/26
✓ Branch 0 taken 110 times.
✓ Branch 1 taken 13 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 1 times.
✓ Branch 11 taken 4 times.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✓ Branch 15 taken 3 times.
✗ Branch 16 not taken.
✓ Branch 17 taken 2 times.
✓ Branch 18 taken 2 times.
✗ Branch 19 not taken.
✓ Branch 20 taken 6 times.
✓ Branch 21 taken 6 times.
✗ Branch 22 not taken.
✓ Branch 23 taken 3 times.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
150 switch (portNum) {
10421 110 case 0:
10422 110 result = true;
10423 110 break;
10424 13 case 1:
10425 13 result = true;
10426 13 break;
10427 ✗ case 2:
10428 ✗ result = true;
10429 ✗ break;
10430 ✗ case 3:
10431 ✗ result = true;
10432 ✗ break;
10433 ✗ case 4:
10434 ✗ result = true;
10435 ✗ break;
10436 ✗ case 5:
10437 ✗ result = true;
10438 ✗ break;
10439 ✗ case 6:
10440 ✗ result = true;
10441 ✗ break;
10442 ✗ case 7:
10443 ✗ result = true;
10444 ✗ break;
10445 ✗ case 8:
10446 ✗ result = true;
10447 ✗ break;
10448 ✗ case 9:
10449 ✗ result = true;
10450 ✗ break;
10451 1 case 10:
10452 1 result = true;
10453 1 break;
10454 4 case 11:
10455 4 result = true;
10456 4 break;
10457 ✗ case 12:
10458 ✗ result = true;
10459 ✗ break;
10460 ✗ case 13:
10461 ✗ result = true;
10462 ✗ break;
10463 ✗ case 14:
10464 ✗ result = true;
10465 ✗ break;
10466 3 case 15:
10467 3 result = true;
10468 3 break;
10469 ✗ case 16:
10470 ✗ result = true;
10471 ✗ break;
10472 2 case 17:
10473 2 result = true;
10474 2 break;
10475 2 case 18:
10476 2 result = true;
10477 2 break;
10478 ✗ case 19:
10479 ✗ result = true;
10480 ✗ break;
10481 6 case 20:
10482 6 result = true;
10483 6 break;
10484 6 case 21:
10485 6 result = true;
10486 6 break;
10487 ✗ case 22:
10488 ✗ result = true;
10489 ✗ break;
10490 3 case 23:
10491 3 result = true;
10492 3 break;
10493 ✗ case 24:
10494 ✗ result = true;
10495 ✗ break;
10496 ✗ default:
10497 ✗ break;
10498 }
10499 150 return result;
10500 }
10501
10502 ✗ bool CommandDispatcherComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const {
10503 ✗ FW_ASSERT(
10504 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
10505 static_cast<FwAssertArgType>(portNum),
10506 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
10507 );
10508 ✗ bool result = false;
10509 ✗ switch (portNum) {
10510 ✗ case 0:
10511 ✗ result = true;
10512 ✗ break;
10513 ✗ default:
10514 ✗ break;
10515 }
10516 ✗ return result;
10517 }
10518
10519 300 bool CommandDispatcherComponentBase::isConnected_seqCmdStatus_OutputPort(FwIndexType portNum) const {
10520 300 FW_ASSERT(
10521 (0 <= portNum) && (portNum < NUM_SEQCMDSTATUS_OUTPUT_PORTS),
10522 static_cast<FwAssertArgType>(portNum),
10523 static_cast<FwAssertArgType>(NUM_SEQCMDSTATUS_OUTPUT_PORTS)
10524 );
10525 300 bool result = false;
10526
2/4
✓ Branch 0 taken 290 times.
✓ Branch 1 taken 10 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
300 switch (portNum) {
10527 290 case 0:
10528 290 result = true;
10529 290 break;
10530 10 case 1:
10531 10 result = true;
10532 10 break;
10533 ✗ case 2:
10534 ✗ result = true;
10535 ✗ break;
10536 ✗ default:
10537 ✗ break;
10538 }
10539 300 return result;
10540 }
10541
10542 4 void CommandDispatcherComponentBase::CmdReg_out(
10543 FwIndexType portNum,
10544 FwOpcodeType opCode
10545 ) const {
10546 4 FW_ASSERT(
10547 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
10548 static_cast<FwAssertArgType>(portNum),
10549 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
10550 );
10551
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
10552 4 case 0:
10553 4 CdhCore::cmdDisp.compCmdReg_handlerBase(
10554 0,
10555 opCode
10556 );
10557 4 break;
10558 ✗ default:
10559 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10560 ✗ break;
10561 }
10562 4 }
10563
10564 110 void CommandDispatcherComponentBase::CmdStatus_out(
10565 FwIndexType portNum,
10566 FwOpcodeType opCode,
10567 U32 cmdSeq,
10568 const Fw::CmdResponse& response
10569 ) const {
10570 110 FW_ASSERT(
10571 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
10572 static_cast<FwAssertArgType>(portNum),
10573 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
10574 );
10575
1/2
✓ Branch 0 taken 110 times.
✗ Branch 1 not taken.
110 switch (portNum) {
10576 110 case 0:
10577 110 CdhCore::cmdDisp.compCmdStat_handlerBase(
10578 0,
10579 opCode,
10580 cmdSeq,
10581 response
10582 );
10583 110 break;
10584 ✗ default:
10585 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10586 ✗ break;
10587 }
10588 110 }
10589
10590 532 void CommandDispatcherComponentBase::Log_out(
10591 FwIndexType portNum,
10592 FwEventIdType id,
10593 Fw::Time& timeTag,
10594 const Fw::LogSeverity& severity,
10595 Fw::LogBuffer& args
10596 ) const {
10597 532 FW_ASSERT(
10598 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
10599 static_cast<FwAssertArgType>(portNum),
10600 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
10601 );
10602
1/2
✓ Branch 0 taken 532 times.
✗ Branch 1 not taken.
532 switch (portNum) {
10603 532 case 0:
10604 532 CdhCore::events.LogRecv_handlerBase(
10605 0,
10606 id,
10607 timeTag,
10608 severity,
10609 args
10610 );
10611 532 break;
10612 ✗ default:
10613 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10614 ✗ break;
10615 }
10616 532 }
10617
10618 #if FW_ENABLE_TEXT_LOGGING == 1
10619
10620 532 void CommandDispatcherComponentBase::LogText_out(
10621 FwIndexType portNum,
10622 FwEventIdType id,
10623 Fw::Time& timeTag,
10624 const Fw::LogSeverity& severity,
10625 Fw::TextLogString& text
10626 ) const {
10627 532 FW_ASSERT(
10628 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
10629 static_cast<FwAssertArgType>(portNum),
10630 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
10631 );
10632
1/2
✓ Branch 0 taken 532 times.
✗ Branch 1 not taken.
532 switch (portNum) {
10633 532 case 0:
10634 532 CdhCore::textLogger.TextLogger_handlerBase(
10635 0,
10636 id,
10637 timeTag,
10638 severity,
10639 text
10640 );
10641 532 break;
10642 ✗ default:
10643 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10644 ✗ break;
10645 }
10646 532 }
10647
10648 #endif
10649
10650 670 void CommandDispatcherComponentBase::Time_out(
10651 FwIndexType portNum,
10652 Fw::Time& time
10653 ) const {
10654 670 FW_ASSERT(
10655 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
10656 static_cast<FwAssertArgType>(portNum),
10657 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
10658 );
10659
1/2
✓ Branch 0 taken 670 times.
✗ Branch 1 not taken.
670 switch (portNum) {
10660 670 case 0:
10661 670 Ref::posixTime.timeGetPort_handlerBase(
10662 0,
10663 time
10664 );
10665 670 break;
10666 ✗ default:
10667 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10668 ✗ break;
10669 }
10670 670 }
10671
10672 138 void CommandDispatcherComponentBase::Tlm_out(
10673 FwIndexType portNum,
10674 FwChanIdType id,
10675 Fw::Time& timeTag,
10676 Fw::TlmBuffer& val
10677 ) const {
10678 138 FW_ASSERT(
10679 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
10680 static_cast<FwAssertArgType>(portNum),
10681 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
10682 );
10683
1/2
✓ Branch 0 taken 138 times.
✗ Branch 1 not taken.
138 switch (portNum) {
10684 138 case 0:
10685 138 CdhCore::tlmSend.TlmRecv_handlerBase(
10686 0,
10687 id,
10688 timeTag,
10689 val
10690 );
10691 138 break;
10692 ✗ default:
10693 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10694 ✗ break;
10695 }
10696 138 }
10697
10698 150 void CommandDispatcherComponentBase::compCmdSend_out(
10699 FwIndexType portNum,
10700 FwOpcodeType opCode,
10701 U32 cmdSeq,
10702 Fw::CmdArgBuffer& args
10703 ) const {
10704 150 FW_ASSERT(
10705 (0 <= portNum) && (portNum < NUM_COMPCMDSEND_OUTPUT_PORTS),
10706 static_cast<FwAssertArgType>(portNum),
10707 static_cast<FwAssertArgType>(NUM_COMPCMDSEND_OUTPUT_PORTS)
10708 );
10709
10/26
✓ Branch 0 taken 110 times.
✓ Branch 1 taken 13 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 1 times.
✓ Branch 11 taken 4 times.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✓ Branch 15 taken 3 times.
✗ Branch 16 not taken.
✓ Branch 17 taken 2 times.
✓ Branch 18 taken 2 times.
✗ Branch 19 not taken.
✓ Branch 20 taken 6 times.
✓ Branch 21 taken 6 times.
✗ Branch 22 not taken.
✓ Branch 23 taken 3 times.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
150 switch (portNum) {
10710 110 case 0:
10711 110 CdhCore::cmdDisp.CmdDisp_handlerBase(
10712 0,
10713 opCode,
10714 cmdSeq,
10715 args
10716 );
10717 110 break;
10718 13 case 1:
10719 13 CdhCore::events.CmdDisp_handlerBase(
10720 0,
10721 opCode,
10722 cmdSeq,
10723 args
10724 );
10725 13 break;
10726 ✗ case 2:
10727 ✗ CdhCore::health.CmdDisp_handlerBase(
10728 0,
10729 opCode,
10730 cmdSeq,
10731 args
10732 );
10733 ✗ break;
10734 ✗ case 3:
10735 ✗ CdhCore::version.cmdIn_handlerBase(
10736 0,
10737 opCode,
10738 cmdSeq,
10739 args
10740 );
10741 ✗ break;
10742 ✗ case 4:
10743 ✗ ComCcsds::comQueue.CmdDisp_handlerBase(
10744 0,
10745 opCode,
10746 cmdSeq,
10747 args
10748 );
10749 ✗ break;
10750 ✗ case 5:
10751 ✗ DataProducts::dpBufferAccumulator.cmdIn_handlerBase(
10752 0,
10753 opCode,
10754 cmdSeq,
10755 args
10756 );
10757 ✗ break;
10758 ✗ case 6:
10759 ✗ DataProducts::dpCat.CmdDisp_handlerBase(
10760 0,
10761 opCode,
10762 cmdSeq,
10763 args
10764 );
10765 ✗ break;
10766 ✗ case 7:
10767 ✗ DataProducts::dpMgr.cmdIn_handlerBase(
10768 0,
10769 opCode,
10770 cmdSeq,
10771 args
10772 );
10773 ✗ break;
10774 ✗ case 8:
10775 ✗ DataProducts::dpWriter.cmdIn_handlerBase(
10776 0,
10777 opCode,
10778 cmdSeq,
10779 args
10780 );
10781 ✗ break;
10782 ✗ case 9:
10783 ✗ FileHandling::fileDownlink.cmdIn_handlerBase(
10784 0,
10785 opCode,
10786 cmdSeq,
10787 args
10788 );
10789 ✗ break;
10790 1 case 10:
10791 1 FileHandling::fileManager.cmdIn_handlerBase(
10792 0,
10793 opCode,
10794 cmdSeq,
10795 args
10796 );
10797 1 break;
10798 4 case 11:
10799 4 FileHandling::prmDb.CmdDisp_handlerBase(
10800 0,
10801 opCode,
10802 cmdSeq,
10803 args
10804 );
10805 4 break;
10806 ✗ case 12:
10807 ✗ Ref::SG1.cmdIn_handlerBase(
10808 0,
10809 opCode,
10810 cmdSeq,
10811 args
10812 );
10813 ✗ break;
10814 ✗ case 13:
10815 ✗ Ref::SG2.cmdIn_handlerBase(
10816 0,
10817 opCode,
10818 cmdSeq,
10819 args
10820 );
10821 ✗ break;
10822 ✗ case 14:
10823 ✗ Ref::SG3.cmdIn_handlerBase(
10824 0,
10825 opCode,
10826 cmdSeq,
10827 args
10828 );
10829 ✗ break;
10830 3 case 15:
10831 3 Ref::SG4.cmdIn_handlerBase(
10832 0,
10833 opCode,
10834 cmdSeq,
10835 args
10836 );
10837 3 break;
10838 ✗ case 16:
10839 ✗ Ref::SG5.cmdIn_handlerBase(
10840 0,
10841 opCode,
10842 cmdSeq,
10843 args
10844 );
10845 ✗ break;
10846 2 case 17:
10847 2 Ref::cmdSeq.cmdIn_handlerBase(
10848 0,
10849 opCode,
10850 cmdSeq,
10851 args
10852 );
10853 2 break;
10854 2 case 18:
10855 2 Ref::dpDemo.cmdIn_handlerBase(
10856 0,
10857 opCode,
10858 cmdSeq,
10859 args
10860 );
10861 2 break;
10862 ✗ case 19:
10863 ✗ Ref::pingRcvr.CmdDisp_handlerBase(
10864 0,
10865 opCode,
10866 cmdSeq,
10867 args
10868 );
10869 ✗ break;
10870 6 case 20:
10871 6 Ref::recvBuffComp.CmdDisp_handlerBase(
10872 0,
10873 opCode,
10874 cmdSeq,
10875 args
10876 );
10877 6 break;
10878 6 case 21:
10879 6 Ref::sendBuffComp.CmdDisp_handlerBase(
10880 0,
10881 opCode,
10882 cmdSeq,
10883 args
10884 );
10885 6 break;
10886 ✗ case 22:
10887 ✗ Ref::systemResources.CmdDisp_handlerBase(
10888 0,
10889 opCode,
10890 cmdSeq,
10891 args
10892 );
10893 ✗ break;
10894 3 case 23:
10895 3 Ref::typeDemo.cmdIn_handlerBase(
10896 0,
10897 opCode,
10898 cmdSeq,
10899 args
10900 );
10901 3 break;
10902 ✗ case 24:
10903 ✗ Ref::wasmSeq.cmdIn_handlerBase(
10904 0,
10905 opCode,
10906 cmdSeq,
10907 args
10908 );
10909 ✗ break;
10910 ✗ default:
10911 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10912 ✗ break;
10913 }
10914 150 }
10915
10916 61 void CommandDispatcherComponentBase::pingOut_out(
10917 FwIndexType portNum,
10918 U32 key
10919 ) const {
10920 61 FW_ASSERT(
10921 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
10922 static_cast<FwAssertArgType>(portNum),
10923 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
10924 );
10925
1/2
✓ Branch 0 taken 61 times.
✗ Branch 1 not taken.
61 switch (portNum) {
10926 61 case 0:
10927 61 CdhCore::health.PingReturn_handlerBase(
10928 0,
10929 key
10930 );
10931 61 break;
10932 ✗ default:
10933 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10934 ✗ break;
10935 }
10936 61 }
10937
10938 150 void CommandDispatcherComponentBase::seqCmdStatus_out(
10939 FwIndexType portNum,
10940 FwOpcodeType opCode,
10941 U32 cmdSeq,
10942 const Fw::CmdResponse& response
10943 ) const {
10944 150 FW_ASSERT(
10945 (0 <= portNum) && (portNum < NUM_SEQCMDSTATUS_OUTPUT_PORTS),
10946 static_cast<FwAssertArgType>(portNum),
10947 static_cast<FwAssertArgType>(NUM_SEQCMDSTATUS_OUTPUT_PORTS)
10948 );
10949
2/4
✓ Branch 0 taken 145 times.
✓ Branch 1 taken 5 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
150 switch (portNum) {
10950 145 case 0:
10951 145 ComCcsds::fprimeRouter.cmdResponseIn_handlerBase(
10952 0,
10953 opCode,
10954 cmdSeq,
10955 response
10956 );
10957 145 break;
10958 5 case 1:
10959 5 Ref::cmdSeq.cmdResponseIn_handlerBase(
10960 0,
10961 opCode,
10962 cmdSeq,
10963 response
10964 );
10965 5 break;
10966 ✗ case 2:
10967 ✗ Ref::wasmSeq.cmdResponseIn_handlerBase(
10968 0,
10969 opCode,
10970 cmdSeq,
10971 response
10972 );
10973 ✗ break;
10974 ✗ default:
10975 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10976 ✗ break;
10977 }
10978 150 }
10979
10980 }
10981
10982 namespace Svc {
10983
10984 1 bool DpCatalogComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const {
10985 1 FW_ASSERT(
10986 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
10987 static_cast<FwAssertArgType>(portNum),
10988 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
10989 );
10990 1 bool result = false;
10991
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
10992 1 case 0:
10993 1 result = true;
10994 1 break;
10995 ✗ default:
10996 ✗ break;
10997 }
10998 1 return result;
10999 }
11000
11001 ✗ bool DpCatalogComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const {
11002 ✗ FW_ASSERT(
11003 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
11004 static_cast<FwAssertArgType>(portNum),
11005 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
11006 );
11007 ✗ bool result = false;
11008 ✗ switch (portNum) {
11009 ✗ case 0:
11010 ✗ result = true;
11011 ✗ break;
11012 ✗ default:
11013 ✗ break;
11014 }
11015 ✗ return result;
11016 }
11017
11018 2 bool DpCatalogComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
11019 2 FW_ASSERT(
11020 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
11021 static_cast<FwAssertArgType>(portNum),
11022 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
11023 );
11024 2 bool result = false;
11025
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11026 2 case 0:
11027 2 result = true;
11028 2 break;
11029 ✗ default:
11030 ✗ break;
11031 }
11032 2 return result;
11033 }
11034
11035 #if FW_ENABLE_TEXT_LOGGING == 1
11036
11037 2 bool DpCatalogComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
11038 2 FW_ASSERT(
11039 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
11040 static_cast<FwAssertArgType>(portNum),
11041 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
11042 );
11043 2 bool result = false;
11044
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11045 2 case 0:
11046 2 result = true;
11047 2 break;
11048 ✗ default:
11049 ✗ break;
11050 }
11051 2 return result;
11052 }
11053
11054 #endif
11055
11056 2 bool DpCatalogComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
11057 2 FW_ASSERT(
11058 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
11059 static_cast<FwAssertArgType>(portNum),
11060 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
11061 );
11062 2 bool result = false;
11063
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11064 2 case 0:
11065 2 result = true;
11066 2 break;
11067 ✗ default:
11068 ✗ break;
11069 }
11070 2 return result;
11071 }
11072
11073 ✗ bool DpCatalogComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const {
11074 ✗ FW_ASSERT(
11075 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
11076 static_cast<FwAssertArgType>(portNum),
11077 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
11078 );
11079 ✗ bool result = false;
11080 ✗ switch (portNum) {
11081 ✗ case 0:
11082 ✗ result = true;
11083 ✗ break;
11084 ✗ default:
11085 ✗ break;
11086 }
11087 ✗ return result;
11088 }
11089
11090 ✗ bool DpCatalogComponentBase::isConnected_fileOut_OutputPort(FwIndexType portNum) const {
11091 ✗ FW_ASSERT(
11092 (0 <= portNum) && (portNum < NUM_FILEOUT_OUTPUT_PORTS),
11093 static_cast<FwAssertArgType>(portNum),
11094 static_cast<FwAssertArgType>(NUM_FILEOUT_OUTPUT_PORTS)
11095 );
11096 ✗ bool result = false;
11097 ✗ switch (portNum) {
11098 ✗ case 0:
11099 ✗ result = true;
11100 ✗ break;
11101 ✗ default:
11102 ✗ break;
11103 }
11104 ✗ return result;
11105 }
11106
11107 ✗ bool DpCatalogComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const {
11108 ✗ FW_ASSERT(
11109 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
11110 static_cast<FwAssertArgType>(portNum),
11111 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
11112 );
11113 ✗ bool result = false;
11114 ✗ switch (portNum) {
11115 ✗ case 0:
11116 ✗ result = true;
11117 ✗ break;
11118 ✗ default:
11119 ✗ break;
11120 }
11121 ✗ return result;
11122 }
11123
11124 4 void DpCatalogComponentBase::CmdReg_out(
11125 FwIndexType portNum,
11126 FwOpcodeType opCode
11127 ) const {
11128 4 FW_ASSERT(
11129 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
11130 static_cast<FwAssertArgType>(portNum),
11131 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
11132 );
11133
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
11134 4 case 0:
11135 4 CdhCore::cmdDisp.compCmdReg_handlerBase(
11136 6,
11137 opCode
11138 );
11139 4 break;
11140 ✗ default:
11141 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11142 ✗ break;
11143 }
11144 4 }
11145
11146 ✗ void DpCatalogComponentBase::CmdStatus_out(
11147 FwIndexType portNum,
11148 FwOpcodeType opCode,
11149 U32 cmdSeq,
11150 const Fw::CmdResponse& response
11151 ) const {
11152 ✗ FW_ASSERT(
11153 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
11154 static_cast<FwAssertArgType>(portNum),
11155 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
11156 );
11157 ✗ switch (portNum) {
11158 ✗ case 0:
11159 ✗ CdhCore::cmdDisp.compCmdStat_handlerBase(
11160 0,
11161 opCode,
11162 cmdSeq,
11163 response
11164 );
11165 ✗ break;
11166 ✗ default:
11167 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11168 ✗ break;
11169 }
11170 ✗ }
11171
11172 2 void DpCatalogComponentBase::Log_out(
11173 FwIndexType portNum,
11174 FwEventIdType id,
11175 Fw::Time& timeTag,
11176 const Fw::LogSeverity& severity,
11177 Fw::LogBuffer& args
11178 ) const {
11179 2 FW_ASSERT(
11180 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
11181 static_cast<FwAssertArgType>(portNum),
11182 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
11183 );
11184
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11185 2 case 0:
11186 2 CdhCore::events.LogRecv_handlerBase(
11187 0,
11188 id,
11189 timeTag,
11190 severity,
11191 args
11192 );
11193 2 break;
11194 ✗ default:
11195 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11196 ✗ break;
11197 }
11198 2 }
11199
11200 #if FW_ENABLE_TEXT_LOGGING == 1
11201
11202 2 void DpCatalogComponentBase::LogText_out(
11203 FwIndexType portNum,
11204 FwEventIdType id,
11205 Fw::Time& timeTag,
11206 const Fw::LogSeverity& severity,
11207 Fw::TextLogString& text
11208 ) const {
11209 2 FW_ASSERT(
11210 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
11211 static_cast<FwAssertArgType>(portNum),
11212 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
11213 );
11214
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11215 2 case 0:
11216 2 CdhCore::textLogger.TextLogger_handlerBase(
11217 0,
11218 id,
11219 timeTag,
11220 severity,
11221 text
11222 );
11223 2 break;
11224 ✗ default:
11225 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11226 ✗ break;
11227 }
11228 2 }
11229
11230 #endif
11231
11232 2 void DpCatalogComponentBase::Time_out(
11233 FwIndexType portNum,
11234 Fw::Time& time
11235 ) const {
11236 2 FW_ASSERT(
11237 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
11238 static_cast<FwAssertArgType>(portNum),
11239 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
11240 );
11241
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11242 2 case 0:
11243 2 Ref::posixTime.timeGetPort_handlerBase(
11244 0,
11245 time
11246 );
11247 2 break;
11248 ✗ default:
11249 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11250 ✗ break;
11251 }
11252 2 }
11253
11254 ✗ void DpCatalogComponentBase::Tlm_out(
11255 FwIndexType portNum,
11256 FwChanIdType id,
11257 Fw::Time& timeTag,
11258 Fw::TlmBuffer& val
11259 ) const {
11260 ✗ FW_ASSERT(
11261 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
11262 static_cast<FwAssertArgType>(portNum),
11263 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
11264 );
11265 ✗ switch (portNum) {
11266 ✗ case 0:
11267 ✗ CdhCore::tlmSend.TlmRecv_handlerBase(
11268 0,
11269 id,
11270 timeTag,
11271 val
11272 );
11273 ✗ break;
11274 ✗ default:
11275 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11276 ✗ break;
11277 }
11278 ✗ }
11279
11280 ✗ Svc::SendFileResponse DpCatalogComponentBase::fileOut_out(
11281 FwIndexType portNum,
11282 const Fw::StringBase& sourceFileName,
11283 const Fw::StringBase& destFileName,
11284 U32 offset,
11285 U32 length
11286 ) const {
11287 ✗ FW_ASSERT(
11288 (0 <= portNum) && (portNum < NUM_FILEOUT_OUTPUT_PORTS),
11289 static_cast<FwAssertArgType>(portNum),
11290 static_cast<FwAssertArgType>(NUM_FILEOUT_OUTPUT_PORTS)
11291 );
11292 ✗ Svc::SendFileResponse _result = {};
11293 ✗ switch (portNum) {
11294 ✗ case 0:
11295 ✗ _result = FileHandling::fileDownlink.SendFile_handlerBase(
11296 0,
11297 sourceFileName,
11298 destFileName,
11299 offset,
11300 length
11301 ✗ );
11302 ✗ break;
11303 ✗ default:
11304 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11305 ✗ break;
11306 }
11307 ✗ return _result;
11308 ✗ }
11309
11310 61 void DpCatalogComponentBase::pingOut_out(
11311 FwIndexType portNum,
11312 U32 key
11313 ) const {
11314 61 FW_ASSERT(
11315 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
11316 static_cast<FwAssertArgType>(portNum),
11317 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
11318 );
11319
1/2
✓ Branch 0 taken 61 times.
✗ Branch 1 not taken.
61 switch (portNum) {
11320 61 case 0:
11321 61 CdhCore::health.PingReturn_handlerBase(
11322 4,
11323 key
11324 );
11325 61 break;
11326 ✗ default:
11327 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11328 ✗ break;
11329 }
11330 61 }
11331
11332 }
11333
11334 namespace Svc {
11335
11336 ✗ bool DpManagerComponentBase::isConnected_bufferGetOut_OutputPort(FwIndexType portNum) const {
11337 ✗ FW_ASSERT(
11338 (0 <= portNum) && (portNum < NUM_BUFFERGETOUT_OUTPUT_PORTS),
11339 static_cast<FwAssertArgType>(portNum),
11340 static_cast<FwAssertArgType>(NUM_BUFFERGETOUT_OUTPUT_PORTS)
11341 );
11342 ✗ bool result = false;
11343 ✗ switch (portNum) {
11344 ✗ case 0:
11345 ✗ result = true;
11346 ✗ break;
11347 ✗ default:
11348 ✗ break;
11349 }
11350 ✗ return result;
11351 }
11352
11353 1 bool DpManagerComponentBase::isConnected_cmdRegIn_OutputPort(FwIndexType portNum) const {
11354 1 FW_ASSERT(
11355 (0 <= portNum) && (portNum < NUM_CMDREGIN_OUTPUT_PORTS),
11356 static_cast<FwAssertArgType>(portNum),
11357 static_cast<FwAssertArgType>(NUM_CMDREGIN_OUTPUT_PORTS)
11358 );
11359 1 bool result = false;
11360
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
11361 1 case 0:
11362 1 result = true;
11363 1 break;
11364 ✗ default:
11365 ✗ break;
11366 }
11367 1 return result;
11368 }
11369
11370 ✗ bool DpManagerComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const {
11371 ✗ FW_ASSERT(
11372 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
11373 static_cast<FwAssertArgType>(portNum),
11374 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
11375 );
11376 ✗ bool result = false;
11377 ✗ switch (portNum) {
11378 ✗ case 0:
11379 ✗ result = true;
11380 ✗ break;
11381 ✗ default:
11382 ✗ break;
11383 }
11384 ✗ return result;
11385 }
11386
11387 ✗ bool DpManagerComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const {
11388 ✗ FW_ASSERT(
11389 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
11390 static_cast<FwAssertArgType>(portNum),
11391 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
11392 );
11393 ✗ bool result = false;
11394 ✗ switch (portNum) {
11395 ✗ case 0:
11396 ✗ result = true;
11397 ✗ break;
11398 ✗ default:
11399 ✗ break;
11400 }
11401 ✗ return result;
11402 }
11403
11404 ✗ bool DpManagerComponentBase::isConnected_productResponseOut_OutputPort(FwIndexType portNum) const {
11405 ✗ FW_ASSERT(
11406 (0 <= portNum) && (portNum < NUM_PRODUCTRESPONSEOUT_OUTPUT_PORTS),
11407 static_cast<FwAssertArgType>(portNum),
11408 static_cast<FwAssertArgType>(NUM_PRODUCTRESPONSEOUT_OUTPUT_PORTS)
11409 );
11410 ✗ bool result = false;
11411 ✗ switch (portNum) {
11412 ✗ case 0:
11413 ✗ result = true;
11414 ✗ break;
11415 ✗ case 1:
11416 ✗ result = true;
11417 ✗ break;
11418 ✗ default:
11419 ✗ break;
11420 }
11421 ✗ return result;
11422 }
11423
11424 ✗ bool DpManagerComponentBase::isConnected_productSendOut_OutputPort(FwIndexType portNum) const {
11425 ✗ FW_ASSERT(
11426 (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS),
11427 static_cast<FwAssertArgType>(portNum),
11428 static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS)
11429 );
11430 ✗ bool result = false;
11431 ✗ switch (portNum) {
11432 ✗ case 0:
11433 ✗ result = true;
11434 ✗ break;
11435 ✗ default:
11436 ✗ break;
11437 }
11438 ✗ return result;
11439 }
11440
11441 #if FW_ENABLE_TEXT_LOGGING == 1
11442
11443 ✗ bool DpManagerComponentBase::isConnected_textEventOut_OutputPort(FwIndexType portNum) const {
11444 ✗ FW_ASSERT(
11445 (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS),
11446 static_cast<FwAssertArgType>(portNum),
11447 static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS)
11448 );
11449 ✗ bool result = false;
11450 ✗ switch (portNum) {
11451 ✗ case 0:
11452 ✗ result = true;
11453 ✗ break;
11454 ✗ default:
11455 ✗ break;
11456 }
11457 ✗ return result;
11458 }
11459
11460 #endif
11461
11462 7 bool DpManagerComponentBase::isConnected_timeGetOut_OutputPort(FwIndexType portNum) const {
11463 7 FW_ASSERT(
11464 (0 <= portNum) && (portNum < NUM_TIMEGETOUT_OUTPUT_PORTS),
11465 static_cast<FwAssertArgType>(portNum),
11466 static_cast<FwAssertArgType>(NUM_TIMEGETOUT_OUTPUT_PORTS)
11467 );
11468 7 bool result = false;
11469
1/2
✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
7 switch (portNum) {
11470 7 case 0:
11471 7 result = true;
11472 7 break;
11473 ✗ default:
11474 ✗ break;
11475 }
11476 7 return result;
11477 }
11478
11479 14 bool DpManagerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
11480 14 FW_ASSERT(
11481 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
11482 static_cast<FwAssertArgType>(portNum),
11483 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
11484 );
11485 14 bool result = false;
11486
1/2
✓ Branch 0 taken 14 times.
✗ Branch 1 not taken.
14 switch (portNum) {
11487 14 case 0:
11488 14 result = true;
11489 14 break;
11490 ✗ default:
11491 ✗ break;
11492 }
11493 14 return result;
11494 }
11495
11496 2 Fw::Buffer DpManagerComponentBase::bufferGetOut_out(
11497 FwIndexType portNum,
11498 FwSizeType size
11499 ) const {
11500 2 FW_ASSERT(
11501 (0 <= portNum) && (portNum < NUM_BUFFERGETOUT_OUTPUT_PORTS),
11502 static_cast<FwAssertArgType>(portNum),
11503 static_cast<FwAssertArgType>(NUM_BUFFERGETOUT_OUTPUT_PORTS)
11504 );
11505 2 Fw::Buffer _result = {};
11506
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11507 2 case 0:
11508
1/1
✓ Branch 1 taken 2 times.
4 _result = DataProducts::dpBufferManager.bufferGetCallee_handlerBase(
11509 0,
11510 size
11511
1/1
✓ Branch 1 taken 2 times.
2 );
11512 2 break;
11513 ✗ default:
11514 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11515 ✗ break;
11516 }
11517 2 return _result;
11518 ✗ }
11519
11520 1 void DpManagerComponentBase::cmdRegIn_out(
11521 FwIndexType portNum,
11522 FwOpcodeType opCode
11523 ) const {
11524 1 FW_ASSERT(
11525 (0 <= portNum) && (portNum < NUM_CMDREGIN_OUTPUT_PORTS),
11526 static_cast<FwAssertArgType>(portNum),
11527 static_cast<FwAssertArgType>(NUM_CMDREGIN_OUTPUT_PORTS)
11528 );
11529
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
11530 1 case 0:
11531 1 CdhCore::cmdDisp.compCmdReg_handlerBase(
11532 7,
11533 opCode
11534 );
11535 1 break;
11536 ✗ default:
11537 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11538 ✗ break;
11539 }
11540 1 }
11541
11542 ✗ void DpManagerComponentBase::cmdResponseOut_out(
11543 FwIndexType portNum,
11544 FwOpcodeType opCode,
11545 U32 cmdSeq,
11546 const Fw::CmdResponse& response
11547 ) const {
11548 ✗ FW_ASSERT(
11549 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
11550 static_cast<FwAssertArgType>(portNum),
11551 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
11552 );
11553 ✗ switch (portNum) {
11554 ✗ case 0:
11555 ✗ CdhCore::cmdDisp.compCmdStat_handlerBase(
11556 0,
11557 opCode,
11558 cmdSeq,
11559 response
11560 );
11561 ✗ break;
11562 ✗ default:
11563 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11564 ✗ break;
11565 }
11566 ✗ }
11567
11568 ✗ void DpManagerComponentBase::eventOut_out(
11569 FwIndexType portNum,
11570 FwEventIdType id,
11571 Fw::Time& timeTag,
11572 const Fw::LogSeverity& severity,
11573 Fw::LogBuffer& args
11574 ) const {
11575 ✗ FW_ASSERT(
11576 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
11577 static_cast<FwAssertArgType>(portNum),
11578 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
11579 );
11580 ✗ switch (portNum) {
11581 ✗ case 0:
11582 ✗ CdhCore::events.LogRecv_handlerBase(
11583 0,
11584 id,
11585 timeTag,
11586 severity,
11587 args
11588 );
11589 ✗ break;
11590 ✗ default:
11591 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11592 ✗ break;
11593 }
11594 ✗ }
11595
11596 ✗ void DpManagerComponentBase::productResponseOut_out(
11597 FwIndexType portNum,
11598 FwDpIdType id,
11599 const Fw::Buffer& buffer,
11600 const Fw::Success& status
11601 ) const {
11602 ✗ FW_ASSERT(
11603 (0 <= portNum) && (portNum < NUM_PRODUCTRESPONSEOUT_OUTPUT_PORTS),
11604 static_cast<FwAssertArgType>(portNum),
11605 static_cast<FwAssertArgType>(NUM_PRODUCTRESPONSEOUT_OUTPUT_PORTS)
11606 );
11607 ✗ switch (portNum) {
11608 ✗ case 0:
11609 ✗ Ref::SG1.productRecvIn_handlerBase(
11610 0,
11611 id,
11612 buffer,
11613 status
11614 );
11615 ✗ break;
11616 ✗ case 1:
11617 ✗ Ref::dpDemo.productRecvIn_handlerBase(
11618 0,
11619 id,
11620 buffer,
11621 status
11622 );
11623 ✗ break;
11624 ✗ default:
11625 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11626 ✗ break;
11627 }
11628 ✗ }
11629
11630 2 void DpManagerComponentBase::productSendOut_out(
11631 FwIndexType portNum,
11632 Fw::Buffer& fwBuffer
11633 ) const {
11634 2 FW_ASSERT(
11635 (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS),
11636 static_cast<FwAssertArgType>(portNum),
11637 static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS)
11638 );
11639
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11640 2 case 0:
11641 2 DataProducts::dpBufferAccumulator.bufferSendInFill_handlerBase(
11642 0,
11643 fwBuffer
11644 );
11645 2 break;
11646 ✗ default:
11647 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11648 ✗ break;
11649 }
11650 2 }
11651
11652 #if FW_ENABLE_TEXT_LOGGING == 1
11653
11654 ✗ void DpManagerComponentBase::textEventOut_out(
11655 FwIndexType portNum,
11656 FwEventIdType id,
11657 Fw::Time& timeTag,
11658 const Fw::LogSeverity& severity,
11659 Fw::TextLogString& text
11660 ) const {
11661 ✗ FW_ASSERT(
11662 (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS),
11663 static_cast<FwAssertArgType>(portNum),
11664 static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS)
11665 );
11666 ✗ switch (portNum) {
11667 ✗ case 0:
11668 ✗ CdhCore::textLogger.TextLogger_handlerBase(
11669 0,
11670 id,
11671 timeTag,
11672 severity,
11673 text
11674 );
11675 ✗ break;
11676 ✗ default:
11677 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11678 ✗ break;
11679 }
11680 ✗ }
11681
11682 #endif
11683
11684 7 void DpManagerComponentBase::timeGetOut_out(
11685 FwIndexType portNum,
11686 Fw::Time& time
11687 ) const {
11688 7 FW_ASSERT(
11689 (0 <= portNum) && (portNum < NUM_TIMEGETOUT_OUTPUT_PORTS),
11690 static_cast<FwAssertArgType>(portNum),
11691 static_cast<FwAssertArgType>(NUM_TIMEGETOUT_OUTPUT_PORTS)
11692 );
11693
1/2
✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
7 switch (portNum) {
11694 7 case 0:
11695 7 Ref::posixTime.timeGetPort_handlerBase(
11696 0,
11697 time
11698 );
11699 7 break;
11700 ✗ default:
11701 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11702 ✗ break;
11703 }
11704 7 }
11705
11706 7 void DpManagerComponentBase::tlmOut_out(
11707 FwIndexType portNum,
11708 FwChanIdType id,
11709 Fw::Time& timeTag,
11710 Fw::TlmBuffer& val
11711 ) const {
11712 7 FW_ASSERT(
11713 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
11714 static_cast<FwAssertArgType>(portNum),
11715 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
11716 );
11717
1/2
✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
7 switch (portNum) {
11718 7 case 0:
11719 7 CdhCore::tlmSend.TlmRecv_handlerBase(
11720 0,
11721 id,
11722 timeTag,
11723 val
11724 );
11725 7 break;
11726 ✗ default:
11727 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11728 ✗ break;
11729 }
11730 7 }
11731
11732 }
11733
11734 namespace Svc {
11735
11736 1 bool DpWriterComponentBase::isConnected_cmdRegIn_OutputPort(FwIndexType portNum) const {
11737 1 FW_ASSERT(
11738 (0 <= portNum) && (portNum < NUM_CMDREGIN_OUTPUT_PORTS),
11739 static_cast<FwAssertArgType>(portNum),
11740 static_cast<FwAssertArgType>(NUM_CMDREGIN_OUTPUT_PORTS)
11741 );
11742 1 bool result = false;
11743
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
11744 1 case 0:
11745 1 result = true;
11746 1 break;
11747 ✗ default:
11748 ✗ break;
11749 }
11750 1 return result;
11751 }
11752
11753 ✗ bool DpWriterComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const {
11754 ✗ FW_ASSERT(
11755 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
11756 static_cast<FwAssertArgType>(portNum),
11757 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
11758 );
11759 ✗ bool result = false;
11760 ✗ switch (portNum) {
11761 ✗ case 0:
11762 ✗ result = true;
11763 ✗ break;
11764 ✗ default:
11765 ✗ break;
11766 }
11767 ✗ return result;
11768 }
11769
11770 ✗ bool DpWriterComponentBase::isConnected_deallocBufferSendOut_OutputPort(FwIndexType portNum) const {
11771 ✗ FW_ASSERT(
11772 (0 <= portNum) && (portNum < NUM_DEALLOCBUFFERSENDOUT_OUTPUT_PORTS),
11773 static_cast<FwAssertArgType>(portNum),
11774 static_cast<FwAssertArgType>(NUM_DEALLOCBUFFERSENDOUT_OUTPUT_PORTS)
11775 );
11776 ✗ bool result = false;
11777 ✗ switch (portNum) {
11778 ✗ case 0:
11779 ✗ result = true;
11780 ✗ break;
11781 ✗ default:
11782 ✗ break;
11783 }
11784 ✗ return result;
11785 }
11786
11787 2 bool DpWriterComponentBase::isConnected_dpWrittenOut_OutputPort(FwIndexType portNum) const {
11788 2 FW_ASSERT(
11789 (0 <= portNum) && (portNum < NUM_DPWRITTENOUT_OUTPUT_PORTS),
11790 static_cast<FwAssertArgType>(portNum),
11791 static_cast<FwAssertArgType>(NUM_DPWRITTENOUT_OUTPUT_PORTS)
11792 );
11793 2 bool result = false;
11794
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11795 2 case 0:
11796 2 result = true;
11797 2 break;
11798 ✗ default:
11799 ✗ break;
11800 }
11801 2 return result;
11802 }
11803
11804 2 bool DpWriterComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const {
11805 2 FW_ASSERT(
11806 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
11807 static_cast<FwAssertArgType>(portNum),
11808 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
11809 );
11810 2 bool result = false;
11811
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11812 2 case 0:
11813 2 result = true;
11814 2 break;
11815 ✗ default:
11816 ✗ break;
11817 }
11818 2 return result;
11819 }
11820
11821 ✗ bool DpWriterComponentBase::isConnected_procBufferSendOut_OutputPort(FwIndexType portNum) const {
11822 ✗ FW_ASSERT(
11823 (0 <= portNum) && (portNum < NUM_PROCBUFFERSENDOUT_OUTPUT_PORTS),
11824 static_cast<FwAssertArgType>(portNum),
11825 static_cast<FwAssertArgType>(NUM_PROCBUFFERSENDOUT_OUTPUT_PORTS)
11826 );
11827 ✗ bool result = false;
11828 ✗ switch (portNum) {
11829 default:
11830 ✗ break;
11831 }
11832 ✗ return result;
11833 }
11834
11835 #if FW_ENABLE_TEXT_LOGGING == 1
11836
11837 2 bool DpWriterComponentBase::isConnected_textEventOut_OutputPort(FwIndexType portNum) const {
11838 2 FW_ASSERT(
11839 (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS),
11840 static_cast<FwAssertArgType>(portNum),
11841 static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS)
11842 );
11843 2 bool result = false;
11844
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11845 2 case 0:
11846 2 result = true;
11847 2 break;
11848 ✗ default:
11849 ✗ break;
11850 }
11851 2 return result;
11852 }
11853
11854 #endif
11855
11856 10 bool DpWriterComponentBase::isConnected_timeGetOut_OutputPort(FwIndexType portNum) const {
11857 10 FW_ASSERT(
11858 (0 <= portNum) && (portNum < NUM_TIMEGETOUT_OUTPUT_PORTS),
11859 static_cast<FwAssertArgType>(portNum),
11860 static_cast<FwAssertArgType>(NUM_TIMEGETOUT_OUTPUT_PORTS)
11861 );
11862 10 bool result = false;
11863
1/2
✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
10 switch (portNum) {
11864 10 case 0:
11865 10 result = true;
11866 10 break;
11867 ✗ default:
11868 ✗ break;
11869 }
11870 10 return result;
11871 }
11872
11873 16 bool DpWriterComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
11874 16 FW_ASSERT(
11875 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
11876 static_cast<FwAssertArgType>(portNum),
11877 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
11878 );
11879 16 bool result = false;
11880
1/2
✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
16 switch (portNum) {
11881 16 case 0:
11882 16 result = true;
11883 16 break;
11884 ✗ default:
11885 ✗ break;
11886 }
11887 16 return result;
11888 }
11889
11890 1 void DpWriterComponentBase::cmdRegIn_out(
11891 FwIndexType portNum,
11892 FwOpcodeType opCode
11893 ) const {
11894 1 FW_ASSERT(
11895 (0 <= portNum) && (portNum < NUM_CMDREGIN_OUTPUT_PORTS),
11896 static_cast<FwAssertArgType>(portNum),
11897 static_cast<FwAssertArgType>(NUM_CMDREGIN_OUTPUT_PORTS)
11898 );
11899
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
11900 1 case 0:
11901 1 CdhCore::cmdDisp.compCmdReg_handlerBase(
11902 8,
11903 opCode
11904 );
11905 1 break;
11906 ✗ default:
11907 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11908 ✗ break;
11909 }
11910 1 }
11911
11912 ✗ void DpWriterComponentBase::cmdResponseOut_out(
11913 FwIndexType portNum,
11914 FwOpcodeType opCode,
11915 U32 cmdSeq,
11916 const Fw::CmdResponse& response
11917 ) const {
11918 ✗ FW_ASSERT(
11919 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
11920 static_cast<FwAssertArgType>(portNum),
11921 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
11922 );
11923 ✗ switch (portNum) {
11924 ✗ case 0:
11925 ✗ CdhCore::cmdDisp.compCmdStat_handlerBase(
11926 0,
11927 opCode,
11928 cmdSeq,
11929 response
11930 );
11931 ✗ break;
11932 ✗ default:
11933 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11934 ✗ break;
11935 }
11936 ✗ }
11937
11938 2 void DpWriterComponentBase::deallocBufferSendOut_out(
11939 FwIndexType portNum,
11940 Fw::Buffer& fwBuffer
11941 ) const {
11942 2 FW_ASSERT(
11943 (0 <= portNum) && (portNum < NUM_DEALLOCBUFFERSENDOUT_OUTPUT_PORTS),
11944 static_cast<FwAssertArgType>(portNum),
11945 static_cast<FwAssertArgType>(NUM_DEALLOCBUFFERSENDOUT_OUTPUT_PORTS)
11946 );
11947
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11948 2 case 0:
11949 2 DataProducts::dpBufferAccumulator.bufferSendInReturn_handlerBase(
11950 0,
11951 fwBuffer
11952 );
11953 2 break;
11954 ✗ default:
11955 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11956 ✗ break;
11957 }
11958 2 }
11959
11960 2 void DpWriterComponentBase::dpWrittenOut_out(
11961 FwIndexType portNum,
11962 const Fw::StringBase& fileName,
11963 FwDpPriorityType priority,
11964 FwSizeType size
11965 ) const {
11966 2 FW_ASSERT(
11967 (0 <= portNum) && (portNum < NUM_DPWRITTENOUT_OUTPUT_PORTS),
11968 static_cast<FwAssertArgType>(portNum),
11969 static_cast<FwAssertArgType>(NUM_DPWRITTENOUT_OUTPUT_PORTS)
11970 );
11971
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11972 2 case 0:
11973 2 DataProducts::dpCat.addToCat_handlerBase(
11974 0,
11975 fileName,
11976 priority,
11977 size
11978 );
11979 2 break;
11980 ✗ default:
11981 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11982 ✗ break;
11983 }
11984 2 }
11985
11986 2 void DpWriterComponentBase::eventOut_out(
11987 FwIndexType portNum,
11988 FwEventIdType id,
11989 Fw::Time& timeTag,
11990 const Fw::LogSeverity& severity,
11991 Fw::LogBuffer& args
11992 ) const {
11993 2 FW_ASSERT(
11994 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
11995 static_cast<FwAssertArgType>(portNum),
11996 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
11997 );
11998
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11999 2 case 0:
12000 2 CdhCore::events.LogRecv_handlerBase(
12001 0,
12002 id,
12003 timeTag,
12004 severity,
12005 args
12006 );
12007 2 break;
12008 ✗ default:
12009 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12010 ✗ break;
12011 }
12012 2 }
12013
12014 ✗ void DpWriterComponentBase::procBufferSendOut_out(
12015 FwIndexType portNum,
12016 Fw::Buffer& fwBuffer
12017 ) const {
12018 ✗ FW_ASSERT(
12019 (0 <= portNum) && (portNum < NUM_PROCBUFFERSENDOUT_OUTPUT_PORTS),
12020 static_cast<FwAssertArgType>(portNum),
12021 static_cast<FwAssertArgType>(NUM_PROCBUFFERSENDOUT_OUTPUT_PORTS)
12022 );
12023 ✗ switch (portNum) {
12024 default:
12025 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12026 ✗ break;
12027 }
12028 ✗ }
12029
12030 #if FW_ENABLE_TEXT_LOGGING == 1
12031
12032 2 void DpWriterComponentBase::textEventOut_out(
12033 FwIndexType portNum,
12034 FwEventIdType id,
12035 Fw::Time& timeTag,
12036 const Fw::LogSeverity& severity,
12037 Fw::TextLogString& text
12038 ) const {
12039 2 FW_ASSERT(
12040 (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS),
12041 static_cast<FwAssertArgType>(portNum),
12042 static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS)
12043 );
12044
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
12045 2 case 0:
12046 2 CdhCore::textLogger.TextLogger_handlerBase(
12047 0,
12048 id,
12049 timeTag,
12050 severity,
12051 text
12052 );
12053 2 break;
12054 ✗ default:
12055 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12056 ✗ break;
12057 }
12058 2 }
12059
12060 #endif
12061
12062 10 void DpWriterComponentBase::timeGetOut_out(
12063 FwIndexType portNum,
12064 Fw::Time& time
12065 ) const {
12066 10 FW_ASSERT(
12067 (0 <= portNum) && (portNum < NUM_TIMEGETOUT_OUTPUT_PORTS),
12068 static_cast<FwAssertArgType>(portNum),
12069 static_cast<FwAssertArgType>(NUM_TIMEGETOUT_OUTPUT_PORTS)
12070 );
12071
1/2
✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
10 switch (portNum) {
12072 10 case 0:
12073 10 Ref::posixTime.timeGetPort_handlerBase(
12074 0,
12075 time
12076 );
12077 10 break;
12078 ✗ default:
12079 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12080 ✗ break;
12081 }
12082 10 }
12083
12084 8 void DpWriterComponentBase::tlmOut_out(
12085 FwIndexType portNum,
12086 FwChanIdType id,
12087 Fw::Time& timeTag,
12088 Fw::TlmBuffer& val
12089 ) const {
12090 8 FW_ASSERT(
12091 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
12092 static_cast<FwAssertArgType>(portNum),
12093 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
12094 );
12095
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
12096 8 case 0:
12097 8 CdhCore::tlmSend.TlmRecv_handlerBase(
12098 0,
12099 id,
12100 timeTag,
12101 val
12102 );
12103 8 break;
12104 ✗ default:
12105 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12106 ✗ break;
12107 }
12108 8 }
12109
12110 }
12111
12112 namespace Svc {
12113
12114 1 bool EventManagerComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const {
12115 1 FW_ASSERT(
12116 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
12117 static_cast<FwAssertArgType>(portNum),
12118 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
12119 );
12120 1 bool result = false;
12121
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
12122 1 case 0:
12123 1 result = true;
12124 1 break;
12125 ✗ default:
12126 ✗ break;
12127 }
12128 1 return result;
12129 }
12130
12131 13 bool EventManagerComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const {
12132 13 FW_ASSERT(
12133 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
12134 static_cast<FwAssertArgType>(portNum),
12135 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
12136 );
12137 13 bool result = false;
12138
1/2
✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
13 switch (portNum) {
12139 13 case 0:
12140 13 result = true;
12141 13 break;
12142 ✗ default:
12143 ✗ break;
12144 }
12145 13 return result;
12146 }
12147
12148 ✗ bool EventManagerComponentBase::isConnected_FatalAnnounce_OutputPort(FwIndexType portNum) const {
12149 ✗ FW_ASSERT(
12150 (0 <= portNum) && (portNum < NUM_FATALANNOUNCE_OUTPUT_PORTS),
12151 static_cast<FwAssertArgType>(portNum),
12152 static_cast<FwAssertArgType>(NUM_FATALANNOUNCE_OUTPUT_PORTS)
12153 );
12154 ✗ bool result = false;
12155 ✗ switch (portNum) {
12156 ✗ case 0:
12157 ✗ result = true;
12158 ✗ break;
12159 ✗ default:
12160 ✗ break;
12161 }
12162 ✗ return result;
12163 }
12164
12165 ✗ bool EventManagerComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
12166 ✗ FW_ASSERT(
12167 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
12168 static_cast<FwAssertArgType>(portNum),
12169 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
12170 );
12171 ✗ bool result = false;
12172 ✗ switch (portNum) {
12173 ✗ case 0:
12174 ✗ result = true;
12175 ✗ break;
12176 ✗ default:
12177 ✗ break;
12178 }
12179 ✗ return result;
12180 }
12181
12182 #if FW_ENABLE_TEXT_LOGGING == 1
12183
12184 ✗ bool EventManagerComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
12185 ✗ FW_ASSERT(
12186 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
12187 static_cast<FwAssertArgType>(portNum),
12188 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
12189 );
12190 ✗ bool result = false;
12191 ✗ switch (portNum) {
12192 ✗ case 0:
12193 ✗ result = true;
12194 ✗ break;
12195 ✗ default:
12196 ✗ break;
12197 }
12198 ✗ return result;
12199 }
12200
12201 #endif
12202
12203 464 bool EventManagerComponentBase::isConnected_PktSend_OutputPort(FwIndexType portNum) const {
12204 464 FW_ASSERT(
12205 (0 <= portNum) && (portNum < NUM_PKTSEND_OUTPUT_PORTS),
12206 static_cast<FwAssertArgType>(portNum),
12207 static_cast<FwAssertArgType>(NUM_PKTSEND_OUTPUT_PORTS)
12208 );
12209 464 bool result = false;
12210
1/2
✓ Branch 0 taken 464 times.
✗ Branch 1 not taken.
464 switch (portNum) {
12211 464 case 0:
12212 464 result = true;
12213 464 break;
12214 ✗ default:
12215 ✗ break;
12216 }
12217 464 return result;
12218 }
12219
12220 1 bool EventManagerComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
12221 1 FW_ASSERT(
12222 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
12223 static_cast<FwAssertArgType>(portNum),
12224 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
12225 );
12226 1 bool result = false;
12227
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
12228 1 case 0:
12229 1 result = true;
12230 1 break;
12231 ✗ default:
12232 ✗ break;
12233 }
12234 1 return result;
12235 }
12236
12237 2 bool EventManagerComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const {
12238 2 FW_ASSERT(
12239 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
12240 static_cast<FwAssertArgType>(portNum),
12241 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
12242 );
12243 2 bool result = false;
12244
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
12245 2 case 0:
12246 2 result = true;
12247 2 break;
12248 ✗ default:
12249 ✗ break;
12250 }
12251 2 return result;
12252 }
12253
12254 ✗ bool EventManagerComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const {
12255 ✗ FW_ASSERT(
12256 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
12257 static_cast<FwAssertArgType>(portNum),
12258 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
12259 );
12260 ✗ bool result = false;
12261 ✗ switch (portNum) {
12262 ✗ case 0:
12263 ✗ result = true;
12264 ✗ break;
12265 ✗ default:
12266 ✗ break;
12267 }
12268 ✗ return result;
12269 }
12270
12271 3 void EventManagerComponentBase::CmdReg_out(
12272 FwIndexType portNum,
12273 FwOpcodeType opCode
12274 ) const {
12275 3 FW_ASSERT(
12276 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
12277 static_cast<FwAssertArgType>(portNum),
12278 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
12279 );
12280
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
12281 3 case 0:
12282 3 CdhCore::cmdDisp.compCmdReg_handlerBase(
12283 1,
12284 opCode
12285 );
12286 3 break;
12287 ✗ default:
12288 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12289 ✗ break;
12290 }
12291 3 }
12292
12293 13 void EventManagerComponentBase::CmdStatus_out(
12294 FwIndexType portNum,
12295 FwOpcodeType opCode,
12296 U32 cmdSeq,
12297 const Fw::CmdResponse& response
12298 ) const {
12299 13 FW_ASSERT(
12300 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
12301 static_cast<FwAssertArgType>(portNum),
12302 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
12303 );
12304
1/2
✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
13 switch (portNum) {
12305 13 case 0:
12306 13 CdhCore::cmdDisp.compCmdStat_handlerBase(
12307 0,
12308 opCode,
12309 cmdSeq,
12310 response
12311 );
12312 13 break;
12313 ✗ default:
12314 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12315 ✗ break;
12316 }
12317 13 }
12318
12319 ✗ void EventManagerComponentBase::FatalAnnounce_out(
12320 FwIndexType portNum,
12321 FwEventIdType Id
12322 ) const {
12323 ✗ FW_ASSERT(
12324 (0 <= portNum) && (portNum < NUM_FATALANNOUNCE_OUTPUT_PORTS),
12325 static_cast<FwAssertArgType>(portNum),
12326 static_cast<FwAssertArgType>(NUM_FATALANNOUNCE_OUTPUT_PORTS)
12327 );
12328 ✗ switch (portNum) {
12329 ✗ case 0:
12330 ✗ CdhCore::fatalHandler.FatalReceive_handlerBase(
12331 0,
12332 Id
12333 );
12334 ✗ break;
12335 ✗ default:
12336 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12337 ✗ break;
12338 }
12339 ✗ }
12340
12341 ✗ void EventManagerComponentBase::Log_out(
12342 FwIndexType portNum,
12343 FwEventIdType id,
12344 Fw::Time& timeTag,
12345 const Fw::LogSeverity& severity,
12346 Fw::LogBuffer& args
12347 ) const {
12348 ✗ FW_ASSERT(
12349 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
12350 static_cast<FwAssertArgType>(portNum),
12351 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
12352 );
12353 ✗ switch (portNum) {
12354 ✗ case 0:
12355 ✗ CdhCore::events.LogRecv_handlerBase(
12356 0,
12357 id,
12358 timeTag,
12359 severity,
12360 args
12361 );
12362 ✗ break;
12363 ✗ default:
12364 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12365 ✗ break;
12366 }
12367 ✗ }
12368
12369 #if FW_ENABLE_TEXT_LOGGING == 1
12370
12371 ✗ void EventManagerComponentBase::LogText_out(
12372 FwIndexType portNum,
12373 FwEventIdType id,
12374 Fw::Time& timeTag,
12375 const Fw::LogSeverity& severity,
12376 Fw::TextLogString& text
12377 ) const {
12378 ✗ FW_ASSERT(
12379 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
12380 static_cast<FwAssertArgType>(portNum),
12381 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
12382 );
12383 ✗ switch (portNum) {
12384 ✗ case 0:
12385 ✗ CdhCore::textLogger.TextLogger_handlerBase(
12386 0,
12387 id,
12388 timeTag,
12389 severity,
12390 text
12391 );
12392 ✗ break;
12393 ✗ default:
12394 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12395 ✗ break;
12396 }
12397 ✗ }
12398
12399 #endif
12400
12401 464 void EventManagerComponentBase::PktSend_out(
12402 FwIndexType portNum,
12403 Fw::ComBuffer& data,
12404 U32 context
12405 ) const {
12406 464 FW_ASSERT(
12407 (0 <= portNum) && (portNum < NUM_PKTSEND_OUTPUT_PORTS),
12408 static_cast<FwAssertArgType>(portNum),
12409 static_cast<FwAssertArgType>(NUM_PKTSEND_OUTPUT_PORTS)
12410 );
12411
1/2
✓ Branch 0 taken 464 times.
✗ Branch 1 not taken.
464 switch (portNum) {
12412 464 case 0:
12413 464 ComCcsds::comQueue.comPacketQueueIn_handlerBase(
12414 0,
12415 data,
12416 context
12417 );
12418 464 break;
12419 ✗ default:
12420 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12421 ✗ break;
12422 }
12423 464 }
12424
12425 1 void EventManagerComponentBase::Time_out(
12426 FwIndexType portNum,
12427 Fw::Time& time
12428 ) const {
12429 1 FW_ASSERT(
12430 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
12431 static_cast<FwAssertArgType>(portNum),
12432 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
12433 );
12434
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
12435 1 case 0:
12436 1 Ref::posixTime.timeGetPort_handlerBase(
12437 0,
12438 time
12439 );
12440 1 break;
12441 ✗ default:
12442 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12443 ✗ break;
12444 }
12445 1 }
12446
12447 1 void EventManagerComponentBase::Tlm_out(
12448 FwIndexType portNum,
12449 FwChanIdType id,
12450 Fw::Time& timeTag,
12451 Fw::TlmBuffer& val
12452 ) const {
12453 1 FW_ASSERT(
12454 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
12455 static_cast<FwAssertArgType>(portNum),
12456 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
12457 );
12458
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
12459 1 case 0:
12460 1 CdhCore::tlmSend.TlmRecv_handlerBase(
12461 0,
12462 id,
12463 timeTag,
12464 val
12465 );
12466 1 break;
12467 ✗ default:
12468 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12469 ✗ break;
12470 }
12471 1 }
12472
12473 61 void EventManagerComponentBase::pingOut_out(
12474 FwIndexType portNum,
12475 U32 key
12476 ) const {
12477 61 FW_ASSERT(
12478 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
12479 static_cast<FwAssertArgType>(portNum),
12480 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
12481 );
12482
1/2
✓ Branch 0 taken 61 times.
✗ Branch 1 not taken.
61 switch (portNum) {
12483 61 case 0:
12484 61 CdhCore::health.PingReturn_handlerBase(
12485 1,
12486 key
12487 );
12488 61 break;
12489 ✗ default:
12490 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12491 ✗ break;
12492 }
12493 61 }
12494
12495 }
12496
12497 namespace Svc {
12498
12499 ✗ bool FileDownlinkComponentBase::isConnected_FileComplete_OutputPort(FwIndexType portNum) const {
12500 ✗ FW_ASSERT(
12501 (0 <= portNum) && (portNum < NUM_FILECOMPLETE_OUTPUT_PORTS),
12502 static_cast<FwAssertArgType>(portNum),
12503 static_cast<FwAssertArgType>(NUM_FILECOMPLETE_OUTPUT_PORTS)
12504 );
12505 ✗ bool result = false;
12506 ✗ switch (portNum) {
12507 ✗ case 0:
12508 ✗ result = true;
12509 ✗ break;
12510 ✗ default:
12511 ✗ break;
12512 }
12513 ✗ return result;
12514 }
12515
12516 ✗ bool FileDownlinkComponentBase::isConnected_bufferSendOut_OutputPort(FwIndexType portNum) const {
12517 ✗ FW_ASSERT(
12518 (0 <= portNum) && (portNum < NUM_BUFFERSENDOUT_OUTPUT_PORTS),
12519 static_cast<FwAssertArgType>(portNum),
12520 static_cast<FwAssertArgType>(NUM_BUFFERSENDOUT_OUTPUT_PORTS)
12521 );
12522 ✗ bool result = false;
12523 ✗ switch (portNum) {
12524 ✗ case 0:
12525 ✗ result = true;
12526 ✗ break;
12527 ✗ default:
12528 ✗ break;
12529 }
12530 ✗ return result;
12531 }
12532
12533 1 bool FileDownlinkComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const {
12534 1 FW_ASSERT(
12535 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
12536 static_cast<FwAssertArgType>(portNum),
12537 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
12538 );
12539 1 bool result = false;
12540
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
12541 1 case 0:
12542 1 result = true;
12543 1 break;
12544 ✗ default:
12545 ✗ break;
12546 }
12547 1 return result;
12548 }
12549
12550 ✗ bool FileDownlinkComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const {
12551 ✗ FW_ASSERT(
12552 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
12553 static_cast<FwAssertArgType>(portNum),
12554 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
12555 );
12556 ✗ bool result = false;
12557 ✗ switch (portNum) {
12558 ✗ case 0:
12559 ✗ result = true;
12560 ✗ break;
12561 ✗ default:
12562 ✗ break;
12563 }
12564 ✗ return result;
12565 }
12566
12567 ✗ bool FileDownlinkComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const {
12568 ✗ FW_ASSERT(
12569 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
12570 static_cast<FwAssertArgType>(portNum),
12571 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
12572 );
12573 ✗ bool result = false;
12574 ✗ switch (portNum) {
12575 ✗ case 0:
12576 ✗ result = true;
12577 ✗ break;
12578 ✗ default:
12579 ✗ break;
12580 }
12581 ✗ return result;
12582 }
12583
12584 ✗ bool FileDownlinkComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const {
12585 ✗ FW_ASSERT(
12586 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
12587 static_cast<FwAssertArgType>(portNum),
12588 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
12589 );
12590 ✗ bool result = false;
12591 ✗ switch (portNum) {
12592 ✗ case 0:
12593 ✗ result = true;
12594 ✗ break;
12595 ✗ default:
12596 ✗ break;
12597 }
12598 ✗ return result;
12599 }
12600
12601 #if FW_ENABLE_TEXT_LOGGING == 1
12602
12603 ✗ bool FileDownlinkComponentBase::isConnected_textEventOut_OutputPort(FwIndexType portNum) const {
12604 ✗ FW_ASSERT(
12605 (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS),
12606 static_cast<FwAssertArgType>(portNum),
12607 static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS)
12608 );
12609 ✗ bool result = false;
12610 ✗ switch (portNum) {
12611 ✗ case 0:
12612 ✗ result = true;
12613 ✗ break;
12614 ✗ default:
12615 ✗ break;
12616 }
12617 ✗ return result;
12618 }
12619
12620 #endif
12621
12622 ✗ bool FileDownlinkComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
12623 ✗ FW_ASSERT(
12624 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
12625 static_cast<FwAssertArgType>(portNum),
12626 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
12627 );
12628 ✗ bool result = false;
12629 ✗ switch (portNum) {
12630 ✗ case 0:
12631 ✗ result = true;
12632 ✗ break;
12633 ✗ default:
12634 ✗ break;
12635 }
12636 ✗ return result;
12637 }
12638
12639 ✗ bool FileDownlinkComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
12640 ✗ FW_ASSERT(
12641 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
12642 static_cast<FwAssertArgType>(portNum),
12643 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
12644 );
12645 ✗ bool result = false;
12646 ✗ switch (portNum) {
12647 ✗ case 0:
12648 ✗ result = true;
12649 ✗ break;
12650 ✗ default:
12651 ✗ break;
12652 }
12653 ✗ return result;
12654 }
12655
12656 ✗ void FileDownlinkComponentBase::FileComplete_out(
12657 FwIndexType portNum,
12658 const Svc::SendFileResponse& resp
12659 ) const {
12660 ✗ FW_ASSERT(
12661 (0 <= portNum) && (portNum < NUM_FILECOMPLETE_OUTPUT_PORTS),
12662 static_cast<FwAssertArgType>(portNum),
12663 static_cast<FwAssertArgType>(NUM_FILECOMPLETE_OUTPUT_PORTS)
12664 );
12665 ✗ switch (portNum) {
12666 ✗ case 0:
12667 ✗ DataProducts::dpCat.fileDone_handlerBase(
12668 0,
12669 resp
12670 );
12671 ✗ break;
12672 ✗ default:
12673 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12674 ✗ break;
12675 }
12676 ✗ }
12677
12678 ✗ void FileDownlinkComponentBase::bufferSendOut_out(
12679 FwIndexType portNum,
12680 Fw::Buffer& fwBuffer
12681 ) const {
12682 ✗ FW_ASSERT(
12683 (0 <= portNum) && (portNum < NUM_BUFFERSENDOUT_OUTPUT_PORTS),
12684 static_cast<FwAssertArgType>(portNum),
12685 static_cast<FwAssertArgType>(NUM_BUFFERSENDOUT_OUTPUT_PORTS)
12686 );
12687 ✗ switch (portNum) {
12688 ✗ case 0:
12689 ✗ ComCcsds::comQueue.bufferQueueIn_handlerBase(
12690 0,
12691 fwBuffer
12692 );
12693 ✗ break;
12694 ✗ default:
12695 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12696 ✗ break;
12697 }
12698 ✗ }
12699
12700 3 void FileDownlinkComponentBase::cmdRegOut_out(
12701 FwIndexType portNum,
12702 FwOpcodeType opCode
12703 ) const {
12704 3 FW_ASSERT(
12705 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
12706 static_cast<FwAssertArgType>(portNum),
12707 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
12708 );
12709
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
12710 3 case 0:
12711 3 CdhCore::cmdDisp.compCmdReg_handlerBase(
12712 9,
12713 opCode
12714 );
12715 3 break;
12716 ✗ default:
12717 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12718 ✗ break;
12719 }
12720 3 }
12721
12722 ✗ void FileDownlinkComponentBase::cmdResponseOut_out(
12723 FwIndexType portNum,
12724 FwOpcodeType opCode,
12725 U32 cmdSeq,
12726 const Fw::CmdResponse& response
12727 ) const {
12728 ✗ FW_ASSERT(
12729 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
12730 static_cast<FwAssertArgType>(portNum),
12731 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
12732 );
12733 ✗ switch (portNum) {
12734 ✗ case 0:
12735 ✗ CdhCore::cmdDisp.compCmdStat_handlerBase(
12736 0,
12737 opCode,
12738 cmdSeq,
12739 response
12740 );
12741 ✗ break;
12742 ✗ default:
12743 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12744 ✗ break;
12745 }
12746 ✗ }
12747
12748 ✗ void FileDownlinkComponentBase::eventOut_out(
12749 FwIndexType portNum,
12750 FwEventIdType id,
12751 Fw::Time& timeTag,
12752 const Fw::LogSeverity& severity,
12753 Fw::LogBuffer& args
12754 ) const {
12755 ✗ FW_ASSERT(
12756 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
12757 static_cast<FwAssertArgType>(portNum),
12758 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
12759 );
12760 ✗ switch (portNum) {
12761 ✗ case 0:
12762 ✗ CdhCore::events.LogRecv_handlerBase(
12763 0,
12764 id,
12765 timeTag,
12766 severity,
12767 args
12768 );
12769 ✗ break;
12770 ✗ default:
12771 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12772 ✗ break;
12773 }
12774 ✗ }
12775
12776 61 void FileDownlinkComponentBase::pingOut_out(
12777 FwIndexType portNum,
12778 U32 key
12779 ) const {
12780 61 FW_ASSERT(
12781 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
12782 static_cast<FwAssertArgType>(portNum),
12783 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
12784 );
12785
1/2
✓ Branch 0 taken 61 times.
✗ Branch 1 not taken.
61 switch (portNum) {
12786 61 case 0:
12787 61 CdhCore::health.PingReturn_handlerBase(
12788 5,
12789 key
12790 );
12791 61 break;
12792 ✗ default:
12793 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12794 ✗ break;
12795 }
12796 61 }
12797
12798 #if FW_ENABLE_TEXT_LOGGING == 1
12799
12800 ✗ void FileDownlinkComponentBase::textEventOut_out(
12801 FwIndexType portNum,
12802 FwEventIdType id,
12803 Fw::Time& timeTag,
12804 const Fw::LogSeverity& severity,
12805 Fw::TextLogString& text
12806 ) const {
12807 ✗ FW_ASSERT(
12808 (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS),
12809 static_cast<FwAssertArgType>(portNum),
12810 static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS)
12811 );
12812 ✗ switch (portNum) {
12813 ✗ case 0:
12814 ✗ CdhCore::textLogger.TextLogger_handlerBase(
12815 0,
12816 id,
12817 timeTag,
12818 severity,
12819 text
12820 );
12821 ✗ break;
12822 ✗ default:
12823 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12824 ✗ break;
12825 }
12826 ✗ }
12827
12828 #endif
12829
12830 ✗ void FileDownlinkComponentBase::timeCaller_out(
12831 FwIndexType portNum,
12832 Fw::Time& time
12833 ) const {
12834 ✗ FW_ASSERT(
12835 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
12836 static_cast<FwAssertArgType>(portNum),
12837 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
12838 );
12839 ✗ switch (portNum) {
12840 ✗ case 0:
12841 ✗ Ref::posixTime.timeGetPort_handlerBase(
12842 0,
12843 time
12844 );
12845 ✗ break;
12846 ✗ default:
12847 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12848 ✗ break;
12849 }
12850 ✗ }
12851
12852 ✗ void FileDownlinkComponentBase::tlmOut_out(
12853 FwIndexType portNum,
12854 FwChanIdType id,
12855 Fw::Time& timeTag,
12856 Fw::TlmBuffer& val
12857 ) const {
12858 ✗ FW_ASSERT(
12859 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
12860 static_cast<FwAssertArgType>(portNum),
12861 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
12862 );
12863 ✗ switch (portNum) {
12864 ✗ case 0:
12865 ✗ CdhCore::tlmSend.TlmRecv_handlerBase(
12866 0,
12867 id,
12868 timeTag,
12869 val
12870 );
12871 ✗ break;
12872 ✗ default:
12873 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12874 ✗ break;
12875 }
12876 ✗ }
12877
12878 }
12879
12880 namespace Svc {
12881
12882 #if FW_ENABLE_TEXT_LOGGING == 1
12883
12884 2 bool FileManagerComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
12885 2 FW_ASSERT(
12886 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
12887 static_cast<FwAssertArgType>(portNum),
12888 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
12889 );
12890 2 bool result = false;
12891
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
12892 2 case 0:
12893 2 result = true;
12894 2 break;
12895 ✗ default:
12896 ✗ break;
12897 }
12898 2 return result;
12899 }
12900
12901 #endif
12902
12903 1 bool FileManagerComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const {
12904 1 FW_ASSERT(
12905 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
12906 static_cast<FwAssertArgType>(portNum),
12907 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
12908 );
12909 1 bool result = false;
12910
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
12911 1 case 0:
12912 1 result = true;
12913 1 break;
12914 ✗ default:
12915 ✗ break;
12916 }
12917 1 return result;
12918 }
12919
12920 1 bool FileManagerComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const {
12921 1 FW_ASSERT(
12922 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
12923 static_cast<FwAssertArgType>(portNum),
12924 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
12925 );
12926 1 bool result = false;
12927
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
12928 1 case 0:
12929 1 result = true;
12930 1 break;
12931 ✗ default:
12932 ✗ break;
12933 }
12934 1 return result;
12935 }
12936
12937 2 bool FileManagerComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const {
12938 2 FW_ASSERT(
12939 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
12940 static_cast<FwAssertArgType>(portNum),
12941 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
12942 );
12943 2 bool result = false;
12944
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
12945 2 case 0:
12946 2 result = true;
12947 2 break;
12948 ✗ default:
12949 ✗ break;
12950 }
12951 2 return result;
12952 }
12953
12954 ✗ bool FileManagerComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const {
12955 ✗ FW_ASSERT(
12956 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
12957 static_cast<FwAssertArgType>(portNum),
12958 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
12959 );
12960 ✗ bool result = false;
12961 ✗ switch (portNum) {
12962 ✗ case 0:
12963 ✗ result = true;
12964 ✗ break;
12965 ✗ default:
12966 ✗ break;
12967 }
12968 ✗ return result;
12969 }
12970
12971 ✗ bool FileManagerComponentBase::isConnected_productGetOut_OutputPort(FwIndexType portNum) const {
12972 ✗ FW_ASSERT(
12973 (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS),
12974 static_cast<FwAssertArgType>(portNum),
12975 static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS)
12976 );
12977 ✗ bool result = false;
12978 ✗ switch (portNum) {
12979 default:
12980 ✗ break;
12981 }
12982 ✗ return result;
12983 }
12984
12985 ✗ bool FileManagerComponentBase::isConnected_productSendOut_OutputPort(FwIndexType portNum) const {
12986 ✗ FW_ASSERT(
12987 (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS),
12988 static_cast<FwAssertArgType>(portNum),
12989 static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS)
12990 );
12991 ✗ bool result = false;
12992 ✗ switch (portNum) {
12993 default:
12994 ✗ break;
12995 }
12996 ✗ return result;
12997 }
12998
12999 3 bool FileManagerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
13000 3 FW_ASSERT(
13001 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
13002 static_cast<FwAssertArgType>(portNum),
13003 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
13004 );
13005 3 bool result = false;
13006
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
13007 3 case 0:
13008 3 result = true;
13009 3 break;
13010 ✗ default:
13011 ✗ break;
13012 }
13013 3 return result;
13014 }
13015
13016 2 bool FileManagerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
13017 2 FW_ASSERT(
13018 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
13019 static_cast<FwAssertArgType>(portNum),
13020 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
13021 );
13022 2 bool result = false;
13023
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
13024 2 case 0:
13025 2 result = true;
13026 2 break;
13027 ✗ default:
13028 ✗ break;
13029 }
13030 2 return result;
13031 }
13032
13033 #if FW_ENABLE_TEXT_LOGGING == 1
13034
13035 2 void FileManagerComponentBase::LogText_out(
13036 FwIndexType portNum,
13037 FwEventIdType id,
13038 Fw::Time& timeTag,
13039 const Fw::LogSeverity& severity,
13040 Fw::TextLogString& text
13041 ) const {
13042 2 FW_ASSERT(
13043 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
13044 static_cast<FwAssertArgType>(portNum),
13045 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
13046 );
13047
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
13048 2 case 0:
13049 2 CdhCore::textLogger.TextLogger_handlerBase(
13050 0,
13051 id,
13052 timeTag,
13053 severity,
13054 text
13055 );
13056 2 break;
13057 ✗ default:
13058 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13059 ✗ break;
13060 }
13061 2 }
13062
13063 #endif
13064
13065 9 void FileManagerComponentBase::cmdRegOut_out(
13066 FwIndexType portNum,
13067 FwOpcodeType opCode
13068 ) const {
13069 9 FW_ASSERT(
13070 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
13071 static_cast<FwAssertArgType>(portNum),
13072 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
13073 );
13074
1/2
✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
9 switch (portNum) {
13075 9 case 0:
13076 9 CdhCore::cmdDisp.compCmdReg_handlerBase(
13077 10,
13078 opCode
13079 );
13080 9 break;
13081 ✗ default:
13082 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13083 ✗ break;
13084 }
13085 9 }
13086
13087 1 void FileManagerComponentBase::cmdResponseOut_out(
13088 FwIndexType portNum,
13089 FwOpcodeType opCode,
13090 U32 cmdSeq,
13091 const Fw::CmdResponse& response
13092 ) const {
13093 1 FW_ASSERT(
13094 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
13095 static_cast<FwAssertArgType>(portNum),
13096 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
13097 );
13098
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
13099 1 case 0:
13100 1 CdhCore::cmdDisp.compCmdStat_handlerBase(
13101 0,
13102 opCode,
13103 cmdSeq,
13104 response
13105 );
13106 1 break;
13107 ✗ default:
13108 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13109 ✗ break;
13110 }
13111 1 }
13112
13113 2 void FileManagerComponentBase::eventOut_out(
13114 FwIndexType portNum,
13115 FwEventIdType id,
13116 Fw::Time& timeTag,
13117 const Fw::LogSeverity& severity,
13118 Fw::LogBuffer& args
13119 ) const {
13120 2 FW_ASSERT(
13121 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
13122 static_cast<FwAssertArgType>(portNum),
13123 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
13124 );
13125
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
13126 2 case 0:
13127 2 CdhCore::events.LogRecv_handlerBase(
13128 0,
13129 id,
13130 timeTag,
13131 severity,
13132 args
13133 );
13134 2 break;
13135 ✗ default:
13136 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13137 ✗ break;
13138 }
13139 2 }
13140
13141 61 void FileManagerComponentBase::pingOut_out(
13142 FwIndexType portNum,
13143 U32 key
13144 ) const {
13145 61 FW_ASSERT(
13146 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
13147 static_cast<FwAssertArgType>(portNum),
13148 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
13149 );
13150
1/2
✓ Branch 0 taken 61 times.
✗ Branch 1 not taken.
61 switch (portNum) {
13151 61 case 0:
13152 61 CdhCore::health.PingReturn_handlerBase(
13153 6,
13154 key
13155 );
13156 61 break;
13157 ✗ default:
13158 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13159 ✗ break;
13160 }
13161 61 }
13162
13163 ✗ Fw::Success FileManagerComponentBase::productGetOut_out(
13164 FwIndexType portNum,
13165 FwDpIdType id,
13166 FwSizeType dataSize,
13167 Fw::Buffer& buffer
13168 ) const {
13169 ✗ FW_ASSERT(
13170 (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS),
13171 static_cast<FwAssertArgType>(portNum),
13172 static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS)
13173 );
13174 ✗ Fw::Success _result = {};
13175 ✗ switch (portNum) {
13176 default:
13177 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13178 ✗ break;
13179 }
13180 ✗ return _result;
13181 ✗ }
13182
13183 ✗ void FileManagerComponentBase::productSendOut_out(
13184 FwIndexType portNum,
13185 FwDpIdType id,
13186 const Fw::Buffer& buffer
13187 ) const {
13188 ✗ FW_ASSERT(
13189 (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS),
13190 static_cast<FwAssertArgType>(portNum),
13191 static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS)
13192 );
13193 ✗ switch (portNum) {
13194 default:
13195 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13196 ✗ break;
13197 }
13198 ✗ }
13199
13200 3 void FileManagerComponentBase::timeCaller_out(
13201 FwIndexType portNum,
13202 Fw::Time& time
13203 ) const {
13204 3 FW_ASSERT(
13205 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
13206 static_cast<FwAssertArgType>(portNum),
13207 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
13208 );
13209
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
13210 3 case 0:
13211 3 Ref::posixTime.timeGetPort_handlerBase(
13212 0,
13213 time
13214 );
13215 3 break;
13216 ✗ default:
13217 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13218 ✗ break;
13219 }
13220 3 }
13221
13222 1 void FileManagerComponentBase::tlmOut_out(
13223 FwIndexType portNum,
13224 FwChanIdType id,
13225 Fw::Time& timeTag,
13226 Fw::TlmBuffer& val
13227 ) const {
13228 1 FW_ASSERT(
13229 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
13230 static_cast<FwAssertArgType>(portNum),
13231 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
13232 );
13233
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
13234 1 case 0:
13235 1 CdhCore::tlmSend.TlmRecv_handlerBase(
13236 0,
13237 id,
13238 timeTag,
13239 val
13240 );
13241 1 break;
13242 ✗ default:
13243 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13244 ✗ break;
13245 }
13246 1 }
13247
13248 }
13249
13250 namespace Svc {
13251
13252 #if FW_ENABLE_TEXT_LOGGING == 1
13253
13254 4 bool FileUplinkComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
13255 4 FW_ASSERT(
13256 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
13257 static_cast<FwAssertArgType>(portNum),
13258 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
13259 );
13260 4 bool result = false;
13261
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
13262 4 case 0:
13263 4 result = true;
13264 4 break;
13265 ✗ default:
13266 ✗ break;
13267 }
13268 4 return result;
13269 }
13270
13271 #endif
13272
13273 ✗ bool FileUplinkComponentBase::isConnected_bufferSendOut_OutputPort(FwIndexType portNum) const {
13274 ✗ FW_ASSERT(
13275 (0 <= portNum) && (portNum < NUM_BUFFERSENDOUT_OUTPUT_PORTS),
13276 static_cast<FwAssertArgType>(portNum),
13277 static_cast<FwAssertArgType>(NUM_BUFFERSENDOUT_OUTPUT_PORTS)
13278 );
13279 ✗ bool result = false;
13280 ✗ switch (portNum) {
13281 ✗ case 0:
13282 ✗ result = true;
13283 ✗ break;
13284 ✗ default:
13285 ✗ break;
13286 }
13287 ✗ return result;
13288 }
13289
13290 4 bool FileUplinkComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const {
13291 4 FW_ASSERT(
13292 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
13293 static_cast<FwAssertArgType>(portNum),
13294 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
13295 );
13296 4 bool result = false;
13297
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
13298 4 case 0:
13299 4 result = true;
13300 4 break;
13301 ✗ default:
13302 ✗ break;
13303 }
13304 4 return result;
13305 }
13306
13307 1 bool FileUplinkComponentBase::isConnected_fileAnnounce_OutputPort(FwIndexType portNum) const {
13308 1 FW_ASSERT(
13309 (0 <= portNum) && (portNum < NUM_FILEANNOUNCE_OUTPUT_PORTS),
13310 static_cast<FwAssertArgType>(portNum),
13311 static_cast<FwAssertArgType>(NUM_FILEANNOUNCE_OUTPUT_PORTS)
13312 );
13313 1 bool result = false;
13314 1 switch (portNum) {
13315 default:
13316 1 break;
13317 }
13318 1 return result;
13319 }
13320
13321 ✗ bool FileUplinkComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const {
13322 ✗ FW_ASSERT(
13323 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
13324 static_cast<FwAssertArgType>(portNum),
13325 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
13326 );
13327 ✗ bool result = false;
13328 ✗ switch (portNum) {
13329 ✗ case 0:
13330 ✗ result = true;
13331 ✗ break;
13332 ✗ default:
13333 ✗ break;
13334 }
13335 ✗ return result;
13336 }
13337
13338 14 bool FileUplinkComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
13339 14 FW_ASSERT(
13340 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
13341 static_cast<FwAssertArgType>(portNum),
13342 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
13343 );
13344 14 bool result = false;
13345
1/2
✓ Branch 0 taken 14 times.
✗ Branch 1 not taken.
14 switch (portNum) {
13346 14 case 0:
13347 14 result = true;
13348 14 break;
13349 ✗ default:
13350 ✗ break;
13351 }
13352 14 return result;
13353 }
13354
13355 20 bool FileUplinkComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
13356 20 FW_ASSERT(
13357 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
13358 static_cast<FwAssertArgType>(portNum),
13359 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
13360 );
13361 20 bool result = false;
13362
1/2
✓ Branch 0 taken 20 times.
✗ Branch 1 not taken.
20 switch (portNum) {
13363 20 case 0:
13364 20 result = true;
13365 20 break;
13366 ✗ default:
13367 ✗ break;
13368 }
13369 20 return result;
13370 }
13371
13372 #if FW_ENABLE_TEXT_LOGGING == 1
13373
13374 4 void FileUplinkComponentBase::LogText_out(
13375 FwIndexType portNum,
13376 FwEventIdType id,
13377 Fw::Time& timeTag,
13378 const Fw::LogSeverity& severity,
13379 Fw::TextLogString& text
13380 ) const {
13381 4 FW_ASSERT(
13382 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
13383 static_cast<FwAssertArgType>(portNum),
13384 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
13385 );
13386
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
13387 4 case 0:
13388 4 CdhCore::textLogger.TextLogger_handlerBase(
13389 0,
13390 id,
13391 timeTag,
13392 severity,
13393 text
13394 );
13395 4 break;
13396 ✗ default:
13397 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13398 ✗ break;
13399 }
13400 4 }
13401
13402 #endif
13403
13404 6 void FileUplinkComponentBase::bufferSendOut_out(
13405 FwIndexType portNum,
13406 Fw::Buffer& fwBuffer
13407 ) const {
13408 6 FW_ASSERT(
13409 (0 <= portNum) && (portNum < NUM_BUFFERSENDOUT_OUTPUT_PORTS),
13410 static_cast<FwAssertArgType>(portNum),
13411 static_cast<FwAssertArgType>(NUM_BUFFERSENDOUT_OUTPUT_PORTS)
13412 );
13413
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
13414 6 case 0:
13415 6 ComCcsds::fprimeRouter.fileBufferReturnIn_handlerBase(
13416 0,
13417 fwBuffer
13418 );
13419 6 break;
13420 ✗ default:
13421 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13422 ✗ break;
13423 }
13424 6 }
13425
13426 4 void FileUplinkComponentBase::eventOut_out(
13427 FwIndexType portNum,
13428 FwEventIdType id,
13429 Fw::Time& timeTag,
13430 const Fw::LogSeverity& severity,
13431 Fw::LogBuffer& args
13432 ) const {
13433 4 FW_ASSERT(
13434 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
13435 static_cast<FwAssertArgType>(portNum),
13436 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
13437 );
13438
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
13439 4 case 0:
13440 4 CdhCore::events.LogRecv_handlerBase(
13441 0,
13442 id,
13443 timeTag,
13444 severity,
13445 args
13446 );
13447 4 break;
13448 ✗ default:
13449 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13450 ✗ break;
13451 }
13452 4 }
13453
13454 ✗ void FileUplinkComponentBase::fileAnnounce_out(
13455 FwIndexType portNum,
13456 Fw::StringBase& file_name
13457 ) const {
13458 ✗ FW_ASSERT(
13459 (0 <= portNum) && (portNum < NUM_FILEANNOUNCE_OUTPUT_PORTS),
13460 static_cast<FwAssertArgType>(portNum),
13461 static_cast<FwAssertArgType>(NUM_FILEANNOUNCE_OUTPUT_PORTS)
13462 );
13463 ✗ switch (portNum) {
13464 default:
13465 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13466 ✗ break;
13467 }
13468 ✗ }
13469
13470 61 void FileUplinkComponentBase::pingOut_out(
13471 FwIndexType portNum,
13472 U32 key
13473 ) const {
13474 61 FW_ASSERT(
13475 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
13476 static_cast<FwAssertArgType>(portNum),
13477 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
13478 );
13479
1/2
✓ Branch 0 taken 61 times.
✗ Branch 1 not taken.
61 switch (portNum) {
13480 61 case 0:
13481 61 CdhCore::health.PingReturn_handlerBase(
13482 7,
13483 key
13484 );
13485 61 break;
13486 ✗ default:
13487 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13488 ✗ break;
13489 }
13490 61 }
13491
13492 14 void FileUplinkComponentBase::timeCaller_out(
13493 FwIndexType portNum,
13494 Fw::Time& time
13495 ) const {
13496 14 FW_ASSERT(
13497 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
13498 static_cast<FwAssertArgType>(portNum),
13499 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
13500 );
13501
1/2
✓ Branch 0 taken 14 times.
✗ Branch 1 not taken.
14 switch (portNum) {
13502 14 case 0:
13503 14 Ref::posixTime.timeGetPort_handlerBase(
13504 0,
13505 time
13506 );
13507 14 break;
13508 ✗ default:
13509 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13510 ✗ break;
13511 }
13512 14 }
13513
13514 10 void FileUplinkComponentBase::tlmOut_out(
13515 FwIndexType portNum,
13516 FwChanIdType id,
13517 Fw::Time& timeTag,
13518 Fw::TlmBuffer& val
13519 ) const {
13520 10 FW_ASSERT(
13521 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
13522 static_cast<FwAssertArgType>(portNum),
13523 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
13524 );
13525
1/2
✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
10 switch (portNum) {
13526 10 case 0:
13527 10 CdhCore::tlmSend.TlmRecv_handlerBase(
13528 0,
13529 id,
13530 timeTag,
13531 val
13532 );
13533 10 break;
13534 ✗ default:
13535 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13536 ✗ break;
13537 }
13538 10 }
13539
13540 }
13541
13542 namespace Svc {
13543
13544 ✗ bool FprimeRouterComponentBase::isConnected_commandOut_OutputPort(FwIndexType portNum) const {
13545 ✗ FW_ASSERT(
13546 (0 <= portNum) && (portNum < NUM_COMMANDOUT_OUTPUT_PORTS),
13547 static_cast<FwAssertArgType>(portNum),
13548 static_cast<FwAssertArgType>(NUM_COMMANDOUT_OUTPUT_PORTS)
13549 );
13550 ✗ bool result = false;
13551 ✗ switch (portNum) {
13552 ✗ case 0:
13553 ✗ result = true;
13554 ✗ break;
13555 ✗ default:
13556 ✗ break;
13557 }
13558 ✗ return result;
13559 }
13560
13561 ✗ bool FprimeRouterComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const {
13562 ✗ FW_ASSERT(
13563 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
13564 static_cast<FwAssertArgType>(portNum),
13565 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
13566 );
13567 ✗ bool result = false;
13568 ✗ switch (portNum) {
13569 ✗ case 0:
13570 ✗ result = true;
13571 ✗ break;
13572 ✗ default:
13573 ✗ break;
13574 }
13575 ✗ return result;
13576 }
13577
13578 6 bool FprimeRouterComponentBase::isConnected_fileOut_OutputPort(FwIndexType portNum) const {
13579 6 FW_ASSERT(
13580 (0 <= portNum) && (portNum < NUM_FILEOUT_OUTPUT_PORTS),
13581 static_cast<FwAssertArgType>(portNum),
13582 static_cast<FwAssertArgType>(NUM_FILEOUT_OUTPUT_PORTS)
13583 );
13584 6 bool result = false;
13585
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
13586 6 case 0:
13587 6 result = true;
13588 6 break;
13589 ✗ default:
13590 ✗ break;
13591 }
13592 6 return result;
13593 }
13594
13595 ✗ bool FprimeRouterComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
13596 ✗ FW_ASSERT(
13597 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
13598 static_cast<FwAssertArgType>(portNum),
13599 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
13600 );
13601 ✗ bool result = false;
13602 ✗ switch (portNum) {
13603 ✗ case 0:
13604 ✗ result = true;
13605 ✗ break;
13606 ✗ default:
13607 ✗ break;
13608 }
13609 ✗ return result;
13610 }
13611
13612 #if FW_ENABLE_TEXT_LOGGING == 1
13613
13614 ✗ bool FprimeRouterComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
13615 ✗ FW_ASSERT(
13616 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
13617 static_cast<FwAssertArgType>(portNum),
13618 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
13619 );
13620 ✗ bool result = false;
13621 ✗ switch (portNum) {
13622 ✗ case 0:
13623 ✗ result = true;
13624 ✗ break;
13625 ✗ default:
13626 ✗ break;
13627 }
13628 ✗ return result;
13629 }
13630
13631 #endif
13632
13633 ✗ bool FprimeRouterComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
13634 ✗ FW_ASSERT(
13635 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
13636 static_cast<FwAssertArgType>(portNum),
13637 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
13638 );
13639 ✗ bool result = false;
13640 ✗ switch (portNum) {
13641 ✗ case 0:
13642 ✗ result = true;
13643 ✗ break;
13644 ✗ default:
13645 ✗ break;
13646 }
13647 ✗ return result;
13648 }
13649
13650 ✗ bool FprimeRouterComponentBase::isConnected_unknownDataOut_OutputPort(FwIndexType portNum) const {
13651 ✗ FW_ASSERT(
13652 (0 <= portNum) && (portNum < NUM_UNKNOWNDATAOUT_OUTPUT_PORTS),
13653 static_cast<FwAssertArgType>(portNum),
13654 static_cast<FwAssertArgType>(NUM_UNKNOWNDATAOUT_OUTPUT_PORTS)
13655 );
13656 ✗ bool result = false;
13657 ✗ switch (portNum) {
13658 default:
13659 ✗ break;
13660 }
13661 ✗ return result;
13662 }
13663
13664 145 void FprimeRouterComponentBase::commandOut_out(
13665 FwIndexType portNum,
13666 Fw::ComBuffer& data,
13667 U32 context
13668 ) const {
13669 145 FW_ASSERT(
13670 (0 <= portNum) && (portNum < NUM_COMMANDOUT_OUTPUT_PORTS),
13671 static_cast<FwAssertArgType>(portNum),
13672 static_cast<FwAssertArgType>(NUM_COMMANDOUT_OUTPUT_PORTS)
13673 );
13674
1/2
✓ Branch 0 taken 145 times.
✗ Branch 1 not taken.
145 switch (portNum) {
13675 145 case 0:
13676 145 CdhCore::cmdDisp.seqCmdBuff_handlerBase(
13677 0,
13678 data,
13679 context
13680 );
13681 145 break;
13682 ✗ default:
13683 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13684 ✗ break;
13685 }
13686 145 }
13687
13688 151 void FprimeRouterComponentBase::dataReturnOut_out(
13689 FwIndexType portNum,
13690 Fw::Buffer& data,
13691 const ComCfg::FrameContext& context
13692 ) const {
13693 151 FW_ASSERT(
13694 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
13695 static_cast<FwAssertArgType>(portNum),
13696 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
13697 );
13698
1/2
✓ Branch 0 taken 151 times.
✗ Branch 1 not taken.
151 switch (portNum) {
13699 151 case 0:
13700 151 ComCcsds::spacePacketDeframer.dataReturnIn_handlerBase(
13701 0,
13702 data,
13703 context
13704 );
13705 151 break;
13706 ✗ default:
13707 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13708 ✗ break;
13709 }
13710 151 }
13711
13712 6 void FprimeRouterComponentBase::fileOut_out(
13713 FwIndexType portNum,
13714 Fw::Buffer& fwBuffer
13715 ) const {
13716 6 FW_ASSERT(
13717 (0 <= portNum) && (portNum < NUM_FILEOUT_OUTPUT_PORTS),
13718 static_cast<FwAssertArgType>(portNum),
13719 static_cast<FwAssertArgType>(NUM_FILEOUT_OUTPUT_PORTS)
13720 );
13721
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
13722 6 case 0:
13723 6 FileHandling::fileUplink.bufferSendIn_handlerBase(
13724 0,
13725 fwBuffer
13726 );
13727 6 break;
13728 ✗ default:
13729 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13730 ✗ break;
13731 }
13732 6 }
13733
13734 ✗ void FprimeRouterComponentBase::logOut_out(
13735 FwIndexType portNum,
13736 FwEventIdType id,
13737 Fw::Time& timeTag,
13738 const Fw::LogSeverity& severity,
13739 Fw::LogBuffer& args
13740 ) const {
13741 ✗ FW_ASSERT(
13742 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
13743 static_cast<FwAssertArgType>(portNum),
13744 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
13745 );
13746 ✗ switch (portNum) {
13747 ✗ case 0:
13748 ✗ CdhCore::events.LogRecv_handlerBase(
13749 0,
13750 id,
13751 timeTag,
13752 severity,
13753 args
13754 );
13755 ✗ break;
13756 ✗ default:
13757 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13758 ✗ break;
13759 }
13760 ✗ }
13761
13762 #if FW_ENABLE_TEXT_LOGGING == 1
13763
13764 ✗ void FprimeRouterComponentBase::logTextOut_out(
13765 FwIndexType portNum,
13766 FwEventIdType id,
13767 Fw::Time& timeTag,
13768 const Fw::LogSeverity& severity,
13769 Fw::TextLogString& text
13770 ) const {
13771 ✗ FW_ASSERT(
13772 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
13773 static_cast<FwAssertArgType>(portNum),
13774 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
13775 );
13776 ✗ switch (portNum) {
13777 ✗ case 0:
13778 ✗ CdhCore::textLogger.TextLogger_handlerBase(
13779 0,
13780 id,
13781 timeTag,
13782 severity,
13783 text
13784 );
13785 ✗ break;
13786 ✗ default:
13787 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13788 ✗ break;
13789 }
13790 ✗ }
13791
13792 #endif
13793
13794 ✗ void FprimeRouterComponentBase::timeCaller_out(
13795 FwIndexType portNum,
13796 Fw::Time& time
13797 ) const {
13798 ✗ FW_ASSERT(
13799 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
13800 static_cast<FwAssertArgType>(portNum),
13801 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
13802 );
13803 ✗ switch (portNum) {
13804 ✗ case 0:
13805 ✗ Ref::posixTime.timeGetPort_handlerBase(
13806 0,
13807 time
13808 );
13809 ✗ break;
13810 ✗ default:
13811 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13812 ✗ break;
13813 }
13814 ✗ }
13815
13816 ✗ void FprimeRouterComponentBase::unknownDataOut_out(
13817 FwIndexType portNum,
13818 Fw::Buffer& data,
13819 const ComCfg::FrameContext& context
13820 ) const {
13821 ✗ FW_ASSERT(
13822 (0 <= portNum) && (portNum < NUM_UNKNOWNDATAOUT_OUTPUT_PORTS),
13823 static_cast<FwAssertArgType>(portNum),
13824 static_cast<FwAssertArgType>(NUM_UNKNOWNDATAOUT_OUTPUT_PORTS)
13825 );
13826 ✗ switch (portNum) {
13827 default:
13828 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13829 ✗ break;
13830 }
13831 ✗ }
13832
13833 }
13834
13835 namespace Svc {
13836
13837 ✗ bool FrameAccumulatorComponentBase::isConnected_bufferAllocate_OutputPort(FwIndexType portNum) const {
13838 ✗ FW_ASSERT(
13839 (0 <= portNum) && (portNum < NUM_BUFFERALLOCATE_OUTPUT_PORTS),
13840 static_cast<FwAssertArgType>(portNum),
13841 static_cast<FwAssertArgType>(NUM_BUFFERALLOCATE_OUTPUT_PORTS)
13842 );
13843 ✗ bool result = false;
13844 ✗ switch (portNum) {
13845 ✗ case 0:
13846 ✗ result = true;
13847 ✗ break;
13848 ✗ default:
13849 ✗ break;
13850 }
13851 ✗ return result;
13852 }
13853
13854 ✗ bool FrameAccumulatorComponentBase::isConnected_bufferDeallocate_OutputPort(FwIndexType portNum) const {
13855 ✗ FW_ASSERT(
13856 (0 <= portNum) && (portNum < NUM_BUFFERDEALLOCATE_OUTPUT_PORTS),
13857 static_cast<FwAssertArgType>(portNum),
13858 static_cast<FwAssertArgType>(NUM_BUFFERDEALLOCATE_OUTPUT_PORTS)
13859 );
13860 ✗ bool result = false;
13861 ✗ switch (portNum) {
13862 ✗ case 0:
13863 ✗ result = true;
13864 ✗ break;
13865 ✗ default:
13866 ✗ break;
13867 }
13868 ✗ return result;
13869 }
13870
13871 ✗ bool FrameAccumulatorComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const {
13872 ✗ FW_ASSERT(
13873 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
13874 static_cast<FwAssertArgType>(portNum),
13875 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
13876 );
13877 ✗ bool result = false;
13878 ✗ switch (portNum) {
13879 ✗ case 0:
13880 ✗ result = true;
13881 ✗ break;
13882 ✗ default:
13883 ✗ break;
13884 }
13885 ✗ return result;
13886 }
13887
13888 ✗ bool FrameAccumulatorComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const {
13889 ✗ FW_ASSERT(
13890 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
13891 static_cast<FwAssertArgType>(portNum),
13892 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
13893 );
13894 ✗ bool result = false;
13895 ✗ switch (portNum) {
13896 ✗ case 0:
13897 ✗ result = true;
13898 ✗ break;
13899 ✗ default:
13900 ✗ break;
13901 }
13902 ✗ return result;
13903 }
13904
13905 ✗ bool FrameAccumulatorComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
13906 ✗ FW_ASSERT(
13907 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
13908 static_cast<FwAssertArgType>(portNum),
13909 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
13910 );
13911 ✗ bool result = false;
13912 ✗ switch (portNum) {
13913 ✗ case 0:
13914 ✗ result = true;
13915 ✗ break;
13916 ✗ default:
13917 ✗ break;
13918 }
13919 ✗ return result;
13920 }
13921
13922 #if FW_ENABLE_TEXT_LOGGING == 1
13923
13924 ✗ bool FrameAccumulatorComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
13925 ✗ FW_ASSERT(
13926 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
13927 static_cast<FwAssertArgType>(portNum),
13928 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
13929 );
13930 ✗ bool result = false;
13931 ✗ switch (portNum) {
13932 ✗ case 0:
13933 ✗ result = true;
13934 ✗ break;
13935 ✗ default:
13936 ✗ break;
13937 }
13938 ✗ return result;
13939 }
13940
13941 #endif
13942
13943 ✗ bool FrameAccumulatorComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
13944 ✗ FW_ASSERT(
13945 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
13946 static_cast<FwAssertArgType>(portNum),
13947 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
13948 );
13949 ✗ bool result = false;
13950 ✗ switch (portNum) {
13951 ✗ case 0:
13952 ✗ result = true;
13953 ✗ break;
13954 ✗ default:
13955 ✗ break;
13956 }
13957 ✗ return result;
13958 }
13959
13960 151 Fw::Buffer FrameAccumulatorComponentBase::bufferAllocate_out(
13961 FwIndexType portNum,
13962 FwSizeType size
13963 ) const {
13964 151 FW_ASSERT(
13965 (0 <= portNum) && (portNum < NUM_BUFFERALLOCATE_OUTPUT_PORTS),
13966 static_cast<FwAssertArgType>(portNum),
13967 static_cast<FwAssertArgType>(NUM_BUFFERALLOCATE_OUTPUT_PORTS)
13968 );
13969 151 Fw::Buffer _result = {};
13970
1/2
✓ Branch 0 taken 151 times.
✗ Branch 1 not taken.
151 switch (portNum) {
13971 151 case 0:
13972
1/1
✓ Branch 1 taken 151 times.
302 _result = ComCcsds::commsBufferManager.bufferGetCallee_handlerBase(
13973 0,
13974 size
13975
1/1
✓ Branch 1 taken 151 times.
151 );
13976 151 break;
13977 ✗ default:
13978 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13979 ✗ break;
13980 }
13981 151 return _result;
13982 ✗ }
13983
13984 151 void FrameAccumulatorComponentBase::bufferDeallocate_out(
13985 FwIndexType portNum,
13986 Fw::Buffer& fwBuffer
13987 ) const {
13988 151 FW_ASSERT(
13989 (0 <= portNum) && (portNum < NUM_BUFFERDEALLOCATE_OUTPUT_PORTS),
13990 static_cast<FwAssertArgType>(portNum),
13991 static_cast<FwAssertArgType>(NUM_BUFFERDEALLOCATE_OUTPUT_PORTS)
13992 );
13993
1/2
✓ Branch 0 taken 151 times.
✗ Branch 1 not taken.
151 switch (portNum) {
13994 151 case 0:
13995 151 ComCcsds::commsBufferManager.bufferSendIn_handlerBase(
13996 0,
13997 fwBuffer
13998 );
13999 151 break;
14000 ✗ default:
14001 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14002 ✗ break;
14003 }
14004 151 }
14005
14006 151 void FrameAccumulatorComponentBase::dataOut_out(
14007 FwIndexType portNum,
14008 Fw::Buffer& data,
14009 const ComCfg::FrameContext& context
14010 ) const {
14011 151 FW_ASSERT(
14012 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
14013 static_cast<FwAssertArgType>(portNum),
14014 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
14015 );
14016
1/2
✓ Branch 0 taken 151 times.
✗ Branch 1 not taken.
151 switch (portNum) {
14017 151 case 0:
14018 151 ComCcsds::tcDeframer.dataIn_handlerBase(
14019 0,
14020 data,
14021 context
14022 );
14023 151 break;
14024 ✗ default:
14025 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14026 ✗ break;
14027 }
14028 151 }
14029
14030 629 void FrameAccumulatorComponentBase::dataReturnOut_out(
14031 FwIndexType portNum,
14032 Fw::Buffer& data,
14033 const ComCfg::FrameContext& context
14034 ) const {
14035 629 FW_ASSERT(
14036 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
14037 static_cast<FwAssertArgType>(portNum),
14038 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
14039 );
14040
1/2
✓ Branch 0 taken 629 times.
✗ Branch 1 not taken.
629 switch (portNum) {
14041 629 case 0:
14042 629 ComCcsds::comStub.dataReturnIn_handlerBase(
14043 0,
14044 data,
14045 context
14046 );
14047 629 break;
14048 ✗ default:
14049 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14050 ✗ break;
14051 }
14052 629 }
14053
14054 ✗ void FrameAccumulatorComponentBase::logOut_out(
14055 FwIndexType portNum,
14056 FwEventIdType id,
14057 Fw::Time& timeTag,
14058 const Fw::LogSeverity& severity,
14059 Fw::LogBuffer& args
14060 ) const {
14061 ✗ FW_ASSERT(
14062 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
14063 static_cast<FwAssertArgType>(portNum),
14064 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
14065 );
14066 ✗ switch (portNum) {
14067 ✗ case 0:
14068 ✗ CdhCore::events.LogRecv_handlerBase(
14069 0,
14070 id,
14071 timeTag,
14072 severity,
14073 args
14074 );
14075 ✗ break;
14076 ✗ default:
14077 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14078 ✗ break;
14079 }
14080 ✗ }
14081
14082 #if FW_ENABLE_TEXT_LOGGING == 1
14083
14084 ✗ void FrameAccumulatorComponentBase::logTextOut_out(
14085 FwIndexType portNum,
14086 FwEventIdType id,
14087 Fw::Time& timeTag,
14088 const Fw::LogSeverity& severity,
14089 Fw::TextLogString& text
14090 ) const {
14091 ✗ FW_ASSERT(
14092 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
14093 static_cast<FwAssertArgType>(portNum),
14094 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
14095 );
14096 ✗ switch (portNum) {
14097 ✗ case 0:
14098 ✗ CdhCore::textLogger.TextLogger_handlerBase(
14099 0,
14100 id,
14101 timeTag,
14102 severity,
14103 text
14104 );
14105 ✗ break;
14106 ✗ default:
14107 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14108 ✗ break;
14109 }
14110 ✗ }
14111
14112 #endif
14113
14114 ✗ void FrameAccumulatorComponentBase::timeCaller_out(
14115 FwIndexType portNum,
14116 Fw::Time& time
14117 ) const {
14118 ✗ FW_ASSERT(
14119 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
14120 static_cast<FwAssertArgType>(portNum),
14121 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
14122 );
14123 ✗ switch (portNum) {
14124 ✗ case 0:
14125 ✗ Ref::posixTime.timeGetPort_handlerBase(
14126 0,
14127 time
14128 );
14129 ✗ break;
14130 ✗ default:
14131 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14132 ✗ break;
14133 }
14134 ✗ }
14135
14136 }
14137
14138 namespace Svc {
14139
14140 1 bool HealthComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const {
14141 1 FW_ASSERT(
14142 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
14143 static_cast<FwAssertArgType>(portNum),
14144 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
14145 );
14146 1 bool result = false;
14147
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
14148 1 case 0:
14149 1 result = true;
14150 1 break;
14151 ✗ default:
14152 ✗ break;
14153 }
14154 1 return result;
14155 }
14156
14157 ✗ bool HealthComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const {
14158 ✗ FW_ASSERT(
14159 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
14160 static_cast<FwAssertArgType>(portNum),
14161 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
14162 );
14163 ✗ bool result = false;
14164 ✗ switch (portNum) {
14165 ✗ case 0:
14166 ✗ result = true;
14167 ✗ break;
14168 ✗ default:
14169 ✗ break;
14170 }
14171 ✗ return result;
14172 }
14173
14174 ✗ bool HealthComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
14175 ✗ FW_ASSERT(
14176 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
14177 static_cast<FwAssertArgType>(portNum),
14178 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
14179 );
14180 ✗ bool result = false;
14181 ✗ switch (portNum) {
14182 ✗ case 0:
14183 ✗ result = true;
14184 ✗ break;
14185 ✗ default:
14186 ✗ break;
14187 }
14188 ✗ return result;
14189 }
14190
14191 #if FW_ENABLE_TEXT_LOGGING == 1
14192
14193 ✗ bool HealthComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
14194 ✗ FW_ASSERT(
14195 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
14196 static_cast<FwAssertArgType>(portNum),
14197 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
14198 );
14199 ✗ bool result = false;
14200 ✗ switch (portNum) {
14201 ✗ case 0:
14202 ✗ result = true;
14203 ✗ break;
14204 ✗ default:
14205 ✗ break;
14206 }
14207 ✗ return result;
14208 }
14209
14210 #endif
14211
14212 ✗ bool HealthComponentBase::isConnected_PingSend_OutputPort(FwIndexType portNum) const {
14213 ✗ FW_ASSERT(
14214 (0 <= portNum) && (portNum < NUM_PINGSEND_OUTPUT_PORTS),
14215 static_cast<FwAssertArgType>(portNum),
14216 static_cast<FwAssertArgType>(NUM_PINGSEND_OUTPUT_PORTS)
14217 );
14218 ✗ bool result = false;
14219 ✗ switch (portNum) {
14220 ✗ case 0:
14221 ✗ result = true;
14222 ✗ break;
14223 ✗ case 1:
14224 ✗ result = true;
14225 ✗ break;
14226 ✗ case 2:
14227 ✗ result = true;
14228 ✗ break;
14229 ✗ case 3:
14230 ✗ result = true;
14231 ✗ break;
14232 ✗ case 4:
14233 ✗ result = true;
14234 ✗ break;
14235 ✗ case 5:
14236 ✗ result = true;
14237 ✗ break;
14238 ✗ case 6:
14239 ✗ result = true;
14240 ✗ break;
14241 ✗ case 7:
14242 ✗ result = true;
14243 ✗ break;
14244 ✗ case 8:
14245 ✗ result = true;
14246 ✗ break;
14247 ✗ case 9:
14248 ✗ result = true;
14249 ✗ break;
14250 ✗ case 10:
14251 ✗ result = true;
14252 ✗ break;
14253 ✗ case 11:
14254 ✗ result = true;
14255 ✗ break;
14256 ✗ case 12:
14257 ✗ result = true;
14258 ✗ break;
14259 ✗ case 13:
14260 ✗ result = true;
14261 ✗ break;
14262 ✗ case 14:
14263 ✗ result = true;
14264 ✗ break;
14265 ✗ default:
14266 ✗ break;
14267 }
14268 ✗ return result;
14269 }
14270
14271 ✗ bool HealthComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
14272 ✗ FW_ASSERT(
14273 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
14274 static_cast<FwAssertArgType>(portNum),
14275 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
14276 );
14277 ✗ bool result = false;
14278 ✗ switch (portNum) {
14279 ✗ case 0:
14280 ✗ result = true;
14281 ✗ break;
14282 ✗ default:
14283 ✗ break;
14284 }
14285 ✗ return result;
14286 }
14287
14288 ✗ bool HealthComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const {
14289 ✗ FW_ASSERT(
14290 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
14291 static_cast<FwAssertArgType>(portNum),
14292 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
14293 );
14294 ✗ bool result = false;
14295 ✗ switch (portNum) {
14296 ✗ case 0:
14297 ✗ result = true;
14298 ✗ break;
14299 ✗ default:
14300 ✗ break;
14301 }
14302 ✗ return result;
14303 }
14304
14305 61 bool HealthComponentBase::isConnected_WdogStroke_OutputPort(FwIndexType portNum) const {
14306 61 FW_ASSERT(
14307 (0 <= portNum) && (portNum < NUM_WDOGSTROKE_OUTPUT_PORTS),
14308 static_cast<FwAssertArgType>(portNum),
14309 static_cast<FwAssertArgType>(NUM_WDOGSTROKE_OUTPUT_PORTS)
14310 );
14311 61 bool result = false;
14312 61 switch (portNum) {
14313 default:
14314 61 break;
14315 }
14316 61 return result;
14317 }
14318
14319 3 void HealthComponentBase::CmdReg_out(
14320 FwIndexType portNum,
14321 FwOpcodeType opCode
14322 ) const {
14323 3 FW_ASSERT(
14324 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
14325 static_cast<FwAssertArgType>(portNum),
14326 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
14327 );
14328
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
14329 3 case 0:
14330 3 CdhCore::cmdDisp.compCmdReg_handlerBase(
14331 2,
14332 opCode
14333 );
14334 3 break;
14335 ✗ default:
14336 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14337 ✗ break;
14338 }
14339 3 }
14340
14341 ✗ void HealthComponentBase::CmdStatus_out(
14342 FwIndexType portNum,
14343 FwOpcodeType opCode,
14344 U32 cmdSeq,
14345 const Fw::CmdResponse& response
14346 ) const {
14347 ✗ FW_ASSERT(
14348 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
14349 static_cast<FwAssertArgType>(portNum),
14350 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
14351 );
14352 ✗ switch (portNum) {
14353 ✗ case 0:
14354 ✗ CdhCore::cmdDisp.compCmdStat_handlerBase(
14355 0,
14356 opCode,
14357 cmdSeq,
14358 response
14359 );
14360 ✗ break;
14361 ✗ default:
14362 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14363 ✗ break;
14364 }
14365 ✗ }
14366
14367 ✗ void HealthComponentBase::Log_out(
14368 FwIndexType portNum,
14369 FwEventIdType id,
14370 Fw::Time& timeTag,
14371 const Fw::LogSeverity& severity,
14372 Fw::LogBuffer& args
14373 ) const {
14374 ✗ FW_ASSERT(
14375 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
14376 static_cast<FwAssertArgType>(portNum),
14377 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
14378 );
14379 ✗ switch (portNum) {
14380 ✗ case 0:
14381 ✗ CdhCore::events.LogRecv_handlerBase(
14382 0,
14383 id,
14384 timeTag,
14385 severity,
14386 args
14387 );
14388 ✗ break;
14389 ✗ default:
14390 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14391 ✗ break;
14392 }
14393 ✗ }
14394
14395 #if FW_ENABLE_TEXT_LOGGING == 1
14396
14397 ✗ void HealthComponentBase::LogText_out(
14398 FwIndexType portNum,
14399 FwEventIdType id,
14400 Fw::Time& timeTag,
14401 const Fw::LogSeverity& severity,
14402 Fw::TextLogString& text
14403 ) const {
14404 ✗ FW_ASSERT(
14405 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
14406 static_cast<FwAssertArgType>(portNum),
14407 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
14408 );
14409 ✗ switch (portNum) {
14410 ✗ case 0:
14411 ✗ CdhCore::textLogger.TextLogger_handlerBase(
14412 0,
14413 id,
14414 timeTag,
14415 severity,
14416 text
14417 );
14418 ✗ break;
14419 ✗ default:
14420 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14421 ✗ break;
14422 }
14423 ✗ }
14424
14425 #endif
14426
14427 915 void HealthComponentBase::PingSend_out(
14428 FwIndexType portNum,
14429 U32 key
14430 ) const {
14431 915 FW_ASSERT(
14432 (0 <= portNum) && (portNum < NUM_PINGSEND_OUTPUT_PORTS),
14433 static_cast<FwAssertArgType>(portNum),
14434 static_cast<FwAssertArgType>(NUM_PINGSEND_OUTPUT_PORTS)
14435 );
14436
15/16
✓ Branch 0 taken 61 times.
✓ Branch 1 taken 61 times.
✓ Branch 2 taken 61 times.
✓ Branch 3 taken 61 times.
✓ Branch 4 taken 61 times.
✓ Branch 5 taken 61 times.
✓ Branch 6 taken 61 times.
✓ Branch 7 taken 61 times.
✓ Branch 8 taken 61 times.
✓ Branch 9 taken 61 times.
✓ Branch 10 taken 61 times.
✓ Branch 11 taken 61 times.
✓ Branch 12 taken 61 times.
✓ Branch 13 taken 61 times.
✓ Branch 14 taken 61 times.
✗ Branch 15 not taken.
915 switch (portNum) {
14437 61 case 0:
14438 61 CdhCore::cmdDisp.pingIn_handlerBase(
14439 0,
14440 key
14441 );
14442 61 break;
14443 61 case 1:
14444 61 CdhCore::events.pingIn_handlerBase(
14445 0,
14446 key
14447 );
14448 61 break;
14449 61 case 2:
14450 61 CdhCore::tlmSend.pingIn_handlerBase(
14451 0,
14452 key
14453 );
14454 61 break;
14455 61 case 3:
14456 61 DataProducts::dpBufferAccumulator.pingIn_handlerBase(
14457 0,
14458 key
14459 );
14460 61 break;
14461 61 case 4:
14462 61 DataProducts::dpCat.pingIn_handlerBase(
14463 0,
14464 key
14465 );
14466 61 break;
14467 61 case 5:
14468 61 FileHandling::fileDownlink.pingIn_handlerBase(
14469 0,
14470 key
14471 );
14472 61 break;
14473 61 case 6:
14474 61 FileHandling::fileManager.pingIn_handlerBase(
14475 0,
14476 key
14477 );
14478 61 break;
14479 61 case 7:
14480 61 FileHandling::fileUplink.pingIn_handlerBase(
14481 0,
14482 key
14483 );
14484 61 break;
14485 61 case 8:
14486 61 FileHandling::prmDb.pingIn_handlerBase(
14487 0,
14488 key
14489 );
14490 61 break;
14491 61 case 9:
14492 61 Ref::blockDrv.PingIn_handlerBase(
14493 0,
14494 key
14495 );
14496 61 break;
14497 61 case 10:
14498 61 Ref::cmdSeq.pingIn_handlerBase(
14499 0,
14500 key
14501 );
14502 61 break;
14503 61 case 11:
14504 61 Ref::pingRcvr.PingIn_handlerBase(
14505 0,
14506 key
14507 );
14508 61 break;
14509 61 case 12:
14510 61 Ref::rateGroup1Comp.PingIn_handlerBase(
14511 0,
14512 key
14513 );
14514 61 break;
14515 61 case 13:
14516 61 Ref::rateGroup2Comp.PingIn_handlerBase(
14517 0,
14518 key
14519 );
14520 61 break;
14521 61 case 14:
14522 61 Ref::rateGroup3Comp.PingIn_handlerBase(
14523 0,
14524 key
14525 );
14526 61 break;
14527 ✗ default:
14528 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14529 ✗ break;
14530 }
14531 915 }
14532
14533 ✗ void HealthComponentBase::Time_out(
14534 FwIndexType portNum,
14535 Fw::Time& time
14536 ) const {
14537 ✗ FW_ASSERT(
14538 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
14539 static_cast<FwAssertArgType>(portNum),
14540 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
14541 );
14542 ✗ switch (portNum) {
14543 ✗ case 0:
14544 ✗ Ref::posixTime.timeGetPort_handlerBase(
14545 0,
14546 time
14547 );
14548 ✗ break;
14549 ✗ default:
14550 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14551 ✗ break;
14552 }
14553 ✗ }
14554
14555 ✗ void HealthComponentBase::Tlm_out(
14556 FwIndexType portNum,
14557 FwChanIdType id,
14558 Fw::Time& timeTag,
14559 Fw::TlmBuffer& val
14560 ) const {
14561 ✗ FW_ASSERT(
14562 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
14563 static_cast<FwAssertArgType>(portNum),
14564 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
14565 );
14566 ✗ switch (portNum) {
14567 ✗ case 0:
14568 ✗ CdhCore::tlmSend.TlmRecv_handlerBase(
14569 0,
14570 id,
14571 timeTag,
14572 val
14573 );
14574 ✗ break;
14575 ✗ default:
14576 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14577 ✗ break;
14578 }
14579 ✗ }
14580
14581 ✗ void HealthComponentBase::WdogStroke_out(
14582 FwIndexType portNum,
14583 U32 code
14584 ) const {
14585 ✗ FW_ASSERT(
14586 (0 <= portNum) && (portNum < NUM_WDOGSTROKE_OUTPUT_PORTS),
14587 static_cast<FwAssertArgType>(portNum),
14588 static_cast<FwAssertArgType>(NUM_WDOGSTROKE_OUTPUT_PORTS)
14589 );
14590 ✗ switch (portNum) {
14591 default:
14592 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14593 ✗ break;
14594 }
14595 ✗ }
14596
14597 }
14598
14599 namespace Svc {
14600
14601 ✗ bool LinuxTimerComponentBase::isConnected_CycleOut_OutputPort(FwIndexType portNum) const {
14602 ✗ FW_ASSERT(
14603 (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS),
14604 static_cast<FwAssertArgType>(portNum),
14605 static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS)
14606 );
14607 ✗ bool result = false;
14608 ✗ switch (portNum) {
14609 ✗ case 0:
14610 ✗ result = true;
14611 ✗ break;
14612 ✗ default:
14613 ✗ break;
14614 }
14615 ✗ return result;
14616 }
14617
14618 241 void LinuxTimerComponentBase::CycleOut_out(
14619 FwIndexType portNum,
14620 Os::RawTime& cycleStart
14621 ) const {
14622 241 FW_ASSERT(
14623 (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS),
14624 static_cast<FwAssertArgType>(portNum),
14625 static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS)
14626 );
14627
1/2
✓ Branch 0 taken 241 times.
✗ Branch 1 not taken.
241 switch (portNum) {
14628 241 case 0:
14629 241 Ref::rateGroupDriverComp.CycleIn_handlerBase(
14630 0,
14631 cycleStart
14632 );
14633 241 break;
14634 ✗ default:
14635 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14636 ✗ break;
14637 }
14638 241 }
14639
14640 }
14641
14642 namespace Svc {
14643
14644 1 bool PrmDbComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const {
14645 1 FW_ASSERT(
14646 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
14647 static_cast<FwAssertArgType>(portNum),
14648 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
14649 );
14650 1 bool result = false;
14651
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
14652 1 case 0:
14653 1 result = true;
14654 1 break;
14655 ✗ default:
14656 ✗ break;
14657 }
14658 1 return result;
14659 }
14660
14661 4 bool PrmDbComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const {
14662 4 FW_ASSERT(
14663 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
14664 static_cast<FwAssertArgType>(portNum),
14665 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
14666 );
14667 4 bool result = false;
14668
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
14669 4 case 0:
14670 4 result = true;
14671 4 break;
14672 ✗ default:
14673 ✗ break;
14674 }
14675 4 return result;
14676 }
14677
14678 15 bool PrmDbComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
14679 15 FW_ASSERT(
14680 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
14681 static_cast<FwAssertArgType>(portNum),
14682 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
14683 );
14684 15 bool result = false;
14685
1/2
✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
15 switch (portNum) {
14686 15 case 0:
14687 15 result = true;
14688 15 break;
14689 ✗ default:
14690 ✗ break;
14691 }
14692 15 return result;
14693 }
14694
14695 #if FW_ENABLE_TEXT_LOGGING == 1
14696
14697 15 bool PrmDbComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
14698 15 FW_ASSERT(
14699 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
14700 static_cast<FwAssertArgType>(portNum),
14701 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
14702 );
14703 15 bool result = false;
14704
1/2
✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
15 switch (portNum) {
14705 15 case 0:
14706 15 result = true;
14707 15 break;
14708 ✗ default:
14709 ✗ break;
14710 }
14711 15 return result;
14712 }
14713
14714 #endif
14715
14716 15 bool PrmDbComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
14717 15 FW_ASSERT(
14718 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
14719 static_cast<FwAssertArgType>(portNum),
14720 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
14721 );
14722 15 bool result = false;
14723
1/2
✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
15 switch (portNum) {
14724 15 case 0:
14725 15 result = true;
14726 15 break;
14727 ✗ default:
14728 ✗ break;
14729 }
14730 15 return result;
14731 }
14732
14733 ✗ bool PrmDbComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const {
14734 ✗ FW_ASSERT(
14735 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
14736 static_cast<FwAssertArgType>(portNum),
14737 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
14738 );
14739 ✗ bool result = false;
14740 ✗ switch (portNum) {
14741 ✗ case 0:
14742 ✗ result = true;
14743 ✗ break;
14744 ✗ default:
14745 ✗ break;
14746 }
14747 ✗ return result;
14748 }
14749
14750 3 void PrmDbComponentBase::CmdReg_out(
14751 FwIndexType portNum,
14752 FwOpcodeType opCode
14753 ) const {
14754 3 FW_ASSERT(
14755 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
14756 static_cast<FwAssertArgType>(portNum),
14757 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
14758 );
14759
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
14760 3 case 0:
14761 3 CdhCore::cmdDisp.compCmdReg_handlerBase(
14762 11,
14763 opCode
14764 );
14765 3 break;
14766 ✗ default:
14767 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14768 ✗ break;
14769 }
14770 3 }
14771
14772 4 void PrmDbComponentBase::CmdStatus_out(
14773 FwIndexType portNum,
14774 FwOpcodeType opCode,
14775 U32 cmdSeq,
14776 const Fw::CmdResponse& response
14777 ) const {
14778 4 FW_ASSERT(
14779 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
14780 static_cast<FwAssertArgType>(portNum),
14781 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
14782 );
14783
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
14784 4 case 0:
14785 4 CdhCore::cmdDisp.compCmdStat_handlerBase(
14786 0,
14787 opCode,
14788 cmdSeq,
14789 response
14790 );
14791 4 break;
14792 ✗ default:
14793 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14794 ✗ break;
14795 }
14796 4 }
14797
14798 15 void PrmDbComponentBase::Log_out(
14799 FwIndexType portNum,
14800 FwEventIdType id,
14801 Fw::Time& timeTag,
14802 const Fw::LogSeverity& severity,
14803 Fw::LogBuffer& args
14804 ) const {
14805 15 FW_ASSERT(
14806 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
14807 static_cast<FwAssertArgType>(portNum),
14808 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
14809 );
14810
1/2
✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
15 switch (portNum) {
14811 15 case 0:
14812 15 CdhCore::events.LogRecv_handlerBase(
14813 0,
14814 id,
14815 timeTag,
14816 severity,
14817 args
14818 );
14819 15 break;
14820 ✗ default:
14821 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14822 ✗ break;
14823 }
14824 15 }
14825
14826 #if FW_ENABLE_TEXT_LOGGING == 1
14827
14828 15 void PrmDbComponentBase::LogText_out(
14829 FwIndexType portNum,
14830 FwEventIdType id,
14831 Fw::Time& timeTag,
14832 const Fw::LogSeverity& severity,
14833 Fw::TextLogString& text
14834 ) const {
14835 15 FW_ASSERT(
14836 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
14837 static_cast<FwAssertArgType>(portNum),
14838 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
14839 );
14840
1/2
✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
15 switch (portNum) {
14841 15 case 0:
14842 15 CdhCore::textLogger.TextLogger_handlerBase(
14843 0,
14844 id,
14845 timeTag,
14846 severity,
14847 text
14848 );
14849 15 break;
14850 ✗ default:
14851 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14852 ✗ break;
14853 }
14854 15 }
14855
14856 #endif
14857
14858 15 void PrmDbComponentBase::Time_out(
14859 FwIndexType portNum,
14860 Fw::Time& time
14861 ) const {
14862 15 FW_ASSERT(
14863 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
14864 static_cast<FwAssertArgType>(portNum),
14865 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
14866 );
14867
1/2
✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
15 switch (portNum) {
14868 15 case 0:
14869 15 Ref::posixTime.timeGetPort_handlerBase(
14870 0,
14871 time
14872 );
14873 15 break;
14874 ✗ default:
14875 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14876 ✗ break;
14877 }
14878 15 }
14879
14880 61 void PrmDbComponentBase::pingOut_out(
14881 FwIndexType portNum,
14882 U32 key
14883 ) const {
14884 61 FW_ASSERT(
14885 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
14886 static_cast<FwAssertArgType>(portNum),
14887 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
14888 );
14889
1/2
✓ Branch 0 taken 61 times.
✗ Branch 1 not taken.
61 switch (portNum) {
14890 61 case 0:
14891 61 CdhCore::health.PingReturn_handlerBase(
14892 8,
14893 key
14894 );
14895 61 break;
14896 ✗ default:
14897 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14898 ✗ break;
14899 }
14900 61 }
14901
14902 }
14903
14904 namespace Svc {
14905
14906 723 bool RateGroupDriverComponentBase::isConnected_CycleOut_OutputPort(FwIndexType portNum) const {
14907 723 FW_ASSERT(
14908 (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS),
14909 static_cast<FwAssertArgType>(portNum),
14910 static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS)
14911 );
14912 723 bool result = false;
14913
3/4
✓ Branch 0 taken 241 times.
✓ Branch 1 taken 241 times.
✓ Branch 2 taken 241 times.
✗ Branch 3 not taken.
723 switch (portNum) {
14914 241 case 0:
14915 241 result = true;
14916 241 break;
14917 241 case 1:
14918 241 result = true;
14919 241 break;
14920 241 case 2:
14921 241 result = true;
14922 241 break;
14923 ✗ default:
14924 ✗ break;
14925 }
14926 723 return result;
14927 }
14928
14929 423 void RateGroupDriverComponentBase::CycleOut_out(
14930 FwIndexType portNum,
14931 Os::RawTime& cycleStart
14932 ) const {
14933 423 FW_ASSERT(
14934 (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS),
14935 static_cast<FwAssertArgType>(portNum),
14936 static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS)
14937 );
14938
3/4
✓ Branch 0 taken 241 times.
✓ Branch 1 taken 121 times.
✓ Branch 2 taken 61 times.
✗ Branch 3 not taken.
423 switch (portNum) {
14939 241 case 0:
14940 241 Ref::rateGroup1Comp.CycleIn_handlerBase(
14941 0,
14942 cycleStart
14943 );
14944 241 break;
14945 121 case 1:
14946 121 Ref::rateGroup2Comp.CycleIn_handlerBase(
14947 0,
14948 cycleStart
14949 );
14950 121 break;
14951 61 case 2:
14952 61 Ref::rateGroup3Comp.CycleIn_handlerBase(
14953 0,
14954 cycleStart
14955 );
14956 61 break;
14957 ✗ default:
14958 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14959 ✗ break;
14960 }
14961 423 }
14962
14963 }
14964
14965 namespace Svc {
14966
14967 1 bool SystemResourcesComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const {
14968 1 FW_ASSERT(
14969 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
14970 static_cast<FwAssertArgType>(portNum),
14971 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
14972 );
14973 1 bool result = false;
14974
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
14975 1 case 0:
14976 1 result = true;
14977 1 break;
14978 ✗ default:
14979 ✗ break;
14980 }
14981 1 return result;
14982 }
14983
14984 ✗ bool SystemResourcesComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const {
14985 ✗ FW_ASSERT(
14986 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
14987 static_cast<FwAssertArgType>(portNum),
14988 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
14989 );
14990 ✗ bool result = false;
14991 ✗ switch (portNum) {
14992 ✗ case 0:
14993 ✗ result = true;
14994 ✗ break;
14995 ✗ default:
14996 ✗ break;
14997 }
14998 ✗ return result;
14999 }
15000
15001 ✗ bool SystemResourcesComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
15002 ✗ FW_ASSERT(
15003 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
15004 static_cast<FwAssertArgType>(portNum),
15005 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
15006 );
15007 ✗ bool result = false;
15008 ✗ switch (portNum) {
15009 ✗ case 0:
15010 ✗ result = true;
15011 ✗ break;
15012 ✗ default:
15013 ✗ break;
15014 }
15015 ✗ return result;
15016 }
15017
15018 #if FW_ENABLE_TEXT_LOGGING == 1
15019
15020 ✗ bool SystemResourcesComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
15021 ✗ FW_ASSERT(
15022 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
15023 static_cast<FwAssertArgType>(portNum),
15024 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
15025 );
15026 ✗ bool result = false;
15027 ✗ switch (portNum) {
15028 ✗ case 0:
15029 ✗ result = true;
15030 ✗ break;
15031 ✗ default:
15032 ✗ break;
15033 }
15034 ✗ return result;
15035 }
15036
15037 #endif
15038
15039 2169 bool SystemResourcesComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
15040 2169 FW_ASSERT(
15041 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
15042 static_cast<FwAssertArgType>(portNum),
15043 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
15044 );
15045 2169 bool result = false;
15046
1/2
✓ Branch 0 taken 2169 times.
✗ Branch 1 not taken.
2169 switch (portNum) {
15047 2169 case 0:
15048 2169 result = true;
15049 2169 break;
15050 ✗ default:
15051 ✗ break;
15052 }
15053 2169 return result;
15054 }
15055
15056 4338 bool SystemResourcesComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const {
15057 4338 FW_ASSERT(
15058 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
15059 static_cast<FwAssertArgType>(portNum),
15060 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
15061 );
15062 4338 bool result = false;
15063
1/2
✓ Branch 0 taken 4338 times.
✗ Branch 1 not taken.
4338 switch (portNum) {
15064 4338 case 0:
15065 4338 result = true;
15066 4338 break;
15067 ✗ default:
15068 ✗ break;
15069 }
15070 4338 return result;
15071 }
15072
15073 1 void SystemResourcesComponentBase::CmdReg_out(
15074 FwIndexType portNum,
15075 FwOpcodeType opCode
15076 ) const {
15077 1 FW_ASSERT(
15078 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
15079 static_cast<FwAssertArgType>(portNum),
15080 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
15081 );
15082
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
15083 1 case 0:
15084 1 CdhCore::cmdDisp.compCmdReg_handlerBase(
15085 22,
15086 opCode
15087 );
15088 1 break;
15089 ✗ default:
15090 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15091 ✗ break;
15092 }
15093 1 }
15094
15095 ✗ void SystemResourcesComponentBase::CmdStatus_out(
15096 FwIndexType portNum,
15097 FwOpcodeType opCode,
15098 U32 cmdSeq,
15099 const Fw::CmdResponse& response
15100 ) const {
15101 ✗ FW_ASSERT(
15102 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
15103 static_cast<FwAssertArgType>(portNum),
15104 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
15105 );
15106 ✗ switch (portNum) {
15107 ✗ case 0:
15108 ✗ CdhCore::cmdDisp.compCmdStat_handlerBase(
15109 0,
15110 opCode,
15111 cmdSeq,
15112 response
15113 );
15114 ✗ break;
15115 ✗ default:
15116 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15117 ✗ break;
15118 }
15119 ✗ }
15120
15121 2169 void SystemResourcesComponentBase::Time_out(
15122 FwIndexType portNum,
15123 Fw::Time& time
15124 ) const {
15125 2169 FW_ASSERT(
15126 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
15127 static_cast<FwAssertArgType>(portNum),
15128 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
15129 );
15130
1/2
✓ Branch 0 taken 2169 times.
✗ Branch 1 not taken.
2169 switch (portNum) {
15131 2169 case 0:
15132 2169 Ref::posixTime.timeGetPort_handlerBase(
15133 0,
15134 time
15135 );
15136 2169 break;
15137 ✗ default:
15138 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15139 ✗ break;
15140 }
15141 2169 }
15142
15143 2169 void SystemResourcesComponentBase::Tlm_out(
15144 FwIndexType portNum,
15145 FwChanIdType id,
15146 Fw::Time& timeTag,
15147 Fw::TlmBuffer& val
15148 ) const {
15149 2169 FW_ASSERT(
15150 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
15151 static_cast<FwAssertArgType>(portNum),
15152 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
15153 );
15154
1/2
✓ Branch 0 taken 2169 times.
✗ Branch 1 not taken.
2169 switch (portNum) {
15155 2169 case 0:
15156 2169 CdhCore::tlmSend.TlmRecv_handlerBase(
15157 0,
15158 id,
15159 timeTag,
15160 val
15161 );
15162 2169 break;
15163 ✗ default:
15164 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15165 ✗ break;
15166 }
15167 2169 }
15168
15169 }
15170
15171 namespace Svc {
15172
15173 241 bool TlmChanComponentBase::isConnected_PktSend_OutputPort(FwIndexType portNum) const {
15174 241 FW_ASSERT(
15175 (0 <= portNum) && (portNum < NUM_PKTSEND_OUTPUT_PORTS),
15176 static_cast<FwAssertArgType>(portNum),
15177 static_cast<FwAssertArgType>(NUM_PKTSEND_OUTPUT_PORTS)
15178 );
15179 241 bool result = false;
15180
1/2
✓ Branch 0 taken 241 times.
✗ Branch 1 not taken.
241 switch (portNum) {
15181 241 case 0:
15182 241 result = true;
15183 241 break;
15184 ✗ default:
15185 ✗ break;
15186 }
15187 241 return result;
15188 }
15189
15190 ✗ bool TlmChanComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const {
15191 ✗ FW_ASSERT(
15192 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
15193 static_cast<FwAssertArgType>(portNum),
15194 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
15195 );
15196 ✗ bool result = false;
15197 ✗ switch (portNum) {
15198 ✗ case 0:
15199 ✗ result = true;
15200 ✗ break;
15201 ✗ default:
15202 ✗ break;
15203 }
15204 ✗ return result;
15205 }
15206
15207 #if FW_ENABLE_TEXT_LOGGING == 1
15208
15209 ✗ bool TlmChanComponentBase::isConnected_eventOutText_OutputPort(FwIndexType portNum) const {
15210 ✗ FW_ASSERT(
15211 (0 <= portNum) && (portNum < NUM_EVENTOUTTEXT_OUTPUT_PORTS),
15212 static_cast<FwAssertArgType>(portNum),
15213 static_cast<FwAssertArgType>(NUM_EVENTOUTTEXT_OUTPUT_PORTS)
15214 );
15215 ✗ bool result = false;
15216 ✗ switch (portNum) {
15217 ✗ case 0:
15218 ✗ result = true;
15219 ✗ break;
15220 ✗ default:
15221 ✗ break;
15222 }
15223 ✗ return result;
15224 }
15225
15226 #endif
15227
15228 ✗ bool TlmChanComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const {
15229 ✗ FW_ASSERT(
15230 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
15231 static_cast<FwAssertArgType>(portNum),
15232 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
15233 );
15234 ✗ bool result = false;
15235 ✗ switch (portNum) {
15236 ✗ case 0:
15237 ✗ result = true;
15238 ✗ break;
15239 ✗ default:
15240 ✗ break;
15241 }
15242 ✗ return result;
15243 }
15244
15245 ✗ bool TlmChanComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
15246 ✗ FW_ASSERT(
15247 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
15248 static_cast<FwAssertArgType>(portNum),
15249 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
15250 );
15251 ✗ bool result = false;
15252 ✗ switch (portNum) {
15253 ✗ case 0:
15254 ✗ result = true;
15255 ✗ break;
15256 ✗ default:
15257 ✗ break;
15258 }
15259 ✗ return result;
15260 }
15261
15262 239 void TlmChanComponentBase::PktSend_out(
15263 FwIndexType portNum,
15264 Fw::ComBuffer& data,
15265 U32 context
15266 ) const {
15267 239 FW_ASSERT(
15268 (0 <= portNum) && (portNum < NUM_PKTSEND_OUTPUT_PORTS),
15269 static_cast<FwAssertArgType>(portNum),
15270 static_cast<FwAssertArgType>(NUM_PKTSEND_OUTPUT_PORTS)
15271 );
15272
1/2
✓ Branch 0 taken 239 times.
✗ Branch 1 not taken.
239 switch (portNum) {
15273 239 case 0:
15274 239 ComCcsds::comQueue.comPacketQueueIn_handlerBase(
15275 1,
15276 data,
15277 context
15278 );
15279 239 break;
15280 ✗ default:
15281 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15282 ✗ break;
15283 }
15284 239 }
15285
15286 ✗ void TlmChanComponentBase::eventOut_out(
15287 FwIndexType portNum,
15288 FwEventIdType id,
15289 Fw::Time& timeTag,
15290 const Fw::LogSeverity& severity,
15291 Fw::LogBuffer& args
15292 ) const {
15293 ✗ FW_ASSERT(
15294 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
15295 static_cast<FwAssertArgType>(portNum),
15296 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
15297 );
15298 ✗ switch (portNum) {
15299 ✗ case 0:
15300 ✗ CdhCore::events.LogRecv_handlerBase(
15301 0,
15302 id,
15303 timeTag,
15304 severity,
15305 args
15306 );
15307 ✗ break;
15308 ✗ default:
15309 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15310 ✗ break;
15311 }
15312 ✗ }
15313
15314 #if FW_ENABLE_TEXT_LOGGING == 1
15315
15316 ✗ void TlmChanComponentBase::eventOutText_out(
15317 FwIndexType portNum,
15318 FwEventIdType id,
15319 Fw::Time& timeTag,
15320 const Fw::LogSeverity& severity,
15321 Fw::TextLogString& text
15322 ) const {
15323 ✗ FW_ASSERT(
15324 (0 <= portNum) && (portNum < NUM_EVENTOUTTEXT_OUTPUT_PORTS),
15325 static_cast<FwAssertArgType>(portNum),
15326 static_cast<FwAssertArgType>(NUM_EVENTOUTTEXT_OUTPUT_PORTS)
15327 );
15328 ✗ switch (portNum) {
15329 ✗ case 0:
15330 ✗ CdhCore::textLogger.TextLogger_handlerBase(
15331 0,
15332 id,
15333 timeTag,
15334 severity,
15335 text
15336 );
15337 ✗ break;
15338 ✗ default:
15339 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15340 ✗ break;
15341 }
15342 ✗ }
15343
15344 #endif
15345
15346 61 void TlmChanComponentBase::pingOut_out(
15347 FwIndexType portNum,
15348 U32 key
15349 ) const {
15350 61 FW_ASSERT(
15351 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
15352 static_cast<FwAssertArgType>(portNum),
15353 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
15354 );
15355
1/2
✓ Branch 0 taken 61 times.
✗ Branch 1 not taken.
61 switch (portNum) {
15356 61 case 0:
15357 61 CdhCore::health.PingReturn_handlerBase(
15358 2,
15359 key
15360 );
15361 61 break;
15362 ✗ default:
15363 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15364 ✗ break;
15365 }
15366 61 }
15367
15368 ✗ void TlmChanComponentBase::timeCaller_out(
15369 FwIndexType portNum,
15370 Fw::Time& time
15371 ) const {
15372 ✗ FW_ASSERT(
15373 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
15374 static_cast<FwAssertArgType>(portNum),
15375 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
15376 );
15377 ✗ switch (portNum) {
15378 ✗ case 0:
15379 ✗ Ref::posixTime.timeGetPort_handlerBase(
15380 0,
15381 time
15382 );
15383 ✗ break;
15384 ✗ default:
15385 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15386 ✗ break;
15387 }
15388 ✗ }
15389
15390 }
15391
15392 namespace Svc {
15393
15394 1 bool VersionComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const {
15395 1 FW_ASSERT(
15396 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
15397 static_cast<FwAssertArgType>(portNum),
15398 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
15399 );
15400 1 bool result = false;
15401
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
15402 1 case 0:
15403 1 result = true;
15404 1 break;
15405 ✗ default:
15406 ✗ break;
15407 }
15408 1 return result;
15409 }
15410
15411 ✗ bool VersionComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const {
15412 ✗ FW_ASSERT(
15413 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
15414 static_cast<FwAssertArgType>(portNum),
15415 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
15416 );
15417 ✗ bool result = false;
15418 ✗ switch (portNum) {
15419 ✗ case 0:
15420 ✗ result = true;
15421 ✗ break;
15422 ✗ default:
15423 ✗ break;
15424 }
15425 ✗ return result;
15426 }
15427
15428 2 bool VersionComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
15429 2 FW_ASSERT(
15430 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
15431 static_cast<FwAssertArgType>(portNum),
15432 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
15433 );
15434 2 bool result = false;
15435
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
15436 2 case 0:
15437 2 result = true;
15438 2 break;
15439 ✗ default:
15440 ✗ break;
15441 }
15442 2 return result;
15443 }
15444
15445 #if FW_ENABLE_TEXT_LOGGING == 1
15446
15447 2 bool VersionComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
15448 2 FW_ASSERT(
15449 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
15450 static_cast<FwAssertArgType>(portNum),
15451 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
15452 );
15453 2 bool result = false;
15454
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
15455 2 case 0:
15456 2 result = true;
15457 2 break;
15458 ✗ default:
15459 ✗ break;
15460 }
15461 2 return result;
15462 }
15463
15464 #endif
15465
15466 4 bool VersionComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
15467 4 FW_ASSERT(
15468 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
15469 static_cast<FwAssertArgType>(portNum),
15470 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
15471 );
15472 4 bool result = false;
15473
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
15474 4 case 0:
15475 4 result = true;
15476 4 break;
15477 ✗ default:
15478 ✗ break;
15479 }
15480 4 return result;
15481 }
15482
15483 4 bool VersionComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
15484 4 FW_ASSERT(
15485 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
15486 static_cast<FwAssertArgType>(portNum),
15487 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
15488 );
15489 4 bool result = false;
15490
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
15491 4 case 0:
15492 4 result = true;
15493 4 break;
15494 ✗ default:
15495 ✗ break;
15496 }
15497 4 return result;
15498 }
15499
15500 2 void VersionComponentBase::cmdRegOut_out(
15501 FwIndexType portNum,
15502 FwOpcodeType opCode
15503 ) const {
15504 2 FW_ASSERT(
15505 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
15506 static_cast<FwAssertArgType>(portNum),
15507 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
15508 );
15509
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
15510 2 case 0:
15511 2 CdhCore::cmdDisp.compCmdReg_handlerBase(
15512 3,
15513 opCode
15514 );
15515 2 break;
15516 ✗ default:
15517 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15518 ✗ break;
15519 }
15520 2 }
15521
15522 ✗ void VersionComponentBase::cmdResponseOut_out(
15523 FwIndexType portNum,
15524 FwOpcodeType opCode,
15525 U32 cmdSeq,
15526 const Fw::CmdResponse& response
15527 ) const {
15528 ✗ FW_ASSERT(
15529 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
15530 static_cast<FwAssertArgType>(portNum),
15531 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
15532 );
15533 ✗ switch (portNum) {
15534 ✗ case 0:
15535 ✗ CdhCore::cmdDisp.compCmdStat_handlerBase(
15536 0,
15537 opCode,
15538 cmdSeq,
15539 response
15540 );
15541 ✗ break;
15542 ✗ default:
15543 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15544 ✗ break;
15545 }
15546 ✗ }
15547
15548 2 void VersionComponentBase::logOut_out(
15549 FwIndexType portNum,
15550 FwEventIdType id,
15551 Fw::Time& timeTag,
15552 const Fw::LogSeverity& severity,
15553 Fw::LogBuffer& args
15554 ) const {
15555 2 FW_ASSERT(
15556 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
15557 static_cast<FwAssertArgType>(portNum),
15558 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
15559 );
15560
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
15561 2 case 0:
15562 2 CdhCore::events.LogRecv_handlerBase(
15563 0,
15564 id,
15565 timeTag,
15566 severity,
15567 args
15568 );
15569 2 break;
15570 ✗ default:
15571 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15572 ✗ break;
15573 }
15574 2 }
15575
15576 #if FW_ENABLE_TEXT_LOGGING == 1
15577
15578 2 void VersionComponentBase::logTextOut_out(
15579 FwIndexType portNum,
15580 FwEventIdType id,
15581 Fw::Time& timeTag,
15582 const Fw::LogSeverity& severity,
15583 Fw::TextLogString& text
15584 ) const {
15585 2 FW_ASSERT(
15586 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
15587 static_cast<FwAssertArgType>(portNum),
15588 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
15589 );
15590
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
15591 2 case 0:
15592 2 CdhCore::textLogger.TextLogger_handlerBase(
15593 0,
15594 id,
15595 timeTag,
15596 severity,
15597 text
15598 );
15599 2 break;
15600 ✗ default:
15601 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15602 ✗ break;
15603 }
15604 2 }
15605
15606 #endif
15607
15608 4 void VersionComponentBase::timeCaller_out(
15609 FwIndexType portNum,
15610 Fw::Time& time
15611 ) const {
15612 4 FW_ASSERT(
15613 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
15614 static_cast<FwAssertArgType>(portNum),
15615 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
15616 );
15617
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
15618 4 case 0:
15619 4 Ref::posixTime.timeGetPort_handlerBase(
15620 0,
15621 time
15622 );
15623 4 break;
15624 ✗ default:
15625 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15626 ✗ break;
15627 }
15628 4 }
15629
15630 2 void VersionComponentBase::tlmOut_out(
15631 FwIndexType portNum,
15632 FwChanIdType id,
15633 Fw::Time& timeTag,
15634 Fw::TlmBuffer& val
15635 ) const {
15636 2 FW_ASSERT(
15637 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
15638 static_cast<FwAssertArgType>(portNum),
15639 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
15640 );
15641
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
15642 2 case 0:
15643 2 CdhCore::tlmSend.TlmRecv_handlerBase(
15644 0,
15645 id,
15646 timeTag,
15647 val
15648 );
15649 2 break;
15650 ✗ default:
15651 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15652 ✗ break;
15653 }
15654 2 }
15655
15656 }
15657
15658 namespace Svc {
15659
15660 ✗ bool WasmSequencerComponentBase::isConnected_cmdOut_OutputPort(FwIndexType portNum) const {
15661 ✗ FW_ASSERT(
15662 (0 <= portNum) && (portNum < NUM_CMDOUT_OUTPUT_PORTS),
15663 static_cast<FwAssertArgType>(portNum),
15664 static_cast<FwAssertArgType>(NUM_CMDOUT_OUTPUT_PORTS)
15665 );
15666 ✗ bool result = false;
15667 ✗ switch (portNum) {
15668 ✗ case 0:
15669 ✗ result = true;
15670 ✗ break;
15671 ✗ default:
15672 ✗ break;
15673 }
15674 ✗ return result;
15675 }
15676
15677 1 bool WasmSequencerComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const {
15678 1 FW_ASSERT(
15679 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
15680 static_cast<FwAssertArgType>(portNum),
15681 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
15682 );
15683 1 bool result = false;
15684
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
15685 1 case 0:
15686 1 result = true;
15687 1 break;
15688 ✗ default:
15689 ✗ break;
15690 }
15691 1 return result;
15692 }
15693
15694 ✗ bool WasmSequencerComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const {
15695 ✗ FW_ASSERT(
15696 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
15697 static_cast<FwAssertArgType>(portNum),
15698 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
15699 );
15700 ✗ bool result = false;
15701 ✗ switch (portNum) {
15702 ✗ case 0:
15703 ✗ result = true;
15704 ✗ break;
15705 ✗ default:
15706 ✗ break;
15707 }
15708 ✗ return result;
15709 }
15710
15711 ✗ bool WasmSequencerComponentBase::isConnected_getParam_OutputPort(FwIndexType portNum) const {
15712 ✗ FW_ASSERT(
15713 (0 <= portNum) && (portNum < NUM_GETPARAM_OUTPUT_PORTS),
15714 static_cast<FwAssertArgType>(portNum),
15715 static_cast<FwAssertArgType>(NUM_GETPARAM_OUTPUT_PORTS)
15716 );
15717 ✗ bool result = false;
15718 ✗ switch (portNum) {
15719 ✗ case 0:
15720 ✗ result = true;
15721 ✗ break;
15722 ✗ default:
15723 ✗ break;
15724 }
15725 ✗ return result;
15726 }
15727
15728 ✗ bool WasmSequencerComponentBase::isConnected_getTlmChan_OutputPort(FwIndexType portNum) const {
15729 ✗ FW_ASSERT(
15730 (0 <= portNum) && (portNum < NUM_GETTLMCHAN_OUTPUT_PORTS),
15731 static_cast<FwAssertArgType>(portNum),
15732 static_cast<FwAssertArgType>(NUM_GETTLMCHAN_OUTPUT_PORTS)
15733 );
15734 ✗ bool result = false;
15735 ✗ switch (portNum) {
15736 ✗ case 0:
15737 ✗ result = true;
15738 ✗ break;
15739 ✗ default:
15740 ✗ break;
15741 }
15742 ✗ return result;
15743 }
15744
15745 1 bool WasmSequencerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
15746 1 FW_ASSERT(
15747 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
15748 static_cast<FwAssertArgType>(portNum),
15749 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
15750 );
15751 1 bool result = false;
15752
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
15753 1 case 0:
15754 1 result = true;
15755 1 break;
15756 ✗ default:
15757 ✗ break;
15758 }
15759 1 return result;
15760 }
15761
15762 #if FW_ENABLE_TEXT_LOGGING == 1
15763
15764 1 bool WasmSequencerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
15765 1 FW_ASSERT(
15766 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
15767 static_cast<FwAssertArgType>(portNum),
15768 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
15769 );
15770 1 bool result = false;
15771
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
15772 1 case 0:
15773 1 result = true;
15774 1 break;
15775 ✗ default:
15776 ✗ break;
15777 }
15778 1 return result;
15779 }
15780
15781 #endif
15782
15783 1 bool WasmSequencerComponentBase::isConnected_prmGet_OutputPort(FwIndexType portNum) const {
15784 1 FW_ASSERT(
15785 (0 <= portNum) && (portNum < NUM_PRMGET_OUTPUT_PORTS),
15786 static_cast<FwAssertArgType>(portNum),
15787 static_cast<FwAssertArgType>(NUM_PRMGET_OUTPUT_PORTS)
15788 );
15789 1 bool result = false;
15790
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
15791 1 case 0:
15792 1 result = true;
15793 1 break;
15794 ✗ default:
15795 ✗ break;
15796 }
15797 1 return result;
15798 }
15799
15800 ✗ bool WasmSequencerComponentBase::isConnected_prmSet_OutputPort(FwIndexType portNum) const {
15801 ✗ FW_ASSERT(
15802 (0 <= portNum) && (portNum < NUM_PRMSET_OUTPUT_PORTS),
15803 static_cast<FwAssertArgType>(portNum),
15804 static_cast<FwAssertArgType>(NUM_PRMSET_OUTPUT_PORTS)
15805 );
15806 ✗ bool result = false;
15807 ✗ switch (portNum) {
15808 ✗ case 0:
15809 ✗ result = true;
15810 ✗ break;
15811 ✗ default:
15812 ✗ break;
15813 }
15814 ✗ return result;
15815 }
15816
15817 ✗ bool WasmSequencerComponentBase::isConnected_seqDoneOut_OutputPort(FwIndexType portNum) const {
15818 ✗ FW_ASSERT(
15819 (0 <= portNum) && (portNum < NUM_SEQDONEOUT_OUTPUT_PORTS),
15820 static_cast<FwAssertArgType>(portNum),
15821 static_cast<FwAssertArgType>(NUM_SEQDONEOUT_OUTPUT_PORTS)
15822 );
15823 ✗ bool result = false;
15824 ✗ switch (portNum) {
15825 default:
15826 ✗ break;
15827 }
15828 ✗ return result;
15829 }
15830
15831 ✗ bool WasmSequencerComponentBase::isConnected_seqStartOut_OutputPort(FwIndexType portNum) const {
15832 ✗ FW_ASSERT(
15833 (0 <= portNum) && (portNum < NUM_SEQSTARTOUT_OUTPUT_PORTS),
15834 static_cast<FwAssertArgType>(portNum),
15835 static_cast<FwAssertArgType>(NUM_SEQSTARTOUT_OUTPUT_PORTS)
15836 );
15837 ✗ bool result = false;
15838 ✗ switch (portNum) {
15839 default:
15840 ✗ break;
15841 }
15842 ✗ return result;
15843 }
15844
15845 ✗ bool WasmSequencerComponentBase::isConnected_serialOut_OutputPort(FwIndexType portNum) const {
15846 ✗ FW_ASSERT(
15847 (0 <= portNum) && (portNum < NUM_SERIALOUT_OUTPUT_PORTS),
15848 static_cast<FwAssertArgType>(portNum),
15849 static_cast<FwAssertArgType>(NUM_SERIALOUT_OUTPUT_PORTS)
15850 );
15851 ✗ bool result = false;
15852 ✗ switch (portNum) {
15853 default:
15854 ✗ break;
15855 }
15856 ✗ return result;
15857 }
15858
15859 131 bool WasmSequencerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
15860 131 FW_ASSERT(
15861 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
15862 static_cast<FwAssertArgType>(portNum),
15863 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
15864 );
15865 131 bool result = false;
15866
1/2
✓ Branch 0 taken 131 times.
✗ Branch 1 not taken.
131 switch (portNum) {
15867 131 case 0:
15868 131 result = true;
15869 131 break;
15870 ✗ default:
15871 ✗ break;
15872 }
15873 131 return result;
15874 }
15875
15876 18 bool WasmSequencerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
15877 18 FW_ASSERT(
15878 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
15879 static_cast<FwAssertArgType>(portNum),
15880 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
15881 );
15882 18 bool result = false;
15883
1/2
✓ Branch 0 taken 18 times.
✗ Branch 1 not taken.
18 switch (portNum) {
15884 18 case 0:
15885 18 result = true;
15886 18 break;
15887 ✗ default:
15888 ✗ break;
15889 }
15890 18 return result;
15891 }
15892
15893 ✗ void WasmSequencerComponentBase::cmdOut_out(
15894 FwIndexType portNum,
15895 Fw::ComBuffer& data,
15896 U32 context
15897 ) const {
15898 ✗ FW_ASSERT(
15899 (0 <= portNum) && (portNum < NUM_CMDOUT_OUTPUT_PORTS),
15900 static_cast<FwAssertArgType>(portNum),
15901 static_cast<FwAssertArgType>(NUM_CMDOUT_OUTPUT_PORTS)
15902 );
15903 ✗ switch (portNum) {
15904 ✗ case 0:
15905 ✗ CdhCore::cmdDisp.seqCmdBuff_handlerBase(
15906 2,
15907 data,
15908 context
15909 );
15910 ✗ break;
15911 ✗ default:
15912 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15913 ✗ break;
15914 }
15915 ✗ }
15916
15917 18 void WasmSequencerComponentBase::cmdRegOut_out(
15918 FwIndexType portNum,
15919 FwOpcodeType opCode
15920 ) const {
15921 18 FW_ASSERT(
15922 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
15923 static_cast<FwAssertArgType>(portNum),
15924 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
15925 );
15926
1/2
✓ Branch 0 taken 18 times.
✗ Branch 1 not taken.
18 switch (portNum) {
15927 18 case 0:
15928 18 CdhCore::cmdDisp.compCmdReg_handlerBase(
15929 24,
15930 opCode
15931 );
15932 18 break;
15933 ✗ default:
15934 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15935 ✗ break;
15936 }
15937 18 }
15938
15939 ✗ void WasmSequencerComponentBase::cmdResponseOut_out(
15940 FwIndexType portNum,
15941 FwOpcodeType opCode,
15942 U32 cmdSeq,
15943 const Fw::CmdResponse& response
15944 ) const {
15945 ✗ FW_ASSERT(
15946 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
15947 static_cast<FwAssertArgType>(portNum),
15948 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
15949 );
15950 ✗ switch (portNum) {
15951 ✗ case 0:
15952 ✗ CdhCore::cmdDisp.compCmdStat_handlerBase(
15953 0,
15954 opCode,
15955 cmdSeq,
15956 response
15957 );
15958 ✗ break;
15959 ✗ default:
15960 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15961 ✗ break;
15962 }
15963 ✗ }
15964
15965 ✗ Fw::ParamValid WasmSequencerComponentBase::getParam_out(
15966 FwIndexType portNum,
15967 FwPrmIdType id,
15968 Fw::ParamBuffer& val
15969 ) const {
15970 ✗ FW_ASSERT(
15971 (0 <= portNum) && (portNum < NUM_GETPARAM_OUTPUT_PORTS),
15972 static_cast<FwAssertArgType>(portNum),
15973 static_cast<FwAssertArgType>(NUM_GETPARAM_OUTPUT_PORTS)
15974 );
15975 ✗ Fw::ParamValid _result = {};
15976 ✗ switch (portNum) {
15977 ✗ case 0:
15978 ✗ _result = FileHandling::prmDb.getPrm_handlerBase(
15979 0,
15980 id,
15981 val
15982 ✗ );
15983 ✗ break;
15984 ✗ default:
15985 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15986 ✗ break;
15987 }
15988 ✗ return _result;
15989 ✗ }
15990
15991 ✗ Fw::TlmValid WasmSequencerComponentBase::getTlmChan_out(
15992 FwIndexType portNum,
15993 FwChanIdType id,
15994 Fw::Time& timeTag,
15995 Fw::TlmBuffer& val
15996 ) const {
15997 ✗ FW_ASSERT(
15998 (0 <= portNum) && (portNum < NUM_GETTLMCHAN_OUTPUT_PORTS),
15999 static_cast<FwAssertArgType>(portNum),
16000 static_cast<FwAssertArgType>(NUM_GETTLMCHAN_OUTPUT_PORTS)
16001 );
16002 ✗ Fw::TlmValid _result = {};
16003 ✗ switch (portNum) {
16004 ✗ case 0:
16005 ✗ _result = CdhCore::tlmSend.TlmGet_handlerBase(
16006 0,
16007 id,
16008 timeTag,
16009 val
16010 ✗ );
16011 ✗ break;
16012 ✗ default:
16013 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
16014 ✗ break;
16015 }
16016 ✗ return _result;
16017 ✗ }
16018
16019 1 void WasmSequencerComponentBase::logOut_out(
16020 FwIndexType portNum,
16021 FwEventIdType id,
16022 Fw::Time& timeTag,
16023 const Fw::LogSeverity& severity,
16024 Fw::LogBuffer& args
16025 ) const {
16026 1 FW_ASSERT(
16027 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
16028 static_cast<FwAssertArgType>(portNum),
16029 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
16030 );
16031
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
16032 1 case 0:
16033 1 CdhCore::events.LogRecv_handlerBase(
16034 0,
16035 id,
16036 timeTag,
16037 severity,
16038 args
16039 );
16040 1 break;
16041 ✗ default:
16042 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
16043 ✗ break;
16044 }
16045 1 }
16046
16047 #if FW_ENABLE_TEXT_LOGGING == 1
16048
16049 1 void WasmSequencerComponentBase::logTextOut_out(
16050 FwIndexType portNum,
16051 FwEventIdType id,
16052 Fw::Time& timeTag,
16053 const Fw::LogSeverity& severity,
16054 Fw::TextLogString& text
16055 ) const {
16056 1 FW_ASSERT(
16057 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
16058 static_cast<FwAssertArgType>(portNum),
16059 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
16060 );
16061
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
16062 1 case 0:
16063 1 CdhCore::textLogger.TextLogger_handlerBase(
16064 0,
16065 id,
16066 timeTag,
16067 severity,
16068 text
16069 );
16070 1 break;
16071 ✗ default:
16072 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
16073 ✗ break;
16074 }
16075 1 }
16076
16077 #endif
16078
16079 3 Fw::ParamValid WasmSequencerComponentBase::prmGet_out(
16080 FwIndexType portNum,
16081 FwPrmIdType id,
16082 Fw::ParamBuffer& val
16083 ) const {
16084 3 FW_ASSERT(
16085 (0 <= portNum) && (portNum < NUM_PRMGET_OUTPUT_PORTS),
16086 static_cast<FwAssertArgType>(portNum),
16087 static_cast<FwAssertArgType>(NUM_PRMGET_OUTPUT_PORTS)
16088 );
16089 3 Fw::ParamValid _result = {};
16090
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
16091 3 case 0:
16092
1/1
✓ Branch 1 taken 3 times.
6 _result = FileHandling::prmDb.getPrm_handlerBase(
16093 0,
16094 id,
16095 val
16096
1/1
✓ Branch 1 taken 3 times.
3 );
16097 3 break;
16098 ✗ default:
16099 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
16100 ✗ break;
16101 }
16102 3 return _result;
16103 ✗ }
16104
16105 ✗ void WasmSequencerComponentBase::prmSet_out(
16106 FwIndexType portNum,
16107 FwPrmIdType id,
16108 Fw::ParamBuffer& val
16109 ) const {
16110 ✗ FW_ASSERT(
16111 (0 <= portNum) && (portNum < NUM_PRMSET_OUTPUT_PORTS),
16112 static_cast<FwAssertArgType>(portNum),
16113 static_cast<FwAssertArgType>(NUM_PRMSET_OUTPUT_PORTS)
16114 );
16115 ✗ switch (portNum) {
16116 ✗ case 0:
16117 ✗ FileHandling::prmDb.setPrm_handlerBase(
16118 0,
16119 id,
16120 val
16121 );
16122 ✗ break;
16123 ✗ default:
16124 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
16125 ✗ break;
16126 }
16127 ✗ }
16128
16129 ✗ void WasmSequencerComponentBase::seqDoneOut_out(
16130 FwIndexType portNum,
16131 FwOpcodeType opCode,
16132 U32 cmdSeq,
16133 const Fw::CmdResponse& response
16134 ) const {
16135 ✗ FW_ASSERT(
16136 (0 <= portNum) && (portNum < NUM_SEQDONEOUT_OUTPUT_PORTS),
16137 static_cast<FwAssertArgType>(portNum),
16138 static_cast<FwAssertArgType>(NUM_SEQDONEOUT_OUTPUT_PORTS)
16139 );
16140 ✗ switch (portNum) {
16141 default:
16142 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
16143 ✗ break;
16144 }
16145 ✗ }
16146
16147 ✗ void WasmSequencerComponentBase::seqStartOut_out(
16148 FwIndexType portNum,
16149 const Fw::StringBase& filename,
16150 const Svc::SeqArgs& args
16151 ) const {
16152 ✗ FW_ASSERT(
16153 (0 <= portNum) && (portNum < NUM_SEQSTARTOUT_OUTPUT_PORTS),
16154 static_cast<FwAssertArgType>(portNum),
16155 static_cast<FwAssertArgType>(NUM_SEQSTARTOUT_OUTPUT_PORTS)
16156 );
16157 ✗ switch (portNum) {
16158 default:
16159 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
16160 ✗ break;
16161 }
16162 ✗ }
16163
16164 ✗ Fw::SerializeStatus WasmSequencerComponentBase::serialOut_out(
16165 FwIndexType portNum,
16166 Fw::LinearBufferBase& buffer
16167 ) {
16168 ✗ FW_ASSERT(
16169 (0 <= portNum) && (portNum < NUM_SERIALOUT_OUTPUT_PORTS),
16170 static_cast<FwAssertArgType>(portNum),
16171 static_cast<FwAssertArgType>(NUM_SERIALOUT_OUTPUT_PORTS)
16172 );
16173 ✗ Fw::SerializeStatus _result = {};
16174 ✗ switch (portNum) {
16175 default:
16176 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
16177 ✗ break;
16178 }
16179 ✗ return _result;
16180 }
16181
16182 122 void WasmSequencerComponentBase::timeCaller_out(
16183 FwIndexType portNum,
16184 Fw::Time& time
16185 ) const {
16186 122 FW_ASSERT(
16187 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
16188 static_cast<FwAssertArgType>(portNum),
16189 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
16190 );
16191
1/2
✓ Branch 0 taken 122 times.
✗ Branch 1 not taken.
122 switch (portNum) {
16192 122 case 0:
16193 122 Ref::posixTime.timeGetPort_handlerBase(
16194 0,
16195 time
16196 );
16197 122 break;
16198 ✗ default:
16199 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
16200 ✗ break;
16201 }
16202 122 }
16203
16204 9 void WasmSequencerComponentBase::tlmOut_out(
16205 FwIndexType portNum,
16206 FwChanIdType id,
16207 Fw::Time& timeTag,
16208 Fw::TlmBuffer& val
16209 ) const {
16210 9 FW_ASSERT(
16211 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
16212 static_cast<FwAssertArgType>(portNum),
16213 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
16214 );
16215
1/2
✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
9 switch (portNum) {
16216 9 case 0:
16217 9 CdhCore::tlmSend.TlmRecv_handlerBase(
16218 0,
16219 id,
16220 timeTag,
16221 val
16222 );
16223 9 break;
16224 ✗ default:
16225 ✗ FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
16226 ✗ break;
16227 }
16228 9 }
16229
16230 }
16231
16232 #endif
16233