GCC Code Coverage Report


Directory: ./
File: build-fprime-automatic-native/Ref/Top/RefTopologyAc.cpp
Date: 2026-09-03 22:12:29
Exec Total Coverage
Lines: 2914 6855 42.5%
Functions: 291 533 54.6%
Branches: 480 1489 32.2%

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 // ----------------------------------------------------------------------
304 // Component configuration objects
305 // ----------------------------------------------------------------------
306
307 namespace ConfigObjects {
308
309 namespace CdhCore_health {
310 Svc::Health::PingEntry pingEntries[NUM_PING_ENTRIES] = {
311 {
312 PingEntries::CdhCore_cmdDisp::WARN,
313 PingEntries::CdhCore_cmdDisp::FATAL,
314 "CdhCore_cmdDisp"
315 },
316 {
317 PingEntries::CdhCore_events::WARN,
318 PingEntries::CdhCore_events::FATAL,
319 "CdhCore_events"
320 },
321 {
322 PingEntries::CdhCore_tlmSend::WARN,
323 PingEntries::CdhCore_tlmSend::FATAL,
324 "CdhCore_tlmSend"
325 },
326 {
327 PingEntries::DataProducts_dpBufferAccumulator::WARN,
328 PingEntries::DataProducts_dpBufferAccumulator::FATAL,
329 "DataProducts_dpBufferAccumulator"
330 },
331 {
332 PingEntries::DataProducts_dpCat::WARN,
333 PingEntries::DataProducts_dpCat::FATAL,
334 "DataProducts_dpCat"
335 },
336 {
337 PingEntries::FileHandling_fileDownlink::WARN,
338 PingEntries::FileHandling_fileDownlink::FATAL,
339 "FileHandling_fileDownlink"
340 },
341 {
342 PingEntries::FileHandling_fileManager::WARN,
343 PingEntries::FileHandling_fileManager::FATAL,
344 "FileHandling_fileManager"
345 },
346 {
347 PingEntries::FileHandling_fileUplink::WARN,
348 PingEntries::FileHandling_fileUplink::FATAL,
349 "FileHandling_fileUplink"
350 },
351 {
352 PingEntries::FileHandling_prmDb::WARN,
353 PingEntries::FileHandling_prmDb::FATAL,
354 "FileHandling_prmDb"
355 },
356 {
357 PingEntries::Ref_blockDrv::WARN,
358 PingEntries::Ref_blockDrv::FATAL,
359 "Ref_blockDrv"
360 },
361 {
362 PingEntries::Ref_cmdSeq::WARN,
363 PingEntries::Ref_cmdSeq::FATAL,
364 "Ref_cmdSeq"
365 },
366 {
367 PingEntries::Ref_pingRcvr::WARN,
368 PingEntries::Ref_pingRcvr::FATAL,
369 "Ref_pingRcvr"
370 },
371 {
372 PingEntries::Ref_rateGroup1Comp::WARN,
373 PingEntries::Ref_rateGroup1Comp::FATAL,
374 "Ref_rateGroup1Comp"
375 },
376 {
377 PingEntries::Ref_rateGroup2Comp::WARN,
378 PingEntries::Ref_rateGroup2Comp::FATAL,
379 "Ref_rateGroup2Comp"
380 },
381 {
382 PingEntries::Ref_rateGroup3Comp::WARN,
383 PingEntries::Ref_rateGroup3Comp::FATAL,
384 "Ref_rateGroup3Comp"
385 },
386 };
387 }
388
389 namespace ComCcsds_commsBufferManager {
390 Svc::BufferManager::BufferBins bins;
391 }
392
393 namespace ComCcsds_frameAccumulator {
394 Svc::FrameDetectors::CcsdsTcFrameDetector frameDetector;
395 }
396
397 namespace DataProducts_dpBufferManager {
398 Svc::BufferManager::BufferBins bins;
399 }
400
401 }
402
403 // ----------------------------------------------------------------------
404 // Helper functions
405 // ----------------------------------------------------------------------
406
407 1 void initComponents(const TopologyState& state) {
408 1 CdhCore::cmdDisp.init(QueueSizes::CdhCore_cmdDisp, InstanceIds::CdhCore_cmdDisp);
409 1 CdhCore::events.init(QueueSizes::CdhCore_events, InstanceIds::CdhCore_events);
410 1 CdhCore::fatalAdapter.init(InstanceIds::CdhCore_fatalAdapter);
411 1 CdhCore::fatalHandler.init(InstanceIds::CdhCore_fatalHandler);
412 1 CdhCore::health.init(QueueSizes::CdhCore_health, InstanceIds::CdhCore_health);
413 1 CdhCore::textLogger.init(InstanceIds::CdhCore_textLogger);
414 1 CdhCore::tlmSend.init(QueueSizes::CdhCore_tlmSend, InstanceIds::CdhCore_tlmSend);
415 1 CdhCore::version.init(InstanceIds::CdhCore_version);
416 1 ComCcsds::aggregator.init(QueueSizes::ComCcsds_aggregator, InstanceIds::ComCcsds_aggregator);
417 1 ComCcsds::apidManager.init(InstanceIds::ComCcsds_apidManager);
418 1 ComCcsds::comQueue.init(QueueSizes::ComCcsds_comQueue, InstanceIds::ComCcsds_comQueue);
419 1 ComCcsds::comStub.init(InstanceIds::ComCcsds_comStub);
420 1 ComCcsds::commsBufferManager.init(InstanceIds::ComCcsds_commsBufferManager);
421 1 ComCcsds::fprimeRouter.init(InstanceIds::ComCcsds_fprimeRouter);
422 1 ComCcsds::frameAccumulator.init(InstanceIds::ComCcsds_frameAccumulator);
423 1 ComCcsds::framer.init(InstanceIds::ComCcsds_framer);
424 1 ComCcsds::spacePacketDeframer.init(InstanceIds::ComCcsds_spacePacketDeframer);
425 1 ComCcsds::spacePacketFramer.init(InstanceIds::ComCcsds_spacePacketFramer);
426 1 ComCcsds::tcDeframer.init(InstanceIds::ComCcsds_tcDeframer);
427 1 DataProducts::dpBufferAccumulator.init(QueueSizes::DataProducts_dpBufferAccumulator, InstanceIds::DataProducts_dpBufferAccumulator);
428 1 DataProducts::dpBufferManager.init(InstanceIds::DataProducts_dpBufferManager);
429 1 DataProducts::dpCat.init(QueueSizes::DataProducts_dpCat, InstanceIds::DataProducts_dpCat);
430 1 DataProducts::dpMgr.init(QueueSizes::DataProducts_dpMgr, InstanceIds::DataProducts_dpMgr);
431 1 DataProducts::dpWriter.init(QueueSizes::DataProducts_dpWriter, InstanceIds::DataProducts_dpWriter);
432 1 FileHandling::fileDownlink.init(QueueSizes::FileHandling_fileDownlink, InstanceIds::FileHandling_fileDownlink);
433 1 FileHandling::fileManager.init(QueueSizes::FileHandling_fileManager, InstanceIds::FileHandling_fileManager);
434 1 FileHandling::fileUplink.init(QueueSizes::FileHandling_fileUplink, InstanceIds::FileHandling_fileUplink);
435 1 FileHandling::prmDb.init(QueueSizes::FileHandling_prmDb, InstanceIds::FileHandling_prmDb);
436 1 Ref::SG1.init(QueueSizes::Ref_SG1, InstanceIds::Ref_SG1);
437 1 Ref::SG2.init(QueueSizes::Ref_SG2, InstanceIds::Ref_SG2);
438 1 Ref::SG3.init(QueueSizes::Ref_SG3, InstanceIds::Ref_SG3);
439 1 Ref::SG4.init(QueueSizes::Ref_SG4, InstanceIds::Ref_SG4);
440 1 Ref::SG5.init(QueueSizes::Ref_SG5, InstanceIds::Ref_SG5);
441 1 Ref::blockDrv.init(QueueSizes::Ref_blockDrv, InstanceIds::Ref_blockDrv);
442 1 Ref::cmdSeq.init(QueueSizes::Ref_cmdSeq, InstanceIds::Ref_cmdSeq);
443 1 Ref::comDriver.init(InstanceIds::Ref_comDriver);
444 1 Ref::dpDemo.init(QueueSizes::Ref_dpDemo, InstanceIds::Ref_dpDemo);
445 1 Ref::linuxTimer.init(InstanceIds::Ref_linuxTimer);
446 1 Ref::pingRcvr.init(QueueSizes::Ref_pingRcvr, InstanceIds::Ref_pingRcvr);
447 1 Ref::posixTime.init(InstanceIds::Ref_posixTime);
448 1 Ref::rateGroup1Comp.init(QueueSizes::Ref_rateGroup1Comp, InstanceIds::Ref_rateGroup1Comp);
449 1 Ref::rateGroup2Comp.init(QueueSizes::Ref_rateGroup2Comp, InstanceIds::Ref_rateGroup2Comp);
450 1 Ref::rateGroup3Comp.init(QueueSizes::Ref_rateGroup3Comp, InstanceIds::Ref_rateGroup3Comp);
451 1 Ref::rateGroupDriverComp.init(InstanceIds::Ref_rateGroupDriverComp);
452 1 Ref::recvBuffComp.init(InstanceIds::Ref_recvBuffComp);
453 1 Ref::sendBuffComp.init(QueueSizes::Ref_sendBuffComp, InstanceIds::Ref_sendBuffComp);
454 1 Ref::systemResources.init(InstanceIds::Ref_systemResources);
455 1 Ref::typeDemo.init(InstanceIds::Ref_typeDemo);
456 1 }
457
458 1 void configComponents(const TopologyState& state) {
459 // Health is supplied a set of ping entires.
460
1/1
✓ Branch 1 taken 1 times.
1 CdhCore::health.setPingEntries(
461 ConfigObjects::CdhCore_health::pingEntries,
462 1 FW_NUM_ARRAY_ELEMENTS(ConfigObjects::CdhCore_health::pingEntries),
463 ConfigConstants::CdhCore_health::HEALTH_WATCHDOG_CODE
464 );
465 // Startup TLM and Config verbosity for Versions
466
1/1
✓ Branch 1 taken 1 times.
1 CdhCore::version.config(true);
467 using namespace ComCcsds;
468
1/1
✓ Branch 1 taken 1 times.
1 Svc::ComQueue::QueueConfigurationTable configurationTable;
469
470 // Events (highest-priority)
471 1 configurationTable.entries[Ports_ComPacketQueue::EVENTS].depth = ComCcsdsConfig::QueueDepths::events;
472 1 configurationTable.entries[Ports_ComPacketQueue::EVENTS].priority = ComCcsdsConfig::QueuePriorities::events;
473
474 // Telemetry
475 1 configurationTable.entries[Ports_ComPacketQueue::TELEMETRY].depth = ComCcsdsConfig::QueueDepths::tlm;
476 1 configurationTable.entries[Ports_ComPacketQueue::TELEMETRY].priority = ComCcsdsConfig::QueuePriorities::tlm;
477
478 // File Downlink Queue (buffer queue using NUM_CONSTANTS offset)
479 1 configurationTable.entries[Ports_ComPacketQueue::NUM_CONSTANTS + Ports_ComBufferQueue::FILE].depth = ComCcsdsConfig::QueueDepths::file;
480 1 configurationTable.entries[Ports_ComPacketQueue::NUM_CONSTANTS + Ports_ComBufferQueue::FILE].priority = ComCcsdsConfig::QueuePriorities::file;
481
482 // Allocation identifier is 0 as the MallocAllocator discards it
483
1/1
✓ Branch 1 taken 1 times.
1 ComCcsds::comQueue.configure(configurationTable, 0, ComCcsds::Allocation::memAllocator);
484 1 memset(&ConfigObjects::ComCcsds_commsBufferManager::bins, 0, sizeof(ConfigObjects::ComCcsds_commsBufferManager::bins));
485 1 ConfigObjects::ComCcsds_commsBufferManager::bins.bins[0].bufferSize = ComCcsdsConfig::BuffMgr::commsBuffSize;
486 1 ConfigObjects::ComCcsds_commsBufferManager::bins.bins[0].numBuffers = ComCcsdsConfig::BuffMgr::commsBuffCount;
487 1 ConfigObjects::ComCcsds_commsBufferManager::bins.bins[1].bufferSize = ComCcsdsConfig::BuffMgr::commsFileBuffSize;
488 1 ConfigObjects::ComCcsds_commsBufferManager::bins.bins[1].numBuffers = ComCcsdsConfig::BuffMgr::commsFileBuffCount;
489
1/1
✓ Branch 1 taken 1 times.
1 ComCcsds::commsBufferManager.setup(
490 ComCcsdsConfig::BuffMgr::commsBuffMgrId,
491 0,
492 ComCcsds::Allocation::memAllocator,
493 ConfigObjects::ComCcsds_commsBufferManager::bins
494 );
495
1/1
✓ Branch 1 taken 1 times.
1 ComCcsds::frameAccumulator.configure(
496 ConfigObjects::ComCcsds_frameAccumulator::frameDetector,
497 1,
498 ComCcsds::Allocation::memAllocator,
499 ComCcsdsConfig::BuffMgr::frameAccumulatorSize
500 );
501
2/2
✓ Branch 1 taken 1 times.
✓ Branch 4 taken 1 times.
1 DataProducts::dpBufferAccumulator.allocateQueue(
502 DataProductsConfig::BufferAccumulator::allocatorId,
503 DataProducts::Allocation::memAllocator,
504 DataProductsConfig::BufferAccumulator::maxNumBuffers,
505 Svc::BufferAccumulator_OpState::DRAIN
506 );
507 1 memset(&ConfigObjects::DataProducts_dpBufferManager::bins, 0, sizeof(ConfigObjects::DataProducts_dpBufferManager::bins));
508 1 ConfigObjects::DataProducts_dpBufferManager::bins.bins[0].bufferSize = DataProductsConfig::BuffMgr::dpBufferStoreSize;
509 1 ConfigObjects::DataProducts_dpBufferManager::bins.bins[0].numBuffers = DataProductsConfig::BuffMgr::dpBufferStoreCount;
510
1/1
✓ Branch 1 taken 1 times.
1 DataProducts::dpBufferManager.setup(
511 DataProductsConfig::BuffMgr::dpBufferManagerId,
512 0,
513 DataProducts::Allocation::memAllocator,
514 ConfigObjects::DataProducts_dpBufferManager::bins
515 );
516
1/1
✓ Branch 1 taken 1 times.
1 Fw::FileNameString dpDir(DataProductsConfig::Paths::dpDir);
517
1/1
✓ Branch 1 taken 1 times.
1 Fw::FileNameString dpState(DataProductsConfig::Paths::dpState);
518
1/1
✓ Branch 2 taken 1 times.
1 Os::FileSystem::createDirectory(dpDir.toChar());
519 1 Fw::ExternalArray<Fw::FileNameString> dpDirs(&dpDir, 1);
520
1/1
✓ Branch 1 taken 1 times.
1 DataProducts::dpCat.configure(dpDirs, dpState, 0, DataProducts::Allocation::memAllocator);
521
1/1
✓ Branch 1 taken 1 times.
1 DataProducts::dpWriter.configure(dpDir);
522
1/1
✓ Branch 1 taken 1 times.
1 FileHandling::fileDownlink.configure(
523 FileHandlingConfig::DownlinkConfig::cooldown,
524 FileHandlingConfig::DownlinkConfig::cycleTime,
525 FileHandlingConfig::DownlinkConfig::fileQueueDepth
526 );
527
1/1
✓ Branch 1 taken 1 times.
1 FileHandling::prmDb.configure(FileHandlingConfig::Paths::prmDbFile);
528 1 }
529
530 1 void setBaseIds() {
531 1 Ref::dpDemo.setIdBase(BaseIds::Ref_dpDemo);
532 1 CdhCore::cmdDisp.setIdBase(BaseIds::CdhCore_cmdDisp);
533 1 CdhCore::events.setIdBase(BaseIds::CdhCore_events);
534 1 CdhCore::health.setIdBase(BaseIds::CdhCore_health);
535 1 CdhCore::version.setIdBase(BaseIds::CdhCore_version);
536 1 CdhCore::textLogger.setIdBase(BaseIds::CdhCore_textLogger);
537 1 CdhCore::fatalAdapter.setIdBase(BaseIds::CdhCore_fatalAdapter);
538 1 CdhCore::tlmSend.setIdBase(BaseIds::CdhCore_tlmSend);
539 1 CdhCore::fatalHandler.setIdBase(BaseIds::CdhCore_fatalHandler);
540 1 ComCcsds::comQueue.setIdBase(BaseIds::ComCcsds_comQueue);
541 1 ComCcsds::frameAccumulator.setIdBase(BaseIds::ComCcsds_frameAccumulator);
542 1 ComCcsds::commsBufferManager.setIdBase(BaseIds::ComCcsds_commsBufferManager);
543 1 ComCcsds::fprimeRouter.setIdBase(BaseIds::ComCcsds_fprimeRouter);
544 1 ComCcsds::tcDeframer.setIdBase(BaseIds::ComCcsds_tcDeframer);
545 1 ComCcsds::spacePacketDeframer.setIdBase(BaseIds::ComCcsds_spacePacketDeframer);
546 1 ComCcsds::aggregator.setIdBase(BaseIds::ComCcsds_aggregator);
547 1 ComCcsds::framer.setIdBase(BaseIds::ComCcsds_framer);
548 1 ComCcsds::spacePacketFramer.setIdBase(BaseIds::ComCcsds_spacePacketFramer);
549 1 ComCcsds::apidManager.setIdBase(BaseIds::ComCcsds_apidManager);
550 1 ComCcsds::comStub.setIdBase(BaseIds::ComCcsds_comStub);
551 1 DataProducts::dpCat.setIdBase(BaseIds::DataProducts_dpCat);
552 1 DataProducts::dpMgr.setIdBase(BaseIds::DataProducts_dpMgr);
553 1 DataProducts::dpWriter.setIdBase(BaseIds::DataProducts_dpWriter);
554 1 DataProducts::dpBufferManager.setIdBase(BaseIds::DataProducts_dpBufferManager);
555 1 DataProducts::dpBufferAccumulator.setIdBase(BaseIds::DataProducts_dpBufferAccumulator);
556 1 FileHandling::fileUplink.setIdBase(BaseIds::FileHandling_fileUplink);
557 1 FileHandling::fileDownlink.setIdBase(BaseIds::FileHandling_fileDownlink);
558 1 FileHandling::fileManager.setIdBase(BaseIds::FileHandling_fileManager);
559 1 FileHandling::prmDb.setIdBase(BaseIds::FileHandling_prmDb);
560 1 Ref::blockDrv.setIdBase(BaseIds::Ref_blockDrv);
561 1 Ref::rateGroup1Comp.setIdBase(BaseIds::Ref_rateGroup1Comp);
562 1 Ref::rateGroup2Comp.setIdBase(BaseIds::Ref_rateGroup2Comp);
563 1 Ref::rateGroup3Comp.setIdBase(BaseIds::Ref_rateGroup3Comp);
564 1 Ref::pingRcvr.setIdBase(BaseIds::Ref_pingRcvr);
565 1 Ref::typeDemo.setIdBase(BaseIds::Ref_typeDemo);
566 1 Ref::cmdSeq.setIdBase(BaseIds::Ref_cmdSeq);
567 1 Ref::sendBuffComp.setIdBase(BaseIds::Ref_sendBuffComp);
568 1 Ref::SG1.setIdBase(BaseIds::Ref_SG1);
569 1 Ref::SG2.setIdBase(BaseIds::Ref_SG2);
570 1 Ref::SG3.setIdBase(BaseIds::Ref_SG3);
571 1 Ref::SG4.setIdBase(BaseIds::Ref_SG4);
572 1 Ref::SG5.setIdBase(BaseIds::Ref_SG5);
573 1 Ref::posixTime.setIdBase(BaseIds::Ref_posixTime);
574 1 Ref::rateGroupDriverComp.setIdBase(BaseIds::Ref_rateGroupDriverComp);
575 1 Ref::recvBuffComp.setIdBase(BaseIds::Ref_recvBuffComp);
576 1 Ref::systemResources.setIdBase(BaseIds::Ref_systemResources);
577 1 Ref::linuxTimer.setIdBase(BaseIds::Ref_linuxTimer);
578 1 Ref::comDriver.setIdBase(BaseIds::Ref_comDriver);
579 1 }
580
581 1 void connectComponents() {
582
583 #if !FW_DIRECT_PORT_CALLS
584
585 // ComCcsds_CdhCore
586 CdhCore::cmdDisp.set_seqCmdStatus_OutputPort(
587 0,
588 ComCcsds::fprimeRouter.get_cmdResponseIn_InputPort(0)
589 );
590 CdhCore::cmdDisp.set_seqCmdStatus_OutputPort(
591 1,
592 Ref::cmdSeq.get_cmdResponseIn_InputPort(0)
593 );
594 CdhCore::events.set_PktSend_OutputPort(
595 0,
596 ComCcsds::comQueue.get_comPacketQueueIn_InputPort(0)
597 );
598 CdhCore::tlmSend.set_PktSend_OutputPort(
599 0,
600 ComCcsds::comQueue.get_comPacketQueueIn_InputPort(1)
601 );
602 ComCcsds::fprimeRouter.set_commandOut_OutputPort(
603 0,
604 CdhCore::cmdDisp.get_seqCmdBuff_InputPort(0)
605 );
606 Ref::cmdSeq.set_comCmdOut_OutputPort(
607 0,
608 CdhCore::cmdDisp.get_seqCmdBuff_InputPort(1)
609 );
610
611 // ComCcsds_FileHandling
612 ComCcsds::comQueue.set_bufferReturnOut_OutputPort(
613 0,
614 FileHandling::fileDownlink.get_bufferReturn_InputPort(0)
615 );
616 ComCcsds::fprimeRouter.set_fileOut_OutputPort(
617 0,
618 FileHandling::fileUplink.get_bufferSendIn_InputPort(0)
619 );
620 FileHandling::fileDownlink.set_bufferSendOut_OutputPort(
621 0,
622 ComCcsds::comQueue.get_bufferQueueIn_InputPort(0)
623 );
624 FileHandling::fileUplink.set_bufferSendOut_OutputPort(
625 0,
626 ComCcsds::fprimeRouter.get_fileBufferReturnIn_InputPort(0)
627 );
628
629 // ComStub
630 ComCcsds::comStub.set_comStatusOut_OutputPort(
631 0,
632 ComCcsds::framer.get_comStatusIn_InputPort(0)
633 );
634 ComCcsds::comStub.set_dataOut_OutputPort(
635 0,
636 ComCcsds::frameAccumulator.get_dataIn_InputPort(0)
637 );
638 ComCcsds::comStub.set_dataReturnOut_OutputPort(
639 0,
640 ComCcsds::framer.get_dataReturnIn_InputPort(0)
641 );
642 ComCcsds::frameAccumulator.set_dataReturnOut_OutputPort(
643 0,
644 ComCcsds::comStub.get_dataReturnIn_InputPort(0)
645 );
646 ComCcsds::framer.set_dataOut_OutputPort(
647 0,
648 ComCcsds::comStub.get_dataIn_InputPort(0)
649 );
650
651 // Command
652 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
653 0,
654 CdhCore::cmdDisp.get_CmdDisp_InputPort(0)
655 );
656 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
657 1,
658 CdhCore::events.get_CmdDisp_InputPort(0)
659 );
660 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
661 2,
662 CdhCore::health.get_CmdDisp_InputPort(0)
663 );
664 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
665 3,
666 CdhCore::version.get_cmdIn_InputPort(0)
667 );
668 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
669 4,
670 ComCcsds::comQueue.get_CmdDisp_InputPort(0)
671 );
672 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
673 5,
674 DataProducts::dpBufferAccumulator.get_cmdIn_InputPort(0)
675 );
676 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
677 6,
678 DataProducts::dpCat.get_CmdDisp_InputPort(0)
679 );
680 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
681 7,
682 DataProducts::dpMgr.get_cmdIn_InputPort(0)
683 );
684 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
685 8,
686 DataProducts::dpWriter.get_cmdIn_InputPort(0)
687 );
688 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
689 9,
690 FileHandling::fileDownlink.get_cmdIn_InputPort(0)
691 );
692 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
693 10,
694 FileHandling::fileManager.get_cmdIn_InputPort(0)
695 );
696 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
697 11,
698 FileHandling::prmDb.get_CmdDisp_InputPort(0)
699 );
700 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
701 12,
702 Ref::SG1.get_cmdIn_InputPort(0)
703 );
704 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
705 13,
706 Ref::SG2.get_cmdIn_InputPort(0)
707 );
708 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
709 14,
710 Ref::SG3.get_cmdIn_InputPort(0)
711 );
712 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
713 15,
714 Ref::SG4.get_cmdIn_InputPort(0)
715 );
716 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
717 16,
718 Ref::SG5.get_cmdIn_InputPort(0)
719 );
720 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
721 17,
722 Ref::cmdSeq.get_cmdIn_InputPort(0)
723 );
724 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
725 18,
726 Ref::dpDemo.get_cmdIn_InputPort(0)
727 );
728 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
729 19,
730 Ref::pingRcvr.get_CmdDisp_InputPort(0)
731 );
732 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
733 20,
734 Ref::recvBuffComp.get_CmdDisp_InputPort(0)
735 );
736 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
737 21,
738 Ref::sendBuffComp.get_CmdDisp_InputPort(0)
739 );
740 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
741 22,
742 Ref::systemResources.get_CmdDisp_InputPort(0)
743 );
744 CdhCore::cmdDisp.set_compCmdSend_OutputPort(
745 23,
746 Ref::typeDemo.get_cmdIn_InputPort(0)
747 );
748
749 // CommandRegistration
750 CdhCore::cmdDisp.set_CmdReg_OutputPort(
751 0,
752 CdhCore::cmdDisp.get_compCmdReg_InputPort(0)
753 );
754 CdhCore::events.set_CmdReg_OutputPort(
755 0,
756 CdhCore::cmdDisp.get_compCmdReg_InputPort(1)
757 );
758 CdhCore::health.set_CmdReg_OutputPort(
759 0,
760 CdhCore::cmdDisp.get_compCmdReg_InputPort(2)
761 );
762 CdhCore::version.set_cmdRegOut_OutputPort(
763 0,
764 CdhCore::cmdDisp.get_compCmdReg_InputPort(3)
765 );
766 ComCcsds::comQueue.set_CmdReg_OutputPort(
767 0,
768 CdhCore::cmdDisp.get_compCmdReg_InputPort(4)
769 );
770 DataProducts::dpBufferAccumulator.set_cmdRegOut_OutputPort(
771 0,
772 CdhCore::cmdDisp.get_compCmdReg_InputPort(5)
773 );
774 DataProducts::dpCat.set_CmdReg_OutputPort(
775 0,
776 CdhCore::cmdDisp.get_compCmdReg_InputPort(6)
777 );
778 DataProducts::dpMgr.set_cmdRegIn_OutputPort(
779 0,
780 CdhCore::cmdDisp.get_compCmdReg_InputPort(7)
781 );
782 DataProducts::dpWriter.set_cmdRegIn_OutputPort(
783 0,
784 CdhCore::cmdDisp.get_compCmdReg_InputPort(8)
785 );
786 FileHandling::fileDownlink.set_cmdRegOut_OutputPort(
787 0,
788 CdhCore::cmdDisp.get_compCmdReg_InputPort(9)
789 );
790 FileHandling::fileManager.set_cmdRegOut_OutputPort(
791 0,
792 CdhCore::cmdDisp.get_compCmdReg_InputPort(10)
793 );
794 FileHandling::prmDb.set_CmdReg_OutputPort(
795 0,
796 CdhCore::cmdDisp.get_compCmdReg_InputPort(11)
797 );
798 Ref::SG1.set_cmdRegOut_OutputPort(
799 0,
800 CdhCore::cmdDisp.get_compCmdReg_InputPort(12)
801 );
802 Ref::SG2.set_cmdRegOut_OutputPort(
803 0,
804 CdhCore::cmdDisp.get_compCmdReg_InputPort(13)
805 );
806 Ref::SG3.set_cmdRegOut_OutputPort(
807 0,
808 CdhCore::cmdDisp.get_compCmdReg_InputPort(14)
809 );
810 Ref::SG4.set_cmdRegOut_OutputPort(
811 0,
812 CdhCore::cmdDisp.get_compCmdReg_InputPort(15)
813 );
814 Ref::SG5.set_cmdRegOut_OutputPort(
815 0,
816 CdhCore::cmdDisp.get_compCmdReg_InputPort(16)
817 );
818 Ref::cmdSeq.set_cmdRegOut_OutputPort(
819 0,
820 CdhCore::cmdDisp.get_compCmdReg_InputPort(17)
821 );
822 Ref::dpDemo.set_cmdRegOut_OutputPort(
823 0,
824 CdhCore::cmdDisp.get_compCmdReg_InputPort(18)
825 );
826 Ref::pingRcvr.set_CmdReg_OutputPort(
827 0,
828 CdhCore::cmdDisp.get_compCmdReg_InputPort(19)
829 );
830 Ref::recvBuffComp.set_CmdReg_OutputPort(
831 0,
832 CdhCore::cmdDisp.get_compCmdReg_InputPort(20)
833 );
834 Ref::sendBuffComp.set_CmdReg_OutputPort(
835 0,
836 CdhCore::cmdDisp.get_compCmdReg_InputPort(21)
837 );
838 Ref::systemResources.set_CmdReg_OutputPort(
839 0,
840 CdhCore::cmdDisp.get_compCmdReg_InputPort(22)
841 );
842 Ref::typeDemo.set_cmdRegOut_OutputPort(
843 0,
844 CdhCore::cmdDisp.get_compCmdReg_InputPort(23)
845 );
846
847 // CommandResponse
848 CdhCore::cmdDisp.set_CmdStatus_OutputPort(
849 0,
850 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
851 );
852 CdhCore::events.set_CmdStatus_OutputPort(
853 0,
854 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
855 );
856 CdhCore::health.set_CmdStatus_OutputPort(
857 0,
858 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
859 );
860 CdhCore::version.set_cmdResponseOut_OutputPort(
861 0,
862 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
863 );
864 ComCcsds::comQueue.set_CmdStatus_OutputPort(
865 0,
866 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
867 );
868 DataProducts::dpBufferAccumulator.set_cmdResponseOut_OutputPort(
869 0,
870 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
871 );
872 DataProducts::dpCat.set_CmdStatus_OutputPort(
873 0,
874 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
875 );
876 DataProducts::dpMgr.set_cmdResponseOut_OutputPort(
877 0,
878 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
879 );
880 DataProducts::dpWriter.set_cmdResponseOut_OutputPort(
881 0,
882 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
883 );
884 FileHandling::fileDownlink.set_cmdResponseOut_OutputPort(
885 0,
886 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
887 );
888 FileHandling::fileManager.set_cmdResponseOut_OutputPort(
889 0,
890 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
891 );
892 FileHandling::prmDb.set_CmdStatus_OutputPort(
893 0,
894 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
895 );
896 Ref::SG1.set_cmdResponseOut_OutputPort(
897 0,
898 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
899 );
900 Ref::SG2.set_cmdResponseOut_OutputPort(
901 0,
902 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
903 );
904 Ref::SG3.set_cmdResponseOut_OutputPort(
905 0,
906 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
907 );
908 Ref::SG4.set_cmdResponseOut_OutputPort(
909 0,
910 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
911 );
912 Ref::SG5.set_cmdResponseOut_OutputPort(
913 0,
914 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
915 );
916 Ref::cmdSeq.set_cmdResponseOut_OutputPort(
917 0,
918 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
919 );
920 Ref::dpDemo.set_cmdResponseOut_OutputPort(
921 0,
922 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
923 );
924 Ref::pingRcvr.set_CmdStatus_OutputPort(
925 0,
926 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
927 );
928 Ref::recvBuffComp.set_CmdStatus_OutputPort(
929 0,
930 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
931 );
932 Ref::sendBuffComp.set_CmdStatus_OutputPort(
933 0,
934 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
935 );
936 Ref::systemResources.set_CmdStatus_OutputPort(
937 0,
938 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
939 );
940 Ref::typeDemo.set_cmdResponseOut_OutputPort(
941 0,
942 CdhCore::cmdDisp.get_compCmdStat_InputPort(0)
943 );
944
945 // Communications
946 ComCcsds::comStub.set_drvReceiveReturnOut_OutputPort(
947 0,
948 Ref::comDriver.get_recvReturnIn_InputPort(0)
949 );
950 ComCcsds::comStub.set_drvSendOut_OutputPort(
951 0,
952 Ref::comDriver.get_send_InputPort(0)
953 );
954 Ref::comDriver.set_allocate_OutputPort(
955 0,
956 ComCcsds::commsBufferManager.get_bufferGetCallee_InputPort(0)
957 );
958 Ref::comDriver.set_deallocate_OutputPort(
959 0,
960 ComCcsds::commsBufferManager.get_bufferSendIn_InputPort(0)
961 );
962 Ref::comDriver.set_ready_OutputPort(
963 0,
964 ComCcsds::comStub.get_drvConnected_InputPort(0)
965 );
966 Ref::comDriver.set_recv_OutputPort(
967 0,
968 ComCcsds::comStub.get_drvReceiveIn_InputPort(0)
969 );
970
971 // DataProducts
972 DataProducts::dpBufferAccumulator.set_bufferSendOutDrain_OutputPort(
973 0,
974 DataProducts::dpWriter.get_bufferSendIn_InputPort(0)
975 );
976 DataProducts::dpBufferAccumulator.set_bufferSendOutReturn_OutputPort(
977 0,
978 DataProducts::dpBufferManager.get_bufferSendIn_InputPort(0)
979 );
980 DataProducts::dpMgr.set_bufferGetOut_OutputPort(
981 0,
982 DataProducts::dpBufferManager.get_bufferGetCallee_InputPort(0)
983 );
984 DataProducts::dpMgr.set_productSendOut_OutputPort(
985 0,
986 DataProducts::dpBufferAccumulator.get_bufferSendInFill_InputPort(0)
987 );
988 DataProducts::dpWriter.set_deallocBufferSendOut_OutputPort(
989 0,
990 DataProducts::dpBufferAccumulator.get_bufferSendInReturn_InputPort(0)
991 );
992 DataProducts::dpWriter.set_dpWrittenOut_OutputPort(
993 0,
994 DataProducts::dpCat.get_addToCat_InputPort(0)
995 );
996
997 // Downlink
998 ComCcsds::aggregator.set_comStatusOut_OutputPort(
999 0,
1000 ComCcsds::spacePacketFramer.get_comStatusIn_InputPort(0)
1001 );
1002 ComCcsds::aggregator.set_dataOut_OutputPort(
1003 0,
1004 ComCcsds::framer.get_dataIn_InputPort(0)
1005 );
1006 ComCcsds::aggregator.set_dataReturnOut_OutputPort(
1007 0,
1008 ComCcsds::spacePacketFramer.get_dataReturnIn_InputPort(0)
1009 );
1010 ComCcsds::comQueue.set_dataOut_OutputPort(
1011 0,
1012 ComCcsds::spacePacketFramer.get_dataIn_InputPort(0)
1013 );
1014 ComCcsds::framer.set_comStatusOut_OutputPort(
1015 0,
1016 ComCcsds::aggregator.get_comStatusIn_InputPort(0)
1017 );
1018 ComCcsds::framer.set_dataReturnOut_OutputPort(
1019 0,
1020 ComCcsds::aggregator.get_dataReturnIn_InputPort(0)
1021 );
1022 ComCcsds::spacePacketFramer.set_bufferAllocate_OutputPort(
1023 0,
1024 ComCcsds::commsBufferManager.get_bufferGetCallee_InputPort(0)
1025 );
1026 ComCcsds::spacePacketFramer.set_bufferDeallocate_OutputPort(
1027 0,
1028 ComCcsds::commsBufferManager.get_bufferSendIn_InputPort(0)
1029 );
1030 ComCcsds::spacePacketFramer.set_comStatusOut_OutputPort(
1031 0,
1032 ComCcsds::comQueue.get_comStatusIn_InputPort(0)
1033 );
1034 ComCcsds::spacePacketFramer.set_dataOut_OutputPort(
1035 0,
1036 ComCcsds::aggregator.get_dataIn_InputPort(0)
1037 );
1038 ComCcsds::spacePacketFramer.set_dataReturnOut_OutputPort(
1039 0,
1040 ComCcsds::comQueue.get_dataReturnIn_InputPort(0)
1041 );
1042 ComCcsds::spacePacketFramer.set_getApidSeqCount_OutputPort(
1043 0,
1044 ComCcsds::apidManager.get_getApidSeqCountIn_InputPort(0)
1045 );
1046
1047 // Events
1048 CdhCore::cmdDisp.set_Log_OutputPort(
1049 0,
1050 CdhCore::events.get_LogRecv_InputPort(0)
1051 );
1052 CdhCore::events.set_Log_OutputPort(
1053 0,
1054 CdhCore::events.get_LogRecv_InputPort(0)
1055 );
1056 CdhCore::fatalAdapter.set_Log_OutputPort(
1057 0,
1058 CdhCore::events.get_LogRecv_InputPort(0)
1059 );
1060 CdhCore::health.set_Log_OutputPort(
1061 0,
1062 CdhCore::events.get_LogRecv_InputPort(0)
1063 );
1064 CdhCore::tlmSend.set_eventOut_OutputPort(
1065 0,
1066 CdhCore::events.get_LogRecv_InputPort(0)
1067 );
1068 CdhCore::version.set_logOut_OutputPort(
1069 0,
1070 CdhCore::events.get_LogRecv_InputPort(0)
1071 );
1072 ComCcsds::apidManager.set_logOut_OutputPort(
1073 0,
1074 CdhCore::events.get_LogRecv_InputPort(0)
1075 );
1076 ComCcsds::comQueue.set_Log_OutputPort(
1077 0,
1078 CdhCore::events.get_LogRecv_InputPort(0)
1079 );
1080 ComCcsds::commsBufferManager.set_eventOut_OutputPort(
1081 0,
1082 CdhCore::events.get_LogRecv_InputPort(0)
1083 );
1084 ComCcsds::fprimeRouter.set_logOut_OutputPort(
1085 0,
1086 CdhCore::events.get_LogRecv_InputPort(0)
1087 );
1088 ComCcsds::frameAccumulator.set_logOut_OutputPort(
1089 0,
1090 CdhCore::events.get_LogRecv_InputPort(0)
1091 );
1092 ComCcsds::framer.set_logOut_OutputPort(
1093 0,
1094 CdhCore::events.get_LogRecv_InputPort(0)
1095 );
1096 ComCcsds::spacePacketDeframer.set_logOut_OutputPort(
1097 0,
1098 CdhCore::events.get_LogRecv_InputPort(0)
1099 );
1100 ComCcsds::spacePacketFramer.set_logOut_OutputPort(
1101 0,
1102 CdhCore::events.get_LogRecv_InputPort(0)
1103 );
1104 ComCcsds::tcDeframer.set_logOut_OutputPort(
1105 0,
1106 CdhCore::events.get_LogRecv_InputPort(0)
1107 );
1108 DataProducts::dpBufferAccumulator.set_eventOut_OutputPort(
1109 0,
1110 CdhCore::events.get_LogRecv_InputPort(0)
1111 );
1112 DataProducts::dpBufferManager.set_eventOut_OutputPort(
1113 0,
1114 CdhCore::events.get_LogRecv_InputPort(0)
1115 );
1116 DataProducts::dpCat.set_Log_OutputPort(
1117 0,
1118 CdhCore::events.get_LogRecv_InputPort(0)
1119 );
1120 DataProducts::dpMgr.set_eventOut_OutputPort(
1121 0,
1122 CdhCore::events.get_LogRecv_InputPort(0)
1123 );
1124 DataProducts::dpWriter.set_eventOut_OutputPort(
1125 0,
1126 CdhCore::events.get_LogRecv_InputPort(0)
1127 );
1128 FileHandling::fileDownlink.set_eventOut_OutputPort(
1129 0,
1130 CdhCore::events.get_LogRecv_InputPort(0)
1131 );
1132 FileHandling::fileManager.set_eventOut_OutputPort(
1133 0,
1134 CdhCore::events.get_LogRecv_InputPort(0)
1135 );
1136 FileHandling::fileUplink.set_eventOut_OutputPort(
1137 0,
1138 CdhCore::events.get_LogRecv_InputPort(0)
1139 );
1140 FileHandling::prmDb.set_Log_OutputPort(
1141 0,
1142 CdhCore::events.get_LogRecv_InputPort(0)
1143 );
1144 Ref::SG1.set_logOut_OutputPort(
1145 0,
1146 CdhCore::events.get_LogRecv_InputPort(0)
1147 );
1148 Ref::SG2.set_logOut_OutputPort(
1149 0,
1150 CdhCore::events.get_LogRecv_InputPort(0)
1151 );
1152 Ref::SG3.set_logOut_OutputPort(
1153 0,
1154 CdhCore::events.get_LogRecv_InputPort(0)
1155 );
1156 Ref::SG4.set_logOut_OutputPort(
1157 0,
1158 CdhCore::events.get_LogRecv_InputPort(0)
1159 );
1160 Ref::SG5.set_logOut_OutputPort(
1161 0,
1162 CdhCore::events.get_LogRecv_InputPort(0)
1163 );
1164 Ref::cmdSeq.set_logOut_OutputPort(
1165 0,
1166 CdhCore::events.get_LogRecv_InputPort(0)
1167 );
1168 Ref::dpDemo.set_logOut_OutputPort(
1169 0,
1170 CdhCore::events.get_LogRecv_InputPort(0)
1171 );
1172 Ref::pingRcvr.set_Log_OutputPort(
1173 0,
1174 CdhCore::events.get_LogRecv_InputPort(0)
1175 );
1176 Ref::rateGroup1Comp.set_Log_OutputPort(
1177 0,
1178 CdhCore::events.get_LogRecv_InputPort(0)
1179 );
1180 Ref::rateGroup2Comp.set_Log_OutputPort(
1181 0,
1182 CdhCore::events.get_LogRecv_InputPort(0)
1183 );
1184 Ref::rateGroup3Comp.set_Log_OutputPort(
1185 0,
1186 CdhCore::events.get_LogRecv_InputPort(0)
1187 );
1188 Ref::recvBuffComp.set_Log_OutputPort(
1189 0,
1190 CdhCore::events.get_LogRecv_InputPort(0)
1191 );
1192 Ref::sendBuffComp.set_Log_OutputPort(
1193 0,
1194 CdhCore::events.get_LogRecv_InputPort(0)
1195 );
1196 Ref::systemResources.set_Log_OutputPort(
1197 0,
1198 CdhCore::events.get_LogRecv_InputPort(0)
1199 );
1200 Ref::typeDemo.set_logOut_OutputPort(
1201 0,
1202 CdhCore::events.get_LogRecv_InputPort(0)
1203 );
1204
1205 // FaultProtection
1206 CdhCore::events.set_FatalAnnounce_OutputPort(
1207 0,
1208 CdhCore::fatalHandler.get_FatalReceive_InputPort(0)
1209 );
1210
1211 // FileHandling_DataProducts
1212 DataProducts::dpCat.set_fileOut_OutputPort(
1213 0,
1214 FileHandling::fileDownlink.get_SendFile_InputPort(0)
1215 );
1216 FileHandling::fileDownlink.set_FileComplete_OutputPort(
1217 0,
1218 DataProducts::dpCat.get_fileDone_InputPort(0)
1219 );
1220
1221 // Health
1222 CdhCore::cmdDisp.set_pingOut_OutputPort(
1223 0,
1224 CdhCore::health.get_PingReturn_InputPort(0)
1225 );
1226 CdhCore::events.set_pingOut_OutputPort(
1227 0,
1228 CdhCore::health.get_PingReturn_InputPort(1)
1229 );
1230 CdhCore::health.set_PingSend_OutputPort(
1231 0,
1232 CdhCore::cmdDisp.get_pingIn_InputPort(0)
1233 );
1234 CdhCore::health.set_PingSend_OutputPort(
1235 1,
1236 CdhCore::events.get_pingIn_InputPort(0)
1237 );
1238 CdhCore::health.set_PingSend_OutputPort(
1239 2,
1240 CdhCore::tlmSend.get_pingIn_InputPort(0)
1241 );
1242 CdhCore::health.set_PingSend_OutputPort(
1243 3,
1244 DataProducts::dpBufferAccumulator.get_pingIn_InputPort(0)
1245 );
1246 CdhCore::health.set_PingSend_OutputPort(
1247 4,
1248 DataProducts::dpCat.get_pingIn_InputPort(0)
1249 );
1250 CdhCore::health.set_PingSend_OutputPort(
1251 5,
1252 FileHandling::fileDownlink.get_pingIn_InputPort(0)
1253 );
1254 CdhCore::health.set_PingSend_OutputPort(
1255 6,
1256 FileHandling::fileManager.get_pingIn_InputPort(0)
1257 );
1258 CdhCore::health.set_PingSend_OutputPort(
1259 7,
1260 FileHandling::fileUplink.get_pingIn_InputPort(0)
1261 );
1262 CdhCore::health.set_PingSend_OutputPort(
1263 8,
1264 FileHandling::prmDb.get_pingIn_InputPort(0)
1265 );
1266 CdhCore::health.set_PingSend_OutputPort(
1267 9,
1268 Ref::blockDrv.get_PingIn_InputPort(0)
1269 );
1270 CdhCore::health.set_PingSend_OutputPort(
1271 10,
1272 Ref::cmdSeq.get_pingIn_InputPort(0)
1273 );
1274 CdhCore::health.set_PingSend_OutputPort(
1275 11,
1276 Ref::pingRcvr.get_PingIn_InputPort(0)
1277 );
1278 CdhCore::health.set_PingSend_OutputPort(
1279 12,
1280 Ref::rateGroup1Comp.get_PingIn_InputPort(0)
1281 );
1282 CdhCore::health.set_PingSend_OutputPort(
1283 13,
1284 Ref::rateGroup2Comp.get_PingIn_InputPort(0)
1285 );
1286 CdhCore::health.set_PingSend_OutputPort(
1287 14,
1288 Ref::rateGroup3Comp.get_PingIn_InputPort(0)
1289 );
1290 CdhCore::tlmSend.set_pingOut_OutputPort(
1291 0,
1292 CdhCore::health.get_PingReturn_InputPort(2)
1293 );
1294 DataProducts::dpBufferAccumulator.set_pingOut_OutputPort(
1295 0,
1296 CdhCore::health.get_PingReturn_InputPort(3)
1297 );
1298 DataProducts::dpCat.set_pingOut_OutputPort(
1299 0,
1300 CdhCore::health.get_PingReturn_InputPort(4)
1301 );
1302 FileHandling::fileDownlink.set_pingOut_OutputPort(
1303 0,
1304 CdhCore::health.get_PingReturn_InputPort(5)
1305 );
1306 FileHandling::fileManager.set_pingOut_OutputPort(
1307 0,
1308 CdhCore::health.get_PingReturn_InputPort(6)
1309 );
1310 FileHandling::fileUplink.set_pingOut_OutputPort(
1311 0,
1312 CdhCore::health.get_PingReturn_InputPort(7)
1313 );
1314 FileHandling::prmDb.set_pingOut_OutputPort(
1315 0,
1316 CdhCore::health.get_PingReturn_InputPort(8)
1317 );
1318 Ref::blockDrv.set_PingOut_OutputPort(
1319 0,
1320 CdhCore::health.get_PingReturn_InputPort(9)
1321 );
1322 Ref::cmdSeq.set_pingOut_OutputPort(
1323 0,
1324 CdhCore::health.get_PingReturn_InputPort(10)
1325 );
1326 Ref::pingRcvr.set_PingOut_OutputPort(
1327 0,
1328 CdhCore::health.get_PingReturn_InputPort(11)
1329 );
1330 Ref::rateGroup1Comp.set_PingOut_OutputPort(
1331 0,
1332 CdhCore::health.get_PingReturn_InputPort(12)
1333 );
1334 Ref::rateGroup2Comp.set_PingOut_OutputPort(
1335 0,
1336 CdhCore::health.get_PingReturn_InputPort(13)
1337 );
1338 Ref::rateGroup3Comp.set_PingOut_OutputPort(
1339 0,
1340 CdhCore::health.get_PingReturn_InputPort(14)
1341 );
1342
1343 // Parameters
1344 ComCcsds::framer.set_prmGetOut_OutputPort(
1345 0,
1346 FileHandling::prmDb.get_getPrm_InputPort(0)
1347 );
1348 ComCcsds::framer.set_prmSetOut_OutputPort(
1349 0,
1350 FileHandling::prmDb.get_setPrm_InputPort(0)
1351 );
1352 ComCcsds::spacePacketDeframer.set_prmGetOut_OutputPort(
1353 0,
1354 FileHandling::prmDb.get_getPrm_InputPort(0)
1355 );
1356 ComCcsds::spacePacketDeframer.set_prmSetOut_OutputPort(
1357 0,
1358 FileHandling::prmDb.get_setPrm_InputPort(0)
1359 );
1360 ComCcsds::spacePacketFramer.set_prmGetOut_OutputPort(
1361 0,
1362 FileHandling::prmDb.get_getPrm_InputPort(0)
1363 );
1364 ComCcsds::spacePacketFramer.set_prmSetOut_OutputPort(
1365 0,
1366 FileHandling::prmDb.get_setPrm_InputPort(0)
1367 );
1368 ComCcsds::tcDeframer.set_prmGetOut_OutputPort(
1369 0,
1370 FileHandling::prmDb.get_getPrm_InputPort(0)
1371 );
1372 ComCcsds::tcDeframer.set_prmSetOut_OutputPort(
1373 0,
1374 FileHandling::prmDb.get_setPrm_InputPort(0)
1375 );
1376 Ref::dpDemo.set_prmGetOut_OutputPort(
1377 0,
1378 FileHandling::prmDb.get_getPrm_InputPort(0)
1379 );
1380 Ref::dpDemo.set_prmSetOut_OutputPort(
1381 0,
1382 FileHandling::prmDb.get_setPrm_InputPort(0)
1383 );
1384 Ref::recvBuffComp.set_ParamGet_OutputPort(
1385 0,
1386 FileHandling::prmDb.get_getPrm_InputPort(0)
1387 );
1388 Ref::recvBuffComp.set_ParamSet_OutputPort(
1389 0,
1390 FileHandling::prmDb.get_setPrm_InputPort(0)
1391 );
1392 Ref::sendBuffComp.set_ParamGet_OutputPort(
1393 0,
1394 FileHandling::prmDb.get_getPrm_InputPort(0)
1395 );
1396 Ref::sendBuffComp.set_ParamSet_OutputPort(
1397 0,
1398 FileHandling::prmDb.get_setPrm_InputPort(0)
1399 );
1400 Ref::typeDemo.set_prmGetOut_OutputPort(
1401 0,
1402 FileHandling::prmDb.get_getPrm_InputPort(0)
1403 );
1404 Ref::typeDemo.set_prmSetOut_OutputPort(
1405 0,
1406 FileHandling::prmDb.get_setPrm_InputPort(0)
1407 );
1408
1409 // RateGroups
1410 Ref::linuxTimer.set_CycleOut_OutputPort(
1411 0,
1412 Ref::rateGroupDriverComp.get_CycleIn_InputPort(0)
1413 );
1414 Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort(
1415 0,
1416 Ref::SG1.get_schedIn_InputPort(0)
1417 );
1418 Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort(
1419 1,
1420 Ref::SG2.get_schedIn_InputPort(0)
1421 );
1422 Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort(
1423 2,
1424 CdhCore::tlmSend.get_Run_InputPort(0)
1425 );
1426 Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort(
1427 3,
1428 FileHandling::fileDownlink.get_Run_InputPort(0)
1429 );
1430 Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort(
1431 4,
1432 Ref::systemResources.get_run_InputPort(0)
1433 );
1434 Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort(
1435 5,
1436 ComCcsds::comQueue.get_run_InputPort(0)
1437 );
1438 Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort(
1439 6,
1440 CdhCore::cmdDisp.get_run_InputPort(0)
1441 );
1442 Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort(
1443 7,
1444 ComCcsds::aggregator.get_timeout_InputPort(0)
1445 );
1446 Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort(
1447 0,
1448 Ref::cmdSeq.get_schedIn_InputPort(0)
1449 );
1450 Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort(
1451 1,
1452 Ref::sendBuffComp.get_SchedIn_InputPort(0)
1453 );
1454 Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort(
1455 2,
1456 Ref::SG3.get_schedIn_InputPort(0)
1457 );
1458 Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort(
1459 3,
1460 Ref::SG4.get_schedIn_InputPort(0)
1461 );
1462 Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort(
1463 4,
1464 Ref::dpDemo.get_run_InputPort(0)
1465 );
1466 Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort(
1467 5,
1468 FileHandling::fileManager.get_schedIn_InputPort(0)
1469 );
1470 Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort(
1471 0,
1472 CdhCore::health.get_Run_InputPort(0)
1473 );
1474 Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort(
1475 1,
1476 Ref::SG5.get_schedIn_InputPort(0)
1477 );
1478 Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort(
1479 2,
1480 Ref::blockDrv.get_Sched_InputPort(0)
1481 );
1482 Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort(
1483 3,
1484 ComCcsds::commsBufferManager.get_schedIn_InputPort(0)
1485 );
1486 Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort(
1487 4,
1488 DataProducts::dpBufferManager.get_schedIn_InputPort(0)
1489 );
1490 Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort(
1491 5,
1492 DataProducts::dpWriter.get_schedIn_InputPort(0)
1493 );
1494 Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort(
1495 6,
1496 DataProducts::dpMgr.get_schedIn_InputPort(0)
1497 );
1498 Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort(
1499 7,
1500 CdhCore::events.get_run_InputPort(0)
1501 );
1502 Ref::rateGroupDriverComp.set_CycleOut_OutputPort(
1503 0,
1504 Ref::rateGroup1Comp.get_CycleIn_InputPort(0)
1505 );
1506 Ref::rateGroupDriverComp.set_CycleOut_OutputPort(
1507 1,
1508 Ref::rateGroup2Comp.get_CycleIn_InputPort(0)
1509 );
1510 Ref::rateGroupDriverComp.set_CycleOut_OutputPort(
1511 2,
1512 Ref::rateGroup3Comp.get_CycleIn_InputPort(0)
1513 );
1514
1515 // Ref
1516 DataProducts::dpMgr.set_productResponseOut_OutputPort(
1517 0,
1518 Ref::SG1.get_productRecvIn_InputPort(0)
1519 );
1520 DataProducts::dpMgr.set_productResponseOut_OutputPort(
1521 1,
1522 Ref::dpDemo.get_productRecvIn_InputPort(0)
1523 );
1524 Ref::SG1.set_productGetOut_OutputPort(
1525 0,
1526 DataProducts::dpMgr.get_productGetIn_InputPort(0)
1527 );
1528 Ref::SG1.set_productRequestOut_OutputPort(
1529 0,
1530 DataProducts::dpMgr.get_productRequestIn_InputPort(0)
1531 );
1532 Ref::SG1.set_productSendOut_OutputPort(
1533 0,
1534 DataProducts::dpMgr.get_productSendIn_InputPort(0)
1535 );
1536 Ref::blockDrv.set_BufferOut_OutputPort(
1537 0,
1538 Ref::recvBuffComp.get_Data_InputPort(0)
1539 );
1540 Ref::dpDemo.set_productGetOut_OutputPort(
1541 0,
1542 DataProducts::dpMgr.get_productGetIn_InputPort(0)
1543 );
1544 Ref::dpDemo.set_productRequestOut_OutputPort(
1545 0,
1546 DataProducts::dpMgr.get_productRequestIn_InputPort(0)
1547 );
1548 Ref::dpDemo.set_productSendOut_OutputPort(
1549 0,
1550 DataProducts::dpMgr.get_productSendIn_InputPort(0)
1551 );
1552 Ref::sendBuffComp.set_Data_OutputPort(
1553 0,
1554 Ref::blockDrv.get_BufferIn_InputPort(0)
1555 );
1556
1557 // Telemetry
1558 CdhCore::cmdDisp.set_Tlm_OutputPort(
1559 0,
1560 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1561 );
1562 CdhCore::events.set_Tlm_OutputPort(
1563 0,
1564 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1565 );
1566 CdhCore::health.set_Tlm_OutputPort(
1567 0,
1568 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1569 );
1570 CdhCore::version.set_tlmOut_OutputPort(
1571 0,
1572 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1573 );
1574 ComCcsds::comQueue.set_Tlm_OutputPort(
1575 0,
1576 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1577 );
1578 ComCcsds::commsBufferManager.set_tlmOut_OutputPort(
1579 0,
1580 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1581 );
1582 ComCcsds::framer.set_tlmOut_OutputPort(
1583 0,
1584 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1585 );
1586 ComCcsds::spacePacketDeframer.set_tlmOut_OutputPort(
1587 0,
1588 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1589 );
1590 ComCcsds::spacePacketFramer.set_tlmOut_OutputPort(
1591 0,
1592 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1593 );
1594 ComCcsds::tcDeframer.set_tlmOut_OutputPort(
1595 0,
1596 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1597 );
1598 DataProducts::dpBufferAccumulator.set_tlmOut_OutputPort(
1599 0,
1600 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1601 );
1602 DataProducts::dpBufferManager.set_tlmOut_OutputPort(
1603 0,
1604 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1605 );
1606 DataProducts::dpCat.set_Tlm_OutputPort(
1607 0,
1608 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1609 );
1610 DataProducts::dpMgr.set_tlmOut_OutputPort(
1611 0,
1612 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1613 );
1614 DataProducts::dpWriter.set_tlmOut_OutputPort(
1615 0,
1616 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1617 );
1618 FileHandling::fileDownlink.set_tlmOut_OutputPort(
1619 0,
1620 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1621 );
1622 FileHandling::fileManager.set_tlmOut_OutputPort(
1623 0,
1624 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1625 );
1626 FileHandling::fileUplink.set_tlmOut_OutputPort(
1627 0,
1628 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1629 );
1630 Ref::SG1.set_tlmOut_OutputPort(
1631 0,
1632 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1633 );
1634 Ref::SG2.set_tlmOut_OutputPort(
1635 0,
1636 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1637 );
1638 Ref::SG3.set_tlmOut_OutputPort(
1639 0,
1640 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1641 );
1642 Ref::SG4.set_tlmOut_OutputPort(
1643 0,
1644 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1645 );
1646 Ref::SG5.set_tlmOut_OutputPort(
1647 0,
1648 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1649 );
1650 Ref::blockDrv.set_Tlm_OutputPort(
1651 0,
1652 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1653 );
1654 Ref::cmdSeq.set_tlmOut_OutputPort(
1655 0,
1656 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1657 );
1658 Ref::dpDemo.set_tlmOut_OutputPort(
1659 0,
1660 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1661 );
1662 Ref::pingRcvr.set_Tlm_OutputPort(
1663 0,
1664 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1665 );
1666 Ref::rateGroup1Comp.set_Tlm_OutputPort(
1667 0,
1668 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1669 );
1670 Ref::rateGroup2Comp.set_Tlm_OutputPort(
1671 0,
1672 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1673 );
1674 Ref::rateGroup3Comp.set_Tlm_OutputPort(
1675 0,
1676 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1677 );
1678 Ref::recvBuffComp.set_Tlm_OutputPort(
1679 0,
1680 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1681 );
1682 Ref::sendBuffComp.set_Tlm_OutputPort(
1683 0,
1684 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1685 );
1686 Ref::systemResources.set_Tlm_OutputPort(
1687 0,
1688 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1689 );
1690 Ref::typeDemo.set_tlmOut_OutputPort(
1691 0,
1692 CdhCore::tlmSend.get_TlmRecv_InputPort(0)
1693 );
1694
1695 // TextEvents
1696 CdhCore::cmdDisp.set_LogText_OutputPort(
1697 0,
1698 CdhCore::textLogger.get_TextLogger_InputPort(0)
1699 );
1700 CdhCore::events.set_LogText_OutputPort(
1701 0,
1702 CdhCore::textLogger.get_TextLogger_InputPort(0)
1703 );
1704 CdhCore::fatalAdapter.set_LogText_OutputPort(
1705 0,
1706 CdhCore::textLogger.get_TextLogger_InputPort(0)
1707 );
1708 CdhCore::health.set_LogText_OutputPort(
1709 0,
1710 CdhCore::textLogger.get_TextLogger_InputPort(0)
1711 );
1712 CdhCore::tlmSend.set_eventOutText_OutputPort(
1713 0,
1714 CdhCore::textLogger.get_TextLogger_InputPort(0)
1715 );
1716 CdhCore::version.set_logTextOut_OutputPort(
1717 0,
1718 CdhCore::textLogger.get_TextLogger_InputPort(0)
1719 );
1720 ComCcsds::apidManager.set_logTextOut_OutputPort(
1721 0,
1722 CdhCore::textLogger.get_TextLogger_InputPort(0)
1723 );
1724 ComCcsds::comQueue.set_LogText_OutputPort(
1725 0,
1726 CdhCore::textLogger.get_TextLogger_InputPort(0)
1727 );
1728 ComCcsds::commsBufferManager.set_textEventOut_OutputPort(
1729 0,
1730 CdhCore::textLogger.get_TextLogger_InputPort(0)
1731 );
1732 ComCcsds::fprimeRouter.set_logTextOut_OutputPort(
1733 0,
1734 CdhCore::textLogger.get_TextLogger_InputPort(0)
1735 );
1736 ComCcsds::frameAccumulator.set_logTextOut_OutputPort(
1737 0,
1738 CdhCore::textLogger.get_TextLogger_InputPort(0)
1739 );
1740 ComCcsds::framer.set_logTextOut_OutputPort(
1741 0,
1742 CdhCore::textLogger.get_TextLogger_InputPort(0)
1743 );
1744 ComCcsds::spacePacketDeframer.set_logTextOut_OutputPort(
1745 0,
1746 CdhCore::textLogger.get_TextLogger_InputPort(0)
1747 );
1748 ComCcsds::spacePacketFramer.set_logTextOut_OutputPort(
1749 0,
1750 CdhCore::textLogger.get_TextLogger_InputPort(0)
1751 );
1752 ComCcsds::tcDeframer.set_logTextOut_OutputPort(
1753 0,
1754 CdhCore::textLogger.get_TextLogger_InputPort(0)
1755 );
1756 DataProducts::dpBufferAccumulator.set_eventOutText_OutputPort(
1757 0,
1758 CdhCore::textLogger.get_TextLogger_InputPort(0)
1759 );
1760 DataProducts::dpBufferManager.set_textEventOut_OutputPort(
1761 0,
1762 CdhCore::textLogger.get_TextLogger_InputPort(0)
1763 );
1764 DataProducts::dpCat.set_LogText_OutputPort(
1765 0,
1766 CdhCore::textLogger.get_TextLogger_InputPort(0)
1767 );
1768 DataProducts::dpMgr.set_textEventOut_OutputPort(
1769 0,
1770 CdhCore::textLogger.get_TextLogger_InputPort(0)
1771 );
1772 DataProducts::dpWriter.set_textEventOut_OutputPort(
1773 0,
1774 CdhCore::textLogger.get_TextLogger_InputPort(0)
1775 );
1776 FileHandling::fileDownlink.set_textEventOut_OutputPort(
1777 0,
1778 CdhCore::textLogger.get_TextLogger_InputPort(0)
1779 );
1780 FileHandling::fileManager.set_LogText_OutputPort(
1781 0,
1782 CdhCore::textLogger.get_TextLogger_InputPort(0)
1783 );
1784 FileHandling::fileUplink.set_LogText_OutputPort(
1785 0,
1786 CdhCore::textLogger.get_TextLogger_InputPort(0)
1787 );
1788 FileHandling::prmDb.set_LogText_OutputPort(
1789 0,
1790 CdhCore::textLogger.get_TextLogger_InputPort(0)
1791 );
1792 Ref::SG1.set_logTextOut_OutputPort(
1793 0,
1794 CdhCore::textLogger.get_TextLogger_InputPort(0)
1795 );
1796 Ref::SG2.set_logTextOut_OutputPort(
1797 0,
1798 CdhCore::textLogger.get_TextLogger_InputPort(0)
1799 );
1800 Ref::SG3.set_logTextOut_OutputPort(
1801 0,
1802 CdhCore::textLogger.get_TextLogger_InputPort(0)
1803 );
1804 Ref::SG4.set_logTextOut_OutputPort(
1805 0,
1806 CdhCore::textLogger.get_TextLogger_InputPort(0)
1807 );
1808 Ref::SG5.set_logTextOut_OutputPort(
1809 0,
1810 CdhCore::textLogger.get_TextLogger_InputPort(0)
1811 );
1812 Ref::cmdSeq.set_LogText_OutputPort(
1813 0,
1814 CdhCore::textLogger.get_TextLogger_InputPort(0)
1815 );
1816 Ref::dpDemo.set_logTextOut_OutputPort(
1817 0,
1818 CdhCore::textLogger.get_TextLogger_InputPort(0)
1819 );
1820 Ref::pingRcvr.set_LogText_OutputPort(
1821 0,
1822 CdhCore::textLogger.get_TextLogger_InputPort(0)
1823 );
1824 Ref::rateGroup1Comp.set_LogText_OutputPort(
1825 0,
1826 CdhCore::textLogger.get_TextLogger_InputPort(0)
1827 );
1828 Ref::rateGroup2Comp.set_LogText_OutputPort(
1829 0,
1830 CdhCore::textLogger.get_TextLogger_InputPort(0)
1831 );
1832 Ref::rateGroup3Comp.set_LogText_OutputPort(
1833 0,
1834 CdhCore::textLogger.get_TextLogger_InputPort(0)
1835 );
1836 Ref::recvBuffComp.set_LogText_OutputPort(
1837 0,
1838 CdhCore::textLogger.get_TextLogger_InputPort(0)
1839 );
1840 Ref::sendBuffComp.set_LogText_OutputPort(
1841 0,
1842 CdhCore::textLogger.get_TextLogger_InputPort(0)
1843 );
1844 Ref::systemResources.set_LogText_OutputPort(
1845 0,
1846 CdhCore::textLogger.get_TextLogger_InputPort(0)
1847 );
1848 Ref::typeDemo.set_logTextOut_OutputPort(
1849 0,
1850 CdhCore::textLogger.get_TextLogger_InputPort(0)
1851 );
1852
1853 // Time
1854 CdhCore::cmdDisp.set_Time_OutputPort(
1855 0,
1856 Ref::posixTime.get_timeGetPort_InputPort(0)
1857 );
1858 CdhCore::events.set_Time_OutputPort(
1859 0,
1860 Ref::posixTime.get_timeGetPort_InputPort(0)
1861 );
1862 CdhCore::fatalAdapter.set_Time_OutputPort(
1863 0,
1864 Ref::posixTime.get_timeGetPort_InputPort(0)
1865 );
1866 CdhCore::health.set_Time_OutputPort(
1867 0,
1868 Ref::posixTime.get_timeGetPort_InputPort(0)
1869 );
1870 CdhCore::tlmSend.set_timeCaller_OutputPort(
1871 0,
1872 Ref::posixTime.get_timeGetPort_InputPort(0)
1873 );
1874 CdhCore::version.set_timeCaller_OutputPort(
1875 0,
1876 Ref::posixTime.get_timeGetPort_InputPort(0)
1877 );
1878 ComCcsds::apidManager.set_timeCaller_OutputPort(
1879 0,
1880 Ref::posixTime.get_timeGetPort_InputPort(0)
1881 );
1882 ComCcsds::comQueue.set_Time_OutputPort(
1883 0,
1884 Ref::posixTime.get_timeGetPort_InputPort(0)
1885 );
1886 ComCcsds::commsBufferManager.set_timeCaller_OutputPort(
1887 0,
1888 Ref::posixTime.get_timeGetPort_InputPort(0)
1889 );
1890 ComCcsds::fprimeRouter.set_timeCaller_OutputPort(
1891 0,
1892 Ref::posixTime.get_timeGetPort_InputPort(0)
1893 );
1894 ComCcsds::frameAccumulator.set_timeCaller_OutputPort(
1895 0,
1896 Ref::posixTime.get_timeGetPort_InputPort(0)
1897 );
1898 ComCcsds::framer.set_timeCaller_OutputPort(
1899 0,
1900 Ref::posixTime.get_timeGetPort_InputPort(0)
1901 );
1902 ComCcsds::spacePacketDeframer.set_timeCaller_OutputPort(
1903 0,
1904 Ref::posixTime.get_timeGetPort_InputPort(0)
1905 );
1906 ComCcsds::spacePacketFramer.set_timeCaller_OutputPort(
1907 0,
1908 Ref::posixTime.get_timeGetPort_InputPort(0)
1909 );
1910 ComCcsds::tcDeframer.set_timeCaller_OutputPort(
1911 0,
1912 Ref::posixTime.get_timeGetPort_InputPort(0)
1913 );
1914 DataProducts::dpBufferAccumulator.set_timeCaller_OutputPort(
1915 0,
1916 Ref::posixTime.get_timeGetPort_InputPort(0)
1917 );
1918 DataProducts::dpBufferManager.set_timeCaller_OutputPort(
1919 0,
1920 Ref::posixTime.get_timeGetPort_InputPort(0)
1921 );
1922 DataProducts::dpCat.set_Time_OutputPort(
1923 0,
1924 Ref::posixTime.get_timeGetPort_InputPort(0)
1925 );
1926 DataProducts::dpMgr.set_timeGetOut_OutputPort(
1927 0,
1928 Ref::posixTime.get_timeGetPort_InputPort(0)
1929 );
1930 DataProducts::dpWriter.set_timeGetOut_OutputPort(
1931 0,
1932 Ref::posixTime.get_timeGetPort_InputPort(0)
1933 );
1934 FileHandling::fileDownlink.set_timeCaller_OutputPort(
1935 0,
1936 Ref::posixTime.get_timeGetPort_InputPort(0)
1937 );
1938 FileHandling::fileManager.set_timeCaller_OutputPort(
1939 0,
1940 Ref::posixTime.get_timeGetPort_InputPort(0)
1941 );
1942 FileHandling::fileUplink.set_timeCaller_OutputPort(
1943 0,
1944 Ref::posixTime.get_timeGetPort_InputPort(0)
1945 );
1946 FileHandling::prmDb.set_Time_OutputPort(
1947 0,
1948 Ref::posixTime.get_timeGetPort_InputPort(0)
1949 );
1950 Ref::SG1.set_timeCaller_OutputPort(
1951 0,
1952 Ref::posixTime.get_timeGetPort_InputPort(0)
1953 );
1954 Ref::SG2.set_timeCaller_OutputPort(
1955 0,
1956 Ref::posixTime.get_timeGetPort_InputPort(0)
1957 );
1958 Ref::SG3.set_timeCaller_OutputPort(
1959 0,
1960 Ref::posixTime.get_timeGetPort_InputPort(0)
1961 );
1962 Ref::SG4.set_timeCaller_OutputPort(
1963 0,
1964 Ref::posixTime.get_timeGetPort_InputPort(0)
1965 );
1966 Ref::SG5.set_timeCaller_OutputPort(
1967 0,
1968 Ref::posixTime.get_timeGetPort_InputPort(0)
1969 );
1970 Ref::blockDrv.set_Time_OutputPort(
1971 0,
1972 Ref::posixTime.get_timeGetPort_InputPort(0)
1973 );
1974 Ref::cmdSeq.set_timeCaller_OutputPort(
1975 0,
1976 Ref::posixTime.get_timeGetPort_InputPort(0)
1977 );
1978 Ref::dpDemo.set_timeCaller_OutputPort(
1979 0,
1980 Ref::posixTime.get_timeGetPort_InputPort(0)
1981 );
1982 Ref::pingRcvr.set_Time_OutputPort(
1983 0,
1984 Ref::posixTime.get_timeGetPort_InputPort(0)
1985 );
1986 Ref::rateGroup1Comp.set_Time_OutputPort(
1987 0,
1988 Ref::posixTime.get_timeGetPort_InputPort(0)
1989 );
1990 Ref::rateGroup2Comp.set_Time_OutputPort(
1991 0,
1992 Ref::posixTime.get_timeGetPort_InputPort(0)
1993 );
1994 Ref::rateGroup3Comp.set_Time_OutputPort(
1995 0,
1996 Ref::posixTime.get_timeGetPort_InputPort(0)
1997 );
1998 Ref::recvBuffComp.set_Time_OutputPort(
1999 0,
2000 Ref::posixTime.get_timeGetPort_InputPort(0)
2001 );
2002 Ref::sendBuffComp.set_Time_OutputPort(
2003 0,
2004 Ref::posixTime.get_timeGetPort_InputPort(0)
2005 );
2006 Ref::systemResources.set_Time_OutputPort(
2007 0,
2008 Ref::posixTime.get_timeGetPort_InputPort(0)
2009 );
2010 Ref::typeDemo.set_timeCaller_OutputPort(
2011 0,
2012 Ref::posixTime.get_timeGetPort_InputPort(0)
2013 );
2014
2015 // Uplink
2016 ComCcsds::fprimeRouter.set_dataReturnOut_OutputPort(
2017 0,
2018 ComCcsds::spacePacketDeframer.get_dataReturnIn_InputPort(0)
2019 );
2020 ComCcsds::frameAccumulator.set_bufferAllocate_OutputPort(
2021 0,
2022 ComCcsds::commsBufferManager.get_bufferGetCallee_InputPort(0)
2023 );
2024 ComCcsds::frameAccumulator.set_bufferDeallocate_OutputPort(
2025 0,
2026 ComCcsds::commsBufferManager.get_bufferSendIn_InputPort(0)
2027 );
2028 ComCcsds::frameAccumulator.set_dataOut_OutputPort(
2029 0,
2030 ComCcsds::tcDeframer.get_dataIn_InputPort(0)
2031 );
2032 ComCcsds::spacePacketDeframer.set_dataOut_OutputPort(
2033 0,
2034 ComCcsds::fprimeRouter.get_dataIn_InputPort(0)
2035 );
2036 ComCcsds::spacePacketDeframer.set_dataReturnOut_OutputPort(
2037 0,
2038 ComCcsds::tcDeframer.get_dataReturnIn_InputPort(0)
2039 );
2040 ComCcsds::spacePacketDeframer.set_validateApidSeqCount_OutputPort(
2041 0,
2042 ComCcsds::apidManager.get_validateApidSeqCountIn_InputPort(0)
2043 );
2044 ComCcsds::tcDeframer.set_dataOut_OutputPort(
2045 0,
2046 ComCcsds::spacePacketDeframer.get_dataIn_InputPort(0)
2047 );
2048 ComCcsds::tcDeframer.set_dataReturnOut_OutputPort(
2049 0,
2050 ComCcsds::frameAccumulator.get_dataReturnIn_InputPort(0)
2051 );
2052
2053 #endif
2054
2055 1 }
2056
2057 1 void regCommands() {
2058 1 CdhCore::cmdDisp.regCommands();
2059 1 CdhCore::events.regCommands();
2060 1 CdhCore::health.regCommands();
2061 1 CdhCore::version.regCommands();
2062 1 ComCcsds::comQueue.regCommands();
2063 1 DataProducts::dpBufferAccumulator.regCommands();
2064 1 DataProducts::dpCat.regCommands();
2065 1 DataProducts::dpMgr.regCommands();
2066 1 DataProducts::dpWriter.regCommands();
2067 1 FileHandling::fileDownlink.regCommands();
2068 1 FileHandling::fileManager.regCommands();
2069 1 FileHandling::prmDb.regCommands();
2070 1 Ref::SG1.regCommands();
2071 1 Ref::SG2.regCommands();
2072 1 Ref::SG3.regCommands();
2073 1 Ref::SG4.regCommands();
2074 1 Ref::SG5.regCommands();
2075 1 Ref::cmdSeq.regCommands();
2076 1 Ref::dpDemo.regCommands();
2077 1 Ref::pingRcvr.regCommands();
2078 1 Ref::recvBuffComp.regCommands();
2079 1 Ref::sendBuffComp.regCommands();
2080 1 Ref::systemResources.regCommands();
2081 1 Ref::typeDemo.regCommands();
2082 1 }
2083
2084 void readParameters() {
2085 FileHandling::prmDb.readParamFile();
2086 }
2087
2088 1 void loadParameters() {
2089 1 Ref::recvBuffComp.loadParameters();
2090 1 Ref::sendBuffComp.loadParameters();
2091 1 Ref::typeDemo.loadParameters();
2092 1 }
2093
2094 1 void startTasks(const TopologyState& state) {
2095 1 CdhCore::cmdDisp.start(
2096 static_cast<FwTaskPriorityType>(Priorities::CdhCore_cmdDisp),
2097 static_cast<Os::Task::ParamType>(StackSizes::CdhCore_cmdDisp),
2098 static_cast<Os::Task::ParamType>(CPUs::CdhCore_cmdDisp),
2099 static_cast<Os::Task::ParamType>(TaskIds::CdhCore_cmdDisp)
2100 );
2101 1 CdhCore::events.start(
2102 static_cast<FwTaskPriorityType>(Priorities::CdhCore_events),
2103 static_cast<Os::Task::ParamType>(StackSizes::CdhCore_events),
2104 static_cast<Os::Task::ParamType>(CPUs::CdhCore_events),
2105 static_cast<Os::Task::ParamType>(TaskIds::CdhCore_events)
2106 );
2107 1 CdhCore::tlmSend.start(
2108 static_cast<FwTaskPriorityType>(Priorities::CdhCore_tlmSend),
2109 static_cast<Os::Task::ParamType>(StackSizes::CdhCore_tlmSend),
2110 static_cast<Os::Task::ParamType>(CPUs::CdhCore_tlmSend),
2111 static_cast<Os::Task::ParamType>(TaskIds::CdhCore_tlmSend)
2112 );
2113 // Startup TLM and EVENTS
2114 1 CdhCore::version.start();
2115 1 ComCcsds::aggregator.start(
2116 static_cast<FwTaskPriorityType>(Priorities::ComCcsds_aggregator),
2117 static_cast<Os::Task::ParamType>(StackSizes::ComCcsds_aggregator),
2118 static_cast<Os::Task::ParamType>(CPUs::ComCcsds_aggregator),
2119 static_cast<Os::Task::ParamType>(TaskIds::ComCcsds_aggregator)
2120 );
2121 1 ComCcsds::comQueue.start(
2122 static_cast<FwTaskPriorityType>(Priorities::ComCcsds_comQueue),
2123 static_cast<Os::Task::ParamType>(StackSizes::ComCcsds_comQueue),
2124 static_cast<Os::Task::ParamType>(CPUs::ComCcsds_comQueue),
2125 static_cast<Os::Task::ParamType>(TaskIds::ComCcsds_comQueue)
2126 );
2127 1 DataProducts::dpBufferAccumulator.start(
2128 static_cast<FwTaskPriorityType>(Priorities::DataProducts_dpBufferAccumulator),
2129 static_cast<Os::Task::ParamType>(StackSizes::DataProducts_dpBufferAccumulator),
2130 static_cast<Os::Task::ParamType>(CPUs::DataProducts_dpBufferAccumulator),
2131 static_cast<Os::Task::ParamType>(TaskIds::DataProducts_dpBufferAccumulator)
2132 );
2133 1 DataProducts::dpCat.start(
2134 static_cast<FwTaskPriorityType>(Priorities::DataProducts_dpCat),
2135 static_cast<Os::Task::ParamType>(StackSizes::DataProducts_dpCat),
2136 static_cast<Os::Task::ParamType>(CPUs::DataProducts_dpCat),
2137 static_cast<Os::Task::ParamType>(TaskIds::DataProducts_dpCat)
2138 );
2139 1 DataProducts::dpMgr.start(
2140 static_cast<FwTaskPriorityType>(Priorities::DataProducts_dpMgr),
2141 static_cast<Os::Task::ParamType>(StackSizes::DataProducts_dpMgr),
2142 static_cast<Os::Task::ParamType>(CPUs::DataProducts_dpMgr),
2143 static_cast<Os::Task::ParamType>(TaskIds::DataProducts_dpMgr)
2144 );
2145 1 DataProducts::dpWriter.start(
2146 static_cast<FwTaskPriorityType>(Priorities::DataProducts_dpWriter),
2147 static_cast<Os::Task::ParamType>(StackSizes::DataProducts_dpWriter),
2148 static_cast<Os::Task::ParamType>(CPUs::DataProducts_dpWriter),
2149 static_cast<Os::Task::ParamType>(TaskIds::DataProducts_dpWriter)
2150 );
2151 1 FileHandling::fileDownlink.start(
2152 static_cast<FwTaskPriorityType>(Priorities::FileHandling_fileDownlink),
2153 static_cast<Os::Task::ParamType>(StackSizes::FileHandling_fileDownlink),
2154 static_cast<Os::Task::ParamType>(CPUs::FileHandling_fileDownlink),
2155 static_cast<Os::Task::ParamType>(TaskIds::FileHandling_fileDownlink)
2156 );
2157 1 FileHandling::fileManager.start(
2158 static_cast<FwTaskPriorityType>(Priorities::FileHandling_fileManager),
2159 static_cast<Os::Task::ParamType>(StackSizes::FileHandling_fileManager),
2160 static_cast<Os::Task::ParamType>(CPUs::FileHandling_fileManager),
2161 static_cast<Os::Task::ParamType>(TaskIds::FileHandling_fileManager)
2162 );
2163 1 FileHandling::fileUplink.start(
2164 static_cast<FwTaskPriorityType>(Priorities::FileHandling_fileUplink),
2165 static_cast<Os::Task::ParamType>(StackSizes::FileHandling_fileUplink),
2166 static_cast<Os::Task::ParamType>(CPUs::FileHandling_fileUplink),
2167 static_cast<Os::Task::ParamType>(TaskIds::FileHandling_fileUplink)
2168 );
2169 1 FileHandling::prmDb.start(
2170 static_cast<FwTaskPriorityType>(Priorities::FileHandling_prmDb),
2171 static_cast<Os::Task::ParamType>(StackSizes::FileHandling_prmDb),
2172 static_cast<Os::Task::ParamType>(CPUs::FileHandling_prmDb),
2173 static_cast<Os::Task::ParamType>(TaskIds::FileHandling_prmDb)
2174 );
2175 1 Ref::blockDrv.start(
2176 static_cast<FwTaskPriorityType>(Priorities::Ref_blockDrv),
2177 static_cast<Os::Task::ParamType>(StackSizes::Ref_blockDrv),
2178 Os::Task::TASK_DEFAULT, // Default CPU
2179 static_cast<Os::Task::ParamType>(TaskIds::Ref_blockDrv)
2180 );
2181 1 Ref::cmdSeq.start(
2182 static_cast<FwTaskPriorityType>(Priorities::Ref_cmdSeq),
2183 static_cast<Os::Task::ParamType>(StackSizes::Ref_cmdSeq),
2184 Os::Task::TASK_DEFAULT, // Default CPU
2185 static_cast<Os::Task::ParamType>(TaskIds::Ref_cmdSeq)
2186 );
2187 1 Ref::dpDemo.start(
2188 static_cast<FwTaskPriorityType>(Priorities::Ref_dpDemo),
2189 static_cast<Os::Task::ParamType>(StackSizes::Ref_dpDemo),
2190 Os::Task::TASK_DEFAULT, // Default CPU
2191 static_cast<Os::Task::ParamType>(TaskIds::Ref_dpDemo)
2192 );
2193 1 Ref::pingRcvr.start(
2194 static_cast<FwTaskPriorityType>(Priorities::Ref_pingRcvr),
2195 static_cast<Os::Task::ParamType>(StackSizes::Ref_pingRcvr),
2196 Os::Task::TASK_DEFAULT, // Default CPU
2197 static_cast<Os::Task::ParamType>(TaskIds::Ref_pingRcvr)
2198 );
2199 1 Ref::rateGroup1Comp.start(
2200 static_cast<FwTaskPriorityType>(Priorities::Ref_rateGroup1Comp),
2201 static_cast<Os::Task::ParamType>(StackSizes::Ref_rateGroup1Comp),
2202 Os::Task::TASK_DEFAULT, // Default CPU
2203 static_cast<Os::Task::ParamType>(TaskIds::Ref_rateGroup1Comp)
2204 );
2205 1 Ref::rateGroup2Comp.start(
2206 static_cast<FwTaskPriorityType>(Priorities::Ref_rateGroup2Comp),
2207 static_cast<Os::Task::ParamType>(StackSizes::Ref_rateGroup2Comp),
2208 Os::Task::TASK_DEFAULT, // Default CPU
2209 static_cast<Os::Task::ParamType>(TaskIds::Ref_rateGroup2Comp)
2210 );
2211 1 Ref::rateGroup3Comp.start(
2212 static_cast<FwTaskPriorityType>(Priorities::Ref_rateGroup3Comp),
2213 static_cast<Os::Task::ParamType>(StackSizes::Ref_rateGroup3Comp),
2214 Os::Task::TASK_DEFAULT, // Default CPU
2215 static_cast<Os::Task::ParamType>(TaskIds::Ref_rateGroup3Comp)
2216 );
2217 1 }
2218
2219 1 void stopTasks(const TopologyState& state) {
2220 1 CdhCore::cmdDisp.exit();
2221 1 CdhCore::events.exit();
2222 1 CdhCore::tlmSend.exit();
2223 1 ComCcsds::aggregator.exit();
2224 1 ComCcsds::comQueue.exit();
2225 1 DataProducts::dpBufferAccumulator.exit();
2226 1 DataProducts::dpCat.exit();
2227 1 DataProducts::dpMgr.exit();
2228 1 DataProducts::dpWriter.exit();
2229 1 FileHandling::fileDownlink.exit();
2230 1 FileHandling::fileManager.exit();
2231 1 FileHandling::fileUplink.exit();
2232 1 FileHandling::prmDb.exit();
2233 1 Ref::blockDrv.exit();
2234 1 Ref::cmdSeq.exit();
2235 1 Ref::dpDemo.exit();
2236 1 Ref::pingRcvr.exit();
2237 1 Ref::rateGroup1Comp.exit();
2238 1 Ref::rateGroup2Comp.exit();
2239 1 Ref::rateGroup3Comp.exit();
2240 1 }
2241
2242 1 void freeThreads(const TopologyState& state) {
2243 1 (void) CdhCore::cmdDisp.ActiveComponentBase::join();
2244 1 (void) CdhCore::events.ActiveComponentBase::join();
2245 1 (void) CdhCore::tlmSend.ActiveComponentBase::join();
2246 1 (void) ComCcsds::aggregator.ActiveComponentBase::join();
2247 1 (void) ComCcsds::comQueue.ActiveComponentBase::join();
2248 1 (void) DataProducts::dpBufferAccumulator.ActiveComponentBase::join();
2249 1 (void) DataProducts::dpCat.ActiveComponentBase::join();
2250 1 (void) DataProducts::dpMgr.ActiveComponentBase::join();
2251 1 (void) DataProducts::dpWriter.ActiveComponentBase::join();
2252 1 (void) FileHandling::fileDownlink.ActiveComponentBase::join();
2253 1 (void) FileHandling::fileManager.ActiveComponentBase::join();
2254 1 (void) FileHandling::fileUplink.ActiveComponentBase::join();
2255 1 (void) FileHandling::prmDb.ActiveComponentBase::join();
2256 1 (void) Ref::blockDrv.ActiveComponentBase::join();
2257 1 (void) Ref::cmdSeq.ActiveComponentBase::join();
2258 1 (void) Ref::dpDemo.ActiveComponentBase::join();
2259 1 (void) Ref::pingRcvr.ActiveComponentBase::join();
2260 1 (void) Ref::rateGroup1Comp.ActiveComponentBase::join();
2261 1 (void) Ref::rateGroup2Comp.ActiveComponentBase::join();
2262 1 (void) Ref::rateGroup3Comp.ActiveComponentBase::join();
2263 1 }
2264
2265 1 void tearDownComponents(const TopologyState& state) {
2266 1 ComCcsds::comQueue.cleanup();
2267 1 ComCcsds::commsBufferManager.cleanup();
2268 1 ComCcsds::frameAccumulator.cleanup();
2269 1 DataProducts::dpBufferAccumulator.deallocateQueue(DataProducts::Allocation::memAllocator);
2270 1 DataProducts::dpCat.shutdown();
2271 1 DataProducts::dpBufferManager.cleanup();
2272 1 }
2273
2274 1 void deinitComponents(const TopologyState& state) {
2275 1 CdhCore::cmdDisp.deinit();
2276 1 CdhCore::events.deinit();
2277 1 CdhCore::fatalAdapter.deinit();
2278 1 CdhCore::fatalHandler.deinit();
2279 1 CdhCore::health.deinit();
2280 1 CdhCore::textLogger.deinit();
2281 1 CdhCore::tlmSend.deinit();
2282 1 CdhCore::version.deinit();
2283 1 ComCcsds::aggregator.deinit();
2284 1 ComCcsds::apidManager.deinit();
2285 1 ComCcsds::comQueue.deinit();
2286 1 ComCcsds::comStub.deinit();
2287 1 ComCcsds::commsBufferManager.deinit();
2288 1 ComCcsds::fprimeRouter.deinit();
2289 1 ComCcsds::frameAccumulator.deinit();
2290 1 ComCcsds::framer.deinit();
2291 1 ComCcsds::spacePacketDeframer.deinit();
2292 1 ComCcsds::spacePacketFramer.deinit();
2293 1 ComCcsds::tcDeframer.deinit();
2294 1 DataProducts::dpBufferAccumulator.deinit();
2295 1 DataProducts::dpBufferManager.deinit();
2296 1 DataProducts::dpCat.deinit();
2297 1 DataProducts::dpMgr.deinit();
2298 1 DataProducts::dpWriter.deinit();
2299 1 FileHandling::fileDownlink.deinit();
2300 1 FileHandling::fileManager.deinit();
2301 1 FileHandling::fileUplink.deinit();
2302 1 FileHandling::prmDb.deinit();
2303 1 Ref::SG1.deinit();
2304 1 Ref::SG2.deinit();
2305 1 Ref::SG3.deinit();
2306 1 Ref::SG4.deinit();
2307 1 Ref::SG5.deinit();
2308 1 Ref::blockDrv.deinit();
2309 1 Ref::cmdSeq.deinit();
2310 1 Ref::comDriver.deinit();
2311 1 Ref::dpDemo.deinit();
2312 1 Ref::linuxTimer.deinit();
2313 1 Ref::pingRcvr.deinit();
2314 1 Ref::posixTime.deinit();
2315 1 Ref::rateGroup1Comp.deinit();
2316 1 Ref::rateGroup2Comp.deinit();
2317 1 Ref::rateGroup3Comp.deinit();
2318 1 Ref::rateGroupDriverComp.deinit();
2319 1 Ref::recvBuffComp.deinit();
2320 1 Ref::sendBuffComp.deinit();
2321 1 Ref::systemResources.deinit();
2322 1 Ref::typeDemo.deinit();
2323 1 }
2324
2325 // ----------------------------------------------------------------------
2326 // Setup and teardown functions
2327 // ----------------------------------------------------------------------
2328
2329 void setup(const TopologyState& state) {
2330 initComponents(state);
2331 configComponents(state);
2332 setBaseIds();
2333 connectComponents();
2334 regCommands();
2335 readParameters();
2336 loadParameters();
2337 startTasks(state);
2338 }
2339
2340 void teardown(const TopologyState& state) {
2341 stopTasks(state);
2342 freeThreads(state);
2343 tearDownComponents(state);
2344 deinitComponents(state);
2345 }
2346
2347 }
2348
2349 #if FW_DIRECT_PORT_CALLS
2350
2351 // ----------------------------------------------------------------------
2352 // Topology-dependent component implementation
2353 // ----------------------------------------------------------------------
2354
2355 namespace Drv {
2356
2357 bool TcpClientComponentBase::isConnected_allocate_OutputPort(FwIndexType portNum) const {
2358 FW_ASSERT(
2359 (0 <= portNum) && (portNum < NUM_ALLOCATE_OUTPUT_PORTS),
2360 static_cast<FwAssertArgType>(portNum),
2361 static_cast<FwAssertArgType>(NUM_ALLOCATE_OUTPUT_PORTS)
2362 );
2363 bool result = false;
2364 switch (portNum) {
2365 case 0:
2366 result = true;
2367 break;
2368 default:
2369 break;
2370 }
2371 return result;
2372 }
2373
2374 bool TcpClientComponentBase::isConnected_deallocate_OutputPort(FwIndexType portNum) const {
2375 FW_ASSERT(
2376 (0 <= portNum) && (portNum < NUM_DEALLOCATE_OUTPUT_PORTS),
2377 static_cast<FwAssertArgType>(portNum),
2378 static_cast<FwAssertArgType>(NUM_DEALLOCATE_OUTPUT_PORTS)
2379 );
2380 bool result = false;
2381 switch (portNum) {
2382 case 0:
2383 result = true;
2384 break;
2385 default:
2386 break;
2387 }
2388 return result;
2389 }
2390
2391 1 bool TcpClientComponentBase::isConnected_ready_OutputPort(FwIndexType portNum) const {
2392 1 FW_ASSERT(
2393 (0 <= portNum) && (portNum < NUM_READY_OUTPUT_PORTS),
2394 static_cast<FwAssertArgType>(portNum),
2395 static_cast<FwAssertArgType>(NUM_READY_OUTPUT_PORTS)
2396 );
2397 1 bool result = false;
2398
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
2399 1 case 0:
2400 1 result = true;
2401 1 break;
2402 default:
2403 break;
2404 }
2405 1 return result;
2406 }
2407
2408 bool TcpClientComponentBase::isConnected_recv_OutputPort(FwIndexType portNum) const {
2409 FW_ASSERT(
2410 (0 <= portNum) && (portNum < NUM_RECV_OUTPUT_PORTS),
2411 static_cast<FwAssertArgType>(portNum),
2412 static_cast<FwAssertArgType>(NUM_RECV_OUTPUT_PORTS)
2413 );
2414 bool result = false;
2415 switch (portNum) {
2416 case 0:
2417 result = true;
2418 break;
2419 default:
2420 break;
2421 }
2422 return result;
2423 }
2424
2425 615 Fw::Buffer TcpClientComponentBase::allocate_out(
2426 FwIndexType portNum,
2427 FwSizeType size
2428 ) const {
2429 615 FW_ASSERT(
2430 (0 <= portNum) && (portNum < NUM_ALLOCATE_OUTPUT_PORTS),
2431 static_cast<FwAssertArgType>(portNum),
2432 static_cast<FwAssertArgType>(NUM_ALLOCATE_OUTPUT_PORTS)
2433 );
2434 615 Fw::Buffer _result = {};
2435
1/2
✓ Branch 0 taken 615 times.
✗ Branch 1 not taken.
615 switch (portNum) {
2436 615 case 0:
2437
1/1
✓ Branch 1 taken 615 times.
1230 _result = ComCcsds::commsBufferManager.bufferGetCallee_handlerBase(
2438 0,
2439 size
2440
1/1
✓ Branch 1 taken 615 times.
615 );
2441 615 break;
2442 default:
2443 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
2444 break;
2445 }
2446 615 return _result;
2447 }
2448
2449 615 void TcpClientComponentBase::deallocate_out(
2450 FwIndexType portNum,
2451 Fw::Buffer& fwBuffer
2452 ) const {
2453 615 FW_ASSERT(
2454 (0 <= portNum) && (portNum < NUM_DEALLOCATE_OUTPUT_PORTS),
2455 static_cast<FwAssertArgType>(portNum),
2456 static_cast<FwAssertArgType>(NUM_DEALLOCATE_OUTPUT_PORTS)
2457 );
2458
1/2
✓ Branch 0 taken 615 times.
✗ Branch 1 not taken.
615 switch (portNum) {
2459 615 case 0:
2460 615 ComCcsds::commsBufferManager.bufferSendIn_handlerBase(
2461 0,
2462 fwBuffer
2463 );
2464 615 break;
2465 default:
2466 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
2467 break;
2468 }
2469 615 }
2470
2471 1 void TcpClientComponentBase::ready_out(FwIndexType portNum) const {
2472 1 FW_ASSERT(
2473 (0 <= portNum) && (portNum < NUM_READY_OUTPUT_PORTS),
2474 static_cast<FwAssertArgType>(portNum),
2475 static_cast<FwAssertArgType>(NUM_READY_OUTPUT_PORTS)
2476 );
2477
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
2478 1 case 0:
2479 1 ComCcsds::comStub.drvConnected_handlerBase(0);
2480 1 break;
2481 default:
2482 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
2483 break;
2484 }
2485 1 }
2486
2487 615 void TcpClientComponentBase::recv_out(
2488 FwIndexType portNum,
2489 Fw::Buffer& buffer,
2490 const Drv::ByteStreamStatus& status
2491 ) const {
2492 615 FW_ASSERT(
2493 (0 <= portNum) && (portNum < NUM_RECV_OUTPUT_PORTS),
2494 static_cast<FwAssertArgType>(portNum),
2495 static_cast<FwAssertArgType>(NUM_RECV_OUTPUT_PORTS)
2496 );
2497
1/2
✓ Branch 0 taken 615 times.
✗ Branch 1 not taken.
615 switch (portNum) {
2498 615 case 0:
2499 615 ComCcsds::comStub.drvReceiveIn_handlerBase(
2500 0,
2501 buffer,
2502 status
2503 );
2504 615 break;
2505 default:
2506 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
2507 break;
2508 }
2509 615 }
2510
2511 }
2512
2513 namespace Ref {
2514
2515 bool BlockDriverComponentBase::isConnected_BufferOut_OutputPort(FwIndexType portNum) const {
2516 FW_ASSERT(
2517 (0 <= portNum) && (portNum < NUM_BUFFEROUT_OUTPUT_PORTS),
2518 static_cast<FwAssertArgType>(portNum),
2519 static_cast<FwAssertArgType>(NUM_BUFFEROUT_OUTPUT_PORTS)
2520 );
2521 bool result = false;
2522 switch (portNum) {
2523 case 0:
2524 result = true;
2525 break;
2526 default:
2527 break;
2528 }
2529 return result;
2530 }
2531
2532 bool BlockDriverComponentBase::isConnected_CycleOut_OutputPort(FwIndexType portNum) const {
2533 FW_ASSERT(
2534 (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS),
2535 static_cast<FwAssertArgType>(portNum),
2536 static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS)
2537 );
2538 bool result = false;
2539 switch (portNum) {
2540 default:
2541 break;
2542 }
2543 return result;
2544 }
2545
2546 bool BlockDriverComponentBase::isConnected_PingOut_OutputPort(FwIndexType portNum) const {
2547 FW_ASSERT(
2548 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
2549 static_cast<FwAssertArgType>(portNum),
2550 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
2551 );
2552 bool result = false;
2553 switch (portNum) {
2554 case 0:
2555 result = true;
2556 break;
2557 default:
2558 break;
2559 }
2560 return result;
2561 }
2562
2563 59 bool BlockDriverComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
2564 59 FW_ASSERT(
2565 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
2566 static_cast<FwAssertArgType>(portNum),
2567 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
2568 );
2569 59 bool result = false;
2570
1/2
✓ Branch 0 taken 59 times.
✗ Branch 1 not taken.
59 switch (portNum) {
2571 59 case 0:
2572 59 result = true;
2573 59 break;
2574 default:
2575 break;
2576 }
2577 59 return result;
2578 }
2579
2580 118 bool BlockDriverComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const {
2581 118 FW_ASSERT(
2582 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
2583 static_cast<FwAssertArgType>(portNum),
2584 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
2585 );
2586 118 bool result = false;
2587
1/2
✓ Branch 0 taken 118 times.
✗ Branch 1 not taken.
118 switch (portNum) {
2588 118 case 0:
2589 118 result = true;
2590 118 break;
2591 default:
2592 break;
2593 }
2594 118 return result;
2595 }
2596
2597 void BlockDriverComponentBase::BufferOut_out(
2598 FwIndexType portNum,
2599 Drv::DataBuffer& buff
2600 ) const {
2601 FW_ASSERT(
2602 (0 <= portNum) && (portNum < NUM_BUFFEROUT_OUTPUT_PORTS),
2603 static_cast<FwAssertArgType>(portNum),
2604 static_cast<FwAssertArgType>(NUM_BUFFEROUT_OUTPUT_PORTS)
2605 );
2606 switch (portNum) {
2607 case 0:
2608 Ref::recvBuffComp.Data_handlerBase(
2609 0,
2610 buff
2611 );
2612 break;
2613 default:
2614 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
2615 break;
2616 }
2617 }
2618
2619 void BlockDriverComponentBase::CycleOut_out(
2620 FwIndexType portNum,
2621 Os::RawTime& cycleStart
2622 ) const {
2623 FW_ASSERT(
2624 (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS),
2625 static_cast<FwAssertArgType>(portNum),
2626 static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS)
2627 );
2628 switch (portNum) {
2629 default:
2630 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
2631 break;
2632 }
2633 }
2634
2635 59 void BlockDriverComponentBase::PingOut_out(
2636 FwIndexType portNum,
2637 U32 key
2638 ) const {
2639 59 FW_ASSERT(
2640 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
2641 static_cast<FwAssertArgType>(portNum),
2642 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
2643 );
2644
1/2
✓ Branch 0 taken 59 times.
✗ Branch 1 not taken.
59 switch (portNum) {
2645 59 case 0:
2646 59 CdhCore::health.PingReturn_handlerBase(
2647 9,
2648 key
2649 );
2650 59 break;
2651 default:
2652 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
2653 break;
2654 }
2655 59 }
2656
2657 59 void BlockDriverComponentBase::Time_out(
2658 FwIndexType portNum,
2659 Fw::Time& time
2660 ) const {
2661 59 FW_ASSERT(
2662 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
2663 static_cast<FwAssertArgType>(portNum),
2664 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
2665 );
2666
1/2
✓ Branch 0 taken 59 times.
✗ Branch 1 not taken.
59 switch (portNum) {
2667 59 case 0:
2668 59 Ref::posixTime.timeGetPort_handlerBase(
2669 0,
2670 time
2671 );
2672 59 break;
2673 default:
2674 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
2675 break;
2676 }
2677 59 }
2678
2679 59 void BlockDriverComponentBase::Tlm_out(
2680 FwIndexType portNum,
2681 FwChanIdType id,
2682 Fw::Time& timeTag,
2683 Fw::TlmBuffer& val
2684 ) const {
2685 59 FW_ASSERT(
2686 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
2687 static_cast<FwAssertArgType>(portNum),
2688 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
2689 );
2690
1/2
✓ Branch 0 taken 59 times.
✗ Branch 1 not taken.
59 switch (portNum) {
2691 59 case 0:
2692 59 CdhCore::tlmSend.TlmRecv_handlerBase(
2693 0,
2694 id,
2695 timeTag,
2696 val
2697 );
2698 59 break;
2699 default:
2700 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
2701 break;
2702 }
2703 59 }
2704
2705 }
2706
2707 namespace Ref {
2708
2709 1 bool DpDemoComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const {
2710 1 FW_ASSERT(
2711 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
2712 static_cast<FwAssertArgType>(portNum),
2713 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
2714 );
2715 1 bool result = false;
2716
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
2717 1 case 0:
2718 1 result = true;
2719 1 break;
2720 default:
2721 break;
2722 }
2723 1 return result;
2724 }
2725
2726 2 bool DpDemoComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const {
2727 2 FW_ASSERT(
2728 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
2729 static_cast<FwAssertArgType>(portNum),
2730 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
2731 );
2732 2 bool result = false;
2733
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
2734 2 case 0:
2735 2 result = true;
2736 2 break;
2737 default:
2738 break;
2739 }
2740 2 return result;
2741 }
2742
2743 8 bool DpDemoComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
2744 8 FW_ASSERT(
2745 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
2746 static_cast<FwAssertArgType>(portNum),
2747 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
2748 );
2749 8 bool result = false;
2750
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
2751 8 case 0:
2752 8 result = true;
2753 8 break;
2754 default:
2755 break;
2756 }
2757 8 return result;
2758 }
2759
2760 #if FW_ENABLE_TEXT_LOGGING == 1
2761
2762 8 bool DpDemoComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
2763 8 FW_ASSERT(
2764 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
2765 static_cast<FwAssertArgType>(portNum),
2766 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
2767 );
2768 8 bool result = false;
2769
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
2770 8 case 0:
2771 8 result = true;
2772 8 break;
2773 default:
2774 break;
2775 }
2776 8 return result;
2777 }
2778
2779 #endif
2780
2781 bool DpDemoComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const {
2782 FW_ASSERT(
2783 (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS),
2784 static_cast<FwAssertArgType>(portNum),
2785 static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS)
2786 );
2787 bool result = false;
2788 switch (portNum) {
2789 case 0:
2790 result = true;
2791 break;
2792 default:
2793 break;
2794 }
2795 return result;
2796 }
2797
2798 bool DpDemoComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const {
2799 FW_ASSERT(
2800 (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS),
2801 static_cast<FwAssertArgType>(portNum),
2802 static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS)
2803 );
2804 bool result = false;
2805 switch (portNum) {
2806 case 0:
2807 result = true;
2808 break;
2809 default:
2810 break;
2811 }
2812 return result;
2813 }
2814
2815 2 bool DpDemoComponentBase::isConnected_productGetOut_OutputPort(FwIndexType portNum) const {
2816 2 FW_ASSERT(
2817 (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS),
2818 static_cast<FwAssertArgType>(portNum),
2819 static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_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 2 bool DpDemoComponentBase::isConnected_productRequestOut_OutputPort(FwIndexType portNum) const {
2833 2 FW_ASSERT(
2834 (0 <= portNum) && (portNum < NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS),
2835 static_cast<FwAssertArgType>(portNum),
2836 static_cast<FwAssertArgType>(NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS)
2837 );
2838 2 bool result = false;
2839
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
2840 2 case 0:
2841 2 result = true;
2842 2 break;
2843 default:
2844 break;
2845 }
2846 2 return result;
2847 }
2848
2849 bool DpDemoComponentBase::isConnected_productSendOut_OutputPort(FwIndexType portNum) const {
2850 FW_ASSERT(
2851 (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS),
2852 static_cast<FwAssertArgType>(portNum),
2853 static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS)
2854 );
2855 bool result = false;
2856 switch (portNum) {
2857 case 0:
2858 result = true;
2859 break;
2860 default:
2861 break;
2862 }
2863 return result;
2864 }
2865
2866 10 bool DpDemoComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
2867 10 FW_ASSERT(
2868 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
2869 static_cast<FwAssertArgType>(portNum),
2870 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
2871 );
2872 10 bool result = false;
2873
1/2
✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
10 switch (portNum) {
2874 10 case 0:
2875 10 result = true;
2876 10 break;
2877 default:
2878 break;
2879 }
2880 10 return result;
2881 }
2882
2883 bool DpDemoComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
2884 FW_ASSERT(
2885 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
2886 static_cast<FwAssertArgType>(portNum),
2887 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
2888 );
2889 bool result = false;
2890 switch (portNum) {
2891 case 0:
2892 result = true;
2893 break;
2894 default:
2895 break;
2896 }
2897 return result;
2898 }
2899
2900 2 void DpDemoComponentBase::cmdRegOut_out(
2901 FwIndexType portNum,
2902 FwOpcodeType opCode
2903 ) const {
2904 2 FW_ASSERT(
2905 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
2906 static_cast<FwAssertArgType>(portNum),
2907 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
2908 );
2909
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
2910 2 case 0:
2911 2 CdhCore::cmdDisp.compCmdReg_handlerBase(
2912 18,
2913 opCode
2914 );
2915 2 break;
2916 default:
2917 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
2918 break;
2919 }
2920 2 }
2921
2922 2 void DpDemoComponentBase::cmdResponseOut_out(
2923 FwIndexType portNum,
2924 FwOpcodeType opCode,
2925 U32 cmdSeq,
2926 const Fw::CmdResponse& response
2927 ) const {
2928 2 FW_ASSERT(
2929 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
2930 static_cast<FwAssertArgType>(portNum),
2931 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
2932 );
2933
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
2934 2 case 0:
2935 2 CdhCore::cmdDisp.compCmdStat_handlerBase(
2936 0,
2937 opCode,
2938 cmdSeq,
2939 response
2940 );
2941 2 break;
2942 default:
2943 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
2944 break;
2945 }
2946 2 }
2947
2948 8 void DpDemoComponentBase::logOut_out(
2949 FwIndexType portNum,
2950 FwEventIdType id,
2951 Fw::Time& timeTag,
2952 const Fw::LogSeverity& severity,
2953 Fw::LogBuffer& args
2954 ) const {
2955 8 FW_ASSERT(
2956 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
2957 static_cast<FwAssertArgType>(portNum),
2958 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
2959 );
2960
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
2961 8 case 0:
2962 8 CdhCore::events.LogRecv_handlerBase(
2963 0,
2964 id,
2965 timeTag,
2966 severity,
2967 args
2968 );
2969 8 break;
2970 default:
2971 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
2972 break;
2973 }
2974 8 }
2975
2976 #if FW_ENABLE_TEXT_LOGGING == 1
2977
2978 8 void DpDemoComponentBase::logTextOut_out(
2979 FwIndexType portNum,
2980 FwEventIdType id,
2981 Fw::Time& timeTag,
2982 const Fw::LogSeverity& severity,
2983 Fw::TextLogString& text
2984 ) const {
2985 8 FW_ASSERT(
2986 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
2987 static_cast<FwAssertArgType>(portNum),
2988 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
2989 );
2990
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
2991 8 case 0:
2992 8 CdhCore::textLogger.TextLogger_handlerBase(
2993 0,
2994 id,
2995 timeTag,
2996 severity,
2997 text
2998 );
2999 8 break;
3000 default:
3001 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3002 break;
3003 }
3004 8 }
3005
3006 #endif
3007
3008 2 Fw::Success DpDemoComponentBase::productGetOut_out(
3009 FwIndexType portNum,
3010 FwDpIdType id,
3011 FwSizeType dataSize,
3012 Fw::Buffer& buffer
3013 ) const {
3014 2 FW_ASSERT(
3015 (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS),
3016 static_cast<FwAssertArgType>(portNum),
3017 static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS)
3018 );
3019 2 Fw::Success _result = {};
3020
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
3021 2 case 0:
3022
1/1
✓ Branch 1 taken 2 times.
4 _result = DataProducts::dpMgr.productGetIn_handlerBase(
3023 0,
3024 id,
3025 dataSize,
3026 buffer
3027
1/1
✓ Branch 1 taken 2 times.
2 );
3028 2 break;
3029 default:
3030 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3031 break;
3032 }
3033 2 return _result;
3034 }
3035
3036 void DpDemoComponentBase::productRequestOut_out(
3037 FwIndexType portNum,
3038 FwDpIdType id,
3039 FwSizeType dataSize
3040 ) const {
3041 FW_ASSERT(
3042 (0 <= portNum) && (portNum < NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS),
3043 static_cast<FwAssertArgType>(portNum),
3044 static_cast<FwAssertArgType>(NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS)
3045 );
3046 switch (portNum) {
3047 case 0:
3048 DataProducts::dpMgr.productRequestIn_handlerBase(
3049 0,
3050 id,
3051 dataSize
3052 );
3053 break;
3054 default:
3055 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3056 break;
3057 }
3058 }
3059
3060 2 void DpDemoComponentBase::productSendOut_out(
3061 FwIndexType portNum,
3062 FwDpIdType id,
3063 const Fw::Buffer& buffer
3064 ) const {
3065 2 FW_ASSERT(
3066 (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS),
3067 static_cast<FwAssertArgType>(portNum),
3068 static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS)
3069 );
3070
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
3071 2 case 0:
3072 2 DataProducts::dpMgr.productSendIn_handlerBase(
3073 0,
3074 id,
3075 buffer
3076 );
3077 2 break;
3078 default:
3079 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3080 break;
3081 }
3082 2 }
3083
3084 10 void DpDemoComponentBase::timeCaller_out(
3085 FwIndexType portNum,
3086 Fw::Time& time
3087 ) const {
3088 10 FW_ASSERT(
3089 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
3090 static_cast<FwAssertArgType>(portNum),
3091 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
3092 );
3093
1/2
✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
10 switch (portNum) {
3094 10 case 0:
3095 10 Ref::posixTime.timeGetPort_handlerBase(
3096 0,
3097 time
3098 );
3099 10 break;
3100 default:
3101 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3102 break;
3103 }
3104 10 }
3105
3106 }
3107
3108 namespace Ref {
3109
3110 1 bool PingReceiverComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const {
3111 1 FW_ASSERT(
3112 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
3113 static_cast<FwAssertArgType>(portNum),
3114 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
3115 );
3116 1 bool result = false;
3117
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
3118 1 case 0:
3119 1 result = true;
3120 1 break;
3121 default:
3122 break;
3123 }
3124 1 return result;
3125 }
3126
3127 bool PingReceiverComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const {
3128 FW_ASSERT(
3129 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
3130 static_cast<FwAssertArgType>(portNum),
3131 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
3132 );
3133 bool result = false;
3134 switch (portNum) {
3135 case 0:
3136 result = true;
3137 break;
3138 default:
3139 break;
3140 }
3141 return result;
3142 }
3143
3144 bool PingReceiverComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
3145 FW_ASSERT(
3146 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
3147 static_cast<FwAssertArgType>(portNum),
3148 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
3149 );
3150 bool result = false;
3151 switch (portNum) {
3152 case 0:
3153 result = true;
3154 break;
3155 default:
3156 break;
3157 }
3158 return result;
3159 }
3160
3161 #if FW_ENABLE_TEXT_LOGGING == 1
3162
3163 bool PingReceiverComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
3164 FW_ASSERT(
3165 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
3166 static_cast<FwAssertArgType>(portNum),
3167 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
3168 );
3169 bool result = false;
3170 switch (portNum) {
3171 case 0:
3172 result = true;
3173 break;
3174 default:
3175 break;
3176 }
3177 return result;
3178 }
3179
3180 #endif
3181
3182 bool PingReceiverComponentBase::isConnected_PingOut_OutputPort(FwIndexType portNum) const {
3183 FW_ASSERT(
3184 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
3185 static_cast<FwAssertArgType>(portNum),
3186 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
3187 );
3188 bool result = false;
3189 switch (portNum) {
3190 case 0:
3191 result = true;
3192 break;
3193 default:
3194 break;
3195 }
3196 return result;
3197 }
3198
3199 59 bool PingReceiverComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
3200 59 FW_ASSERT(
3201 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
3202 static_cast<FwAssertArgType>(portNum),
3203 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
3204 );
3205 59 bool result = false;
3206
1/2
✓ Branch 0 taken 59 times.
✗ Branch 1 not taken.
59 switch (portNum) {
3207 59 case 0:
3208 59 result = true;
3209 59 break;
3210 default:
3211 break;
3212 }
3213 59 return result;
3214 }
3215
3216 118 bool PingReceiverComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const {
3217 118 FW_ASSERT(
3218 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
3219 static_cast<FwAssertArgType>(portNum),
3220 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
3221 );
3222 118 bool result = false;
3223
1/2
✓ Branch 0 taken 118 times.
✗ Branch 1 not taken.
118 switch (portNum) {
3224 118 case 0:
3225 118 result = true;
3226 118 break;
3227 default:
3228 break;
3229 }
3230 118 return result;
3231 }
3232
3233 1 void PingReceiverComponentBase::CmdReg_out(
3234 FwIndexType portNum,
3235 FwOpcodeType opCode
3236 ) const {
3237 1 FW_ASSERT(
3238 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
3239 static_cast<FwAssertArgType>(portNum),
3240 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
3241 );
3242
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
3243 1 case 0:
3244 1 CdhCore::cmdDisp.compCmdReg_handlerBase(
3245 19,
3246 opCode
3247 );
3248 1 break;
3249 default:
3250 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3251 break;
3252 }
3253 1 }
3254
3255 void PingReceiverComponentBase::CmdStatus_out(
3256 FwIndexType portNum,
3257 FwOpcodeType opCode,
3258 U32 cmdSeq,
3259 const Fw::CmdResponse& response
3260 ) const {
3261 FW_ASSERT(
3262 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
3263 static_cast<FwAssertArgType>(portNum),
3264 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
3265 );
3266 switch (portNum) {
3267 case 0:
3268 CdhCore::cmdDisp.compCmdStat_handlerBase(
3269 0,
3270 opCode,
3271 cmdSeq,
3272 response
3273 );
3274 break;
3275 default:
3276 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3277 break;
3278 }
3279 }
3280
3281 void PingReceiverComponentBase::Log_out(
3282 FwIndexType portNum,
3283 FwEventIdType id,
3284 Fw::Time& timeTag,
3285 const Fw::LogSeverity& severity,
3286 Fw::LogBuffer& args
3287 ) const {
3288 FW_ASSERT(
3289 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
3290 static_cast<FwAssertArgType>(portNum),
3291 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
3292 );
3293 switch (portNum) {
3294 case 0:
3295 CdhCore::events.LogRecv_handlerBase(
3296 0,
3297 id,
3298 timeTag,
3299 severity,
3300 args
3301 );
3302 break;
3303 default:
3304 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3305 break;
3306 }
3307 }
3308
3309 #if FW_ENABLE_TEXT_LOGGING == 1
3310
3311 void PingReceiverComponentBase::LogText_out(
3312 FwIndexType portNum,
3313 FwEventIdType id,
3314 Fw::Time& timeTag,
3315 const Fw::LogSeverity& severity,
3316 Fw::TextLogString& text
3317 ) const {
3318 FW_ASSERT(
3319 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
3320 static_cast<FwAssertArgType>(portNum),
3321 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
3322 );
3323 switch (portNum) {
3324 case 0:
3325 CdhCore::textLogger.TextLogger_handlerBase(
3326 0,
3327 id,
3328 timeTag,
3329 severity,
3330 text
3331 );
3332 break;
3333 default:
3334 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3335 break;
3336 }
3337 }
3338
3339 #endif
3340
3341 59 void PingReceiverComponentBase::PingOut_out(
3342 FwIndexType portNum,
3343 U32 key
3344 ) const {
3345 59 FW_ASSERT(
3346 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
3347 static_cast<FwAssertArgType>(portNum),
3348 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
3349 );
3350
1/2
✓ Branch 0 taken 59 times.
✗ Branch 1 not taken.
59 switch (portNum) {
3351 59 case 0:
3352 59 CdhCore::health.PingReturn_handlerBase(
3353 11,
3354 key
3355 );
3356 59 break;
3357 default:
3358 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3359 break;
3360 }
3361 59 }
3362
3363 59 void PingReceiverComponentBase::Time_out(
3364 FwIndexType portNum,
3365 Fw::Time& time
3366 ) const {
3367 59 FW_ASSERT(
3368 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
3369 static_cast<FwAssertArgType>(portNum),
3370 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
3371 );
3372
1/2
✓ Branch 0 taken 59 times.
✗ Branch 1 not taken.
59 switch (portNum) {
3373 59 case 0:
3374 59 Ref::posixTime.timeGetPort_handlerBase(
3375 0,
3376 time
3377 );
3378 59 break;
3379 default:
3380 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3381 break;
3382 }
3383 59 }
3384
3385 59 void PingReceiverComponentBase::Tlm_out(
3386 FwIndexType portNum,
3387 FwChanIdType id,
3388 Fw::Time& timeTag,
3389 Fw::TlmBuffer& val
3390 ) const {
3391 59 FW_ASSERT(
3392 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
3393 static_cast<FwAssertArgType>(portNum),
3394 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
3395 );
3396
1/2
✓ Branch 0 taken 59 times.
✗ Branch 1 not taken.
59 switch (portNum) {
3397 59 case 0:
3398 59 CdhCore::tlmSend.TlmRecv_handlerBase(
3399 0,
3400 id,
3401 timeTag,
3402 val
3403 );
3404 59 break;
3405 default:
3406 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3407 break;
3408 }
3409 59 }
3410
3411 }
3412
3413 namespace Ref {
3414
3415 1 bool RecvBuffComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const {
3416 1 FW_ASSERT(
3417 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
3418 static_cast<FwAssertArgType>(portNum),
3419 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
3420 );
3421 1 bool result = false;
3422
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
3423 1 case 0:
3424 1 result = true;
3425 1 break;
3426 default:
3427 break;
3428 }
3429 1 return result;
3430 }
3431
3432 6 bool RecvBuffComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const {
3433 6 FW_ASSERT(
3434 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
3435 static_cast<FwAssertArgType>(portNum),
3436 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
3437 );
3438 6 bool result = false;
3439
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
3440 6 case 0:
3441 6 result = true;
3442 6 break;
3443 default:
3444 break;
3445 }
3446 6 return result;
3447 }
3448
3449 4 bool RecvBuffComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
3450 4 FW_ASSERT(
3451 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
3452 static_cast<FwAssertArgType>(portNum),
3453 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
3454 );
3455 4 bool result = false;
3456
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
3457 4 case 0:
3458 4 result = true;
3459 4 break;
3460 default:
3461 break;
3462 }
3463 4 return result;
3464 }
3465
3466 #if FW_ENABLE_TEXT_LOGGING == 1
3467
3468 4 bool RecvBuffComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
3469 4 FW_ASSERT(
3470 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
3471 static_cast<FwAssertArgType>(portNum),
3472 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
3473 );
3474 4 bool result = false;
3475
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
3476 4 case 0:
3477 4 result = true;
3478 4 break;
3479 default:
3480 break;
3481 }
3482 4 return result;
3483 }
3484
3485 #endif
3486
3487 1 bool RecvBuffComponentBase::isConnected_ParamGet_OutputPort(FwIndexType portNum) const {
3488 1 FW_ASSERT(
3489 (0 <= portNum) && (portNum < NUM_PARAMGET_OUTPUT_PORTS),
3490 static_cast<FwAssertArgType>(portNum),
3491 static_cast<FwAssertArgType>(NUM_PARAMGET_OUTPUT_PORTS)
3492 );
3493 1 bool result = false;
3494
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
3495 1 case 0:
3496 1 result = true;
3497 1 break;
3498 default:
3499 break;
3500 }
3501 1 return result;
3502 }
3503
3504 2 bool RecvBuffComponentBase::isConnected_ParamSet_OutputPort(FwIndexType portNum) const {
3505 2 FW_ASSERT(
3506 (0 <= portNum) && (portNum < NUM_PARAMSET_OUTPUT_PORTS),
3507 static_cast<FwAssertArgType>(portNum),
3508 static_cast<FwAssertArgType>(NUM_PARAMSET_OUTPUT_PORTS)
3509 );
3510 2 bool result = false;
3511
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
3512 2 case 0:
3513 2 result = true;
3514 2 break;
3515 default:
3516 break;
3517 }
3518 2 return result;
3519 }
3520
3521 8 bool RecvBuffComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
3522 8 FW_ASSERT(
3523 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
3524 static_cast<FwAssertArgType>(portNum),
3525 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
3526 );
3527 8 bool result = false;
3528
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
3529 8 case 0:
3530 8 result = true;
3531 8 break;
3532 default:
3533 break;
3534 }
3535 8 return result;
3536 }
3537
3538 8 bool RecvBuffComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const {
3539 8 FW_ASSERT(
3540 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
3541 static_cast<FwAssertArgType>(portNum),
3542 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
3543 );
3544 8 bool result = false;
3545
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
3546 8 case 0:
3547 8 result = true;
3548 8 break;
3549 default:
3550 break;
3551 }
3552 8 return result;
3553 }
3554
3555 4 void RecvBuffComponentBase::CmdReg_out(
3556 FwIndexType portNum,
3557 FwOpcodeType opCode
3558 ) const {
3559 4 FW_ASSERT(
3560 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
3561 static_cast<FwAssertArgType>(portNum),
3562 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
3563 );
3564
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
3565 4 case 0:
3566 4 CdhCore::cmdDisp.compCmdReg_handlerBase(
3567 20,
3568 opCode
3569 );
3570 4 break;
3571 default:
3572 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3573 break;
3574 }
3575 4 }
3576
3577 6 void RecvBuffComponentBase::CmdStatus_out(
3578 FwIndexType portNum,
3579 FwOpcodeType opCode,
3580 U32 cmdSeq,
3581 const Fw::CmdResponse& response
3582 ) const {
3583 6 FW_ASSERT(
3584 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
3585 static_cast<FwAssertArgType>(portNum),
3586 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
3587 );
3588
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
3589 6 case 0:
3590 6 CdhCore::cmdDisp.compCmdStat_handlerBase(
3591 0,
3592 opCode,
3593 cmdSeq,
3594 response
3595 );
3596 6 break;
3597 default:
3598 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3599 break;
3600 }
3601 6 }
3602
3603 4 void RecvBuffComponentBase::Log_out(
3604 FwIndexType portNum,
3605 FwEventIdType id,
3606 Fw::Time& timeTag,
3607 const Fw::LogSeverity& severity,
3608 Fw::LogBuffer& args
3609 ) const {
3610 4 FW_ASSERT(
3611 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
3612 static_cast<FwAssertArgType>(portNum),
3613 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
3614 );
3615
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
3616 4 case 0:
3617 4 CdhCore::events.LogRecv_handlerBase(
3618 0,
3619 id,
3620 timeTag,
3621 severity,
3622 args
3623 );
3624 4 break;
3625 default:
3626 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3627 break;
3628 }
3629 4 }
3630
3631 #if FW_ENABLE_TEXT_LOGGING == 1
3632
3633 4 void RecvBuffComponentBase::LogText_out(
3634 FwIndexType portNum,
3635 FwEventIdType id,
3636 Fw::Time& timeTag,
3637 const Fw::LogSeverity& severity,
3638 Fw::TextLogString& text
3639 ) const {
3640 4 FW_ASSERT(
3641 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
3642 static_cast<FwAssertArgType>(portNum),
3643 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
3644 );
3645
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
3646 4 case 0:
3647 4 CdhCore::textLogger.TextLogger_handlerBase(
3648 0,
3649 id,
3650 timeTag,
3651 severity,
3652 text
3653 );
3654 4 break;
3655 default:
3656 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3657 break;
3658 }
3659 4 }
3660
3661 #endif
3662
3663 2 Fw::ParamValid RecvBuffComponentBase::ParamGet_out(
3664 FwIndexType portNum,
3665 FwPrmIdType id,
3666 Fw::ParamBuffer& val
3667 ) const {
3668 2 FW_ASSERT(
3669 (0 <= portNum) && (portNum < NUM_PARAMGET_OUTPUT_PORTS),
3670 static_cast<FwAssertArgType>(portNum),
3671 static_cast<FwAssertArgType>(NUM_PARAMGET_OUTPUT_PORTS)
3672 );
3673 2 Fw::ParamValid _result = {};
3674
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
3675 2 case 0:
3676
1/1
✓ Branch 1 taken 2 times.
4 _result = FileHandling::prmDb.getPrm_handlerBase(
3677 0,
3678 id,
3679 val
3680
1/1
✓ Branch 1 taken 2 times.
2 );
3681 2 break;
3682 default:
3683 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3684 break;
3685 }
3686 2 return _result;
3687 }
3688
3689 2 void RecvBuffComponentBase::ParamSet_out(
3690 FwIndexType portNum,
3691 FwPrmIdType id,
3692 Fw::ParamBuffer& val
3693 ) const {
3694 2 FW_ASSERT(
3695 (0 <= portNum) && (portNum < NUM_PARAMSET_OUTPUT_PORTS),
3696 static_cast<FwAssertArgType>(portNum),
3697 static_cast<FwAssertArgType>(NUM_PARAMSET_OUTPUT_PORTS)
3698 );
3699
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
3700 2 case 0:
3701 2 FileHandling::prmDb.setPrm_handlerBase(
3702 0,
3703 id,
3704 val
3705 );
3706 2 break;
3707 default:
3708 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3709 break;
3710 }
3711 2 }
3712
3713 8 void RecvBuffComponentBase::Time_out(
3714 FwIndexType portNum,
3715 Fw::Time& time
3716 ) const {
3717 8 FW_ASSERT(
3718 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
3719 static_cast<FwAssertArgType>(portNum),
3720 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
3721 );
3722
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
3723 8 case 0:
3724 8 Ref::posixTime.timeGetPort_handlerBase(
3725 0,
3726 time
3727 );
3728 8 break;
3729 default:
3730 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3731 break;
3732 }
3733 8 }
3734
3735 4 void RecvBuffComponentBase::Tlm_out(
3736 FwIndexType portNum,
3737 FwChanIdType id,
3738 Fw::Time& timeTag,
3739 Fw::TlmBuffer& val
3740 ) const {
3741 4 FW_ASSERT(
3742 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
3743 static_cast<FwAssertArgType>(portNum),
3744 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
3745 );
3746
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
3747 4 case 0:
3748 4 CdhCore::tlmSend.TlmRecv_handlerBase(
3749 0,
3750 id,
3751 timeTag,
3752 val
3753 );
3754 4 break;
3755 default:
3756 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3757 break;
3758 }
3759 4 }
3760
3761 }
3762
3763 namespace Ref {
3764
3765 1 bool SendBuffComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const {
3766 1 FW_ASSERT(
3767 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
3768 static_cast<FwAssertArgType>(portNum),
3769 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
3770 );
3771 1 bool result = false;
3772
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
3773 1 case 0:
3774 1 result = true;
3775 1 break;
3776 default:
3777 break;
3778 }
3779 1 return result;
3780 }
3781
3782 6 bool SendBuffComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const {
3783 6 FW_ASSERT(
3784 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
3785 static_cast<FwAssertArgType>(portNum),
3786 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
3787 );
3788 6 bool result = false;
3789
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
3790 6 case 0:
3791 6 result = true;
3792 6 break;
3793 default:
3794 break;
3795 }
3796 6 return result;
3797 }
3798
3799 bool SendBuffComponentBase::isConnected_Data_OutputPort(FwIndexType portNum) const {
3800 FW_ASSERT(
3801 (0 <= portNum) && (portNum < NUM_DATA_OUTPUT_PORTS),
3802 static_cast<FwAssertArgType>(portNum),
3803 static_cast<FwAssertArgType>(NUM_DATA_OUTPUT_PORTS)
3804 );
3805 bool result = false;
3806 switch (portNum) {
3807 case 0:
3808 result = true;
3809 break;
3810 default:
3811 break;
3812 }
3813 return result;
3814 }
3815
3816 4 bool SendBuffComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
3817 4 FW_ASSERT(
3818 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
3819 static_cast<FwAssertArgType>(portNum),
3820 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
3821 );
3822 4 bool result = false;
3823
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
3824 4 case 0:
3825 4 result = true;
3826 4 break;
3827 default:
3828 break;
3829 }
3830 4 return result;
3831 }
3832
3833 #if FW_ENABLE_TEXT_LOGGING == 1
3834
3835 4 bool SendBuffComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
3836 4 FW_ASSERT(
3837 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
3838 static_cast<FwAssertArgType>(portNum),
3839 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
3840 );
3841 4 bool result = false;
3842
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
3843 4 case 0:
3844 4 result = true;
3845 4 break;
3846 default:
3847 break;
3848 }
3849 4 return result;
3850 }
3851
3852 #endif
3853
3854 1 bool SendBuffComponentBase::isConnected_ParamGet_OutputPort(FwIndexType portNum) const {
3855 1 FW_ASSERT(
3856 (0 <= portNum) && (portNum < NUM_PARAMGET_OUTPUT_PORTS),
3857 static_cast<FwAssertArgType>(portNum),
3858 static_cast<FwAssertArgType>(NUM_PARAMGET_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 2 bool SendBuffComponentBase::isConnected_ParamSet_OutputPort(FwIndexType portNum) const {
3872 2 FW_ASSERT(
3873 (0 <= portNum) && (portNum < NUM_PARAMSET_OUTPUT_PORTS),
3874 static_cast<FwAssertArgType>(portNum),
3875 static_cast<FwAssertArgType>(NUM_PARAMSET_OUTPUT_PORTS)
3876 );
3877 2 bool result = false;
3878
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
3879 2 case 0:
3880 2 result = true;
3881 2 break;
3882 default:
3883 break;
3884 }
3885 2 return result;
3886 }
3887
3888 126 bool SendBuffComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
3889 126 FW_ASSERT(
3890 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
3891 static_cast<FwAssertArgType>(portNum),
3892 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
3893 );
3894 126 bool result = false;
3895
1/2
✓ Branch 0 taken 126 times.
✗ Branch 1 not taken.
126 switch (portNum) {
3896 126 case 0:
3897 126 result = true;
3898 126 break;
3899 default:
3900 break;
3901 }
3902 126 return result;
3903 }
3904
3905 244 bool SendBuffComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const {
3906 244 FW_ASSERT(
3907 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
3908 static_cast<FwAssertArgType>(portNum),
3909 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
3910 );
3911 244 bool result = false;
3912
1/2
✓ Branch 0 taken 244 times.
✗ Branch 1 not taken.
244 switch (portNum) {
3913 244 case 0:
3914 244 result = true;
3915 244 break;
3916 default:
3917 break;
3918 }
3919 244 return result;
3920 }
3921
3922 8 void SendBuffComponentBase::CmdReg_out(
3923 FwIndexType portNum,
3924 FwOpcodeType opCode
3925 ) const {
3926 8 FW_ASSERT(
3927 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
3928 static_cast<FwAssertArgType>(portNum),
3929 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
3930 );
3931
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
3932 8 case 0:
3933 8 CdhCore::cmdDisp.compCmdReg_handlerBase(
3934 21,
3935 opCode
3936 );
3937 8 break;
3938 default:
3939 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3940 break;
3941 }
3942 8 }
3943
3944 6 void SendBuffComponentBase::CmdStatus_out(
3945 FwIndexType portNum,
3946 FwOpcodeType opCode,
3947 U32 cmdSeq,
3948 const Fw::CmdResponse& response
3949 ) const {
3950 6 FW_ASSERT(
3951 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
3952 static_cast<FwAssertArgType>(portNum),
3953 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
3954 );
3955
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
3956 6 case 0:
3957 6 CdhCore::cmdDisp.compCmdStat_handlerBase(
3958 0,
3959 opCode,
3960 cmdSeq,
3961 response
3962 );
3963 6 break;
3964 default:
3965 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3966 break;
3967 }
3968 6 }
3969
3970 void SendBuffComponentBase::Data_out(
3971 FwIndexType portNum,
3972 Drv::DataBuffer& buff
3973 ) const {
3974 FW_ASSERT(
3975 (0 <= portNum) && (portNum < NUM_DATA_OUTPUT_PORTS),
3976 static_cast<FwAssertArgType>(portNum),
3977 static_cast<FwAssertArgType>(NUM_DATA_OUTPUT_PORTS)
3978 );
3979 switch (portNum) {
3980 case 0:
3981 Ref::blockDrv.BufferIn_handlerBase(
3982 0,
3983 buff
3984 );
3985 break;
3986 default:
3987 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
3988 break;
3989 }
3990 }
3991
3992 4 void SendBuffComponentBase::Log_out(
3993 FwIndexType portNum,
3994 FwEventIdType id,
3995 Fw::Time& timeTag,
3996 const Fw::LogSeverity& severity,
3997 Fw::LogBuffer& args
3998 ) const {
3999 4 FW_ASSERT(
4000 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
4001 static_cast<FwAssertArgType>(portNum),
4002 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
4003 );
4004
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
4005 4 case 0:
4006 4 CdhCore::events.LogRecv_handlerBase(
4007 0,
4008 id,
4009 timeTag,
4010 severity,
4011 args
4012 );
4013 4 break;
4014 default:
4015 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4016 break;
4017 }
4018 4 }
4019
4020 #if FW_ENABLE_TEXT_LOGGING == 1
4021
4022 4 void SendBuffComponentBase::LogText_out(
4023 FwIndexType portNum,
4024 FwEventIdType id,
4025 Fw::Time& timeTag,
4026 const Fw::LogSeverity& severity,
4027 Fw::TextLogString& text
4028 ) const {
4029 4 FW_ASSERT(
4030 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
4031 static_cast<FwAssertArgType>(portNum),
4032 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
4033 );
4034
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
4035 4 case 0:
4036 4 CdhCore::textLogger.TextLogger_handlerBase(
4037 0,
4038 id,
4039 timeTag,
4040 severity,
4041 text
4042 );
4043 4 break;
4044 default:
4045 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4046 break;
4047 }
4048 4 }
4049
4050 #endif
4051
4052 2 Fw::ParamValid SendBuffComponentBase::ParamGet_out(
4053 FwIndexType portNum,
4054 FwPrmIdType id,
4055 Fw::ParamBuffer& val
4056 ) const {
4057 2 FW_ASSERT(
4058 (0 <= portNum) && (portNum < NUM_PARAMGET_OUTPUT_PORTS),
4059 static_cast<FwAssertArgType>(portNum),
4060 static_cast<FwAssertArgType>(NUM_PARAMGET_OUTPUT_PORTS)
4061 );
4062 2 Fw::ParamValid _result = {};
4063
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
4064 2 case 0:
4065
1/1
✓ Branch 1 taken 2 times.
4 _result = FileHandling::prmDb.getPrm_handlerBase(
4066 0,
4067 id,
4068 val
4069
1/1
✓ Branch 1 taken 2 times.
2 );
4070 2 break;
4071 default:
4072 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4073 break;
4074 }
4075 2 return _result;
4076 }
4077
4078 2 void SendBuffComponentBase::ParamSet_out(
4079 FwIndexType portNum,
4080 FwPrmIdType id,
4081 Fw::ParamBuffer& val
4082 ) const {
4083 2 FW_ASSERT(
4084 (0 <= portNum) && (portNum < NUM_PARAMSET_OUTPUT_PORTS),
4085 static_cast<FwAssertArgType>(portNum),
4086 static_cast<FwAssertArgType>(NUM_PARAMSET_OUTPUT_PORTS)
4087 );
4088
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
4089 2 case 0:
4090 2 FileHandling::prmDb.setPrm_handlerBase(
4091 0,
4092 id,
4093 val
4094 );
4095 2 break;
4096 default:
4097 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4098 break;
4099 }
4100 2 }
4101
4102 126 void SendBuffComponentBase::Time_out(
4103 FwIndexType portNum,
4104 Fw::Time& time
4105 ) const {
4106 126 FW_ASSERT(
4107 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
4108 static_cast<FwAssertArgType>(portNum),
4109 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
4110 );
4111
1/2
✓ Branch 0 taken 126 times.
✗ Branch 1 not taken.
126 switch (portNum) {
4112 126 case 0:
4113 126 Ref::posixTime.timeGetPort_handlerBase(
4114 0,
4115 time
4116 );
4117 126 break;
4118 default:
4119 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4120 break;
4121 }
4122 126 }
4123
4124 122 void SendBuffComponentBase::Tlm_out(
4125 FwIndexType portNum,
4126 FwChanIdType id,
4127 Fw::Time& timeTag,
4128 Fw::TlmBuffer& val
4129 ) const {
4130 122 FW_ASSERT(
4131 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
4132 static_cast<FwAssertArgType>(portNum),
4133 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
4134 );
4135
1/2
✓ Branch 0 taken 122 times.
✗ Branch 1 not taken.
122 switch (portNum) {
4136 122 case 0:
4137 122 CdhCore::tlmSend.TlmRecv_handlerBase(
4138 0,
4139 id,
4140 timeTag,
4141 val
4142 );
4143 122 break;
4144 default:
4145 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4146 break;
4147 }
4148 122 }
4149
4150 }
4151
4152 namespace Ref {
4153
4154 5 bool SignalGenComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const {
4155 5 FW_ASSERT(
4156 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
4157 static_cast<FwAssertArgType>(portNum),
4158 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
4159 );
4160 5 bool result = false;
4161 5 const auto instance = this->getInstance();
4162
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) {
4163 default:
4164 #ifdef FW_STRICT_ASSERTIONS
4165 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4166 break;
4167 #else
4168 // Fall through
4169 #endif
4170 1 case ::Ref::InstanceIds::Ref_SG1:
4171
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
4172 1 case 0:
4173 1 result = true;
4174 1 break;
4175 default:
4176 break;
4177 }
4178 1 break;
4179 1 case ::Ref::InstanceIds::Ref_SG2:
4180
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
4181 1 case 0:
4182 1 result = true;
4183 1 break;
4184 default:
4185 break;
4186 }
4187 1 break;
4188 1 case ::Ref::InstanceIds::Ref_SG3:
4189
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
4190 1 case 0:
4191 1 result = true;
4192 1 break;
4193 default:
4194 break;
4195 }
4196 1 break;
4197 1 case ::Ref::InstanceIds::Ref_SG4:
4198
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
4199 1 case 0:
4200 1 result = true;
4201 1 break;
4202 default:
4203 break;
4204 }
4205 1 break;
4206 1 case ::Ref::InstanceIds::Ref_SG5:
4207
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
4208 1 case 0:
4209 1 result = true;
4210 1 break;
4211 default:
4212 break;
4213 }
4214 1 break;
4215 }
4216 5 return result;
4217 }
4218
4219 3 bool SignalGenComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const {
4220 3 FW_ASSERT(
4221 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
4222 static_cast<FwAssertArgType>(portNum),
4223 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
4224 );
4225 3 bool result = false;
4226 3 const auto instance = this->getInstance();
4227
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) {
4228 default:
4229 #ifdef FW_STRICT_ASSERTIONS
4230 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4231 break;
4232 #else
4233 // Fall through
4234 #endif
4235 case ::Ref::InstanceIds::Ref_SG1:
4236 switch (portNum) {
4237 case 0:
4238 result = true;
4239 break;
4240 default:
4241 break;
4242 }
4243 break;
4244 case ::Ref::InstanceIds::Ref_SG2:
4245 switch (portNum) {
4246 case 0:
4247 result = true;
4248 break;
4249 default:
4250 break;
4251 }
4252 break;
4253 case ::Ref::InstanceIds::Ref_SG3:
4254 switch (portNum) {
4255 case 0:
4256 result = true;
4257 break;
4258 default:
4259 break;
4260 }
4261 break;
4262 3 case ::Ref::InstanceIds::Ref_SG4:
4263
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
4264 3 case 0:
4265 3 result = true;
4266 3 break;
4267 default:
4268 break;
4269 }
4270 3 break;
4271 case ::Ref::InstanceIds::Ref_SG5:
4272 switch (portNum) {
4273 case 0:
4274 result = true;
4275 break;
4276 default:
4277 break;
4278 }
4279 break;
4280 }
4281 3 return result;
4282 }
4283
4284 1 bool SignalGenComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
4285 1 FW_ASSERT(
4286 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
4287 static_cast<FwAssertArgType>(portNum),
4288 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
4289 );
4290 1 bool result = false;
4291 1 const auto instance = this->getInstance();
4292
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) {
4293 default:
4294 #ifdef FW_STRICT_ASSERTIONS
4295 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4296 break;
4297 #else
4298 // Fall through
4299 #endif
4300 case ::Ref::InstanceIds::Ref_SG1:
4301 switch (portNum) {
4302 case 0:
4303 result = true;
4304 break;
4305 default:
4306 break;
4307 }
4308 break;
4309 case ::Ref::InstanceIds::Ref_SG2:
4310 switch (portNum) {
4311 case 0:
4312 result = true;
4313 break;
4314 default:
4315 break;
4316 }
4317 break;
4318 case ::Ref::InstanceIds::Ref_SG3:
4319 switch (portNum) {
4320 case 0:
4321 result = true;
4322 break;
4323 default:
4324 break;
4325 }
4326 break;
4327 1 case ::Ref::InstanceIds::Ref_SG4:
4328
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
4329 1 case 0:
4330 1 result = true;
4331 1 break;
4332 default:
4333 break;
4334 }
4335 1 break;
4336 case ::Ref::InstanceIds::Ref_SG5:
4337 switch (portNum) {
4338 case 0:
4339 result = true;
4340 break;
4341 default:
4342 break;
4343 }
4344 break;
4345 }
4346 1 return result;
4347 }
4348
4349 #if FW_ENABLE_TEXT_LOGGING == 1
4350
4351 1 bool SignalGenComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
4352 1 FW_ASSERT(
4353 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
4354 static_cast<FwAssertArgType>(portNum),
4355 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
4356 );
4357 1 bool result = false;
4358 1 const auto instance = this->getInstance();
4359
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) {
4360 default:
4361 #ifdef FW_STRICT_ASSERTIONS
4362 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4363 break;
4364 #else
4365 // Fall through
4366 #endif
4367 case ::Ref::InstanceIds::Ref_SG1:
4368 switch (portNum) {
4369 case 0:
4370 result = true;
4371 break;
4372 default:
4373 break;
4374 }
4375 break;
4376 case ::Ref::InstanceIds::Ref_SG2:
4377 switch (portNum) {
4378 case 0:
4379 result = true;
4380 break;
4381 default:
4382 break;
4383 }
4384 break;
4385 case ::Ref::InstanceIds::Ref_SG3:
4386 switch (portNum) {
4387 case 0:
4388 result = true;
4389 break;
4390 default:
4391 break;
4392 }
4393 break;
4394 1 case ::Ref::InstanceIds::Ref_SG4:
4395
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
4396 1 case 0:
4397 1 result = true;
4398 1 break;
4399 default:
4400 break;
4401 }
4402 1 break;
4403 case ::Ref::InstanceIds::Ref_SG5:
4404 switch (portNum) {
4405 case 0:
4406 result = true;
4407 break;
4408 default:
4409 break;
4410 }
4411 break;
4412 }
4413 1 return result;
4414 }
4415
4416 #endif
4417
4418 bool SignalGenComponentBase::isConnected_productGetOut_OutputPort(FwIndexType portNum) const {
4419 FW_ASSERT(
4420 (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS),
4421 static_cast<FwAssertArgType>(portNum),
4422 static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS)
4423 );
4424 bool result = false;
4425 const auto instance = this->getInstance();
4426 switch (instance) {
4427 default:
4428 #ifdef FW_STRICT_ASSERTIONS
4429 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4430 break;
4431 #else
4432 // Fall through
4433 #endif
4434 case ::Ref::InstanceIds::Ref_SG1:
4435 switch (portNum) {
4436 case 0:
4437 result = true;
4438 break;
4439 default:
4440 break;
4441 }
4442 break;
4443 case ::Ref::InstanceIds::Ref_SG2:
4444 switch (portNum) {
4445 default:
4446 break;
4447 }
4448 break;
4449 case ::Ref::InstanceIds::Ref_SG3:
4450 switch (portNum) {
4451 default:
4452 break;
4453 }
4454 break;
4455 case ::Ref::InstanceIds::Ref_SG4:
4456 switch (portNum) {
4457 default:
4458 break;
4459 }
4460 break;
4461 case ::Ref::InstanceIds::Ref_SG5:
4462 switch (portNum) {
4463 default:
4464 break;
4465 }
4466 break;
4467 }
4468 return result;
4469 }
4470
4471 bool SignalGenComponentBase::isConnected_productRequestOut_OutputPort(FwIndexType portNum) const {
4472 FW_ASSERT(
4473 (0 <= portNum) && (portNum < NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS),
4474 static_cast<FwAssertArgType>(portNum),
4475 static_cast<FwAssertArgType>(NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS)
4476 );
4477 bool result = false;
4478 const auto instance = this->getInstance();
4479 switch (instance) {
4480 default:
4481 #ifdef FW_STRICT_ASSERTIONS
4482 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4483 break;
4484 #else
4485 // Fall through
4486 #endif
4487 case ::Ref::InstanceIds::Ref_SG1:
4488 switch (portNum) {
4489 case 0:
4490 result = true;
4491 break;
4492 default:
4493 break;
4494 }
4495 break;
4496 case ::Ref::InstanceIds::Ref_SG2:
4497 switch (portNum) {
4498 default:
4499 break;
4500 }
4501 break;
4502 case ::Ref::InstanceIds::Ref_SG3:
4503 switch (portNum) {
4504 default:
4505 break;
4506 }
4507 break;
4508 case ::Ref::InstanceIds::Ref_SG4:
4509 switch (portNum) {
4510 default:
4511 break;
4512 }
4513 break;
4514 case ::Ref::InstanceIds::Ref_SG5:
4515 switch (portNum) {
4516 default:
4517 break;
4518 }
4519 break;
4520 }
4521 return result;
4522 }
4523
4524 bool SignalGenComponentBase::isConnected_productSendOut_OutputPort(FwIndexType portNum) const {
4525 FW_ASSERT(
4526 (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS),
4527 static_cast<FwAssertArgType>(portNum),
4528 static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS)
4529 );
4530 bool result = false;
4531 const auto instance = this->getInstance();
4532 switch (instance) {
4533 default:
4534 #ifdef FW_STRICT_ASSERTIONS
4535 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4536 break;
4537 #else
4538 // Fall through
4539 #endif
4540 case ::Ref::InstanceIds::Ref_SG1:
4541 switch (portNum) {
4542 case 0:
4543 result = true;
4544 break;
4545 default:
4546 break;
4547 }
4548 break;
4549 case ::Ref::InstanceIds::Ref_SG2:
4550 switch (portNum) {
4551 default:
4552 break;
4553 }
4554 break;
4555 case ::Ref::InstanceIds::Ref_SG3:
4556 switch (portNum) {
4557 default:
4558 break;
4559 }
4560 break;
4561 case ::Ref::InstanceIds::Ref_SG4:
4562 switch (portNum) {
4563 default:
4564 break;
4565 }
4566 break;
4567 case ::Ref::InstanceIds::Ref_SG5:
4568 switch (portNum) {
4569 default:
4570 break;
4571 }
4572 break;
4573 }
4574 return result;
4575 }
4576
4577 8 bool SignalGenComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
4578 8 FW_ASSERT(
4579 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
4580 static_cast<FwAssertArgType>(portNum),
4581 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
4582 );
4583 8 bool result = false;
4584 8 const auto instance = this->getInstance();
4585
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) {
4586 default:
4587 #ifdef FW_STRICT_ASSERTIONS
4588 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4589 break;
4590 #else
4591 // Fall through
4592 #endif
4593 case ::Ref::InstanceIds::Ref_SG1:
4594 switch (portNum) {
4595 case 0:
4596 result = true;
4597 break;
4598 default:
4599 break;
4600 }
4601 break;
4602 case ::Ref::InstanceIds::Ref_SG2:
4603 switch (portNum) {
4604 case 0:
4605 result = true;
4606 break;
4607 default:
4608 break;
4609 }
4610 break;
4611 case ::Ref::InstanceIds::Ref_SG3:
4612 switch (portNum) {
4613 case 0:
4614 result = true;
4615 break;
4616 default:
4617 break;
4618 }
4619 break;
4620 8 case ::Ref::InstanceIds::Ref_SG4:
4621
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
4622 8 case 0:
4623 8 result = true;
4624 8 break;
4625 default:
4626 break;
4627 }
4628 8 break;
4629 case ::Ref::InstanceIds::Ref_SG5:
4630 switch (portNum) {
4631 case 0:
4632 result = true;
4633 break;
4634 default:
4635 break;
4636 }
4637 break;
4638 }
4639 8 return result;
4640 }
4641
4642 14 bool SignalGenComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
4643 14 FW_ASSERT(
4644 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
4645 static_cast<FwAssertArgType>(portNum),
4646 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
4647 );
4648 14 bool result = false;
4649 14 const auto instance = this->getInstance();
4650
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) {
4651 default:
4652 #ifdef FW_STRICT_ASSERTIONS
4653 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4654 break;
4655 #else
4656 // Fall through
4657 #endif
4658 case ::Ref::InstanceIds::Ref_SG1:
4659 switch (portNum) {
4660 case 0:
4661 result = true;
4662 break;
4663 default:
4664 break;
4665 }
4666 break;
4667 case ::Ref::InstanceIds::Ref_SG2:
4668 switch (portNum) {
4669 case 0:
4670 result = true;
4671 break;
4672 default:
4673 break;
4674 }
4675 break;
4676 case ::Ref::InstanceIds::Ref_SG3:
4677 switch (portNum) {
4678 case 0:
4679 result = true;
4680 break;
4681 default:
4682 break;
4683 }
4684 break;
4685 14 case ::Ref::InstanceIds::Ref_SG4:
4686
1/2
✓ Branch 0 taken 14 times.
✗ Branch 1 not taken.
14 switch (portNum) {
4687 14 case 0:
4688 14 result = true;
4689 14 break;
4690 default:
4691 break;
4692 }
4693 14 break;
4694 case ::Ref::InstanceIds::Ref_SG5:
4695 switch (portNum) {
4696 case 0:
4697 result = true;
4698 break;
4699 default:
4700 break;
4701 }
4702 break;
4703 }
4704 14 return result;
4705 }
4706
4707 20 void SignalGenComponentBase::cmdRegOut_out(
4708 FwIndexType portNum,
4709 FwOpcodeType opCode
4710 ) const {
4711 20 FW_ASSERT(
4712 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
4713 static_cast<FwAssertArgType>(portNum),
4714 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
4715 );
4716 20 const auto instance = this->getInstance();
4717
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) {
4718 default:
4719 #ifdef FW_STRICT_ASSERTIONS
4720 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4721 break;
4722 #else
4723 // Fall through
4724 #endif
4725 4 case ::Ref::InstanceIds::Ref_SG1:
4726
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
4727 4 case 0:
4728 4 CdhCore::cmdDisp.compCmdReg_handlerBase(
4729 12,
4730 opCode
4731 );
4732 4 break;
4733 default:
4734 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4735 break;
4736 }
4737 4 break;
4738 4 case ::Ref::InstanceIds::Ref_SG2:
4739
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
4740 4 case 0:
4741 4 CdhCore::cmdDisp.compCmdReg_handlerBase(
4742 13,
4743 opCode
4744 );
4745 4 break;
4746 default:
4747 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4748 break;
4749 }
4750 4 break;
4751 4 case ::Ref::InstanceIds::Ref_SG3:
4752
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
4753 4 case 0:
4754 4 CdhCore::cmdDisp.compCmdReg_handlerBase(
4755 14,
4756 opCode
4757 );
4758 4 break;
4759 default:
4760 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4761 break;
4762 }
4763 4 break;
4764 4 case ::Ref::InstanceIds::Ref_SG4:
4765
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
4766 4 case 0:
4767 4 CdhCore::cmdDisp.compCmdReg_handlerBase(
4768 15,
4769 opCode
4770 );
4771 4 break;
4772 default:
4773 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4774 break;
4775 }
4776 4 break;
4777 4 case ::Ref::InstanceIds::Ref_SG5:
4778
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
4779 4 case 0:
4780 4 CdhCore::cmdDisp.compCmdReg_handlerBase(
4781 16,
4782 opCode
4783 );
4784 4 break;
4785 default:
4786 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4787 break;
4788 }
4789 4 break;
4790 }
4791 20 }
4792
4793 3 void SignalGenComponentBase::cmdResponseOut_out(
4794 FwIndexType portNum,
4795 FwOpcodeType opCode,
4796 U32 cmdSeq,
4797 const Fw::CmdResponse& response
4798 ) const {
4799 3 FW_ASSERT(
4800 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
4801 static_cast<FwAssertArgType>(portNum),
4802 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
4803 );
4804 3 const auto instance = this->getInstance();
4805
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) {
4806 default:
4807 #ifdef FW_STRICT_ASSERTIONS
4808 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4809 break;
4810 #else
4811 // Fall through
4812 #endif
4813 case ::Ref::InstanceIds::Ref_SG1:
4814 switch (portNum) {
4815 case 0:
4816 CdhCore::cmdDisp.compCmdStat_handlerBase(
4817 0,
4818 opCode,
4819 cmdSeq,
4820 response
4821 );
4822 break;
4823 default:
4824 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4825 break;
4826 }
4827 break;
4828 case ::Ref::InstanceIds::Ref_SG2:
4829 switch (portNum) {
4830 case 0:
4831 CdhCore::cmdDisp.compCmdStat_handlerBase(
4832 0,
4833 opCode,
4834 cmdSeq,
4835 response
4836 );
4837 break;
4838 default:
4839 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4840 break;
4841 }
4842 break;
4843 case ::Ref::InstanceIds::Ref_SG3:
4844 switch (portNum) {
4845 case 0:
4846 CdhCore::cmdDisp.compCmdStat_handlerBase(
4847 0,
4848 opCode,
4849 cmdSeq,
4850 response
4851 );
4852 break;
4853 default:
4854 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4855 break;
4856 }
4857 break;
4858 3 case ::Ref::InstanceIds::Ref_SG4:
4859
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
4860 3 case 0:
4861 3 CdhCore::cmdDisp.compCmdStat_handlerBase(
4862 0,
4863 opCode,
4864 cmdSeq,
4865 response
4866 );
4867 3 break;
4868 default:
4869 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4870 break;
4871 }
4872 3 break;
4873 case ::Ref::InstanceIds::Ref_SG5:
4874 switch (portNum) {
4875 case 0:
4876 CdhCore::cmdDisp.compCmdStat_handlerBase(
4877 0,
4878 opCode,
4879 cmdSeq,
4880 response
4881 );
4882 break;
4883 default:
4884 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4885 break;
4886 }
4887 break;
4888 }
4889 3 }
4890
4891 1 void SignalGenComponentBase::logOut_out(
4892 FwIndexType portNum,
4893 FwEventIdType id,
4894 Fw::Time& timeTag,
4895 const Fw::LogSeverity& severity,
4896 Fw::LogBuffer& args
4897 ) const {
4898 1 FW_ASSERT(
4899 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
4900 static_cast<FwAssertArgType>(portNum),
4901 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
4902 );
4903 1 const auto instance = this->getInstance();
4904
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) {
4905 default:
4906 #ifdef FW_STRICT_ASSERTIONS
4907 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
4908 break;
4909 #else
4910 // Fall through
4911 #endif
4912 case ::Ref::InstanceIds::Ref_SG1:
4913 switch (portNum) {
4914 case 0:
4915 CdhCore::events.LogRecv_handlerBase(
4916 0,
4917 id,
4918 timeTag,
4919 severity,
4920 args
4921 );
4922 break;
4923 default:
4924 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4925 break;
4926 }
4927 break;
4928 case ::Ref::InstanceIds::Ref_SG2:
4929 switch (portNum) {
4930 case 0:
4931 CdhCore::events.LogRecv_handlerBase(
4932 0,
4933 id,
4934 timeTag,
4935 severity,
4936 args
4937 );
4938 break;
4939 default:
4940 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4941 break;
4942 }
4943 break;
4944 case ::Ref::InstanceIds::Ref_SG3:
4945 switch (portNum) {
4946 case 0:
4947 CdhCore::events.LogRecv_handlerBase(
4948 0,
4949 id,
4950 timeTag,
4951 severity,
4952 args
4953 );
4954 break;
4955 default:
4956 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4957 break;
4958 }
4959 break;
4960 1 case ::Ref::InstanceIds::Ref_SG4:
4961
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
4962 1 case 0:
4963 1 CdhCore::events.LogRecv_handlerBase(
4964 0,
4965 id,
4966 timeTag,
4967 severity,
4968 args
4969 );
4970 1 break;
4971 default:
4972 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4973 break;
4974 }
4975 1 break;
4976 case ::Ref::InstanceIds::Ref_SG5:
4977 switch (portNum) {
4978 case 0:
4979 CdhCore::events.LogRecv_handlerBase(
4980 0,
4981 id,
4982 timeTag,
4983 severity,
4984 args
4985 );
4986 break;
4987 default:
4988 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
4989 break;
4990 }
4991 break;
4992 }
4993 1 }
4994
4995 #if FW_ENABLE_TEXT_LOGGING == 1
4996
4997 1 void SignalGenComponentBase::logTextOut_out(
4998 FwIndexType portNum,
4999 FwEventIdType id,
5000 Fw::Time& timeTag,
5001 const Fw::LogSeverity& severity,
5002 Fw::TextLogString& text
5003 ) const {
5004 1 FW_ASSERT(
5005 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
5006 static_cast<FwAssertArgType>(portNum),
5007 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
5008 );
5009 1 const auto instance = this->getInstance();
5010
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) {
5011 default:
5012 #ifdef FW_STRICT_ASSERTIONS
5013 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
5014 break;
5015 #else
5016 // Fall through
5017 #endif
5018 case ::Ref::InstanceIds::Ref_SG1:
5019 switch (portNum) {
5020 case 0:
5021 CdhCore::textLogger.TextLogger_handlerBase(
5022 0,
5023 id,
5024 timeTag,
5025 severity,
5026 text
5027 );
5028 break;
5029 default:
5030 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5031 break;
5032 }
5033 break;
5034 case ::Ref::InstanceIds::Ref_SG2:
5035 switch (portNum) {
5036 case 0:
5037 CdhCore::textLogger.TextLogger_handlerBase(
5038 0,
5039 id,
5040 timeTag,
5041 severity,
5042 text
5043 );
5044 break;
5045 default:
5046 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5047 break;
5048 }
5049 break;
5050 case ::Ref::InstanceIds::Ref_SG3:
5051 switch (portNum) {
5052 case 0:
5053 CdhCore::textLogger.TextLogger_handlerBase(
5054 0,
5055 id,
5056 timeTag,
5057 severity,
5058 text
5059 );
5060 break;
5061 default:
5062 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5063 break;
5064 }
5065 break;
5066 1 case ::Ref::InstanceIds::Ref_SG4:
5067
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
5068 1 case 0:
5069 1 CdhCore::textLogger.TextLogger_handlerBase(
5070 0,
5071 id,
5072 timeTag,
5073 severity,
5074 text
5075 );
5076 1 break;
5077 default:
5078 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5079 break;
5080 }
5081 1 break;
5082 case ::Ref::InstanceIds::Ref_SG5:
5083 switch (portNum) {
5084 case 0:
5085 CdhCore::textLogger.TextLogger_handlerBase(
5086 0,
5087 id,
5088 timeTag,
5089 severity,
5090 text
5091 );
5092 break;
5093 default:
5094 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5095 break;
5096 }
5097 break;
5098 }
5099 1 }
5100
5101 #endif
5102
5103 Fw::Success SignalGenComponentBase::productGetOut_out(
5104 FwIndexType portNum,
5105 FwDpIdType id,
5106 FwSizeType dataSize,
5107 Fw::Buffer& buffer
5108 ) const {
5109 FW_ASSERT(
5110 (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS),
5111 static_cast<FwAssertArgType>(portNum),
5112 static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS)
5113 );
5114 Fw::Success _result = {};
5115 const auto instance = this->getInstance();
5116 switch (instance) {
5117 default:
5118 #ifdef FW_STRICT_ASSERTIONS
5119 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
5120 break;
5121 #else
5122 // Fall through
5123 #endif
5124 case ::Ref::InstanceIds::Ref_SG1:
5125 switch (portNum) {
5126 case 0:
5127 _result = DataProducts::dpMgr.productGetIn_handlerBase(
5128 0,
5129 id,
5130 dataSize,
5131 buffer
5132 );
5133 break;
5134 default:
5135 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5136 break;
5137 }
5138 break;
5139 case ::Ref::InstanceIds::Ref_SG2:
5140 switch (portNum) {
5141 default:
5142 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5143 break;
5144 }
5145 break;
5146 case ::Ref::InstanceIds::Ref_SG3:
5147 switch (portNum) {
5148 default:
5149 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5150 break;
5151 }
5152 break;
5153 case ::Ref::InstanceIds::Ref_SG4:
5154 switch (portNum) {
5155 default:
5156 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5157 break;
5158 }
5159 break;
5160 case ::Ref::InstanceIds::Ref_SG5:
5161 switch (portNum) {
5162 default:
5163 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5164 break;
5165 }
5166 break;
5167 }
5168 return _result;
5169 }
5170
5171 void SignalGenComponentBase::productRequestOut_out(
5172 FwIndexType portNum,
5173 FwDpIdType id,
5174 FwSizeType dataSize
5175 ) const {
5176 FW_ASSERT(
5177 (0 <= portNum) && (portNum < NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS),
5178 static_cast<FwAssertArgType>(portNum),
5179 static_cast<FwAssertArgType>(NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS)
5180 );
5181 const auto instance = this->getInstance();
5182 switch (instance) {
5183 default:
5184 #ifdef FW_STRICT_ASSERTIONS
5185 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
5186 break;
5187 #else
5188 // Fall through
5189 #endif
5190 case ::Ref::InstanceIds::Ref_SG1:
5191 switch (portNum) {
5192 case 0:
5193 DataProducts::dpMgr.productRequestIn_handlerBase(
5194 0,
5195 id,
5196 dataSize
5197 );
5198 break;
5199 default:
5200 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5201 break;
5202 }
5203 break;
5204 case ::Ref::InstanceIds::Ref_SG2:
5205 switch (portNum) {
5206 default:
5207 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5208 break;
5209 }
5210 break;
5211 case ::Ref::InstanceIds::Ref_SG3:
5212 switch (portNum) {
5213 default:
5214 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5215 break;
5216 }
5217 break;
5218 case ::Ref::InstanceIds::Ref_SG4:
5219 switch (portNum) {
5220 default:
5221 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5222 break;
5223 }
5224 break;
5225 case ::Ref::InstanceIds::Ref_SG5:
5226 switch (portNum) {
5227 default:
5228 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5229 break;
5230 }
5231 break;
5232 }
5233 }
5234
5235 void SignalGenComponentBase::productSendOut_out(
5236 FwIndexType portNum,
5237 FwDpIdType id,
5238 const Fw::Buffer& buffer
5239 ) const {
5240 FW_ASSERT(
5241 (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS),
5242 static_cast<FwAssertArgType>(portNum),
5243 static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS)
5244 );
5245 const auto instance = this->getInstance();
5246 switch (instance) {
5247 default:
5248 #ifdef FW_STRICT_ASSERTIONS
5249 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
5250 break;
5251 #else
5252 // Fall through
5253 #endif
5254 case ::Ref::InstanceIds::Ref_SG1:
5255 switch (portNum) {
5256 case 0:
5257 DataProducts::dpMgr.productSendIn_handlerBase(
5258 0,
5259 id,
5260 buffer
5261 );
5262 break;
5263 default:
5264 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5265 break;
5266 }
5267 break;
5268 case ::Ref::InstanceIds::Ref_SG2:
5269 switch (portNum) {
5270 default:
5271 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5272 break;
5273 }
5274 break;
5275 case ::Ref::InstanceIds::Ref_SG3:
5276 switch (portNum) {
5277 default:
5278 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5279 break;
5280 }
5281 break;
5282 case ::Ref::InstanceIds::Ref_SG4:
5283 switch (portNum) {
5284 default:
5285 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5286 break;
5287 }
5288 break;
5289 case ::Ref::InstanceIds::Ref_SG5:
5290 switch (portNum) {
5291 default:
5292 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5293 break;
5294 }
5295 break;
5296 }
5297 }
5298
5299 8 void SignalGenComponentBase::timeCaller_out(
5300 FwIndexType portNum,
5301 Fw::Time& time
5302 ) const {
5303 8 FW_ASSERT(
5304 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
5305 static_cast<FwAssertArgType>(portNum),
5306 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
5307 );
5308 8 const auto instance = this->getInstance();
5309
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) {
5310 default:
5311 #ifdef FW_STRICT_ASSERTIONS
5312 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
5313 break;
5314 #else
5315 // Fall through
5316 #endif
5317 case ::Ref::InstanceIds::Ref_SG1:
5318 switch (portNum) {
5319 case 0:
5320 Ref::posixTime.timeGetPort_handlerBase(
5321 0,
5322 time
5323 );
5324 break;
5325 default:
5326 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5327 break;
5328 }
5329 break;
5330 case ::Ref::InstanceIds::Ref_SG2:
5331 switch (portNum) {
5332 case 0:
5333 Ref::posixTime.timeGetPort_handlerBase(
5334 0,
5335 time
5336 );
5337 break;
5338 default:
5339 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5340 break;
5341 }
5342 break;
5343 case ::Ref::InstanceIds::Ref_SG3:
5344 switch (portNum) {
5345 case 0:
5346 Ref::posixTime.timeGetPort_handlerBase(
5347 0,
5348 time
5349 );
5350 break;
5351 default:
5352 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5353 break;
5354 }
5355 break;
5356 8 case ::Ref::InstanceIds::Ref_SG4:
5357
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
5358 8 case 0:
5359 8 Ref::posixTime.timeGetPort_handlerBase(
5360 0,
5361 time
5362 );
5363 8 break;
5364 default:
5365 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5366 break;
5367 }
5368 8 break;
5369 case ::Ref::InstanceIds::Ref_SG5:
5370 switch (portNum) {
5371 case 0:
5372 Ref::posixTime.timeGetPort_handlerBase(
5373 0,
5374 time
5375 );
5376 break;
5377 default:
5378 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5379 break;
5380 }
5381 break;
5382 }
5383 8 }
5384
5385 7 void SignalGenComponentBase::tlmOut_out(
5386 FwIndexType portNum,
5387 FwChanIdType id,
5388 Fw::Time& timeTag,
5389 Fw::TlmBuffer& val
5390 ) const {
5391 7 FW_ASSERT(
5392 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
5393 static_cast<FwAssertArgType>(portNum),
5394 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
5395 );
5396 7 const auto instance = this->getInstance();
5397
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) {
5398 default:
5399 #ifdef FW_STRICT_ASSERTIONS
5400 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
5401 break;
5402 #else
5403 // Fall through
5404 #endif
5405 case ::Ref::InstanceIds::Ref_SG1:
5406 switch (portNum) {
5407 case 0:
5408 CdhCore::tlmSend.TlmRecv_handlerBase(
5409 0,
5410 id,
5411 timeTag,
5412 val
5413 );
5414 break;
5415 default:
5416 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5417 break;
5418 }
5419 break;
5420 case ::Ref::InstanceIds::Ref_SG2:
5421 switch (portNum) {
5422 case 0:
5423 CdhCore::tlmSend.TlmRecv_handlerBase(
5424 0,
5425 id,
5426 timeTag,
5427 val
5428 );
5429 break;
5430 default:
5431 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5432 break;
5433 }
5434 break;
5435 case ::Ref::InstanceIds::Ref_SG3:
5436 switch (portNum) {
5437 case 0:
5438 CdhCore::tlmSend.TlmRecv_handlerBase(
5439 0,
5440 id,
5441 timeTag,
5442 val
5443 );
5444 break;
5445 default:
5446 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5447 break;
5448 }
5449 break;
5450 7 case ::Ref::InstanceIds::Ref_SG4:
5451
1/2
✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
7 switch (portNum) {
5452 7 case 0:
5453 7 CdhCore::tlmSend.TlmRecv_handlerBase(
5454 0,
5455 id,
5456 timeTag,
5457 val
5458 );
5459 7 break;
5460 default:
5461 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5462 break;
5463 }
5464 7 break;
5465 case ::Ref::InstanceIds::Ref_SG5:
5466 switch (portNum) {
5467 case 0:
5468 CdhCore::tlmSend.TlmRecv_handlerBase(
5469 0,
5470 id,
5471 timeTag,
5472 val
5473 );
5474 break;
5475 default:
5476 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5477 break;
5478 }
5479 break;
5480 }
5481 7 }
5482
5483 }
5484
5485 namespace Ref {
5486
5487 1 bool TypeDemoComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const {
5488 1 FW_ASSERT(
5489 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
5490 static_cast<FwAssertArgType>(portNum),
5491 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
5492 );
5493 1 bool result = false;
5494
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
5495 1 case 0:
5496 1 result = true;
5497 1 break;
5498 default:
5499 break;
5500 }
5501 1 return result;
5502 }
5503
5504 3 bool TypeDemoComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const {
5505 3 FW_ASSERT(
5506 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
5507 static_cast<FwAssertArgType>(portNum),
5508 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
5509 );
5510 3 bool result = false;
5511
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
5512 3 case 0:
5513 3 result = true;
5514 3 break;
5515 default:
5516 break;
5517 }
5518 3 return result;
5519 }
5520
5521 3 bool TypeDemoComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
5522 3 FW_ASSERT(
5523 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
5524 static_cast<FwAssertArgType>(portNum),
5525 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
5526 );
5527 3 bool result = false;
5528
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
5529 3 case 0:
5530 3 result = true;
5531 3 break;
5532 default:
5533 break;
5534 }
5535 3 return result;
5536 }
5537
5538 #if FW_ENABLE_TEXT_LOGGING == 1
5539
5540 3 bool TypeDemoComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
5541 3 FW_ASSERT(
5542 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
5543 static_cast<FwAssertArgType>(portNum),
5544 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
5545 );
5546 3 bool result = false;
5547
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
5548 3 case 0:
5549 3 result = true;
5550 3 break;
5551 default:
5552 break;
5553 }
5554 3 return result;
5555 }
5556
5557 #endif
5558
5559 1 bool TypeDemoComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const {
5560 1 FW_ASSERT(
5561 (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS),
5562 static_cast<FwAssertArgType>(portNum),
5563 static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS)
5564 );
5565 1 bool result = false;
5566
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
5567 1 case 0:
5568 1 result = true;
5569 1 break;
5570 default:
5571 break;
5572 }
5573 1 return result;
5574 }
5575
5576 bool TypeDemoComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const {
5577 FW_ASSERT(
5578 (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS),
5579 static_cast<FwAssertArgType>(portNum),
5580 static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS)
5581 );
5582 bool result = false;
5583 switch (portNum) {
5584 case 0:
5585 result = true;
5586 break;
5587 default:
5588 break;
5589 }
5590 return result;
5591 }
5592
5593 6 bool TypeDemoComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
5594 6 FW_ASSERT(
5595 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
5596 static_cast<FwAssertArgType>(portNum),
5597 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
5598 );
5599 6 bool result = false;
5600
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
5601 6 case 0:
5602 6 result = true;
5603 6 break;
5604 default:
5605 break;
5606 }
5607 6 return result;
5608 }
5609
5610 6 bool TypeDemoComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
5611 6 FW_ASSERT(
5612 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
5613 static_cast<FwAssertArgType>(portNum),
5614 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
5615 );
5616 6 bool result = false;
5617
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
5618 6 case 0:
5619 6 result = true;
5620 6 break;
5621 default:
5622 break;
5623 }
5624 6 return result;
5625 }
5626
5627 22 void TypeDemoComponentBase::cmdRegOut_out(
5628 FwIndexType portNum,
5629 FwOpcodeType opCode
5630 ) const {
5631 22 FW_ASSERT(
5632 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
5633 static_cast<FwAssertArgType>(portNum),
5634 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
5635 );
5636
1/2
✓ Branch 0 taken 22 times.
✗ Branch 1 not taken.
22 switch (portNum) {
5637 22 case 0:
5638 22 CdhCore::cmdDisp.compCmdReg_handlerBase(
5639 23,
5640 opCode
5641 );
5642 22 break;
5643 default:
5644 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5645 break;
5646 }
5647 22 }
5648
5649 3 void TypeDemoComponentBase::cmdResponseOut_out(
5650 FwIndexType portNum,
5651 FwOpcodeType opCode,
5652 U32 cmdSeq,
5653 const Fw::CmdResponse& response
5654 ) const {
5655 3 FW_ASSERT(
5656 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
5657 static_cast<FwAssertArgType>(portNum),
5658 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
5659 );
5660
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
5661 3 case 0:
5662 3 CdhCore::cmdDisp.compCmdStat_handlerBase(
5663 0,
5664 opCode,
5665 cmdSeq,
5666 response
5667 );
5668 3 break;
5669 default:
5670 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5671 break;
5672 }
5673 3 }
5674
5675 3 void TypeDemoComponentBase::logOut_out(
5676 FwIndexType portNum,
5677 FwEventIdType id,
5678 Fw::Time& timeTag,
5679 const Fw::LogSeverity& severity,
5680 Fw::LogBuffer& args
5681 ) const {
5682 3 FW_ASSERT(
5683 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
5684 static_cast<FwAssertArgType>(portNum),
5685 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
5686 );
5687
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
5688 3 case 0:
5689 3 CdhCore::events.LogRecv_handlerBase(
5690 0,
5691 id,
5692 timeTag,
5693 severity,
5694 args
5695 );
5696 3 break;
5697 default:
5698 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5699 break;
5700 }
5701 3 }
5702
5703 #if FW_ENABLE_TEXT_LOGGING == 1
5704
5705 3 void TypeDemoComponentBase::logTextOut_out(
5706 FwIndexType portNum,
5707 FwEventIdType id,
5708 Fw::Time& timeTag,
5709 const Fw::LogSeverity& severity,
5710 Fw::TextLogString& text
5711 ) const {
5712 3 FW_ASSERT(
5713 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
5714 static_cast<FwAssertArgType>(portNum),
5715 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
5716 );
5717
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
5718 3 case 0:
5719 3 CdhCore::textLogger.TextLogger_handlerBase(
5720 0,
5721 id,
5722 timeTag,
5723 severity,
5724 text
5725 );
5726 3 break;
5727 default:
5728 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5729 break;
5730 }
5731 3 }
5732
5733 #endif
5734
5735 5 Fw::ParamValid TypeDemoComponentBase::prmGetOut_out(
5736 FwIndexType portNum,
5737 FwPrmIdType id,
5738 Fw::ParamBuffer& val
5739 ) const {
5740 5 FW_ASSERT(
5741 (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS),
5742 static_cast<FwAssertArgType>(portNum),
5743 static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS)
5744 );
5745 5 Fw::ParamValid _result = {};
5746
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 switch (portNum) {
5747 5 case 0:
5748
1/1
✓ Branch 1 taken 5 times.
10 _result = FileHandling::prmDb.getPrm_handlerBase(
5749 0,
5750 id,
5751 val
5752
1/1
✓ Branch 1 taken 5 times.
5 );
5753 5 break;
5754 default:
5755 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5756 break;
5757 }
5758 5 return _result;
5759 }
5760
5761 void TypeDemoComponentBase::prmSetOut_out(
5762 FwIndexType portNum,
5763 FwPrmIdType id,
5764 Fw::ParamBuffer& val
5765 ) const {
5766 FW_ASSERT(
5767 (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS),
5768 static_cast<FwAssertArgType>(portNum),
5769 static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS)
5770 );
5771 switch (portNum) {
5772 case 0:
5773 FileHandling::prmDb.setPrm_handlerBase(
5774 0,
5775 id,
5776 val
5777 );
5778 break;
5779 default:
5780 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5781 break;
5782 }
5783 }
5784
5785 6 void TypeDemoComponentBase::timeCaller_out(
5786 FwIndexType portNum,
5787 Fw::Time& time
5788 ) const {
5789 6 FW_ASSERT(
5790 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
5791 static_cast<FwAssertArgType>(portNum),
5792 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
5793 );
5794
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
5795 6 case 0:
5796 6 Ref::posixTime.timeGetPort_handlerBase(
5797 0,
5798 time
5799 );
5800 6 break;
5801 default:
5802 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5803 break;
5804 }
5805 6 }
5806
5807 3 void TypeDemoComponentBase::tlmOut_out(
5808 FwIndexType portNum,
5809 FwChanIdType id,
5810 Fw::Time& timeTag,
5811 Fw::TlmBuffer& val
5812 ) const {
5813 3 FW_ASSERT(
5814 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
5815 static_cast<FwAssertArgType>(portNum),
5816 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
5817 );
5818
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
5819 3 case 0:
5820 3 CdhCore::tlmSend.TlmRecv_handlerBase(
5821 0,
5822 id,
5823 timeTag,
5824 val
5825 );
5826 3 break;
5827 default:
5828 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
5829 break;
5830 }
5831 3 }
5832
5833 }
5834
5835 namespace Svc {
5836
5837 3 bool ActiveRateGroupComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
5838 3 FW_ASSERT(
5839 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
5840 static_cast<FwAssertArgType>(portNum),
5841 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
5842 );
5843 3 bool result = false;
5844 3 const auto instance = this->getInstance();
5845
3/4
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 1 times.
3 switch (instance) {
5846 default:
5847 #ifdef FW_STRICT_ASSERTIONS
5848 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
5849 break;
5850 #else
5851 // Fall through
5852 #endif
5853 1 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
5854
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
5855 1 case 0:
5856 1 result = true;
5857 1 break;
5858 default:
5859 break;
5860 }
5861 1 break;
5862 1 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
5863
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
5864 1 case 0:
5865 1 result = true;
5866 1 break;
5867 default:
5868 break;
5869 }
5870 1 break;
5871 1 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
5872
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
5873 1 case 0:
5874 1 result = true;
5875 1 break;
5876 default:
5877 break;
5878 }
5879 1 break;
5880 }
5881 3 return result;
5882 }
5883
5884 #if FW_ENABLE_TEXT_LOGGING == 1
5885
5886 3 bool ActiveRateGroupComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
5887 3 FW_ASSERT(
5888 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
5889 static_cast<FwAssertArgType>(portNum),
5890 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
5891 );
5892 3 bool result = false;
5893 3 const auto instance = this->getInstance();
5894
3/4
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 1 times.
3 switch (instance) {
5895 default:
5896 #ifdef FW_STRICT_ASSERTIONS
5897 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
5898 break;
5899 #else
5900 // Fall through
5901 #endif
5902 1 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
5903
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
5904 1 case 0:
5905 1 result = true;
5906 1 break;
5907 default:
5908 break;
5909 }
5910 1 break;
5911 1 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
5912
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
5913 1 case 0:
5914 1 result = true;
5915 1 break;
5916 default:
5917 break;
5918 }
5919 1 break;
5920 1 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
5921
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
5922 1 case 0:
5923 1 result = true;
5924 1 break;
5925 default:
5926 break;
5927 }
5928 1 break;
5929 }
5930 3 return result;
5931 }
5932
5933 #endif
5934
5935 bool ActiveRateGroupComponentBase::isConnected_PingOut_OutputPort(FwIndexType portNum) const {
5936 FW_ASSERT(
5937 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
5938 static_cast<FwAssertArgType>(portNum),
5939 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
5940 );
5941 bool result = false;
5942 const auto instance = this->getInstance();
5943 switch (instance) {
5944 default:
5945 #ifdef FW_STRICT_ASSERTIONS
5946 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
5947 break;
5948 #else
5949 // Fall through
5950 #endif
5951 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
5952 switch (portNum) {
5953 case 0:
5954 result = true;
5955 break;
5956 default:
5957 break;
5958 }
5959 break;
5960 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
5961 switch (portNum) {
5962 case 0:
5963 result = true;
5964 break;
5965 default:
5966 break;
5967 }
5968 break;
5969 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
5970 switch (portNum) {
5971 case 0:
5972 result = true;
5973 break;
5974 default:
5975 break;
5976 }
5977 break;
5978 }
5979 return result;
5980 }
5981
5982 4088 bool ActiveRateGroupComponentBase::isConnected_RateGroupMemberOut_OutputPort(FwIndexType portNum) const {
5983 4088 FW_ASSERT(
5984 (0 <= portNum) && (portNum < NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS),
5985 static_cast<FwAssertArgType>(portNum),
5986 static_cast<FwAssertArgType>(NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS)
5987 );
5988 4116 bool result = false;
5989 4116 const auto instance = this->getInstance();
5990
3/4
✗ Branch 0 not taken.
✓ Branch 1 taken 2350 times.
✓ Branch 2 taken 1180 times.
✓ Branch 3 taken 590 times.
4112 switch (instance) {
5991 default:
5992 #ifdef FW_STRICT_ASSERTIONS
5993 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
5994 break;
5995 #else
5996 // Fall through
5997 #endif
5998 2350 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
5999
9/9
✓ Branch 0 taken 235 times.
✓ Branch 1 taken 235 times.
✓ Branch 2 taken 235 times.
✓ Branch 3 taken 235 times.
✓ Branch 4 taken 235 times.
✓ Branch 5 taken 235 times.
✓ Branch 6 taken 235 times.
✓ Branch 7 taken 235 times.
✓ Branch 8 taken 470 times.
2350 switch (portNum) {
6000 235 case 0:
6001 235 result = true;
6002 235 break;
6003 235 case 1:
6004 235 result = true;
6005 235 break;
6006 235 case 2:
6007 235 result = true;
6008 235 break;
6009 235 case 3:
6010 235 result = true;
6011 235 break;
6012 235 case 4:
6013 235 result = true;
6014 235 break;
6015 235 case 5:
6016 235 result = true;
6017 235 break;
6018 235 case 6:
6019 235 result = true;
6020 235 break;
6021 235 case 7:
6022 235 result = true;
6023 235 break;
6024 470 default:
6025 470 break;
6026 }
6027 2350 break;
6028 1180 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
6029
7/7
✓ Branch 0 taken 118 times.
✓ Branch 1 taken 118 times.
✓ Branch 2 taken 118 times.
✓ Branch 3 taken 118 times.
✓ Branch 4 taken 118 times.
✓ Branch 5 taken 118 times.
✓ Branch 6 taken 472 times.
1180 switch (portNum) {
6030 118 case 0:
6031 118 result = true;
6032 118 break;
6033 118 case 1:
6034 118 result = true;
6035 118 break;
6036 118 case 2:
6037 118 result = true;
6038 118 break;
6039 118 case 3:
6040 118 result = true;
6041 118 break;
6042 118 case 4:
6043 118 result = true;
6044 118 break;
6045 118 case 5:
6046 118 result = true;
6047 118 break;
6048 472 default:
6049 472 break;
6050 }
6051 1180 break;
6052 590 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
6053
9/9
✓ Branch 0 taken 59 times.
✓ Branch 1 taken 59 times.
✓ Branch 2 taken 59 times.
✓ Branch 3 taken 59 times.
✓ Branch 4 taken 59 times.
✓ Branch 5 taken 59 times.
✓ Branch 6 taken 59 times.
✓ Branch 7 taken 59 times.
✓ Branch 8 taken 118 times.
590 switch (portNum) {
6054 59 case 0:
6055 59 result = true;
6056 59 break;
6057 59 case 1:
6058 59 result = true;
6059 59 break;
6060 59 case 2:
6061 59 result = true;
6062 59 break;
6063 59 case 3:
6064 59 result = true;
6065 59 break;
6066 59 case 4:
6067 59 result = true;
6068 59 break;
6069 59 case 5:
6070 59 result = true;
6071 59 break;
6072 59 case 6:
6073 59 result = true;
6074 59 break;
6075 59 case 7:
6076 59 result = true;
6077 59 break;
6078 118 default:
6079 118 break;
6080 }
6081 590 break;
6082 }
6083 4120 return result;
6084 }
6085
6086 19 bool ActiveRateGroupComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
6087 19 FW_ASSERT(
6088 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
6089 static_cast<FwAssertArgType>(portNum),
6090 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
6091 );
6092 19 bool result = false;
6093 19 const auto instance = this->getInstance();
6094
3/4
✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✓ Branch 2 taken 4 times.
✓ Branch 3 taken 9 times.
19 switch (instance) {
6095 default:
6096 #ifdef FW_STRICT_ASSERTIONS
6097 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
6098 break;
6099 #else
6100 // Fall through
6101 #endif
6102 6 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
6103
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
6104 6 case 0:
6105 6 result = true;
6106 6 break;
6107 default:
6108 break;
6109 }
6110 6 break;
6111 4 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
6112
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
6113 4 case 0:
6114 4 result = true;
6115 4 break;
6116 default:
6117 break;
6118 }
6119 4 break;
6120 9 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
6121
1/2
✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
9 switch (portNum) {
6122 9 case 0:
6123 9 result = true;
6124 9 break;
6125 default:
6126 break;
6127 }
6128 9 break;
6129 }
6130 19 return result;
6131 }
6132
6133 32 bool ActiveRateGroupComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const {
6134 32 FW_ASSERT(
6135 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
6136 static_cast<FwAssertArgType>(portNum),
6137 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
6138 );
6139 32 bool result = false;
6140 32 const auto instance = this->getInstance();
6141
3/4
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✓ Branch 2 taken 6 times.
✓ Branch 3 taken 16 times.
32 switch (instance) {
6142 default:
6143 #ifdef FW_STRICT_ASSERTIONS
6144 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
6145 break;
6146 #else
6147 // Fall through
6148 #endif
6149 10 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
6150
1/2
✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
10 switch (portNum) {
6151 10 case 0:
6152 10 result = true;
6153 10 break;
6154 default:
6155 break;
6156 }
6157 10 break;
6158 6 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
6159
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
6160 6 case 0:
6161 6 result = true;
6162 6 break;
6163 default:
6164 break;
6165 }
6166 6 break;
6167 16 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
6168
1/2
✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
16 switch (portNum) {
6169 16 case 0:
6170 16 result = true;
6171 16 break;
6172 default:
6173 break;
6174 }
6175 16 break;
6176 }
6177 32 return result;
6178 }
6179
6180 3 void ActiveRateGroupComponentBase::Log_out(
6181 FwIndexType portNum,
6182 FwEventIdType id,
6183 Fw::Time& timeTag,
6184 const Fw::LogSeverity& severity,
6185 Fw::LogBuffer& args
6186 ) const {
6187 3 FW_ASSERT(
6188 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
6189 static_cast<FwAssertArgType>(portNum),
6190 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
6191 );
6192 3 const auto instance = this->getInstance();
6193
3/4
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 1 times.
3 switch (instance) {
6194 default:
6195 #ifdef FW_STRICT_ASSERTIONS
6196 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
6197 break;
6198 #else
6199 // Fall through
6200 #endif
6201 1 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
6202
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
6203 1 case 0:
6204 1 CdhCore::events.LogRecv_handlerBase(
6205 0,
6206 id,
6207 timeTag,
6208 severity,
6209 args
6210 );
6211 1 break;
6212 default:
6213 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6214 break;
6215 }
6216 1 break;
6217 1 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
6218
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
6219 1 case 0:
6220 1 CdhCore::events.LogRecv_handlerBase(
6221 0,
6222 id,
6223 timeTag,
6224 severity,
6225 args
6226 );
6227 1 break;
6228 default:
6229 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6230 break;
6231 }
6232 1 break;
6233 1 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
6234
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
6235 1 case 0:
6236 1 CdhCore::events.LogRecv_handlerBase(
6237 0,
6238 id,
6239 timeTag,
6240 severity,
6241 args
6242 );
6243 1 break;
6244 default:
6245 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6246 break;
6247 }
6248 1 break;
6249 }
6250 3 }
6251
6252 #if FW_ENABLE_TEXT_LOGGING == 1
6253
6254 3 void ActiveRateGroupComponentBase::LogText_out(
6255 FwIndexType portNum,
6256 FwEventIdType id,
6257 Fw::Time& timeTag,
6258 const Fw::LogSeverity& severity,
6259 Fw::TextLogString& text
6260 ) const {
6261 3 FW_ASSERT(
6262 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
6263 static_cast<FwAssertArgType>(portNum),
6264 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
6265 );
6266 3 const auto instance = this->getInstance();
6267
3/4
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 1 times.
3 switch (instance) {
6268 default:
6269 #ifdef FW_STRICT_ASSERTIONS
6270 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
6271 break;
6272 #else
6273 // Fall through
6274 #endif
6275 1 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
6276
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
6277 1 case 0:
6278 1 CdhCore::textLogger.TextLogger_handlerBase(
6279 0,
6280 id,
6281 timeTag,
6282 severity,
6283 text
6284 );
6285 1 break;
6286 default:
6287 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6288 break;
6289 }
6290 1 break;
6291 1 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
6292
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
6293 1 case 0:
6294 1 CdhCore::textLogger.TextLogger_handlerBase(
6295 0,
6296 id,
6297 timeTag,
6298 severity,
6299 text
6300 );
6301 1 break;
6302 default:
6303 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6304 break;
6305 }
6306 1 break;
6307 1 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
6308
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
6309 1 case 0:
6310 1 CdhCore::textLogger.TextLogger_handlerBase(
6311 0,
6312 id,
6313 timeTag,
6314 severity,
6315 text
6316 );
6317 1 break;
6318 default:
6319 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6320 break;
6321 }
6322 1 break;
6323 }
6324 3 }
6325
6326 #endif
6327
6328 177 void ActiveRateGroupComponentBase::PingOut_out(
6329 FwIndexType portNum,
6330 U32 key
6331 ) const {
6332 177 FW_ASSERT(
6333 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
6334 static_cast<FwAssertArgType>(portNum),
6335 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
6336 );
6337 177 const auto instance = this->getInstance();
6338
3/4
✗ Branch 0 not taken.
✓ Branch 1 taken 59 times.
✓ Branch 2 taken 59 times.
✓ Branch 3 taken 59 times.
177 switch (instance) {
6339 default:
6340 #ifdef FW_STRICT_ASSERTIONS
6341 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
6342 break;
6343 #else
6344 // Fall through
6345 #endif
6346 59 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
6347
1/2
✓ Branch 0 taken 59 times.
✗ Branch 1 not taken.
59 switch (portNum) {
6348 59 case 0:
6349 59 CdhCore::health.PingReturn_handlerBase(
6350 12,
6351 key
6352 );
6353 59 break;
6354 default:
6355 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6356 break;
6357 }
6358 59 break;
6359 59 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
6360
1/2
✓ Branch 0 taken 59 times.
✗ Branch 1 not taken.
59 switch (portNum) {
6361 59 case 0:
6362 59 CdhCore::health.PingReturn_handlerBase(
6363 13,
6364 key
6365 );
6366 59 break;
6367 default:
6368 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6369 break;
6370 }
6371 59 break;
6372 59 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
6373
1/2
✓ Branch 0 taken 59 times.
✗ Branch 1 not taken.
59 switch (portNum) {
6374 59 case 0:
6375 59 CdhCore::health.PingReturn_handlerBase(
6376 14,
6377 key
6378 );
6379 59 break;
6380 default:
6381 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6382 break;
6383 }
6384 59 break;
6385 }
6386 177 }
6387
6388 3038 void ActiveRateGroupComponentBase::RateGroupMemberOut_out(
6389 FwIndexType portNum,
6390 U32 context
6391 ) const {
6392 3038 FW_ASSERT(
6393 (0 <= portNum) && (portNum < NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS),
6394 static_cast<FwAssertArgType>(portNum),
6395 static_cast<FwAssertArgType>(NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS)
6396 );
6397 3054 const auto instance = this->getInstance();
6398
3/4
✗ Branch 0 not taken.
✓ Branch 1 taken 1880 times.
✓ Branch 2 taken 708 times.
✓ Branch 3 taken 472 times.
3054 switch (instance) {
6399 default:
6400 #ifdef FW_STRICT_ASSERTIONS
6401 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
6402 break;
6403 #else
6404 // Fall through
6405 #endif
6406 1880 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
6407
8/9
✓ Branch 0 taken 235 times.
✓ Branch 1 taken 235 times.
✓ Branch 2 taken 235 times.
✓ Branch 3 taken 235 times.
✓ Branch 4 taken 235 times.
✓ Branch 5 taken 235 times.
✓ Branch 6 taken 235 times.
✓ Branch 7 taken 235 times.
✗ Branch 8 not taken.
1880 switch (portNum) {
6408 235 case 0:
6409 235 Ref::SG1.schedIn_handlerBase(
6410 0,
6411 context
6412 );
6413 235 break;
6414 235 case 1:
6415 235 Ref::SG2.schedIn_handlerBase(
6416 0,
6417 context
6418 );
6419 235 break;
6420 235 case 2:
6421 235 CdhCore::tlmSend.Run_handlerBase(
6422 0,
6423 context
6424 );
6425 235 break;
6426 235 case 3:
6427 235 FileHandling::fileDownlink.Run_handlerBase(
6428 0,
6429 context
6430 );
6431 235 break;
6432 235 case 4:
6433 235 Ref::systemResources.run_handlerBase(
6434 0,
6435 context
6436 );
6437 235 break;
6438 235 case 5:
6439 235 ComCcsds::comQueue.run_handlerBase(
6440 0,
6441 context
6442 );
6443 235 break;
6444 235 case 6:
6445 235 CdhCore::cmdDisp.run_handlerBase(
6446 0,
6447 context
6448 );
6449 235 break;
6450 235 case 7:
6451 235 ComCcsds::aggregator.timeout_handlerBase(
6452 0,
6453 context
6454 );
6455 235 break;
6456 default:
6457 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6458 break;
6459 }
6460 1880 break;
6461 708 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
6462
6/7
✓ Branch 0 taken 118 times.
✓ Branch 1 taken 118 times.
✓ Branch 2 taken 118 times.
✓ Branch 3 taken 118 times.
✓ Branch 4 taken 118 times.
✓ Branch 5 taken 118 times.
✗ Branch 6 not taken.
708 switch (portNum) {
6463 118 case 0:
6464 118 Ref::cmdSeq.schedIn_handlerBase(
6465 0,
6466 context
6467 );
6468 118 break;
6469 118 case 1:
6470 118 Ref::sendBuffComp.SchedIn_handlerBase(
6471 0,
6472 context
6473 );
6474 118 break;
6475 118 case 2:
6476 118 Ref::SG3.schedIn_handlerBase(
6477 0,
6478 context
6479 );
6480 118 break;
6481 118 case 3:
6482 118 Ref::SG4.schedIn_handlerBase(
6483 0,
6484 context
6485 );
6486 118 break;
6487 118 case 4:
6488 118 Ref::dpDemo.run_handlerBase(
6489 0,
6490 context
6491 );
6492 118 break;
6493 118 case 5:
6494 118 FileHandling::fileManager.schedIn_handlerBase(
6495 0,
6496 context
6497 );
6498 118 break;
6499 default:
6500 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6501 break;
6502 }
6503 708 break;
6504 472 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
6505
8/9
✓ Branch 0 taken 59 times.
✓ Branch 1 taken 59 times.
✓ Branch 2 taken 59 times.
✓ Branch 3 taken 59 times.
✓ Branch 4 taken 59 times.
✓ Branch 5 taken 59 times.
✓ Branch 6 taken 59 times.
✓ Branch 7 taken 59 times.
✗ Branch 8 not taken.
472 switch (portNum) {
6506 59 case 0:
6507 59 CdhCore::health.Run_handlerBase(
6508 0,
6509 context
6510 );
6511 59 break;
6512 59 case 1:
6513 59 Ref::SG5.schedIn_handlerBase(
6514 0,
6515 context
6516 );
6517 59 break;
6518 59 case 2:
6519 59 Ref::blockDrv.Sched_handlerBase(
6520 0,
6521 context
6522 );
6523 59 break;
6524 59 case 3:
6525 59 ComCcsds::commsBufferManager.schedIn_handlerBase(
6526 0,
6527 context
6528 );
6529 59 break;
6530 59 case 4:
6531 59 DataProducts::dpBufferManager.schedIn_handlerBase(
6532 0,
6533 context
6534 );
6535 59 break;
6536 59 case 5:
6537 59 DataProducts::dpWriter.schedIn_handlerBase(
6538 0,
6539 context
6540 );
6541 59 break;
6542 59 case 6:
6543 59 DataProducts::dpMgr.schedIn_handlerBase(
6544 0,
6545 context
6546 );
6547 59 break;
6548 59 case 7:
6549 59 CdhCore::events.run_handlerBase(
6550 0,
6551 context
6552 );
6553 59 break;
6554 default:
6555 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6556 break;
6557 }
6558 472 break;
6559 }
6560 3060 }
6561
6562 19 void ActiveRateGroupComponentBase::Time_out(
6563 FwIndexType portNum,
6564 Fw::Time& time
6565 ) const {
6566 19 FW_ASSERT(
6567 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
6568 static_cast<FwAssertArgType>(portNum),
6569 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
6570 );
6571 19 const auto instance = this->getInstance();
6572
3/4
✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✓ Branch 2 taken 4 times.
✓ Branch 3 taken 9 times.
19 switch (instance) {
6573 default:
6574 #ifdef FW_STRICT_ASSERTIONS
6575 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
6576 break;
6577 #else
6578 // Fall through
6579 #endif
6580 6 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
6581
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
6582 6 case 0:
6583 6 Ref::posixTime.timeGetPort_handlerBase(
6584 0,
6585 time
6586 );
6587 6 break;
6588 default:
6589 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6590 break;
6591 }
6592 6 break;
6593 4 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
6594
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
6595 4 case 0:
6596 4 Ref::posixTime.timeGetPort_handlerBase(
6597 0,
6598 time
6599 );
6600 4 break;
6601 default:
6602 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6603 break;
6604 }
6605 4 break;
6606 9 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
6607
1/2
✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
9 switch (portNum) {
6608 9 case 0:
6609 9 Ref::posixTime.timeGetPort_handlerBase(
6610 0,
6611 time
6612 );
6613 9 break;
6614 default:
6615 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6616 break;
6617 }
6618 9 break;
6619 }
6620 19 }
6621
6622 16 void ActiveRateGroupComponentBase::Tlm_out(
6623 FwIndexType portNum,
6624 FwChanIdType id,
6625 Fw::Time& timeTag,
6626 Fw::TlmBuffer& val
6627 ) const {
6628 16 FW_ASSERT(
6629 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
6630 static_cast<FwAssertArgType>(portNum),
6631 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
6632 );
6633 16 const auto instance = this->getInstance();
6634
3/4
✗ Branch 0 not taken.
✓ Branch 1 taken 5 times.
✓ Branch 2 taken 3 times.
✓ Branch 3 taken 8 times.
16 switch (instance) {
6635 default:
6636 #ifdef FW_STRICT_ASSERTIONS
6637 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
6638 break;
6639 #else
6640 // Fall through
6641 #endif
6642 5 case ::Ref::InstanceIds::Ref_rateGroup1Comp:
6643
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 switch (portNum) {
6644 5 case 0:
6645 5 CdhCore::tlmSend.TlmRecv_handlerBase(
6646 0,
6647 id,
6648 timeTag,
6649 val
6650 );
6651 5 break;
6652 default:
6653 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6654 break;
6655 }
6656 5 break;
6657 3 case ::Ref::InstanceIds::Ref_rateGroup2Comp:
6658
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
6659 3 case 0:
6660 3 CdhCore::tlmSend.TlmRecv_handlerBase(
6661 0,
6662 id,
6663 timeTag,
6664 val
6665 );
6666 3 break;
6667 default:
6668 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6669 break;
6670 }
6671 3 break;
6672 8 case ::Ref::InstanceIds::Ref_rateGroup3Comp:
6673
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
6674 8 case 0:
6675 8 CdhCore::tlmSend.TlmRecv_handlerBase(
6676 0,
6677 id,
6678 timeTag,
6679 val
6680 );
6681 8 break;
6682 default:
6683 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6684 break;
6685 }
6686 8 break;
6687 }
6688 16 }
6689
6690 }
6691
6692 namespace Svc {
6693
6694 bool AssertFatalAdapterComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
6695 FW_ASSERT(
6696 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
6697 static_cast<FwAssertArgType>(portNum),
6698 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
6699 );
6700 bool result = false;
6701 switch (portNum) {
6702 case 0:
6703 result = true;
6704 break;
6705 default:
6706 break;
6707 }
6708 return result;
6709 }
6710
6711 #if FW_ENABLE_TEXT_LOGGING == 1
6712
6713 bool AssertFatalAdapterComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
6714 FW_ASSERT(
6715 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
6716 static_cast<FwAssertArgType>(portNum),
6717 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
6718 );
6719 bool result = false;
6720 switch (portNum) {
6721 case 0:
6722 result = true;
6723 break;
6724 default:
6725 break;
6726 }
6727 return result;
6728 }
6729
6730 #endif
6731
6732 bool AssertFatalAdapterComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
6733 FW_ASSERT(
6734 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
6735 static_cast<FwAssertArgType>(portNum),
6736 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
6737 );
6738 bool result = false;
6739 switch (portNum) {
6740 case 0:
6741 result = true;
6742 break;
6743 default:
6744 break;
6745 }
6746 return result;
6747 }
6748
6749 void AssertFatalAdapterComponentBase::Log_out(
6750 FwIndexType portNum,
6751 FwEventIdType id,
6752 Fw::Time& timeTag,
6753 const Fw::LogSeverity& severity,
6754 Fw::LogBuffer& args
6755 ) const {
6756 FW_ASSERT(
6757 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
6758 static_cast<FwAssertArgType>(portNum),
6759 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
6760 );
6761 switch (portNum) {
6762 case 0:
6763 CdhCore::events.LogRecv_handlerBase(
6764 0,
6765 id,
6766 timeTag,
6767 severity,
6768 args
6769 );
6770 break;
6771 default:
6772 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6773 break;
6774 }
6775 }
6776
6777 #if FW_ENABLE_TEXT_LOGGING == 1
6778
6779 void AssertFatalAdapterComponentBase::LogText_out(
6780 FwIndexType portNum,
6781 FwEventIdType id,
6782 Fw::Time& timeTag,
6783 const Fw::LogSeverity& severity,
6784 Fw::TextLogString& text
6785 ) const {
6786 FW_ASSERT(
6787 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
6788 static_cast<FwAssertArgType>(portNum),
6789 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
6790 );
6791 switch (portNum) {
6792 case 0:
6793 CdhCore::textLogger.TextLogger_handlerBase(
6794 0,
6795 id,
6796 timeTag,
6797 severity,
6798 text
6799 );
6800 break;
6801 default:
6802 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6803 break;
6804 }
6805 }
6806
6807 #endif
6808
6809 void AssertFatalAdapterComponentBase::Time_out(
6810 FwIndexType portNum,
6811 Fw::Time& time
6812 ) const {
6813 FW_ASSERT(
6814 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
6815 static_cast<FwAssertArgType>(portNum),
6816 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
6817 );
6818 switch (portNum) {
6819 case 0:
6820 Ref::posixTime.timeGetPort_handlerBase(
6821 0,
6822 time
6823 );
6824 break;
6825 default:
6826 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
6827 break;
6828 }
6829 }
6830
6831 }
6832
6833 namespace Svc {
6834
6835 bool BufferAccumulatorComponentBase::isConnected_bufferSendOutDrain_OutputPort(FwIndexType portNum) const {
6836 FW_ASSERT(
6837 (0 <= portNum) && (portNum < NUM_BUFFERSENDOUTDRAIN_OUTPUT_PORTS),
6838 static_cast<FwAssertArgType>(portNum),
6839 static_cast<FwAssertArgType>(NUM_BUFFERSENDOUTDRAIN_OUTPUT_PORTS)
6840 );
6841 bool result = false;
6842 switch (portNum) {
6843 case 0:
6844 result = true;
6845 break;
6846 default:
6847 break;
6848 }
6849 return result;
6850 }
6851
6852 bool BufferAccumulatorComponentBase::isConnected_bufferSendOutReturn_OutputPort(FwIndexType portNum) const {
6853 FW_ASSERT(
6854 (0 <= portNum) && (portNum < NUM_BUFFERSENDOUTRETURN_OUTPUT_PORTS),
6855 static_cast<FwAssertArgType>(portNum),
6856 static_cast<FwAssertArgType>(NUM_BUFFERSENDOUTRETURN_OUTPUT_PORTS)
6857 );
6858 bool result = false;
6859 switch (portNum) {
6860 case 0:
6861 result = true;
6862 break;
6863 default:
6864 break;
6865 }
6866 return result;
6867 }
6868
6869 1 bool BufferAccumulatorComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const {
6870 1 FW_ASSERT(
6871 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
6872 static_cast<FwAssertArgType>(portNum),
6873 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
6874 );
6875 1 bool result = false;
6876
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
6877 1 case 0:
6878 1 result = true;
6879 1 break;
6880 default:
6881 break;
6882 }
6883 1 return result;
6884 }
6885
6886 bool BufferAccumulatorComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const {
6887 FW_ASSERT(
6888 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
6889 static_cast<FwAssertArgType>(portNum),
6890 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
6891 );
6892 bool result = false;
6893 switch (portNum) {
6894 case 0:
6895 result = true;
6896 break;
6897 default:
6898 break;
6899 }
6900 return result;
6901 }
6902
6903 bool BufferAccumulatorComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const {
6904 FW_ASSERT(
6905 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
6906 static_cast<FwAssertArgType>(portNum),
6907 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
6908 );
6909 bool result = false;
6910 switch (portNum) {
6911 case 0:
6912 result = true;
6913 break;
6914 default:
6915 break;
6916 }
6917 return result;
6918 }
6919
6920 #if FW_ENABLE_TEXT_LOGGING == 1
6921
6922 bool BufferAccumulatorComponentBase::isConnected_eventOutText_OutputPort(FwIndexType portNum) const {
6923 FW_ASSERT(
6924 (0 <= portNum) && (portNum < NUM_EVENTOUTTEXT_OUTPUT_PORTS),
6925 static_cast<FwAssertArgType>(portNum),
6926 static_cast<FwAssertArgType>(NUM_EVENTOUTTEXT_OUTPUT_PORTS)
6927 );
6928 bool result = false;
6929 switch (portNum) {
6930 case 0:
6931 result = true;
6932 break;
6933 default:
6934 break;
6935 }
6936 return result;
6937 }
6938
6939 #endif
6940
6941 bool BufferAccumulatorComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const {
6942 FW_ASSERT(
6943 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
6944 static_cast<FwAssertArgType>(portNum),
6945 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
6946 );
6947 bool result = false;
6948 switch (portNum) {
6949 case 0:
6950 result = true;
6951 break;
6952 default:
6953 break;
6954 }
6955 return result;
6956 }
6957
6958 6 bool BufferAccumulatorComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
6959 6 FW_ASSERT(
6960 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
6961 static_cast<FwAssertArgType>(portNum),
6962 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
6963 );
6964 6 bool result = false;
6965
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
6966 6 case 0:
6967 6 result = true;
6968 6 break;
6969 default:
6970 break;
6971 }
6972 6 return result;
6973 }
6974
6975 12 bool BufferAccumulatorComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
6976 12 FW_ASSERT(
6977 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
6978 static_cast<FwAssertArgType>(portNum),
6979 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
6980 );
6981 12 bool result = false;
6982
1/2
✓ Branch 0 taken 12 times.
✗ Branch 1 not taken.
12 switch (portNum) {
6983 12 case 0:
6984 12 result = true;
6985 12 break;
6986 default:
6987 break;
6988 }
6989 12 return result;
6990 }
6991
6992 2 void BufferAccumulatorComponentBase::bufferSendOutDrain_out(
6993 FwIndexType portNum,
6994 Fw::Buffer& fwBuffer
6995 ) const {
6996 2 FW_ASSERT(
6997 (0 <= portNum) && (portNum < NUM_BUFFERSENDOUTDRAIN_OUTPUT_PORTS),
6998 static_cast<FwAssertArgType>(portNum),
6999 static_cast<FwAssertArgType>(NUM_BUFFERSENDOUTDRAIN_OUTPUT_PORTS)
7000 );
7001
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
7002 2 case 0:
7003 2 DataProducts::dpWriter.bufferSendIn_handlerBase(
7004 0,
7005 fwBuffer
7006 );
7007 2 break;
7008 default:
7009 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7010 break;
7011 }
7012 2 }
7013
7014 2 void BufferAccumulatorComponentBase::bufferSendOutReturn_out(
7015 FwIndexType portNum,
7016 Fw::Buffer& fwBuffer
7017 ) const {
7018 2 FW_ASSERT(
7019 (0 <= portNum) && (portNum < NUM_BUFFERSENDOUTRETURN_OUTPUT_PORTS),
7020 static_cast<FwAssertArgType>(portNum),
7021 static_cast<FwAssertArgType>(NUM_BUFFERSENDOUTRETURN_OUTPUT_PORTS)
7022 );
7023
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
7024 2 case 0:
7025 2 DataProducts::dpBufferManager.bufferSendIn_handlerBase(
7026 0,
7027 fwBuffer
7028 );
7029 2 break;
7030 default:
7031 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7032 break;
7033 }
7034 2 }
7035
7036 2 void BufferAccumulatorComponentBase::cmdRegOut_out(
7037 FwIndexType portNum,
7038 FwOpcodeType opCode
7039 ) const {
7040 2 FW_ASSERT(
7041 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
7042 static_cast<FwAssertArgType>(portNum),
7043 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
7044 );
7045
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
7046 2 case 0:
7047 2 CdhCore::cmdDisp.compCmdReg_handlerBase(
7048 5,
7049 opCode
7050 );
7051 2 break;
7052 default:
7053 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7054 break;
7055 }
7056 2 }
7057
7058 void BufferAccumulatorComponentBase::cmdResponseOut_out(
7059 FwIndexType portNum,
7060 FwOpcodeType opCode,
7061 U32 cmdSeq,
7062 const Fw::CmdResponse& response
7063 ) const {
7064 FW_ASSERT(
7065 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
7066 static_cast<FwAssertArgType>(portNum),
7067 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
7068 );
7069 switch (portNum) {
7070 case 0:
7071 CdhCore::cmdDisp.compCmdStat_handlerBase(
7072 0,
7073 opCode,
7074 cmdSeq,
7075 response
7076 );
7077 break;
7078 default:
7079 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7080 break;
7081 }
7082 }
7083
7084 void BufferAccumulatorComponentBase::eventOut_out(
7085 FwIndexType portNum,
7086 FwEventIdType id,
7087 Fw::Time& timeTag,
7088 const Fw::LogSeverity& severity,
7089 Fw::LogBuffer& args
7090 ) const {
7091 FW_ASSERT(
7092 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
7093 static_cast<FwAssertArgType>(portNum),
7094 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
7095 );
7096 switch (portNum) {
7097 case 0:
7098 CdhCore::events.LogRecv_handlerBase(
7099 0,
7100 id,
7101 timeTag,
7102 severity,
7103 args
7104 );
7105 break;
7106 default:
7107 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7108 break;
7109 }
7110 }
7111
7112 #if FW_ENABLE_TEXT_LOGGING == 1
7113
7114 void BufferAccumulatorComponentBase::eventOutText_out(
7115 FwIndexType portNum,
7116 FwEventIdType id,
7117 Fw::Time& timeTag,
7118 const Fw::LogSeverity& severity,
7119 Fw::TextLogString& text
7120 ) const {
7121 FW_ASSERT(
7122 (0 <= portNum) && (portNum < NUM_EVENTOUTTEXT_OUTPUT_PORTS),
7123 static_cast<FwAssertArgType>(portNum),
7124 static_cast<FwAssertArgType>(NUM_EVENTOUTTEXT_OUTPUT_PORTS)
7125 );
7126 switch (portNum) {
7127 case 0:
7128 CdhCore::textLogger.TextLogger_handlerBase(
7129 0,
7130 id,
7131 timeTag,
7132 severity,
7133 text
7134 );
7135 break;
7136 default:
7137 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7138 break;
7139 }
7140 }
7141
7142 #endif
7143
7144 59 void BufferAccumulatorComponentBase::pingOut_out(
7145 FwIndexType portNum,
7146 U32 key
7147 ) const {
7148 59 FW_ASSERT(
7149 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
7150 static_cast<FwAssertArgType>(portNum),
7151 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
7152 );
7153
1/2
✓ Branch 0 taken 59 times.
✗ Branch 1 not taken.
59 switch (portNum) {
7154 59 case 0:
7155 59 CdhCore::health.PingReturn_handlerBase(
7156 3,
7157 key
7158 );
7159 59 break;
7160 default:
7161 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7162 break;
7163 }
7164 59 }
7165
7166 6 void BufferAccumulatorComponentBase::timeCaller_out(
7167 FwIndexType portNum,
7168 Fw::Time& time
7169 ) const {
7170 6 FW_ASSERT(
7171 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
7172 static_cast<FwAssertArgType>(portNum),
7173 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
7174 );
7175
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
7176 6 case 0:
7177 6 Ref::posixTime.timeGetPort_handlerBase(
7178 0,
7179 time
7180 );
7181 6 break;
7182 default:
7183 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7184 break;
7185 }
7186 6 }
7187
7188 6 void BufferAccumulatorComponentBase::tlmOut_out(
7189 FwIndexType portNum,
7190 FwChanIdType id,
7191 Fw::Time& timeTag,
7192 Fw::TlmBuffer& val
7193 ) const {
7194 6 FW_ASSERT(
7195 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
7196 static_cast<FwAssertArgType>(portNum),
7197 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
7198 );
7199
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
7200 6 case 0:
7201 6 CdhCore::tlmSend.TlmRecv_handlerBase(
7202 0,
7203 id,
7204 timeTag,
7205 val
7206 );
7207 6 break;
7208 default:
7209 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7210 break;
7211 }
7212 6 }
7213
7214 }
7215
7216 namespace Svc {
7217
7218 bool BufferManagerComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const {
7219 FW_ASSERT(
7220 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
7221 static_cast<FwAssertArgType>(portNum),
7222 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
7223 );
7224 bool result = false;
7225 const auto instance = this->getInstance();
7226 switch (instance) {
7227 default:
7228 #ifdef FW_STRICT_ASSERTIONS
7229 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
7230 break;
7231 #else
7232 // Fall through
7233 #endif
7234 case ::Ref::InstanceIds::ComCcsds_commsBufferManager:
7235 switch (portNum) {
7236 case 0:
7237 result = true;
7238 break;
7239 default:
7240 break;
7241 }
7242 break;
7243 case ::Ref::InstanceIds::DataProducts_dpBufferManager:
7244 switch (portNum) {
7245 case 0:
7246 result = true;
7247 break;
7248 default:
7249 break;
7250 }
7251 break;
7252 }
7253 return result;
7254 }
7255
7256 #if FW_ENABLE_TEXT_LOGGING == 1
7257
7258 bool BufferManagerComponentBase::isConnected_textEventOut_OutputPort(FwIndexType portNum) const {
7259 FW_ASSERT(
7260 (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS),
7261 static_cast<FwAssertArgType>(portNum),
7262 static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS)
7263 );
7264 bool result = false;
7265 const auto instance = this->getInstance();
7266 switch (instance) {
7267 default:
7268 #ifdef FW_STRICT_ASSERTIONS
7269 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
7270 break;
7271 #else
7272 // Fall through
7273 #endif
7274 case ::Ref::InstanceIds::ComCcsds_commsBufferManager:
7275 switch (portNum) {
7276 case 0:
7277 result = true;
7278 break;
7279 default:
7280 break;
7281 }
7282 break;
7283 case ::Ref::InstanceIds::DataProducts_dpBufferManager:
7284 switch (portNum) {
7285 case 0:
7286 result = true;
7287 break;
7288 default:
7289 break;
7290 }
7291 break;
7292 }
7293 return result;
7294 }
7295
7296 #endif
7297
7298 31 bool BufferManagerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
7299 31 FW_ASSERT(
7300 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
7301 static_cast<FwAssertArgType>(portNum),
7302 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
7303 );
7304 31 bool result = false;
7305 31 const auto instance = this->getInstance();
7306
2/3
✗ Branch 0 not taken.
✓ Branch 1 taken 23 times.
✓ Branch 2 taken 8 times.
31 switch (instance) {
7307 default:
7308 #ifdef FW_STRICT_ASSERTIONS
7309 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
7310 break;
7311 #else
7312 // Fall through
7313 #endif
7314 23 case ::Ref::InstanceIds::ComCcsds_commsBufferManager:
7315
1/2
✓ Branch 0 taken 23 times.
✗ Branch 1 not taken.
23 switch (portNum) {
7316 23 case 0:
7317 23 result = true;
7318 23 break;
7319 default:
7320 break;
7321 }
7322 23 break;
7323 8 case ::Ref::InstanceIds::DataProducts_dpBufferManager:
7324
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
7325 8 case 0:
7326 8 result = true;
7327 8 break;
7328 default:
7329 break;
7330 }
7331 8 break;
7332 }
7333 31 return result;
7334 }
7335
7336 62 bool BufferManagerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
7337 62 FW_ASSERT(
7338 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
7339 static_cast<FwAssertArgType>(portNum),
7340 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
7341 );
7342 62 bool result = false;
7343 62 const auto instance = this->getInstance();
7344
2/3
✗ Branch 0 not taken.
✓ Branch 1 taken 46 times.
✓ Branch 2 taken 16 times.
62 switch (instance) {
7345 default:
7346 #ifdef FW_STRICT_ASSERTIONS
7347 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
7348 break;
7349 #else
7350 // Fall through
7351 #endif
7352 46 case ::Ref::InstanceIds::ComCcsds_commsBufferManager:
7353
1/2
✓ Branch 0 taken 46 times.
✗ Branch 1 not taken.
46 switch (portNum) {
7354 46 case 0:
7355 46 result = true;
7356 46 break;
7357 default:
7358 break;
7359 }
7360 46 break;
7361 16 case ::Ref::InstanceIds::DataProducts_dpBufferManager:
7362
1/2
✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
16 switch (portNum) {
7363 16 case 0:
7364 16 result = true;
7365 16 break;
7366 default:
7367 break;
7368 }
7369 16 break;
7370 }
7371 62 return result;
7372 }
7373
7374 void BufferManagerComponentBase::eventOut_out(
7375 FwIndexType portNum,
7376 FwEventIdType id,
7377 Fw::Time& timeTag,
7378 const Fw::LogSeverity& severity,
7379 Fw::LogBuffer& args
7380 ) const {
7381 FW_ASSERT(
7382 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
7383 static_cast<FwAssertArgType>(portNum),
7384 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
7385 );
7386 const auto instance = this->getInstance();
7387 switch (instance) {
7388 default:
7389 #ifdef FW_STRICT_ASSERTIONS
7390 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
7391 break;
7392 #else
7393 // Fall through
7394 #endif
7395 case ::Ref::InstanceIds::ComCcsds_commsBufferManager:
7396 switch (portNum) {
7397 case 0:
7398 CdhCore::events.LogRecv_handlerBase(
7399 0,
7400 id,
7401 timeTag,
7402 severity,
7403 args
7404 );
7405 break;
7406 default:
7407 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7408 break;
7409 }
7410 break;
7411 case ::Ref::InstanceIds::DataProducts_dpBufferManager:
7412 switch (portNum) {
7413 case 0:
7414 CdhCore::events.LogRecv_handlerBase(
7415 0,
7416 id,
7417 timeTag,
7418 severity,
7419 args
7420 );
7421 break;
7422 default:
7423 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7424 break;
7425 }
7426 break;
7427 }
7428 }
7429
7430 #if FW_ENABLE_TEXT_LOGGING == 1
7431
7432 void BufferManagerComponentBase::textEventOut_out(
7433 FwIndexType portNum,
7434 FwEventIdType id,
7435 Fw::Time& timeTag,
7436 const Fw::LogSeverity& severity,
7437 Fw::TextLogString& text
7438 ) const {
7439 FW_ASSERT(
7440 (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS),
7441 static_cast<FwAssertArgType>(portNum),
7442 static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS)
7443 );
7444 const auto instance = this->getInstance();
7445 switch (instance) {
7446 default:
7447 #ifdef FW_STRICT_ASSERTIONS
7448 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
7449 break;
7450 #else
7451 // Fall through
7452 #endif
7453 case ::Ref::InstanceIds::ComCcsds_commsBufferManager:
7454 switch (portNum) {
7455 case 0:
7456 CdhCore::textLogger.TextLogger_handlerBase(
7457 0,
7458 id,
7459 timeTag,
7460 severity,
7461 text
7462 );
7463 break;
7464 default:
7465 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7466 break;
7467 }
7468 break;
7469 case ::Ref::InstanceIds::DataProducts_dpBufferManager:
7470 switch (portNum) {
7471 case 0:
7472 CdhCore::textLogger.TextLogger_handlerBase(
7473 0,
7474 id,
7475 timeTag,
7476 severity,
7477 text
7478 );
7479 break;
7480 default:
7481 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7482 break;
7483 }
7484 break;
7485 }
7486 }
7487
7488 #endif
7489
7490 31 void BufferManagerComponentBase::timeCaller_out(
7491 FwIndexType portNum,
7492 Fw::Time& time
7493 ) const {
7494 31 FW_ASSERT(
7495 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
7496 static_cast<FwAssertArgType>(portNum),
7497 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
7498 );
7499 31 const auto instance = this->getInstance();
7500
2/3
✗ Branch 0 not taken.
✓ Branch 1 taken 23 times.
✓ Branch 2 taken 8 times.
31 switch (instance) {
7501 default:
7502 #ifdef FW_STRICT_ASSERTIONS
7503 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
7504 break;
7505 #else
7506 // Fall through
7507 #endif
7508 23 case ::Ref::InstanceIds::ComCcsds_commsBufferManager:
7509
1/2
✓ Branch 0 taken 23 times.
✗ Branch 1 not taken.
23 switch (portNum) {
7510 23 case 0:
7511 23 Ref::posixTime.timeGetPort_handlerBase(
7512 0,
7513 time
7514 );
7515 23 break;
7516 default:
7517 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7518 break;
7519 }
7520 23 break;
7521 8 case ::Ref::InstanceIds::DataProducts_dpBufferManager:
7522
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
7523 8 case 0:
7524 8 Ref::posixTime.timeGetPort_handlerBase(
7525 0,
7526 time
7527 );
7528 8 break;
7529 default:
7530 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7531 break;
7532 }
7533 8 break;
7534 }
7535 31 }
7536
7537 31 void BufferManagerComponentBase::tlmOut_out(
7538 FwIndexType portNum,
7539 FwChanIdType id,
7540 Fw::Time& timeTag,
7541 Fw::TlmBuffer& val
7542 ) const {
7543 31 FW_ASSERT(
7544 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
7545 static_cast<FwAssertArgType>(portNum),
7546 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
7547 );
7548 31 const auto instance = this->getInstance();
7549
2/3
✗ Branch 0 not taken.
✓ Branch 1 taken 23 times.
✓ Branch 2 taken 8 times.
31 switch (instance) {
7550 default:
7551 #ifdef FW_STRICT_ASSERTIONS
7552 FW_ASSERT(false, static_cast<FwAssertArgType>(instance));
7553 break;
7554 #else
7555 // Fall through
7556 #endif
7557 23 case ::Ref::InstanceIds::ComCcsds_commsBufferManager:
7558
1/2
✓ Branch 0 taken 23 times.
✗ Branch 1 not taken.
23 switch (portNum) {
7559 23 case 0:
7560 23 CdhCore::tlmSend.TlmRecv_handlerBase(
7561 0,
7562 id,
7563 timeTag,
7564 val
7565 );
7566 23 break;
7567 default:
7568 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7569 break;
7570 }
7571 23 break;
7572 8 case ::Ref::InstanceIds::DataProducts_dpBufferManager:
7573
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
7574 8 case 0:
7575 8 CdhCore::tlmSend.TlmRecv_handlerBase(
7576 0,
7577 id,
7578 timeTag,
7579 val
7580 );
7581 8 break;
7582 default:
7583 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7584 break;
7585 }
7586 8 break;
7587 }
7588 31 }
7589
7590 }
7591
7592 namespace Svc {
7593 namespace Ccsds {
7594
7595 bool ApidManagerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
7596 FW_ASSERT(
7597 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
7598 static_cast<FwAssertArgType>(portNum),
7599 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
7600 );
7601 bool result = false;
7602 switch (portNum) {
7603 case 0:
7604 result = true;
7605 break;
7606 default:
7607 break;
7608 }
7609 return result;
7610 }
7611
7612 #if FW_ENABLE_TEXT_LOGGING == 1
7613
7614 bool ApidManagerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
7615 FW_ASSERT(
7616 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
7617 static_cast<FwAssertArgType>(portNum),
7618 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
7619 );
7620 bool result = false;
7621 switch (portNum) {
7622 case 0:
7623 result = true;
7624 break;
7625 default:
7626 break;
7627 }
7628 return result;
7629 }
7630
7631 #endif
7632
7633 bool ApidManagerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
7634 FW_ASSERT(
7635 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
7636 static_cast<FwAssertArgType>(portNum),
7637 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
7638 );
7639 bool result = false;
7640 switch (portNum) {
7641 case 0:
7642 result = true;
7643 break;
7644 default:
7645 break;
7646 }
7647 return result;
7648 }
7649
7650 void ApidManagerComponentBase::logOut_out(
7651 FwIndexType portNum,
7652 FwEventIdType id,
7653 Fw::Time& timeTag,
7654 const Fw::LogSeverity& severity,
7655 Fw::LogBuffer& args
7656 ) const {
7657 FW_ASSERT(
7658 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
7659 static_cast<FwAssertArgType>(portNum),
7660 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
7661 );
7662 switch (portNum) {
7663 case 0:
7664 CdhCore::events.LogRecv_handlerBase(
7665 0,
7666 id,
7667 timeTag,
7668 severity,
7669 args
7670 );
7671 break;
7672 default:
7673 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7674 break;
7675 }
7676 }
7677
7678 #if FW_ENABLE_TEXT_LOGGING == 1
7679
7680 void ApidManagerComponentBase::logTextOut_out(
7681 FwIndexType portNum,
7682 FwEventIdType id,
7683 Fw::Time& timeTag,
7684 const Fw::LogSeverity& severity,
7685 Fw::TextLogString& text
7686 ) const {
7687 FW_ASSERT(
7688 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
7689 static_cast<FwAssertArgType>(portNum),
7690 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
7691 );
7692 switch (portNum) {
7693 case 0:
7694 CdhCore::textLogger.TextLogger_handlerBase(
7695 0,
7696 id,
7697 timeTag,
7698 severity,
7699 text
7700 );
7701 break;
7702 default:
7703 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7704 break;
7705 }
7706 }
7707
7708 #endif
7709
7710 void ApidManagerComponentBase::timeCaller_out(
7711 FwIndexType portNum,
7712 Fw::Time& time
7713 ) const {
7714 FW_ASSERT(
7715 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
7716 static_cast<FwAssertArgType>(portNum),
7717 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
7718 );
7719 switch (portNum) {
7720 case 0:
7721 Ref::posixTime.timeGetPort_handlerBase(
7722 0,
7723 time
7724 );
7725 break;
7726 default:
7727 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7728 break;
7729 }
7730 }
7731
7732 }
7733 }
7734
7735 namespace Svc {
7736 namespace Ccsds {
7737
7738 bool SpacePacketDeframerComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const {
7739 FW_ASSERT(
7740 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
7741 static_cast<FwAssertArgType>(portNum),
7742 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
7743 );
7744 bool result = false;
7745 switch (portNum) {
7746 case 0:
7747 result = true;
7748 break;
7749 default:
7750 break;
7751 }
7752 return result;
7753 }
7754
7755 bool SpacePacketDeframerComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const {
7756 FW_ASSERT(
7757 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
7758 static_cast<FwAssertArgType>(portNum),
7759 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
7760 );
7761 bool result = false;
7762 switch (portNum) {
7763 case 0:
7764 result = true;
7765 break;
7766 default:
7767 break;
7768 }
7769 return result;
7770 }
7771
7772 bool SpacePacketDeframerComponentBase::isConnected_errorNotify_OutputPort(FwIndexType portNum) const {
7773 FW_ASSERT(
7774 (0 <= portNum) && (portNum < NUM_ERRORNOTIFY_OUTPUT_PORTS),
7775 static_cast<FwAssertArgType>(portNum),
7776 static_cast<FwAssertArgType>(NUM_ERRORNOTIFY_OUTPUT_PORTS)
7777 );
7778 bool result = false;
7779 switch (portNum) {
7780 default:
7781 break;
7782 }
7783 return result;
7784 }
7785
7786 bool SpacePacketDeframerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
7787 FW_ASSERT(
7788 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
7789 static_cast<FwAssertArgType>(portNum),
7790 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
7791 );
7792 bool result = false;
7793 switch (portNum) {
7794 case 0:
7795 result = true;
7796 break;
7797 default:
7798 break;
7799 }
7800 return result;
7801 }
7802
7803 #if FW_ENABLE_TEXT_LOGGING == 1
7804
7805 bool SpacePacketDeframerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
7806 FW_ASSERT(
7807 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
7808 static_cast<FwAssertArgType>(portNum),
7809 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
7810 );
7811 bool result = false;
7812 switch (portNum) {
7813 case 0:
7814 result = true;
7815 break;
7816 default:
7817 break;
7818 }
7819 return result;
7820 }
7821
7822 #endif
7823
7824 bool SpacePacketDeframerComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const {
7825 FW_ASSERT(
7826 (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS),
7827 static_cast<FwAssertArgType>(portNum),
7828 static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS)
7829 );
7830 bool result = false;
7831 switch (portNum) {
7832 case 0:
7833 result = true;
7834 break;
7835 default:
7836 break;
7837 }
7838 return result;
7839 }
7840
7841 bool SpacePacketDeframerComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const {
7842 FW_ASSERT(
7843 (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS),
7844 static_cast<FwAssertArgType>(portNum),
7845 static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS)
7846 );
7847 bool result = false;
7848 switch (portNum) {
7849 case 0:
7850 result = true;
7851 break;
7852 default:
7853 break;
7854 }
7855 return result;
7856 }
7857
7858 bool SpacePacketDeframerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
7859 FW_ASSERT(
7860 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
7861 static_cast<FwAssertArgType>(portNum),
7862 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
7863 );
7864 bool result = false;
7865 switch (portNum) {
7866 case 0:
7867 result = true;
7868 break;
7869 default:
7870 break;
7871 }
7872 return result;
7873 }
7874
7875 bool SpacePacketDeframerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
7876 FW_ASSERT(
7877 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
7878 static_cast<FwAssertArgType>(portNum),
7879 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
7880 );
7881 bool result = false;
7882 switch (portNum) {
7883 case 0:
7884 result = true;
7885 break;
7886 default:
7887 break;
7888 }
7889 return result;
7890 }
7891
7892 bool SpacePacketDeframerComponentBase::isConnected_validateApidSeqCount_OutputPort(FwIndexType portNum) const {
7893 FW_ASSERT(
7894 (0 <= portNum) && (portNum < NUM_VALIDATEAPIDSEQCOUNT_OUTPUT_PORTS),
7895 static_cast<FwAssertArgType>(portNum),
7896 static_cast<FwAssertArgType>(NUM_VALIDATEAPIDSEQCOUNT_OUTPUT_PORTS)
7897 );
7898 bool result = false;
7899 switch (portNum) {
7900 case 0:
7901 result = true;
7902 break;
7903 default:
7904 break;
7905 }
7906 return result;
7907 }
7908
7909 146 void SpacePacketDeframerComponentBase::dataOut_out(
7910 FwIndexType portNum,
7911 Fw::Buffer& data,
7912 const ComCfg::FrameContext& context
7913 ) const {
7914 146 FW_ASSERT(
7915 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
7916 static_cast<FwAssertArgType>(portNum),
7917 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
7918 );
7919
1/2
✓ Branch 0 taken 146 times.
✗ Branch 1 not taken.
146 switch (portNum) {
7920 146 case 0:
7921 146 ComCcsds::fprimeRouter.dataIn_handlerBase(
7922 0,
7923 data,
7924 context
7925 );
7926 146 break;
7927 default:
7928 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7929 break;
7930 }
7931 146 }
7932
7933 146 void SpacePacketDeframerComponentBase::dataReturnOut_out(
7934 FwIndexType portNum,
7935 Fw::Buffer& data,
7936 const ComCfg::FrameContext& context
7937 ) const {
7938 146 FW_ASSERT(
7939 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
7940 static_cast<FwAssertArgType>(portNum),
7941 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
7942 );
7943
1/2
✓ Branch 0 taken 146 times.
✗ Branch 1 not taken.
146 switch (portNum) {
7944 146 case 0:
7945 146 ComCcsds::tcDeframer.dataReturnIn_handlerBase(
7946 0,
7947 data,
7948 context
7949 );
7950 146 break;
7951 default:
7952 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7953 break;
7954 }
7955 146 }
7956
7957 void SpacePacketDeframerComponentBase::errorNotify_out(
7958 FwIndexType portNum,
7959 const Svc::Ccsds::FrameError& errorCode
7960 ) const {
7961 FW_ASSERT(
7962 (0 <= portNum) && (portNum < NUM_ERRORNOTIFY_OUTPUT_PORTS),
7963 static_cast<FwAssertArgType>(portNum),
7964 static_cast<FwAssertArgType>(NUM_ERRORNOTIFY_OUTPUT_PORTS)
7965 );
7966 switch (portNum) {
7967 default:
7968 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7969 break;
7970 }
7971 }
7972
7973 void SpacePacketDeframerComponentBase::logOut_out(
7974 FwIndexType portNum,
7975 FwEventIdType id,
7976 Fw::Time& timeTag,
7977 const Fw::LogSeverity& severity,
7978 Fw::LogBuffer& args
7979 ) const {
7980 FW_ASSERT(
7981 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
7982 static_cast<FwAssertArgType>(portNum),
7983 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
7984 );
7985 switch (portNum) {
7986 case 0:
7987 CdhCore::events.LogRecv_handlerBase(
7988 0,
7989 id,
7990 timeTag,
7991 severity,
7992 args
7993 );
7994 break;
7995 default:
7996 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
7997 break;
7998 }
7999 }
8000
8001 #if FW_ENABLE_TEXT_LOGGING == 1
8002
8003 void SpacePacketDeframerComponentBase::logTextOut_out(
8004 FwIndexType portNum,
8005 FwEventIdType id,
8006 Fw::Time& timeTag,
8007 const Fw::LogSeverity& severity,
8008 Fw::TextLogString& text
8009 ) const {
8010 FW_ASSERT(
8011 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
8012 static_cast<FwAssertArgType>(portNum),
8013 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
8014 );
8015 switch (portNum) {
8016 case 0:
8017 CdhCore::textLogger.TextLogger_handlerBase(
8018 0,
8019 id,
8020 timeTag,
8021 severity,
8022 text
8023 );
8024 break;
8025 default:
8026 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8027 break;
8028 }
8029 }
8030
8031 #endif
8032
8033 void SpacePacketDeframerComponentBase::timeCaller_out(
8034 FwIndexType portNum,
8035 Fw::Time& time
8036 ) const {
8037 FW_ASSERT(
8038 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
8039 static_cast<FwAssertArgType>(portNum),
8040 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
8041 );
8042 switch (portNum) {
8043 case 0:
8044 Ref::posixTime.timeGetPort_handlerBase(
8045 0,
8046 time
8047 );
8048 break;
8049 default:
8050 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8051 break;
8052 }
8053 }
8054
8055 146 U16 SpacePacketDeframerComponentBase::validateApidSeqCount_out(
8056 FwIndexType portNum,
8057 const ComCfg::Apid& apid,
8058 U16 sequenceCount
8059 ) const {
8060 146 FW_ASSERT(
8061 (0 <= portNum) && (portNum < NUM_VALIDATEAPIDSEQCOUNT_OUTPUT_PORTS),
8062 static_cast<FwAssertArgType>(portNum),
8063 static_cast<FwAssertArgType>(NUM_VALIDATEAPIDSEQCOUNT_OUTPUT_PORTS)
8064 );
8065 146 U16 _result = {};
8066
1/2
✓ Branch 0 taken 146 times.
✗ Branch 1 not taken.
146 switch (portNum) {
8067 146 case 0:
8068 146 _result = ComCcsds::apidManager.validateApidSeqCountIn_handlerBase(
8069 0,
8070 apid,
8071 sequenceCount
8072 );
8073 146 break;
8074 default:
8075 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8076 break;
8077 }
8078 146 return _result;
8079 }
8080
8081 }
8082 }
8083
8084 namespace Svc {
8085 namespace Ccsds {
8086
8087 bool SpacePacketFramerComponentBase::isConnected_bufferAllocate_OutputPort(FwIndexType portNum) const {
8088 FW_ASSERT(
8089 (0 <= portNum) && (portNum < NUM_BUFFERALLOCATE_OUTPUT_PORTS),
8090 static_cast<FwAssertArgType>(portNum),
8091 static_cast<FwAssertArgType>(NUM_BUFFERALLOCATE_OUTPUT_PORTS)
8092 );
8093 bool result = false;
8094 switch (portNum) {
8095 case 0:
8096 result = true;
8097 break;
8098 default:
8099 break;
8100 }
8101 return result;
8102 }
8103
8104 bool SpacePacketFramerComponentBase::isConnected_bufferDeallocate_OutputPort(FwIndexType portNum) const {
8105 FW_ASSERT(
8106 (0 <= portNum) && (portNum < NUM_BUFFERDEALLOCATE_OUTPUT_PORTS),
8107 static_cast<FwAssertArgType>(portNum),
8108 static_cast<FwAssertArgType>(NUM_BUFFERDEALLOCATE_OUTPUT_PORTS)
8109 );
8110 bool result = false;
8111 switch (portNum) {
8112 case 0:
8113 result = true;
8114 break;
8115 default:
8116 break;
8117 }
8118 return result;
8119 }
8120
8121 669 bool SpacePacketFramerComponentBase::isConnected_comStatusOut_OutputPort(FwIndexType portNum) const {
8122 669 FW_ASSERT(
8123 (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS),
8124 static_cast<FwAssertArgType>(portNum),
8125 static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS)
8126 );
8127 669 bool result = false;
8128
1/2
✓ Branch 0 taken 669 times.
✗ Branch 1 not taken.
669 switch (portNum) {
8129 669 case 0:
8130 669 result = true;
8131 669 break;
8132 default:
8133 break;
8134 }
8135 669 return result;
8136 }
8137
8138 bool SpacePacketFramerComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const {
8139 FW_ASSERT(
8140 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
8141 static_cast<FwAssertArgType>(portNum),
8142 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
8143 );
8144 bool result = false;
8145 switch (portNum) {
8146 case 0:
8147 result = true;
8148 break;
8149 default:
8150 break;
8151 }
8152 return result;
8153 }
8154
8155 bool SpacePacketFramerComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const {
8156 FW_ASSERT(
8157 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
8158 static_cast<FwAssertArgType>(portNum),
8159 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
8160 );
8161 bool result = false;
8162 switch (portNum) {
8163 case 0:
8164 result = true;
8165 break;
8166 default:
8167 break;
8168 }
8169 return result;
8170 }
8171
8172 bool SpacePacketFramerComponentBase::isConnected_getApidSeqCount_OutputPort(FwIndexType portNum) const {
8173 FW_ASSERT(
8174 (0 <= portNum) && (portNum < NUM_GETAPIDSEQCOUNT_OUTPUT_PORTS),
8175 static_cast<FwAssertArgType>(portNum),
8176 static_cast<FwAssertArgType>(NUM_GETAPIDSEQCOUNT_OUTPUT_PORTS)
8177 );
8178 bool result = false;
8179 switch (portNum) {
8180 case 0:
8181 result = true;
8182 break;
8183 default:
8184 break;
8185 }
8186 return result;
8187 }
8188
8189 bool SpacePacketFramerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
8190 FW_ASSERT(
8191 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
8192 static_cast<FwAssertArgType>(portNum),
8193 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
8194 );
8195 bool result = false;
8196 switch (portNum) {
8197 case 0:
8198 result = true;
8199 break;
8200 default:
8201 break;
8202 }
8203 return result;
8204 }
8205
8206 #if FW_ENABLE_TEXT_LOGGING == 1
8207
8208 bool SpacePacketFramerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
8209 FW_ASSERT(
8210 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
8211 static_cast<FwAssertArgType>(portNum),
8212 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
8213 );
8214 bool result = false;
8215 switch (portNum) {
8216 case 0:
8217 result = true;
8218 break;
8219 default:
8220 break;
8221 }
8222 return result;
8223 }
8224
8225 #endif
8226
8227 bool SpacePacketFramerComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const {
8228 FW_ASSERT(
8229 (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS),
8230 static_cast<FwAssertArgType>(portNum),
8231 static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS)
8232 );
8233 bool result = false;
8234 switch (portNum) {
8235 case 0:
8236 result = true;
8237 break;
8238 default:
8239 break;
8240 }
8241 return result;
8242 }
8243
8244 bool SpacePacketFramerComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const {
8245 FW_ASSERT(
8246 (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS),
8247 static_cast<FwAssertArgType>(portNum),
8248 static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS)
8249 );
8250 bool result = false;
8251 switch (portNum) {
8252 case 0:
8253 result = true;
8254 break;
8255 default:
8256 break;
8257 }
8258 return result;
8259 }
8260
8261 bool SpacePacketFramerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
8262 FW_ASSERT(
8263 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
8264 static_cast<FwAssertArgType>(portNum),
8265 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
8266 );
8267 bool result = false;
8268 switch (portNum) {
8269 case 0:
8270 result = true;
8271 break;
8272 default:
8273 break;
8274 }
8275 return result;
8276 }
8277
8278 bool SpacePacketFramerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
8279 FW_ASSERT(
8280 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
8281 static_cast<FwAssertArgType>(portNum),
8282 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
8283 );
8284 bool result = false;
8285 switch (portNum) {
8286 case 0:
8287 result = true;
8288 break;
8289 default:
8290 break;
8291 }
8292 return result;
8293 }
8294
8295 668 Fw::Buffer SpacePacketFramerComponentBase::bufferAllocate_out(
8296 FwIndexType portNum,
8297 FwSizeType size
8298 ) const {
8299 668 FW_ASSERT(
8300 (0 <= portNum) && (portNum < NUM_BUFFERALLOCATE_OUTPUT_PORTS),
8301 static_cast<FwAssertArgType>(portNum),
8302 static_cast<FwAssertArgType>(NUM_BUFFERALLOCATE_OUTPUT_PORTS)
8303 );
8304 668 Fw::Buffer _result = {};
8305
1/2
✓ Branch 0 taken 668 times.
✗ Branch 1 not taken.
668 switch (portNum) {
8306 668 case 0:
8307
1/1
✓ Branch 1 taken 668 times.
1336 _result = ComCcsds::commsBufferManager.bufferGetCallee_handlerBase(
8308 0,
8309 size
8310
1/1
✓ Branch 1 taken 668 times.
668 );
8311 668 break;
8312 default:
8313 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8314 break;
8315 }
8316 668 return _result;
8317 }
8318
8319 668 void SpacePacketFramerComponentBase::bufferDeallocate_out(
8320 FwIndexType portNum,
8321 Fw::Buffer& fwBuffer
8322 ) const {
8323 668 FW_ASSERT(
8324 (0 <= portNum) && (portNum < NUM_BUFFERDEALLOCATE_OUTPUT_PORTS),
8325 static_cast<FwAssertArgType>(portNum),
8326 static_cast<FwAssertArgType>(NUM_BUFFERDEALLOCATE_OUTPUT_PORTS)
8327 );
8328
1/2
✓ Branch 0 taken 668 times.
✗ Branch 1 not taken.
668 switch (portNum) {
8329 668 case 0:
8330 668 ComCcsds::commsBufferManager.bufferSendIn_handlerBase(
8331 0,
8332 fwBuffer
8333 );
8334 668 break;
8335 default:
8336 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8337 break;
8338 }
8339 668 }
8340
8341 669 void SpacePacketFramerComponentBase::comStatusOut_out(
8342 FwIndexType portNum,
8343 Fw::Success& condition
8344 ) const {
8345 669 FW_ASSERT(
8346 (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS),
8347 static_cast<FwAssertArgType>(portNum),
8348 static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS)
8349 );
8350
1/2
✓ Branch 0 taken 669 times.
✗ Branch 1 not taken.
669 switch (portNum) {
8351 669 case 0:
8352 669 ComCcsds::comQueue.comStatusIn_handlerBase(
8353 0,
8354 condition
8355 );
8356 669 break;
8357 default:
8358 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8359 break;
8360 }
8361 669 }
8362
8363 668 void SpacePacketFramerComponentBase::dataOut_out(
8364 FwIndexType portNum,
8365 Fw::Buffer& data,
8366 const ComCfg::FrameContext& context
8367 ) const {
8368 668 FW_ASSERT(
8369 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
8370 static_cast<FwAssertArgType>(portNum),
8371 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
8372 );
8373
1/2
✓ Branch 0 taken 668 times.
✗ Branch 1 not taken.
668 switch (portNum) {
8374 668 case 0:
8375 668 ComCcsds::aggregator.dataIn_handlerBase(
8376 0,
8377 data,
8378 context
8379 );
8380 668 break;
8381 default:
8382 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8383 break;
8384 }
8385 668 }
8386
8387 668 void SpacePacketFramerComponentBase::dataReturnOut_out(
8388 FwIndexType portNum,
8389 Fw::Buffer& data,
8390 const ComCfg::FrameContext& context
8391 ) const {
8392 668 FW_ASSERT(
8393 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
8394 static_cast<FwAssertArgType>(portNum),
8395 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
8396 );
8397
1/2
✓ Branch 0 taken 668 times.
✗ Branch 1 not taken.
668 switch (portNum) {
8398 668 case 0:
8399 668 ComCcsds::comQueue.dataReturnIn_handlerBase(
8400 0,
8401 data,
8402 context
8403 );
8404 668 break;
8405 default:
8406 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8407 break;
8408 }
8409 668 }
8410
8411 668 U16 SpacePacketFramerComponentBase::getApidSeqCount_out(
8412 FwIndexType portNum,
8413 const ComCfg::Apid& apid,
8414 U16 sequenceCount
8415 ) const {
8416 668 FW_ASSERT(
8417 (0 <= portNum) && (portNum < NUM_GETAPIDSEQCOUNT_OUTPUT_PORTS),
8418 static_cast<FwAssertArgType>(portNum),
8419 static_cast<FwAssertArgType>(NUM_GETAPIDSEQCOUNT_OUTPUT_PORTS)
8420 );
8421 668 U16 _result = {};
8422
1/2
✓ Branch 0 taken 668 times.
✗ Branch 1 not taken.
668 switch (portNum) {
8423 668 case 0:
8424 668 _result = ComCcsds::apidManager.getApidSeqCountIn_handlerBase(
8425 0,
8426 apid,
8427 sequenceCount
8428 );
8429 668 break;
8430 default:
8431 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8432 break;
8433 }
8434 668 return _result;
8435 }
8436
8437 void SpacePacketFramerComponentBase::logOut_out(
8438 FwIndexType portNum,
8439 FwEventIdType id,
8440 Fw::Time& timeTag,
8441 const Fw::LogSeverity& severity,
8442 Fw::LogBuffer& args
8443 ) const {
8444 FW_ASSERT(
8445 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
8446 static_cast<FwAssertArgType>(portNum),
8447 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
8448 );
8449 switch (portNum) {
8450 case 0:
8451 CdhCore::events.LogRecv_handlerBase(
8452 0,
8453 id,
8454 timeTag,
8455 severity,
8456 args
8457 );
8458 break;
8459 default:
8460 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8461 break;
8462 }
8463 }
8464
8465 #if FW_ENABLE_TEXT_LOGGING == 1
8466
8467 void SpacePacketFramerComponentBase::logTextOut_out(
8468 FwIndexType portNum,
8469 FwEventIdType id,
8470 Fw::Time& timeTag,
8471 const Fw::LogSeverity& severity,
8472 Fw::TextLogString& text
8473 ) const {
8474 FW_ASSERT(
8475 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
8476 static_cast<FwAssertArgType>(portNum),
8477 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
8478 );
8479 switch (portNum) {
8480 case 0:
8481 CdhCore::textLogger.TextLogger_handlerBase(
8482 0,
8483 id,
8484 timeTag,
8485 severity,
8486 text
8487 );
8488 break;
8489 default:
8490 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8491 break;
8492 }
8493 }
8494
8495 #endif
8496
8497 void SpacePacketFramerComponentBase::timeCaller_out(
8498 FwIndexType portNum,
8499 Fw::Time& time
8500 ) const {
8501 FW_ASSERT(
8502 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
8503 static_cast<FwAssertArgType>(portNum),
8504 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
8505 );
8506 switch (portNum) {
8507 case 0:
8508 Ref::posixTime.timeGetPort_handlerBase(
8509 0,
8510 time
8511 );
8512 break;
8513 default:
8514 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8515 break;
8516 }
8517 }
8518
8519 }
8520 }
8521
8522 namespace Svc {
8523 namespace Ccsds {
8524
8525 bool TcDeframerComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const {
8526 FW_ASSERT(
8527 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
8528 static_cast<FwAssertArgType>(portNum),
8529 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
8530 );
8531 bool result = false;
8532 switch (portNum) {
8533 case 0:
8534 result = true;
8535 break;
8536 default:
8537 break;
8538 }
8539 return result;
8540 }
8541
8542 bool TcDeframerComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const {
8543 FW_ASSERT(
8544 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
8545 static_cast<FwAssertArgType>(portNum),
8546 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
8547 );
8548 bool result = false;
8549 switch (portNum) {
8550 case 0:
8551 result = true;
8552 break;
8553 default:
8554 break;
8555 }
8556 return result;
8557 }
8558
8559 bool TcDeframerComponentBase::isConnected_errorNotify_OutputPort(FwIndexType portNum) const {
8560 FW_ASSERT(
8561 (0 <= portNum) && (portNum < NUM_ERRORNOTIFY_OUTPUT_PORTS),
8562 static_cast<FwAssertArgType>(portNum),
8563 static_cast<FwAssertArgType>(NUM_ERRORNOTIFY_OUTPUT_PORTS)
8564 );
8565 bool result = false;
8566 switch (portNum) {
8567 default:
8568 break;
8569 }
8570 return result;
8571 }
8572
8573 bool TcDeframerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
8574 FW_ASSERT(
8575 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
8576 static_cast<FwAssertArgType>(portNum),
8577 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
8578 );
8579 bool result = false;
8580 switch (portNum) {
8581 case 0:
8582 result = true;
8583 break;
8584 default:
8585 break;
8586 }
8587 return result;
8588 }
8589
8590 #if FW_ENABLE_TEXT_LOGGING == 1
8591
8592 bool TcDeframerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
8593 FW_ASSERT(
8594 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
8595 static_cast<FwAssertArgType>(portNum),
8596 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
8597 );
8598 bool result = false;
8599 switch (portNum) {
8600 case 0:
8601 result = true;
8602 break;
8603 default:
8604 break;
8605 }
8606 return result;
8607 }
8608
8609 #endif
8610
8611 bool TcDeframerComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const {
8612 FW_ASSERT(
8613 (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS),
8614 static_cast<FwAssertArgType>(portNum),
8615 static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS)
8616 );
8617 bool result = false;
8618 switch (portNum) {
8619 case 0:
8620 result = true;
8621 break;
8622 default:
8623 break;
8624 }
8625 return result;
8626 }
8627
8628 bool TcDeframerComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const {
8629 FW_ASSERT(
8630 (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS),
8631 static_cast<FwAssertArgType>(portNum),
8632 static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS)
8633 );
8634 bool result = false;
8635 switch (portNum) {
8636 case 0:
8637 result = true;
8638 break;
8639 default:
8640 break;
8641 }
8642 return result;
8643 }
8644
8645 bool TcDeframerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
8646 FW_ASSERT(
8647 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
8648 static_cast<FwAssertArgType>(portNum),
8649 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
8650 );
8651 bool result = false;
8652 switch (portNum) {
8653 case 0:
8654 result = true;
8655 break;
8656 default:
8657 break;
8658 }
8659 return result;
8660 }
8661
8662 bool TcDeframerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
8663 FW_ASSERT(
8664 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
8665 static_cast<FwAssertArgType>(portNum),
8666 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
8667 );
8668 bool result = false;
8669 switch (portNum) {
8670 case 0:
8671 result = true;
8672 break;
8673 default:
8674 break;
8675 }
8676 return result;
8677 }
8678
8679 146 void TcDeframerComponentBase::dataOut_out(
8680 FwIndexType portNum,
8681 Fw::Buffer& data,
8682 const ComCfg::FrameContext& context
8683 ) const {
8684 146 FW_ASSERT(
8685 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
8686 static_cast<FwAssertArgType>(portNum),
8687 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
8688 );
8689
1/2
✓ Branch 0 taken 146 times.
✗ Branch 1 not taken.
146 switch (portNum) {
8690 146 case 0:
8691 146 ComCcsds::spacePacketDeframer.dataIn_handlerBase(
8692 0,
8693 data,
8694 context
8695 );
8696 146 break;
8697 default:
8698 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8699 break;
8700 }
8701 146 }
8702
8703 146 void TcDeframerComponentBase::dataReturnOut_out(
8704 FwIndexType portNum,
8705 Fw::Buffer& data,
8706 const ComCfg::FrameContext& context
8707 ) const {
8708 146 FW_ASSERT(
8709 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
8710 static_cast<FwAssertArgType>(portNum),
8711 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
8712 );
8713
1/2
✓ Branch 0 taken 146 times.
✗ Branch 1 not taken.
146 switch (portNum) {
8714 146 case 0:
8715 146 ComCcsds::frameAccumulator.dataReturnIn_handlerBase(
8716 0,
8717 data,
8718 context
8719 );
8720 146 break;
8721 default:
8722 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8723 break;
8724 }
8725 146 }
8726
8727 void TcDeframerComponentBase::errorNotify_out(
8728 FwIndexType portNum,
8729 const Svc::Ccsds::FrameError& errorCode
8730 ) const {
8731 FW_ASSERT(
8732 (0 <= portNum) && (portNum < NUM_ERRORNOTIFY_OUTPUT_PORTS),
8733 static_cast<FwAssertArgType>(portNum),
8734 static_cast<FwAssertArgType>(NUM_ERRORNOTIFY_OUTPUT_PORTS)
8735 );
8736 switch (portNum) {
8737 default:
8738 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8739 break;
8740 }
8741 }
8742
8743 void TcDeframerComponentBase::logOut_out(
8744 FwIndexType portNum,
8745 FwEventIdType id,
8746 Fw::Time& timeTag,
8747 const Fw::LogSeverity& severity,
8748 Fw::LogBuffer& args
8749 ) const {
8750 FW_ASSERT(
8751 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
8752 static_cast<FwAssertArgType>(portNum),
8753 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
8754 );
8755 switch (portNum) {
8756 case 0:
8757 CdhCore::events.LogRecv_handlerBase(
8758 0,
8759 id,
8760 timeTag,
8761 severity,
8762 args
8763 );
8764 break;
8765 default:
8766 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8767 break;
8768 }
8769 }
8770
8771 #if FW_ENABLE_TEXT_LOGGING == 1
8772
8773 void TcDeframerComponentBase::logTextOut_out(
8774 FwIndexType portNum,
8775 FwEventIdType id,
8776 Fw::Time& timeTag,
8777 const Fw::LogSeverity& severity,
8778 Fw::TextLogString& text
8779 ) const {
8780 FW_ASSERT(
8781 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
8782 static_cast<FwAssertArgType>(portNum),
8783 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
8784 );
8785 switch (portNum) {
8786 case 0:
8787 CdhCore::textLogger.TextLogger_handlerBase(
8788 0,
8789 id,
8790 timeTag,
8791 severity,
8792 text
8793 );
8794 break;
8795 default:
8796 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8797 break;
8798 }
8799 }
8800
8801 #endif
8802
8803 void TcDeframerComponentBase::timeCaller_out(
8804 FwIndexType portNum,
8805 Fw::Time& time
8806 ) const {
8807 FW_ASSERT(
8808 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
8809 static_cast<FwAssertArgType>(portNum),
8810 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
8811 );
8812 switch (portNum) {
8813 case 0:
8814 Ref::posixTime.timeGetPort_handlerBase(
8815 0,
8816 time
8817 );
8818 break;
8819 default:
8820 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
8821 break;
8822 }
8823 }
8824
8825 }
8826 }
8827
8828 namespace Svc {
8829 namespace Ccsds {
8830
8831 230 bool TmFramerComponentBase::isConnected_comStatusOut_OutputPort(FwIndexType portNum) const {
8832 230 FW_ASSERT(
8833 (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS),
8834 static_cast<FwAssertArgType>(portNum),
8835 static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS)
8836 );
8837 230 bool result = false;
8838
1/2
✓ Branch 0 taken 230 times.
✗ Branch 1 not taken.
230 switch (portNum) {
8839 230 case 0:
8840 230 result = true;
8841 230 break;
8842 default:
8843 break;
8844 }
8845 230 return result;
8846 }
8847
8848 bool TmFramerComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const {
8849 FW_ASSERT(
8850 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
8851 static_cast<FwAssertArgType>(portNum),
8852 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
8853 );
8854 bool result = false;
8855 switch (portNum) {
8856 case 0:
8857 result = true;
8858 break;
8859 default:
8860 break;
8861 }
8862 return result;
8863 }
8864
8865 bool TmFramerComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const {
8866 FW_ASSERT(
8867 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
8868 static_cast<FwAssertArgType>(portNum),
8869 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
8870 );
8871 bool result = false;
8872 switch (portNum) {
8873 case 0:
8874 result = true;
8875 break;
8876 default:
8877 break;
8878 }
8879 return result;
8880 }
8881
8882 bool TmFramerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
8883 FW_ASSERT(
8884 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
8885 static_cast<FwAssertArgType>(portNum),
8886 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
8887 );
8888 bool result = false;
8889 switch (portNum) {
8890 case 0:
8891 result = true;
8892 break;
8893 default:
8894 break;
8895 }
8896 return result;
8897 }
8898
8899 #if FW_ENABLE_TEXT_LOGGING == 1
8900
8901 bool TmFramerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
8902 FW_ASSERT(
8903 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
8904 static_cast<FwAssertArgType>(portNum),
8905 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
8906 );
8907 bool result = false;
8908 switch (portNum) {
8909 case 0:
8910 result = true;
8911 break;
8912 default:
8913 break;
8914 }
8915 return result;
8916 }
8917
8918 #endif
8919
8920 bool TmFramerComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const {
8921 FW_ASSERT(
8922 (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS),
8923 static_cast<FwAssertArgType>(portNum),
8924 static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS)
8925 );
8926 bool result = false;
8927 switch (portNum) {
8928 case 0:
8929 result = true;
8930 break;
8931 default:
8932 break;
8933 }
8934 return result;
8935 }
8936
8937 bool TmFramerComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const {
8938 FW_ASSERT(
8939 (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS),
8940 static_cast<FwAssertArgType>(portNum),
8941 static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS)
8942 );
8943 bool result = false;
8944 switch (portNum) {
8945 case 0:
8946 result = true;
8947 break;
8948 default:
8949 break;
8950 }
8951 return result;
8952 }
8953
8954 bool TmFramerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
8955 FW_ASSERT(
8956 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
8957 static_cast<FwAssertArgType>(portNum),
8958 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
8959 );
8960 bool result = false;
8961 switch (portNum) {
8962 case 0:
8963 result = true;
8964 break;
8965 default:
8966 break;
8967 }
8968 return result;
8969 }
8970
8971 bool TmFramerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
8972 FW_ASSERT(
8973 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
8974 static_cast<FwAssertArgType>(portNum),
8975 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
8976 );
8977 bool result = false;
8978 switch (portNum) {
8979 case 0:
8980 result = true;
8981 break;
8982 default:
8983 break;
8984 }
8985 return result;
8986 }
8987
8988 230 void TmFramerComponentBase::comStatusOut_out(
8989 FwIndexType portNum,
8990 Fw::Success& condition
8991 ) const {
8992 230 FW_ASSERT(
8993 (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS),
8994 static_cast<FwAssertArgType>(portNum),
8995 static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS)
8996 );
8997
1/2
✓ Branch 0 taken 230 times.
✗ Branch 1 not taken.
230 switch (portNum) {
8998 230 case 0:
8999 230 ComCcsds::aggregator.comStatusIn_handlerBase(
9000 0,
9001 condition
9002 );
9003 230 break;
9004 default:
9005 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9006 break;
9007 }
9008 230 }
9009
9010 229 void TmFramerComponentBase::dataOut_out(
9011 FwIndexType portNum,
9012 Fw::Buffer& data,
9013 const ComCfg::FrameContext& context
9014 ) const {
9015 229 FW_ASSERT(
9016 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
9017 static_cast<FwAssertArgType>(portNum),
9018 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
9019 );
9020
1/2
✓ Branch 0 taken 229 times.
✗ Branch 1 not taken.
229 switch (portNum) {
9021 229 case 0:
9022 229 ComCcsds::comStub.dataIn_handlerBase(
9023 0,
9024 data,
9025 context
9026 );
9027 229 break;
9028 default:
9029 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9030 break;
9031 }
9032 229 }
9033
9034 229 void TmFramerComponentBase::dataReturnOut_out(
9035 FwIndexType portNum,
9036 Fw::Buffer& data,
9037 const ComCfg::FrameContext& context
9038 ) const {
9039 229 FW_ASSERT(
9040 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
9041 static_cast<FwAssertArgType>(portNum),
9042 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
9043 );
9044
1/2
✓ Branch 0 taken 229 times.
✗ Branch 1 not taken.
229 switch (portNum) {
9045 229 case 0:
9046 229 ComCcsds::aggregator.dataReturnIn_handlerBase(
9047 0,
9048 data,
9049 context
9050 );
9051 229 break;
9052 default:
9053 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9054 break;
9055 }
9056 229 }
9057
9058 void TmFramerComponentBase::timeCaller_out(
9059 FwIndexType portNum,
9060 Fw::Time& time
9061 ) 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 switch (portNum) {
9068 case 0:
9069 Ref::posixTime.timeGetPort_handlerBase(
9070 0,
9071 time
9072 );
9073 break;
9074 default:
9075 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9076 break;
9077 }
9078 }
9079
9080 }
9081 }
9082
9083 namespace Svc {
9084
9085 #if FW_ENABLE_TEXT_LOGGING == 1
9086
9087 9 bool CmdSequencerComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
9088 9 FW_ASSERT(
9089 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
9090 static_cast<FwAssertArgType>(portNum),
9091 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
9092 );
9093 9 bool result = false;
9094
1/2
✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
9 switch (portNum) {
9095 9 case 0:
9096 9 result = true;
9097 9 break;
9098 default:
9099 break;
9100 }
9101 9 return result;
9102 }
9103
9104 #endif
9105
9106 1 bool CmdSequencerComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const {
9107 1 FW_ASSERT(
9108 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
9109 static_cast<FwAssertArgType>(portNum),
9110 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
9111 );
9112 1 bool result = false;
9113
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
9114 1 case 0:
9115 1 result = true;
9116 1 break;
9117 default:
9118 break;
9119 }
9120 1 return result;
9121 }
9122
9123 2 bool CmdSequencerComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const {
9124 2 FW_ASSERT(
9125 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
9126 static_cast<FwAssertArgType>(portNum),
9127 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
9128 );
9129 2 bool result = false;
9130
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
9131 2 case 0:
9132 2 result = true;
9133 2 break;
9134 default:
9135 break;
9136 }
9137 2 return result;
9138 }
9139
9140 bool CmdSequencerComponentBase::isConnected_comCmdOut_OutputPort(FwIndexType portNum) const {
9141 FW_ASSERT(
9142 (0 <= portNum) && (portNum < NUM_COMCMDOUT_OUTPUT_PORTS),
9143 static_cast<FwAssertArgType>(portNum),
9144 static_cast<FwAssertArgType>(NUM_COMCMDOUT_OUTPUT_PORTS)
9145 );
9146 bool result = false;
9147 switch (portNum) {
9148 case 0:
9149 result = true;
9150 break;
9151 default:
9152 break;
9153 }
9154 return result;
9155 }
9156
9157 9 bool CmdSequencerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
9158 9 FW_ASSERT(
9159 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
9160 static_cast<FwAssertArgType>(portNum),
9161 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
9162 );
9163 9 bool result = false;
9164
1/2
✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
9 switch (portNum) {
9165 9 case 0:
9166 9 result = true;
9167 9 break;
9168 default:
9169 break;
9170 }
9171 9 return result;
9172 }
9173
9174 bool CmdSequencerComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const {
9175 FW_ASSERT(
9176 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
9177 static_cast<FwAssertArgType>(portNum),
9178 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
9179 );
9180 bool result = false;
9181 switch (portNum) {
9182 case 0:
9183 result = true;
9184 break;
9185 default:
9186 break;
9187 }
9188 return result;
9189 }
9190
9191 2 bool CmdSequencerComponentBase::isConnected_seqDone_OutputPort(FwIndexType portNum) const {
9192 2 FW_ASSERT(
9193 (0 <= portNum) && (portNum < NUM_SEQDONE_OUTPUT_PORTS),
9194 static_cast<FwAssertArgType>(portNum),
9195 static_cast<FwAssertArgType>(NUM_SEQDONE_OUTPUT_PORTS)
9196 );
9197 2 bool result = false;
9198 2 switch (portNum) {
9199 default:
9200 2 break;
9201 }
9202 2 return result;
9203 }
9204
9205 2 bool CmdSequencerComponentBase::isConnected_seqStartOut_OutputPort(FwIndexType portNum) const {
9206 2 FW_ASSERT(
9207 (0 <= portNum) && (portNum < NUM_SEQSTARTOUT_OUTPUT_PORTS),
9208 static_cast<FwAssertArgType>(portNum),
9209 static_cast<FwAssertArgType>(NUM_SEQSTARTOUT_OUTPUT_PORTS)
9210 );
9211 2 bool result = false;
9212 2 switch (portNum) {
9213 default:
9214 2 break;
9215 }
9216 2 return result;
9217 }
9218
9219 264 bool CmdSequencerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
9220 264 FW_ASSERT(
9221 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
9222 static_cast<FwAssertArgType>(portNum),
9223 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
9224 );
9225 264 bool result = false;
9226
1/2
✓ Branch 0 taken 264 times.
✗ Branch 1 not taken.
264 switch (portNum) {
9227 264 case 0:
9228 264 result = true;
9229 264 break;
9230 default:
9231 break;
9232 }
9233 264 return result;
9234 }
9235
9236 26 bool CmdSequencerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
9237 26 FW_ASSERT(
9238 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
9239 static_cast<FwAssertArgType>(portNum),
9240 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
9241 );
9242 26 bool result = false;
9243
1/2
✓ Branch 0 taken 26 times.
✗ Branch 1 not taken.
26 switch (portNum) {
9244 26 case 0:
9245 26 result = true;
9246 26 break;
9247 default:
9248 break;
9249 }
9250 26 return result;
9251 }
9252
9253 #if FW_ENABLE_TEXT_LOGGING == 1
9254
9255 9 void CmdSequencerComponentBase::LogText_out(
9256 FwIndexType portNum,
9257 FwEventIdType id,
9258 Fw::Time& timeTag,
9259 const Fw::LogSeverity& severity,
9260 Fw::TextLogString& text
9261 ) const {
9262 9 FW_ASSERT(
9263 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
9264 static_cast<FwAssertArgType>(portNum),
9265 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
9266 );
9267
1/2
✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
9 switch (portNum) {
9268 9 case 0:
9269 9 CdhCore::textLogger.TextLogger_handlerBase(
9270 0,
9271 id,
9272 timeTag,
9273 severity,
9274 text
9275 );
9276 9 break;
9277 default:
9278 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9279 break;
9280 }
9281 9 }
9282
9283 #endif
9284
9285 8 void CmdSequencerComponentBase::cmdRegOut_out(
9286 FwIndexType portNum,
9287 FwOpcodeType opCode
9288 ) const {
9289 8 FW_ASSERT(
9290 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
9291 static_cast<FwAssertArgType>(portNum),
9292 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
9293 );
9294
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 switch (portNum) {
9295 8 case 0:
9296 8 CdhCore::cmdDisp.compCmdReg_handlerBase(
9297 17,
9298 opCode
9299 );
9300 8 break;
9301 default:
9302 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9303 break;
9304 }
9305 8 }
9306
9307 2 void CmdSequencerComponentBase::cmdResponseOut_out(
9308 FwIndexType portNum,
9309 FwOpcodeType opCode,
9310 U32 cmdSeq,
9311 const Fw::CmdResponse& response
9312 ) const {
9313 2 FW_ASSERT(
9314 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
9315 static_cast<FwAssertArgType>(portNum),
9316 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
9317 );
9318
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
9319 2 case 0:
9320 2 CdhCore::cmdDisp.compCmdStat_handlerBase(
9321 0,
9322 opCode,
9323 cmdSeq,
9324 response
9325 );
9326 2 break;
9327 default:
9328 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9329 break;
9330 }
9331 2 }
9332
9333 5 void CmdSequencerComponentBase::comCmdOut_out(
9334 FwIndexType portNum,
9335 Fw::ComBuffer& data,
9336 U32 context
9337 ) const {
9338 5 FW_ASSERT(
9339 (0 <= portNum) && (portNum < NUM_COMCMDOUT_OUTPUT_PORTS),
9340 static_cast<FwAssertArgType>(portNum),
9341 static_cast<FwAssertArgType>(NUM_COMCMDOUT_OUTPUT_PORTS)
9342 );
9343
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 switch (portNum) {
9344 5 case 0:
9345 5 CdhCore::cmdDisp.seqCmdBuff_handlerBase(
9346 1,
9347 data,
9348 context
9349 );
9350 5 break;
9351 default:
9352 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9353 break;
9354 }
9355 5 }
9356
9357 9 void CmdSequencerComponentBase::logOut_out(
9358 FwIndexType portNum,
9359 FwEventIdType id,
9360 Fw::Time& timeTag,
9361 const Fw::LogSeverity& severity,
9362 Fw::LogBuffer& args
9363 ) const {
9364 9 FW_ASSERT(
9365 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
9366 static_cast<FwAssertArgType>(portNum),
9367 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
9368 );
9369
1/2
✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
9 switch (portNum) {
9370 9 case 0:
9371 9 CdhCore::events.LogRecv_handlerBase(
9372 0,
9373 id,
9374 timeTag,
9375 severity,
9376 args
9377 );
9378 9 break;
9379 default:
9380 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9381 break;
9382 }
9383 9 }
9384
9385 59 void CmdSequencerComponentBase::pingOut_out(
9386 FwIndexType portNum,
9387 U32 key
9388 ) const {
9389 59 FW_ASSERT(
9390 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
9391 static_cast<FwAssertArgType>(portNum),
9392 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
9393 );
9394
1/2
✓ Branch 0 taken 59 times.
✗ Branch 1 not taken.
59 switch (portNum) {
9395 59 case 0:
9396 59 CdhCore::health.PingReturn_handlerBase(
9397 10,
9398 key
9399 );
9400 59 break;
9401 default:
9402 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9403 break;
9404 }
9405 59 }
9406
9407 void CmdSequencerComponentBase::seqDone_out(
9408 FwIndexType portNum,
9409 FwOpcodeType opCode,
9410 U32 cmdSeq,
9411 const Fw::CmdResponse& response
9412 ) const {
9413 FW_ASSERT(
9414 (0 <= portNum) && (portNum < NUM_SEQDONE_OUTPUT_PORTS),
9415 static_cast<FwAssertArgType>(portNum),
9416 static_cast<FwAssertArgType>(NUM_SEQDONE_OUTPUT_PORTS)
9417 );
9418 switch (portNum) {
9419 default:
9420 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9421 break;
9422 }
9423 }
9424
9425 void CmdSequencerComponentBase::seqStartOut_out(
9426 FwIndexType portNum,
9427 const Fw::StringBase& filename,
9428 const Svc::SeqArgs& args
9429 ) const {
9430 FW_ASSERT(
9431 (0 <= portNum) && (portNum < NUM_SEQSTARTOUT_OUTPUT_PORTS),
9432 static_cast<FwAssertArgType>(portNum),
9433 static_cast<FwAssertArgType>(NUM_SEQSTARTOUT_OUTPUT_PORTS)
9434 );
9435 switch (portNum) {
9436 default:
9437 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9438 break;
9439 }
9440 }
9441
9442 264 void CmdSequencerComponentBase::timeCaller_out(
9443 FwIndexType portNum,
9444 Fw::Time& time
9445 ) const {
9446 264 FW_ASSERT(
9447 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
9448 static_cast<FwAssertArgType>(portNum),
9449 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
9450 );
9451
1/2
✓ Branch 0 taken 264 times.
✗ Branch 1 not taken.
264 switch (portNum) {
9452 264 case 0:
9453 264 Ref::posixTime.timeGetPort_handlerBase(
9454 0,
9455 time
9456 );
9457 264 break;
9458 default:
9459 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9460 break;
9461 }
9462 264 }
9463
9464 13 void CmdSequencerComponentBase::tlmOut_out(
9465 FwIndexType portNum,
9466 FwChanIdType id,
9467 Fw::Time& timeTag,
9468 Fw::TlmBuffer& val
9469 ) const {
9470 13 FW_ASSERT(
9471 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
9472 static_cast<FwAssertArgType>(portNum),
9473 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
9474 );
9475
1/2
✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
13 switch (portNum) {
9476 13 case 0:
9477 13 CdhCore::tlmSend.TlmRecv_handlerBase(
9478 0,
9479 id,
9480 timeTag,
9481 val
9482 );
9483 13 break;
9484 default:
9485 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9486 break;
9487 }
9488 13 }
9489
9490 }
9491
9492 namespace Svc {
9493
9494 bool ComAggregatorComponentBase::isConnected_comStatusOut_OutputPort(FwIndexType portNum) const {
9495 FW_ASSERT(
9496 (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS),
9497 static_cast<FwAssertArgType>(portNum),
9498 static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS)
9499 );
9500 bool result = false;
9501 switch (portNum) {
9502 case 0:
9503 result = true;
9504 break;
9505 default:
9506 break;
9507 }
9508 return result;
9509 }
9510
9511 bool ComAggregatorComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const {
9512 FW_ASSERT(
9513 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
9514 static_cast<FwAssertArgType>(portNum),
9515 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
9516 );
9517 bool result = false;
9518 switch (portNum) {
9519 case 0:
9520 result = true;
9521 break;
9522 default:
9523 break;
9524 }
9525 return result;
9526 }
9527
9528 bool ComAggregatorComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const {
9529 FW_ASSERT(
9530 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
9531 static_cast<FwAssertArgType>(portNum),
9532 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
9533 );
9534 bool result = false;
9535 switch (portNum) {
9536 case 0:
9537 result = true;
9538 break;
9539 default:
9540 break;
9541 }
9542 return result;
9543 }
9544
9545 669 void ComAggregatorComponentBase::comStatusOut_out(
9546 FwIndexType portNum,
9547 Fw::Success& condition
9548 ) const {
9549 669 FW_ASSERT(
9550 (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS),
9551 static_cast<FwAssertArgType>(portNum),
9552 static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS)
9553 );
9554
1/2
✓ Branch 0 taken 669 times.
✗ Branch 1 not taken.
669 switch (portNum) {
9555 669 case 0:
9556 669 ComCcsds::spacePacketFramer.comStatusIn_handlerBase(
9557 0,
9558 condition
9559 );
9560 669 break;
9561 default:
9562 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9563 break;
9564 }
9565 669 }
9566
9567 229 void ComAggregatorComponentBase::dataOut_out(
9568 FwIndexType portNum,
9569 Fw::Buffer& data,
9570 const ComCfg::FrameContext& context
9571 ) const {
9572 229 FW_ASSERT(
9573 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
9574 static_cast<FwAssertArgType>(portNum),
9575 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
9576 );
9577
1/2
✓ Branch 0 taken 229 times.
✗ Branch 1 not taken.
229 switch (portNum) {
9578 229 case 0:
9579 229 ComCcsds::framer.dataIn_handlerBase(
9580 0,
9581 data,
9582 context
9583 );
9584 229 break;
9585 default:
9586 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9587 break;
9588 }
9589 229 }
9590
9591 668 void ComAggregatorComponentBase::dataReturnOut_out(
9592 FwIndexType portNum,
9593 Fw::Buffer& data,
9594 const ComCfg::FrameContext& context
9595 ) const {
9596 668 FW_ASSERT(
9597 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
9598 static_cast<FwAssertArgType>(portNum),
9599 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
9600 );
9601
1/2
✓ Branch 0 taken 668 times.
✗ Branch 1 not taken.
668 switch (portNum) {
9602 668 case 0:
9603 668 ComCcsds::spacePacketFramer.dataReturnIn_handlerBase(
9604 0,
9605 data,
9606 context
9607 );
9608 668 break;
9609 default:
9610 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9611 break;
9612 }
9613 668 }
9614
9615 }
9616
9617 namespace Svc {
9618
9619 1 bool ComQueueComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const {
9620 1 FW_ASSERT(
9621 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
9622 static_cast<FwAssertArgType>(portNum),
9623 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
9624 );
9625 1 bool result = false;
9626
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
9627 1 case 0:
9628 1 result = true;
9629 1 break;
9630 default:
9631 break;
9632 }
9633 1 return result;
9634 }
9635
9636 bool ComQueueComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const {
9637 FW_ASSERT(
9638 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
9639 static_cast<FwAssertArgType>(portNum),
9640 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
9641 );
9642 bool result = false;
9643 switch (portNum) {
9644 case 0:
9645 result = true;
9646 break;
9647 default:
9648 break;
9649 }
9650 return result;
9651 }
9652
9653 bool ComQueueComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
9654 FW_ASSERT(
9655 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
9656 static_cast<FwAssertArgType>(portNum),
9657 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
9658 );
9659 bool result = false;
9660 switch (portNum) {
9661 case 0:
9662 result = true;
9663 break;
9664 default:
9665 break;
9666 }
9667 return result;
9668 }
9669
9670 #if FW_ENABLE_TEXT_LOGGING == 1
9671
9672 bool ComQueueComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
9673 FW_ASSERT(
9674 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
9675 static_cast<FwAssertArgType>(portNum),
9676 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
9677 );
9678 bool result = false;
9679 switch (portNum) {
9680 case 0:
9681 result = true;
9682 break;
9683 default:
9684 break;
9685 }
9686 return result;
9687 }
9688
9689 #endif
9690
9691 470 bool ComQueueComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
9692 470 FW_ASSERT(
9693 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
9694 static_cast<FwAssertArgType>(portNum),
9695 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
9696 );
9697 470 bool result = false;
9698
1/2
✓ Branch 0 taken 470 times.
✗ Branch 1 not taken.
470 switch (portNum) {
9699 470 case 0:
9700 470 result = true;
9701 470 break;
9702 default:
9703 break;
9704 }
9705 470 return result;
9706 }
9707
9708 940 bool ComQueueComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const {
9709 940 FW_ASSERT(
9710 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
9711 static_cast<FwAssertArgType>(portNum),
9712 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
9713 );
9714 940 bool result = false;
9715
1/2
✓ Branch 0 taken 940 times.
✗ Branch 1 not taken.
940 switch (portNum) {
9716 940 case 0:
9717 940 result = true;
9718 940 break;
9719 default:
9720 break;
9721 }
9722 940 return result;
9723 }
9724
9725 bool ComQueueComponentBase::isConnected_bufferReturnOut_OutputPort(FwIndexType portNum) const {
9726 FW_ASSERT(
9727 (0 <= portNum) && (portNum < NUM_BUFFERRETURNOUT_OUTPUT_PORTS),
9728 static_cast<FwAssertArgType>(portNum),
9729 static_cast<FwAssertArgType>(NUM_BUFFERRETURNOUT_OUTPUT_PORTS)
9730 );
9731 bool result = false;
9732 switch (portNum) {
9733 case 0:
9734 result = true;
9735 break;
9736 default:
9737 break;
9738 }
9739 return result;
9740 }
9741
9742 bool ComQueueComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const {
9743 FW_ASSERT(
9744 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
9745 static_cast<FwAssertArgType>(portNum),
9746 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
9747 );
9748 bool result = false;
9749 switch (portNum) {
9750 case 0:
9751 result = true;
9752 break;
9753 default:
9754 break;
9755 }
9756 return result;
9757 }
9758
9759 3 void ComQueueComponentBase::CmdReg_out(
9760 FwIndexType portNum,
9761 FwOpcodeType opCode
9762 ) const {
9763 3 FW_ASSERT(
9764 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
9765 static_cast<FwAssertArgType>(portNum),
9766 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
9767 );
9768
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
9769 3 case 0:
9770 3 CdhCore::cmdDisp.compCmdReg_handlerBase(
9771 4,
9772 opCode
9773 );
9774 3 break;
9775 default:
9776 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9777 break;
9778 }
9779 3 }
9780
9781 void ComQueueComponentBase::CmdStatus_out(
9782 FwIndexType portNum,
9783 FwOpcodeType opCode,
9784 U32 cmdSeq,
9785 const Fw::CmdResponse& response
9786 ) const {
9787 FW_ASSERT(
9788 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
9789 static_cast<FwAssertArgType>(portNum),
9790 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
9791 );
9792 switch (portNum) {
9793 case 0:
9794 CdhCore::cmdDisp.compCmdStat_handlerBase(
9795 0,
9796 opCode,
9797 cmdSeq,
9798 response
9799 );
9800 break;
9801 default:
9802 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9803 break;
9804 }
9805 }
9806
9807 void ComQueueComponentBase::Log_out(
9808 FwIndexType portNum,
9809 FwEventIdType id,
9810 Fw::Time& timeTag,
9811 const Fw::LogSeverity& severity,
9812 Fw::LogBuffer& args
9813 ) const {
9814 FW_ASSERT(
9815 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
9816 static_cast<FwAssertArgType>(portNum),
9817 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
9818 );
9819 switch (portNum) {
9820 case 0:
9821 CdhCore::events.LogRecv_handlerBase(
9822 0,
9823 id,
9824 timeTag,
9825 severity,
9826 args
9827 );
9828 break;
9829 default:
9830 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9831 break;
9832 }
9833 }
9834
9835 #if FW_ENABLE_TEXT_LOGGING == 1
9836
9837 void ComQueueComponentBase::LogText_out(
9838 FwIndexType portNum,
9839 FwEventIdType id,
9840 Fw::Time& timeTag,
9841 const Fw::LogSeverity& severity,
9842 Fw::TextLogString& text
9843 ) const {
9844 FW_ASSERT(
9845 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
9846 static_cast<FwAssertArgType>(portNum),
9847 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
9848 );
9849 switch (portNum) {
9850 case 0:
9851 CdhCore::textLogger.TextLogger_handlerBase(
9852 0,
9853 id,
9854 timeTag,
9855 severity,
9856 text
9857 );
9858 break;
9859 default:
9860 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9861 break;
9862 }
9863 }
9864
9865 #endif
9866
9867 470 void ComQueueComponentBase::Time_out(
9868 FwIndexType portNum,
9869 Fw::Time& time
9870 ) const {
9871 470 FW_ASSERT(
9872 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
9873 static_cast<FwAssertArgType>(portNum),
9874 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
9875 );
9876
1/2
✓ Branch 0 taken 470 times.
✗ Branch 1 not taken.
470 switch (portNum) {
9877 470 case 0:
9878 470 Ref::posixTime.timeGetPort_handlerBase(
9879 0,
9880 time
9881 );
9882 470 break;
9883 default:
9884 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9885 break;
9886 }
9887 470 }
9888
9889 470 void ComQueueComponentBase::Tlm_out(
9890 FwIndexType portNum,
9891 FwChanIdType id,
9892 Fw::Time& timeTag,
9893 Fw::TlmBuffer& val
9894 ) const {
9895 470 FW_ASSERT(
9896 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
9897 static_cast<FwAssertArgType>(portNum),
9898 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
9899 );
9900
1/2
✓ Branch 0 taken 470 times.
✗ Branch 1 not taken.
470 switch (portNum) {
9901 470 case 0:
9902 470 CdhCore::tlmSend.TlmRecv_handlerBase(
9903 0,
9904 id,
9905 timeTag,
9906 val
9907 );
9908 470 break;
9909 default:
9910 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9911 break;
9912 }
9913 470 }
9914
9915 void ComQueueComponentBase::bufferReturnOut_out(
9916 FwIndexType portNum,
9917 Fw::Buffer& fwBuffer
9918 ) const {
9919 FW_ASSERT(
9920 (0 <= portNum) && (portNum < NUM_BUFFERRETURNOUT_OUTPUT_PORTS),
9921 static_cast<FwAssertArgType>(portNum),
9922 static_cast<FwAssertArgType>(NUM_BUFFERRETURNOUT_OUTPUT_PORTS)
9923 );
9924 switch (portNum) {
9925 case 0:
9926 FileHandling::fileDownlink.bufferReturn_handlerBase(
9927 0,
9928 fwBuffer
9929 );
9930 break;
9931 default:
9932 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9933 break;
9934 }
9935 }
9936
9937 668 void ComQueueComponentBase::dataOut_out(
9938 FwIndexType portNum,
9939 Fw::Buffer& data,
9940 const ComCfg::FrameContext& context
9941 ) const {
9942 668 FW_ASSERT(
9943 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
9944 static_cast<FwAssertArgType>(portNum),
9945 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
9946 );
9947
1/2
✓ Branch 0 taken 668 times.
✗ Branch 1 not taken.
668 switch (portNum) {
9948 668 case 0:
9949 668 ComCcsds::spacePacketFramer.dataIn_handlerBase(
9950 0,
9951 data,
9952 context
9953 );
9954 668 break;
9955 default:
9956 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
9957 break;
9958 }
9959 668 }
9960
9961 }
9962
9963 namespace Svc {
9964
9965 1 bool ComStubComponentBase::isConnected_comStatusOut_OutputPort(FwIndexType portNum) const {
9966 1 FW_ASSERT(
9967 (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS),
9968 static_cast<FwAssertArgType>(portNum),
9969 static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS)
9970 );
9971 1 bool result = false;
9972
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
9973 1 case 0:
9974 1 result = true;
9975 1 break;
9976 default:
9977 break;
9978 }
9979 1 return result;
9980 }
9981
9982 bool ComStubComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const {
9983 FW_ASSERT(
9984 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
9985 static_cast<FwAssertArgType>(portNum),
9986 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
9987 );
9988 bool result = false;
9989 switch (portNum) {
9990 case 0:
9991 result = true;
9992 break;
9993 default:
9994 break;
9995 }
9996 return result;
9997 }
9998
9999 bool ComStubComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const {
10000 FW_ASSERT(
10001 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
10002 static_cast<FwAssertArgType>(portNum),
10003 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
10004 );
10005 bool result = false;
10006 switch (portNum) {
10007 case 0:
10008 result = true;
10009 break;
10010 default:
10011 break;
10012 }
10013 return result;
10014 }
10015
10016 bool ComStubComponentBase::isConnected_drvAsyncSendOut_OutputPort(FwIndexType portNum) const {
10017 FW_ASSERT(
10018 (0 <= portNum) && (portNum < NUM_DRVASYNCSENDOUT_OUTPUT_PORTS),
10019 static_cast<FwAssertArgType>(portNum),
10020 static_cast<FwAssertArgType>(NUM_DRVASYNCSENDOUT_OUTPUT_PORTS)
10021 );
10022 bool result = false;
10023 switch (portNum) {
10024 default:
10025 break;
10026 }
10027 return result;
10028 }
10029
10030 bool ComStubComponentBase::isConnected_drvReceiveReturnOut_OutputPort(FwIndexType portNum) const {
10031 FW_ASSERT(
10032 (0 <= portNum) && (portNum < NUM_DRVRECEIVERETURNOUT_OUTPUT_PORTS),
10033 static_cast<FwAssertArgType>(portNum),
10034 static_cast<FwAssertArgType>(NUM_DRVRECEIVERETURNOUT_OUTPUT_PORTS)
10035 );
10036 bool result = false;
10037 switch (portNum) {
10038 case 0:
10039 result = true;
10040 break;
10041 default:
10042 break;
10043 }
10044 return result;
10045 }
10046
10047 229 bool ComStubComponentBase::isConnected_drvSendOut_OutputPort(FwIndexType portNum) const {
10048 229 FW_ASSERT(
10049 (0 <= portNum) && (portNum < NUM_DRVSENDOUT_OUTPUT_PORTS),
10050 static_cast<FwAssertArgType>(portNum),
10051 static_cast<FwAssertArgType>(NUM_DRVSENDOUT_OUTPUT_PORTS)
10052 );
10053 229 bool result = false;
10054
1/2
✓ Branch 0 taken 229 times.
✗ Branch 1 not taken.
229 switch (portNum) {
10055 229 case 0:
10056 229 result = true;
10057 229 break;
10058 default:
10059 break;
10060 }
10061 229 return result;
10062 }
10063
10064 230 void ComStubComponentBase::comStatusOut_out(
10065 FwIndexType portNum,
10066 Fw::Success& condition
10067 ) const {
10068 230 FW_ASSERT(
10069 (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS),
10070 static_cast<FwAssertArgType>(portNum),
10071 static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS)
10072 );
10073
1/2
✓ Branch 0 taken 230 times.
✗ Branch 1 not taken.
230 switch (portNum) {
10074 230 case 0:
10075 230 ComCcsds::framer.comStatusIn_handlerBase(
10076 0,
10077 condition
10078 );
10079 230 break;
10080 default:
10081 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10082 break;
10083 }
10084 230 }
10085
10086 614 void ComStubComponentBase::dataOut_out(
10087 FwIndexType portNum,
10088 Fw::Buffer& data,
10089 const ComCfg::FrameContext& context
10090 ) const {
10091 614 FW_ASSERT(
10092 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
10093 static_cast<FwAssertArgType>(portNum),
10094 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
10095 );
10096
1/2
✓ Branch 0 taken 614 times.
✗ Branch 1 not taken.
614 switch (portNum) {
10097 614 case 0:
10098 614 ComCcsds::frameAccumulator.dataIn_handlerBase(
10099 0,
10100 data,
10101 context
10102 );
10103 614 break;
10104 default:
10105 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10106 break;
10107 }
10108 614 }
10109
10110 229 void ComStubComponentBase::dataReturnOut_out(
10111 FwIndexType portNum,
10112 Fw::Buffer& data,
10113 const ComCfg::FrameContext& context
10114 ) const {
10115 229 FW_ASSERT(
10116 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
10117 static_cast<FwAssertArgType>(portNum),
10118 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
10119 );
10120
1/2
✓ Branch 0 taken 229 times.
✗ Branch 1 not taken.
229 switch (portNum) {
10121 229 case 0:
10122 229 ComCcsds::framer.dataReturnIn_handlerBase(
10123 0,
10124 data,
10125 context
10126 );
10127 229 break;
10128 default:
10129 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10130 break;
10131 }
10132 229 }
10133
10134 void ComStubComponentBase::drvAsyncSendOut_out(
10135 FwIndexType portNum,
10136 Fw::Buffer& fwBuffer
10137 ) const {
10138 FW_ASSERT(
10139 (0 <= portNum) && (portNum < NUM_DRVASYNCSENDOUT_OUTPUT_PORTS),
10140 static_cast<FwAssertArgType>(portNum),
10141 static_cast<FwAssertArgType>(NUM_DRVASYNCSENDOUT_OUTPUT_PORTS)
10142 );
10143 switch (portNum) {
10144 default:
10145 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10146 break;
10147 }
10148 }
10149
10150 615 void ComStubComponentBase::drvReceiveReturnOut_out(
10151 FwIndexType portNum,
10152 Fw::Buffer& fwBuffer
10153 ) const {
10154 615 FW_ASSERT(
10155 (0 <= portNum) && (portNum < NUM_DRVRECEIVERETURNOUT_OUTPUT_PORTS),
10156 static_cast<FwAssertArgType>(portNum),
10157 static_cast<FwAssertArgType>(NUM_DRVRECEIVERETURNOUT_OUTPUT_PORTS)
10158 );
10159
1/2
✓ Branch 0 taken 615 times.
✗ Branch 1 not taken.
615 switch (portNum) {
10160 615 case 0:
10161 615 Ref::comDriver.recvReturnIn_handlerBase(
10162 0,
10163 fwBuffer
10164 );
10165 615 break;
10166 default:
10167 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10168 break;
10169 }
10170 615 }
10171
10172 229 Drv::ByteStreamStatus ComStubComponentBase::drvSendOut_out(
10173 FwIndexType portNum,
10174 Fw::Buffer& sendBuffer
10175 ) const {
10176 229 FW_ASSERT(
10177 (0 <= portNum) && (portNum < NUM_DRVSENDOUT_OUTPUT_PORTS),
10178 static_cast<FwAssertArgType>(portNum),
10179 static_cast<FwAssertArgType>(NUM_DRVSENDOUT_OUTPUT_PORTS)
10180 );
10181 229 Drv::ByteStreamStatus _result = {};
10182
1/2
✓ Branch 0 taken 229 times.
✗ Branch 1 not taken.
229 switch (portNum) {
10183 229 case 0:
10184
1/1
✓ Branch 1 taken 229 times.
458 _result = Ref::comDriver.send_handlerBase(
10185 0,
10186 sendBuffer
10187
1/1
✓ Branch 1 taken 229 times.
229 );
10188 229 break;
10189 default:
10190 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10191 break;
10192 }
10193 229 return _result;
10194 }
10195
10196 }
10197
10198 namespace Svc {
10199
10200 1 bool CommandDispatcherComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const {
10201 1 FW_ASSERT(
10202 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
10203 static_cast<FwAssertArgType>(portNum),
10204 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
10205 );
10206 1 bool result = false;
10207
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
10208 1 case 0:
10209 1 result = true;
10210 1 break;
10211 default:
10212 break;
10213 }
10214 1 return result;
10215 }
10216
10217 110 bool CommandDispatcherComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const {
10218 110 FW_ASSERT(
10219 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
10220 static_cast<FwAssertArgType>(portNum),
10221 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
10222 );
10223 110 bool result = false;
10224
1/2
✓ Branch 0 taken 110 times.
✗ Branch 1 not taken.
110 switch (portNum) {
10225 110 case 0:
10226 110 result = true;
10227 110 break;
10228 default:
10229 break;
10230 }
10231 110 return result;
10232 }
10233
10234 504 bool CommandDispatcherComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
10235 504 FW_ASSERT(
10236 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
10237 static_cast<FwAssertArgType>(portNum),
10238 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
10239 );
10240 504 bool result = false;
10241
1/2
✓ Branch 0 taken 504 times.
✗ Branch 1 not taken.
504 switch (portNum) {
10242 504 case 0:
10243 504 result = true;
10244 504 break;
10245 default:
10246 break;
10247 }
10248 504 return result;
10249 }
10250
10251 #if FW_ENABLE_TEXT_LOGGING == 1
10252
10253 504 bool CommandDispatcherComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
10254 504 FW_ASSERT(
10255 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
10256 static_cast<FwAssertArgType>(portNum),
10257 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
10258 );
10259 504 bool result = false;
10260
1/2
✓ Branch 0 taken 504 times.
✗ Branch 1 not taken.
504 switch (portNum) {
10261 504 case 0:
10262 504 result = true;
10263 504 break;
10264 default:
10265 break;
10266 }
10267 504 return result;
10268 }
10269
10270 #endif
10271
10272 636 bool CommandDispatcherComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
10273 636 FW_ASSERT(
10274 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
10275 static_cast<FwAssertArgType>(portNum),
10276 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
10277 );
10278 636 bool result = false;
10279
1/2
✓ Branch 0 taken 636 times.
✗ Branch 1 not taken.
636 switch (portNum) {
10280 636 case 0:
10281 636 result = true;
10282 636 break;
10283 default:
10284 break;
10285 }
10286 636 return result;
10287 }
10288
10289 264 bool CommandDispatcherComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const {
10290 264 FW_ASSERT(
10291 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
10292 static_cast<FwAssertArgType>(portNum),
10293 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
10294 );
10295 264 bool result = false;
10296
1/2
✓ Branch 0 taken 264 times.
✗ Branch 1 not taken.
264 switch (portNum) {
10297 264 case 0:
10298 264 result = true;
10299 264 break;
10300 default:
10301 break;
10302 }
10303 264 return result;
10304 }
10305
10306 145 bool CommandDispatcherComponentBase::isConnected_compCmdSend_OutputPort(FwIndexType portNum) const {
10307 145 FW_ASSERT(
10308 (0 <= portNum) && (portNum < NUM_COMPCMDSEND_OUTPUT_PORTS),
10309 static_cast<FwAssertArgType>(portNum),
10310 static_cast<FwAssertArgType>(NUM_COMPCMDSEND_OUTPUT_PORTS)
10311 );
10312 145 bool result = false;
10313
8/25
✓ 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 not taken.
✗ Branch 11 not taken.
✗ 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.
145 switch (portNum) {
10314 110 case 0:
10315 110 result = true;
10316 110 break;
10317 13 case 1:
10318 13 result = true;
10319 13 break;
10320 case 2:
10321 result = true;
10322 break;
10323 case 3:
10324 result = true;
10325 break;
10326 case 4:
10327 result = true;
10328 break;
10329 case 5:
10330 result = true;
10331 break;
10332 case 6:
10333 result = true;
10334 break;
10335 case 7:
10336 result = true;
10337 break;
10338 case 8:
10339 result = true;
10340 break;
10341 case 9:
10342 result = true;
10343 break;
10344 case 10:
10345 result = true;
10346 break;
10347 case 11:
10348 result = true;
10349 break;
10350 case 12:
10351 result = true;
10352 break;
10353 case 13:
10354 result = true;
10355 break;
10356 case 14:
10357 result = true;
10358 break;
10359 3 case 15:
10360 3 result = true;
10361 3 break;
10362 case 16:
10363 result = true;
10364 break;
10365 2 case 17:
10366 2 result = true;
10367 2 break;
10368 2 case 18:
10369 2 result = true;
10370 2 break;
10371 case 19:
10372 result = true;
10373 break;
10374 6 case 20:
10375 6 result = true;
10376 6 break;
10377 6 case 21:
10378 6 result = true;
10379 6 break;
10380 case 22:
10381 result = true;
10382 break;
10383 3 case 23:
10384 3 result = true;
10385 3 break;
10386 default:
10387 break;
10388 }
10389 145 return result;
10390 }
10391
10392 bool CommandDispatcherComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const {
10393 FW_ASSERT(
10394 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
10395 static_cast<FwAssertArgType>(portNum),
10396 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
10397 );
10398 bool result = false;
10399 switch (portNum) {
10400 case 0:
10401 result = true;
10402 break;
10403 default:
10404 break;
10405 }
10406 return result;
10407 }
10408
10409 290 bool CommandDispatcherComponentBase::isConnected_seqCmdStatus_OutputPort(FwIndexType portNum) const {
10410 290 FW_ASSERT(
10411 (0 <= portNum) && (portNum < NUM_SEQCMDSTATUS_OUTPUT_PORTS),
10412 static_cast<FwAssertArgType>(portNum),
10413 static_cast<FwAssertArgType>(NUM_SEQCMDSTATUS_OUTPUT_PORTS)
10414 );
10415 290 bool result = false;
10416
2/3
✓ Branch 0 taken 280 times.
✓ Branch 1 taken 10 times.
✗ Branch 2 not taken.
290 switch (portNum) {
10417 280 case 0:
10418 280 result = true;
10419 280 break;
10420 10 case 1:
10421 10 result = true;
10422 10 break;
10423 default:
10424 break;
10425 }
10426 290 return result;
10427 }
10428
10429 4 void CommandDispatcherComponentBase::CmdReg_out(
10430 FwIndexType portNum,
10431 FwOpcodeType opCode
10432 ) const {
10433 4 FW_ASSERT(
10434 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
10435 static_cast<FwAssertArgType>(portNum),
10436 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
10437 );
10438
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
10439 4 case 0:
10440 4 CdhCore::cmdDisp.compCmdReg_handlerBase(
10441 0,
10442 opCode
10443 );
10444 4 break;
10445 default:
10446 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10447 break;
10448 }
10449 4 }
10450
10451 110 void CommandDispatcherComponentBase::CmdStatus_out(
10452 FwIndexType portNum,
10453 FwOpcodeType opCode,
10454 U32 cmdSeq,
10455 const Fw::CmdResponse& response
10456 ) const {
10457 110 FW_ASSERT(
10458 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
10459 static_cast<FwAssertArgType>(portNum),
10460 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
10461 );
10462
1/2
✓ Branch 0 taken 110 times.
✗ Branch 1 not taken.
110 switch (portNum) {
10463 110 case 0:
10464 110 CdhCore::cmdDisp.compCmdStat_handlerBase(
10465 0,
10466 opCode,
10467 cmdSeq,
10468 response
10469 );
10470 110 break;
10471 default:
10472 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10473 break;
10474 }
10475 110 }
10476
10477 504 void CommandDispatcherComponentBase::Log_out(
10478 FwIndexType portNum,
10479 FwEventIdType id,
10480 Fw::Time& timeTag,
10481 const Fw::LogSeverity& severity,
10482 Fw::LogBuffer& args
10483 ) const {
10484 504 FW_ASSERT(
10485 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
10486 static_cast<FwAssertArgType>(portNum),
10487 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
10488 );
10489
1/2
✓ Branch 0 taken 504 times.
✗ Branch 1 not taken.
504 switch (portNum) {
10490 504 case 0:
10491 504 CdhCore::events.LogRecv_handlerBase(
10492 0,
10493 id,
10494 timeTag,
10495 severity,
10496 args
10497 );
10498 504 break;
10499 default:
10500 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10501 break;
10502 }
10503 504 }
10504
10505 #if FW_ENABLE_TEXT_LOGGING == 1
10506
10507 504 void CommandDispatcherComponentBase::LogText_out(
10508 FwIndexType portNum,
10509 FwEventIdType id,
10510 Fw::Time& timeTag,
10511 const Fw::LogSeverity& severity,
10512 Fw::TextLogString& text
10513 ) const {
10514 504 FW_ASSERT(
10515 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
10516 static_cast<FwAssertArgType>(portNum),
10517 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
10518 );
10519
1/2
✓ Branch 0 taken 504 times.
✗ Branch 1 not taken.
504 switch (portNum) {
10520 504 case 0:
10521 504 CdhCore::textLogger.TextLogger_handlerBase(
10522 0,
10523 id,
10524 timeTag,
10525 severity,
10526 text
10527 );
10528 504 break;
10529 default:
10530 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10531 break;
10532 }
10533 504 }
10534
10535 #endif
10536
10537 636 void CommandDispatcherComponentBase::Time_out(
10538 FwIndexType portNum,
10539 Fw::Time& time
10540 ) const {
10541 636 FW_ASSERT(
10542 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
10543 static_cast<FwAssertArgType>(portNum),
10544 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
10545 );
10546
1/2
✓ Branch 0 taken 636 times.
✗ Branch 1 not taken.
636 switch (portNum) {
10547 636 case 0:
10548 636 Ref::posixTime.timeGetPort_handlerBase(
10549 0,
10550 time
10551 );
10552 636 break;
10553 default:
10554 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10555 break;
10556 }
10557 636 }
10558
10559 132 void CommandDispatcherComponentBase::Tlm_out(
10560 FwIndexType portNum,
10561 FwChanIdType id,
10562 Fw::Time& timeTag,
10563 Fw::TlmBuffer& val
10564 ) const {
10565 132 FW_ASSERT(
10566 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
10567 static_cast<FwAssertArgType>(portNum),
10568 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
10569 );
10570
1/2
✓ Branch 0 taken 132 times.
✗ Branch 1 not taken.
132 switch (portNum) {
10571 132 case 0:
10572 132 CdhCore::tlmSend.TlmRecv_handlerBase(
10573 0,
10574 id,
10575 timeTag,
10576 val
10577 );
10578 132 break;
10579 default:
10580 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10581 break;
10582 }
10583 132 }
10584
10585 145 void CommandDispatcherComponentBase::compCmdSend_out(
10586 FwIndexType portNum,
10587 FwOpcodeType opCode,
10588 U32 cmdSeq,
10589 Fw::CmdArgBuffer& args
10590 ) const {
10591 145 FW_ASSERT(
10592 (0 <= portNum) && (portNum < NUM_COMPCMDSEND_OUTPUT_PORTS),
10593 static_cast<FwAssertArgType>(portNum),
10594 static_cast<FwAssertArgType>(NUM_COMPCMDSEND_OUTPUT_PORTS)
10595 );
10596
8/25
✓ 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 not taken.
✗ Branch 11 not taken.
✗ 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.
145 switch (portNum) {
10597 110 case 0:
10598 110 CdhCore::cmdDisp.CmdDisp_handlerBase(
10599 0,
10600 opCode,
10601 cmdSeq,
10602 args
10603 );
10604 110 break;
10605 13 case 1:
10606 13 CdhCore::events.CmdDisp_handlerBase(
10607 0,
10608 opCode,
10609 cmdSeq,
10610 args
10611 );
10612 13 break;
10613 case 2:
10614 CdhCore::health.CmdDisp_handlerBase(
10615 0,
10616 opCode,
10617 cmdSeq,
10618 args
10619 );
10620 break;
10621 case 3:
10622 CdhCore::version.cmdIn_handlerBase(
10623 0,
10624 opCode,
10625 cmdSeq,
10626 args
10627 );
10628 break;
10629 case 4:
10630 ComCcsds::comQueue.CmdDisp_handlerBase(
10631 0,
10632 opCode,
10633 cmdSeq,
10634 args
10635 );
10636 break;
10637 case 5:
10638 DataProducts::dpBufferAccumulator.cmdIn_handlerBase(
10639 0,
10640 opCode,
10641 cmdSeq,
10642 args
10643 );
10644 break;
10645 case 6:
10646 DataProducts::dpCat.CmdDisp_handlerBase(
10647 0,
10648 opCode,
10649 cmdSeq,
10650 args
10651 );
10652 break;
10653 case 7:
10654 DataProducts::dpMgr.cmdIn_handlerBase(
10655 0,
10656 opCode,
10657 cmdSeq,
10658 args
10659 );
10660 break;
10661 case 8:
10662 DataProducts::dpWriter.cmdIn_handlerBase(
10663 0,
10664 opCode,
10665 cmdSeq,
10666 args
10667 );
10668 break;
10669 case 9:
10670 FileHandling::fileDownlink.cmdIn_handlerBase(
10671 0,
10672 opCode,
10673 cmdSeq,
10674 args
10675 );
10676 break;
10677 case 10:
10678 FileHandling::fileManager.cmdIn_handlerBase(
10679 0,
10680 opCode,
10681 cmdSeq,
10682 args
10683 );
10684 break;
10685 case 11:
10686 FileHandling::prmDb.CmdDisp_handlerBase(
10687 0,
10688 opCode,
10689 cmdSeq,
10690 args
10691 );
10692 break;
10693 case 12:
10694 Ref::SG1.cmdIn_handlerBase(
10695 0,
10696 opCode,
10697 cmdSeq,
10698 args
10699 );
10700 break;
10701 case 13:
10702 Ref::SG2.cmdIn_handlerBase(
10703 0,
10704 opCode,
10705 cmdSeq,
10706 args
10707 );
10708 break;
10709 case 14:
10710 Ref::SG3.cmdIn_handlerBase(
10711 0,
10712 opCode,
10713 cmdSeq,
10714 args
10715 );
10716 break;
10717 3 case 15:
10718 3 Ref::SG4.cmdIn_handlerBase(
10719 0,
10720 opCode,
10721 cmdSeq,
10722 args
10723 );
10724 3 break;
10725 case 16:
10726 Ref::SG5.cmdIn_handlerBase(
10727 0,
10728 opCode,
10729 cmdSeq,
10730 args
10731 );
10732 break;
10733 2 case 17:
10734 2 Ref::cmdSeq.cmdIn_handlerBase(
10735 0,
10736 opCode,
10737 cmdSeq,
10738 args
10739 );
10740 2 break;
10741 2 case 18:
10742 2 Ref::dpDemo.cmdIn_handlerBase(
10743 0,
10744 opCode,
10745 cmdSeq,
10746 args
10747 );
10748 2 break;
10749 case 19:
10750 Ref::pingRcvr.CmdDisp_handlerBase(
10751 0,
10752 opCode,
10753 cmdSeq,
10754 args
10755 );
10756 break;
10757 6 case 20:
10758 6 Ref::recvBuffComp.CmdDisp_handlerBase(
10759 0,
10760 opCode,
10761 cmdSeq,
10762 args
10763 );
10764 6 break;
10765 6 case 21:
10766 6 Ref::sendBuffComp.CmdDisp_handlerBase(
10767 0,
10768 opCode,
10769 cmdSeq,
10770 args
10771 );
10772 6 break;
10773 case 22:
10774 Ref::systemResources.CmdDisp_handlerBase(
10775 0,
10776 opCode,
10777 cmdSeq,
10778 args
10779 );
10780 break;
10781 3 case 23:
10782 3 Ref::typeDemo.cmdIn_handlerBase(
10783 0,
10784 opCode,
10785 cmdSeq,
10786 args
10787 );
10788 3 break;
10789 default:
10790 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10791 break;
10792 }
10793 145 }
10794
10795 59 void CommandDispatcherComponentBase::pingOut_out(
10796 FwIndexType portNum,
10797 U32 key
10798 ) const {
10799 59 FW_ASSERT(
10800 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
10801 static_cast<FwAssertArgType>(portNum),
10802 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
10803 );
10804
1/2
✓ Branch 0 taken 59 times.
✗ Branch 1 not taken.
59 switch (portNum) {
10805 59 case 0:
10806 59 CdhCore::health.PingReturn_handlerBase(
10807 0,
10808 key
10809 );
10810 59 break;
10811 default:
10812 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10813 break;
10814 }
10815 59 }
10816
10817 145 void CommandDispatcherComponentBase::seqCmdStatus_out(
10818 FwIndexType portNum,
10819 FwOpcodeType opCode,
10820 U32 cmdSeq,
10821 const Fw::CmdResponse& response
10822 ) const {
10823 145 FW_ASSERT(
10824 (0 <= portNum) && (portNum < NUM_SEQCMDSTATUS_OUTPUT_PORTS),
10825 static_cast<FwAssertArgType>(portNum),
10826 static_cast<FwAssertArgType>(NUM_SEQCMDSTATUS_OUTPUT_PORTS)
10827 );
10828
2/3
✓ Branch 0 taken 140 times.
✓ Branch 1 taken 5 times.
✗ Branch 2 not taken.
145 switch (portNum) {
10829 140 case 0:
10830 140 ComCcsds::fprimeRouter.cmdResponseIn_handlerBase(
10831 0,
10832 opCode,
10833 cmdSeq,
10834 response
10835 );
10836 140 break;
10837 5 case 1:
10838 5 Ref::cmdSeq.cmdResponseIn_handlerBase(
10839 0,
10840 opCode,
10841 cmdSeq,
10842 response
10843 );
10844 5 break;
10845 default:
10846 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
10847 break;
10848 }
10849 145 }
10850
10851 }
10852
10853 namespace Svc {
10854
10855 1 bool DpCatalogComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const {
10856 1 FW_ASSERT(
10857 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
10858 static_cast<FwAssertArgType>(portNum),
10859 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
10860 );
10861 1 bool result = false;
10862
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
10863 1 case 0:
10864 1 result = true;
10865 1 break;
10866 default:
10867 break;
10868 }
10869 1 return result;
10870 }
10871
10872 bool DpCatalogComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const {
10873 FW_ASSERT(
10874 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
10875 static_cast<FwAssertArgType>(portNum),
10876 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
10877 );
10878 bool result = false;
10879 switch (portNum) {
10880 case 0:
10881 result = true;
10882 break;
10883 default:
10884 break;
10885 }
10886 return result;
10887 }
10888
10889 2 bool DpCatalogComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
10890 2 FW_ASSERT(
10891 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
10892 static_cast<FwAssertArgType>(portNum),
10893 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
10894 );
10895 2 bool result = false;
10896
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
10897 2 case 0:
10898 2 result = true;
10899 2 break;
10900 default:
10901 break;
10902 }
10903 2 return result;
10904 }
10905
10906 #if FW_ENABLE_TEXT_LOGGING == 1
10907
10908 2 bool DpCatalogComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
10909 2 FW_ASSERT(
10910 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
10911 static_cast<FwAssertArgType>(portNum),
10912 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
10913 );
10914 2 bool result = false;
10915
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
10916 2 case 0:
10917 2 result = true;
10918 2 break;
10919 default:
10920 break;
10921 }
10922 2 return result;
10923 }
10924
10925 #endif
10926
10927 2 bool DpCatalogComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
10928 2 FW_ASSERT(
10929 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
10930 static_cast<FwAssertArgType>(portNum),
10931 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
10932 );
10933 2 bool result = false;
10934
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
10935 2 case 0:
10936 2 result = true;
10937 2 break;
10938 default:
10939 break;
10940 }
10941 2 return result;
10942 }
10943
10944 bool DpCatalogComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const {
10945 FW_ASSERT(
10946 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
10947 static_cast<FwAssertArgType>(portNum),
10948 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
10949 );
10950 bool result = false;
10951 switch (portNum) {
10952 case 0:
10953 result = true;
10954 break;
10955 default:
10956 break;
10957 }
10958 return result;
10959 }
10960
10961 bool DpCatalogComponentBase::isConnected_fileOut_OutputPort(FwIndexType portNum) const {
10962 FW_ASSERT(
10963 (0 <= portNum) && (portNum < NUM_FILEOUT_OUTPUT_PORTS),
10964 static_cast<FwAssertArgType>(portNum),
10965 static_cast<FwAssertArgType>(NUM_FILEOUT_OUTPUT_PORTS)
10966 );
10967 bool result = false;
10968 switch (portNum) {
10969 case 0:
10970 result = true;
10971 break;
10972 default:
10973 break;
10974 }
10975 return result;
10976 }
10977
10978 bool DpCatalogComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const {
10979 FW_ASSERT(
10980 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
10981 static_cast<FwAssertArgType>(portNum),
10982 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
10983 );
10984 bool result = false;
10985 switch (portNum) {
10986 case 0:
10987 result = true;
10988 break;
10989 default:
10990 break;
10991 }
10992 return result;
10993 }
10994
10995 4 void DpCatalogComponentBase::CmdReg_out(
10996 FwIndexType portNum,
10997 FwOpcodeType opCode
10998 ) const {
10999 4 FW_ASSERT(
11000 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
11001 static_cast<FwAssertArgType>(portNum),
11002 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
11003 );
11004
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
11005 4 case 0:
11006 4 CdhCore::cmdDisp.compCmdReg_handlerBase(
11007 6,
11008 opCode
11009 );
11010 4 break;
11011 default:
11012 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11013 break;
11014 }
11015 4 }
11016
11017 void DpCatalogComponentBase::CmdStatus_out(
11018 FwIndexType portNum,
11019 FwOpcodeType opCode,
11020 U32 cmdSeq,
11021 const Fw::CmdResponse& response
11022 ) const {
11023 FW_ASSERT(
11024 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
11025 static_cast<FwAssertArgType>(portNum),
11026 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
11027 );
11028 switch (portNum) {
11029 case 0:
11030 CdhCore::cmdDisp.compCmdStat_handlerBase(
11031 0,
11032 opCode,
11033 cmdSeq,
11034 response
11035 );
11036 break;
11037 default:
11038 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11039 break;
11040 }
11041 }
11042
11043 2 void DpCatalogComponentBase::Log_out(
11044 FwIndexType portNum,
11045 FwEventIdType id,
11046 Fw::Time& timeTag,
11047 const Fw::LogSeverity& severity,
11048 Fw::LogBuffer& args
11049 ) const {
11050 2 FW_ASSERT(
11051 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
11052 static_cast<FwAssertArgType>(portNum),
11053 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
11054 );
11055
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11056 2 case 0:
11057 2 CdhCore::events.LogRecv_handlerBase(
11058 0,
11059 id,
11060 timeTag,
11061 severity,
11062 args
11063 );
11064 2 break;
11065 default:
11066 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11067 break;
11068 }
11069 2 }
11070
11071 #if FW_ENABLE_TEXT_LOGGING == 1
11072
11073 2 void DpCatalogComponentBase::LogText_out(
11074 FwIndexType portNum,
11075 FwEventIdType id,
11076 Fw::Time& timeTag,
11077 const Fw::LogSeverity& severity,
11078 Fw::TextLogString& text
11079 ) const {
11080 2 FW_ASSERT(
11081 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
11082 static_cast<FwAssertArgType>(portNum),
11083 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
11084 );
11085
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11086 2 case 0:
11087 2 CdhCore::textLogger.TextLogger_handlerBase(
11088 0,
11089 id,
11090 timeTag,
11091 severity,
11092 text
11093 );
11094 2 break;
11095 default:
11096 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11097 break;
11098 }
11099 2 }
11100
11101 #endif
11102
11103 2 void DpCatalogComponentBase::Time_out(
11104 FwIndexType portNum,
11105 Fw::Time& time
11106 ) const {
11107 2 FW_ASSERT(
11108 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
11109 static_cast<FwAssertArgType>(portNum),
11110 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
11111 );
11112
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11113 2 case 0:
11114 2 Ref::posixTime.timeGetPort_handlerBase(
11115 0,
11116 time
11117 );
11118 2 break;
11119 default:
11120 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11121 break;
11122 }
11123 2 }
11124
11125 void DpCatalogComponentBase::Tlm_out(
11126 FwIndexType portNum,
11127 FwChanIdType id,
11128 Fw::Time& timeTag,
11129 Fw::TlmBuffer& val
11130 ) const {
11131 FW_ASSERT(
11132 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
11133 static_cast<FwAssertArgType>(portNum),
11134 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
11135 );
11136 switch (portNum) {
11137 case 0:
11138 CdhCore::tlmSend.TlmRecv_handlerBase(
11139 0,
11140 id,
11141 timeTag,
11142 val
11143 );
11144 break;
11145 default:
11146 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11147 break;
11148 }
11149 }
11150
11151 Svc::SendFileResponse DpCatalogComponentBase::fileOut_out(
11152 FwIndexType portNum,
11153 const Fw::StringBase& sourceFileName,
11154 const Fw::StringBase& destFileName,
11155 U32 offset,
11156 U32 length
11157 ) const {
11158 FW_ASSERT(
11159 (0 <= portNum) && (portNum < NUM_FILEOUT_OUTPUT_PORTS),
11160 static_cast<FwAssertArgType>(portNum),
11161 static_cast<FwAssertArgType>(NUM_FILEOUT_OUTPUT_PORTS)
11162 );
11163 Svc::SendFileResponse _result = {};
11164 switch (portNum) {
11165 case 0:
11166 _result = FileHandling::fileDownlink.SendFile_handlerBase(
11167 0,
11168 sourceFileName,
11169 destFileName,
11170 offset,
11171 length
11172 );
11173 break;
11174 default:
11175 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11176 break;
11177 }
11178 return _result;
11179 }
11180
11181 59 void DpCatalogComponentBase::pingOut_out(
11182 FwIndexType portNum,
11183 U32 key
11184 ) const {
11185 59 FW_ASSERT(
11186 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
11187 static_cast<FwAssertArgType>(portNum),
11188 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
11189 );
11190
1/2
✓ Branch 0 taken 59 times.
✗ Branch 1 not taken.
59 switch (portNum) {
11191 59 case 0:
11192 59 CdhCore::health.PingReturn_handlerBase(
11193 4,
11194 key
11195 );
11196 59 break;
11197 default:
11198 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11199 break;
11200 }
11201 59 }
11202
11203 }
11204
11205 namespace Svc {
11206
11207 bool DpManagerComponentBase::isConnected_bufferGetOut_OutputPort(FwIndexType portNum) const {
11208 FW_ASSERT(
11209 (0 <= portNum) && (portNum < NUM_BUFFERGETOUT_OUTPUT_PORTS),
11210 static_cast<FwAssertArgType>(portNum),
11211 static_cast<FwAssertArgType>(NUM_BUFFERGETOUT_OUTPUT_PORTS)
11212 );
11213 bool result = false;
11214 switch (portNum) {
11215 case 0:
11216 result = true;
11217 break;
11218 default:
11219 break;
11220 }
11221 return result;
11222 }
11223
11224 1 bool DpManagerComponentBase::isConnected_cmdRegIn_OutputPort(FwIndexType portNum) const {
11225 1 FW_ASSERT(
11226 (0 <= portNum) && (portNum < NUM_CMDREGIN_OUTPUT_PORTS),
11227 static_cast<FwAssertArgType>(portNum),
11228 static_cast<FwAssertArgType>(NUM_CMDREGIN_OUTPUT_PORTS)
11229 );
11230 1 bool result = false;
11231
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
11232 1 case 0:
11233 1 result = true;
11234 1 break;
11235 default:
11236 break;
11237 }
11238 1 return result;
11239 }
11240
11241 bool DpManagerComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const {
11242 FW_ASSERT(
11243 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
11244 static_cast<FwAssertArgType>(portNum),
11245 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
11246 );
11247 bool result = false;
11248 switch (portNum) {
11249 case 0:
11250 result = true;
11251 break;
11252 default:
11253 break;
11254 }
11255 return result;
11256 }
11257
11258 bool DpManagerComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const {
11259 FW_ASSERT(
11260 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
11261 static_cast<FwAssertArgType>(portNum),
11262 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
11263 );
11264 bool result = false;
11265 switch (portNum) {
11266 case 0:
11267 result = true;
11268 break;
11269 default:
11270 break;
11271 }
11272 return result;
11273 }
11274
11275 bool DpManagerComponentBase::isConnected_productResponseOut_OutputPort(FwIndexType portNum) const {
11276 FW_ASSERT(
11277 (0 <= portNum) && (portNum < NUM_PRODUCTRESPONSEOUT_OUTPUT_PORTS),
11278 static_cast<FwAssertArgType>(portNum),
11279 static_cast<FwAssertArgType>(NUM_PRODUCTRESPONSEOUT_OUTPUT_PORTS)
11280 );
11281 bool result = false;
11282 switch (portNum) {
11283 case 0:
11284 result = true;
11285 break;
11286 case 1:
11287 result = true;
11288 break;
11289 default:
11290 break;
11291 }
11292 return result;
11293 }
11294
11295 bool DpManagerComponentBase::isConnected_productSendOut_OutputPort(FwIndexType portNum) const {
11296 FW_ASSERT(
11297 (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS),
11298 static_cast<FwAssertArgType>(portNum),
11299 static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS)
11300 );
11301 bool result = false;
11302 switch (portNum) {
11303 case 0:
11304 result = true;
11305 break;
11306 default:
11307 break;
11308 }
11309 return result;
11310 }
11311
11312 #if FW_ENABLE_TEXT_LOGGING == 1
11313
11314 bool DpManagerComponentBase::isConnected_textEventOut_OutputPort(FwIndexType portNum) const {
11315 FW_ASSERT(
11316 (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS),
11317 static_cast<FwAssertArgType>(portNum),
11318 static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS)
11319 );
11320 bool result = false;
11321 switch (portNum) {
11322 case 0:
11323 result = true;
11324 break;
11325 default:
11326 break;
11327 }
11328 return result;
11329 }
11330
11331 #endif
11332
11333 7 bool DpManagerComponentBase::isConnected_timeGetOut_OutputPort(FwIndexType portNum) const {
11334 7 FW_ASSERT(
11335 (0 <= portNum) && (portNum < NUM_TIMEGETOUT_OUTPUT_PORTS),
11336 static_cast<FwAssertArgType>(portNum),
11337 static_cast<FwAssertArgType>(NUM_TIMEGETOUT_OUTPUT_PORTS)
11338 );
11339 7 bool result = false;
11340
1/2
✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
7 switch (portNum) {
11341 7 case 0:
11342 7 result = true;
11343 7 break;
11344 default:
11345 break;
11346 }
11347 7 return result;
11348 }
11349
11350 14 bool DpManagerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
11351 14 FW_ASSERT(
11352 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
11353 static_cast<FwAssertArgType>(portNum),
11354 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
11355 );
11356 14 bool result = false;
11357
1/2
✓ Branch 0 taken 14 times.
✗ Branch 1 not taken.
14 switch (portNum) {
11358 14 case 0:
11359 14 result = true;
11360 14 break;
11361 default:
11362 break;
11363 }
11364 14 return result;
11365 }
11366
11367 2 Fw::Buffer DpManagerComponentBase::bufferGetOut_out(
11368 FwIndexType portNum,
11369 FwSizeType size
11370 ) const {
11371 2 FW_ASSERT(
11372 (0 <= portNum) && (portNum < NUM_BUFFERGETOUT_OUTPUT_PORTS),
11373 static_cast<FwAssertArgType>(portNum),
11374 static_cast<FwAssertArgType>(NUM_BUFFERGETOUT_OUTPUT_PORTS)
11375 );
11376 2 Fw::Buffer _result = {};
11377
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11378 2 case 0:
11379
1/1
✓ Branch 1 taken 2 times.
4 _result = DataProducts::dpBufferManager.bufferGetCallee_handlerBase(
11380 0,
11381 size
11382
1/1
✓ Branch 1 taken 2 times.
2 );
11383 2 break;
11384 default:
11385 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11386 break;
11387 }
11388 2 return _result;
11389 }
11390
11391 1 void DpManagerComponentBase::cmdRegIn_out(
11392 FwIndexType portNum,
11393 FwOpcodeType opCode
11394 ) const {
11395 1 FW_ASSERT(
11396 (0 <= portNum) && (portNum < NUM_CMDREGIN_OUTPUT_PORTS),
11397 static_cast<FwAssertArgType>(portNum),
11398 static_cast<FwAssertArgType>(NUM_CMDREGIN_OUTPUT_PORTS)
11399 );
11400
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
11401 1 case 0:
11402 1 CdhCore::cmdDisp.compCmdReg_handlerBase(
11403 7,
11404 opCode
11405 );
11406 1 break;
11407 default:
11408 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11409 break;
11410 }
11411 1 }
11412
11413 void DpManagerComponentBase::cmdResponseOut_out(
11414 FwIndexType portNum,
11415 FwOpcodeType opCode,
11416 U32 cmdSeq,
11417 const Fw::CmdResponse& response
11418 ) const {
11419 FW_ASSERT(
11420 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
11421 static_cast<FwAssertArgType>(portNum),
11422 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
11423 );
11424 switch (portNum) {
11425 case 0:
11426 CdhCore::cmdDisp.compCmdStat_handlerBase(
11427 0,
11428 opCode,
11429 cmdSeq,
11430 response
11431 );
11432 break;
11433 default:
11434 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11435 break;
11436 }
11437 }
11438
11439 void DpManagerComponentBase::eventOut_out(
11440 FwIndexType portNum,
11441 FwEventIdType id,
11442 Fw::Time& timeTag,
11443 const Fw::LogSeverity& severity,
11444 Fw::LogBuffer& args
11445 ) const {
11446 FW_ASSERT(
11447 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
11448 static_cast<FwAssertArgType>(portNum),
11449 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
11450 );
11451 switch (portNum) {
11452 case 0:
11453 CdhCore::events.LogRecv_handlerBase(
11454 0,
11455 id,
11456 timeTag,
11457 severity,
11458 args
11459 );
11460 break;
11461 default:
11462 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11463 break;
11464 }
11465 }
11466
11467 void DpManagerComponentBase::productResponseOut_out(
11468 FwIndexType portNum,
11469 FwDpIdType id,
11470 const Fw::Buffer& buffer,
11471 const Fw::Success& status
11472 ) const {
11473 FW_ASSERT(
11474 (0 <= portNum) && (portNum < NUM_PRODUCTRESPONSEOUT_OUTPUT_PORTS),
11475 static_cast<FwAssertArgType>(portNum),
11476 static_cast<FwAssertArgType>(NUM_PRODUCTRESPONSEOUT_OUTPUT_PORTS)
11477 );
11478 switch (portNum) {
11479 case 0:
11480 Ref::SG1.productRecvIn_handlerBase(
11481 0,
11482 id,
11483 buffer,
11484 status
11485 );
11486 break;
11487 case 1:
11488 Ref::dpDemo.productRecvIn_handlerBase(
11489 0,
11490 id,
11491 buffer,
11492 status
11493 );
11494 break;
11495 default:
11496 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11497 break;
11498 }
11499 }
11500
11501 2 void DpManagerComponentBase::productSendOut_out(
11502 FwIndexType portNum,
11503 Fw::Buffer& fwBuffer
11504 ) const {
11505 2 FW_ASSERT(
11506 (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS),
11507 static_cast<FwAssertArgType>(portNum),
11508 static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS)
11509 );
11510
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11511 2 case 0:
11512 2 DataProducts::dpBufferAccumulator.bufferSendInFill_handlerBase(
11513 0,
11514 fwBuffer
11515 );
11516 2 break;
11517 default:
11518 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11519 break;
11520 }
11521 2 }
11522
11523 #if FW_ENABLE_TEXT_LOGGING == 1
11524
11525 void DpManagerComponentBase::textEventOut_out(
11526 FwIndexType portNum,
11527 FwEventIdType id,
11528 Fw::Time& timeTag,
11529 const Fw::LogSeverity& severity,
11530 Fw::TextLogString& text
11531 ) const {
11532 FW_ASSERT(
11533 (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS),
11534 static_cast<FwAssertArgType>(portNum),
11535 static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS)
11536 );
11537 switch (portNum) {
11538 case 0:
11539 CdhCore::textLogger.TextLogger_handlerBase(
11540 0,
11541 id,
11542 timeTag,
11543 severity,
11544 text
11545 );
11546 break;
11547 default:
11548 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11549 break;
11550 }
11551 }
11552
11553 #endif
11554
11555 7 void DpManagerComponentBase::timeGetOut_out(
11556 FwIndexType portNum,
11557 Fw::Time& time
11558 ) const {
11559 7 FW_ASSERT(
11560 (0 <= portNum) && (portNum < NUM_TIMEGETOUT_OUTPUT_PORTS),
11561 static_cast<FwAssertArgType>(portNum),
11562 static_cast<FwAssertArgType>(NUM_TIMEGETOUT_OUTPUT_PORTS)
11563 );
11564
1/2
✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
7 switch (portNum) {
11565 7 case 0:
11566 7 Ref::posixTime.timeGetPort_handlerBase(
11567 0,
11568 time
11569 );
11570 7 break;
11571 default:
11572 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11573 break;
11574 }
11575 7 }
11576
11577 7 void DpManagerComponentBase::tlmOut_out(
11578 FwIndexType portNum,
11579 FwChanIdType id,
11580 Fw::Time& timeTag,
11581 Fw::TlmBuffer& val
11582 ) const {
11583 7 FW_ASSERT(
11584 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
11585 static_cast<FwAssertArgType>(portNum),
11586 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
11587 );
11588
1/2
✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
7 switch (portNum) {
11589 7 case 0:
11590 7 CdhCore::tlmSend.TlmRecv_handlerBase(
11591 0,
11592 id,
11593 timeTag,
11594 val
11595 );
11596 7 break;
11597 default:
11598 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11599 break;
11600 }
11601 7 }
11602
11603 }
11604
11605 namespace Svc {
11606
11607 1 bool DpWriterComponentBase::isConnected_cmdRegIn_OutputPort(FwIndexType portNum) const {
11608 1 FW_ASSERT(
11609 (0 <= portNum) && (portNum < NUM_CMDREGIN_OUTPUT_PORTS),
11610 static_cast<FwAssertArgType>(portNum),
11611 static_cast<FwAssertArgType>(NUM_CMDREGIN_OUTPUT_PORTS)
11612 );
11613 1 bool result = false;
11614
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
11615 1 case 0:
11616 1 result = true;
11617 1 break;
11618 default:
11619 break;
11620 }
11621 1 return result;
11622 }
11623
11624 bool DpWriterComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const {
11625 FW_ASSERT(
11626 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
11627 static_cast<FwAssertArgType>(portNum),
11628 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
11629 );
11630 bool result = false;
11631 switch (portNum) {
11632 case 0:
11633 result = true;
11634 break;
11635 default:
11636 break;
11637 }
11638 return result;
11639 }
11640
11641 bool DpWriterComponentBase::isConnected_deallocBufferSendOut_OutputPort(FwIndexType portNum) const {
11642 FW_ASSERT(
11643 (0 <= portNum) && (portNum < NUM_DEALLOCBUFFERSENDOUT_OUTPUT_PORTS),
11644 static_cast<FwAssertArgType>(portNum),
11645 static_cast<FwAssertArgType>(NUM_DEALLOCBUFFERSENDOUT_OUTPUT_PORTS)
11646 );
11647 bool result = false;
11648 switch (portNum) {
11649 case 0:
11650 result = true;
11651 break;
11652 default:
11653 break;
11654 }
11655 return result;
11656 }
11657
11658 2 bool DpWriterComponentBase::isConnected_dpWrittenOut_OutputPort(FwIndexType portNum) const {
11659 2 FW_ASSERT(
11660 (0 <= portNum) && (portNum < NUM_DPWRITTENOUT_OUTPUT_PORTS),
11661 static_cast<FwAssertArgType>(portNum),
11662 static_cast<FwAssertArgType>(NUM_DPWRITTENOUT_OUTPUT_PORTS)
11663 );
11664 2 bool result = false;
11665
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11666 2 case 0:
11667 2 result = true;
11668 2 break;
11669 default:
11670 break;
11671 }
11672 2 return result;
11673 }
11674
11675 2 bool DpWriterComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const {
11676 2 FW_ASSERT(
11677 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
11678 static_cast<FwAssertArgType>(portNum),
11679 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
11680 );
11681 2 bool result = false;
11682
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11683 2 case 0:
11684 2 result = true;
11685 2 break;
11686 default:
11687 break;
11688 }
11689 2 return result;
11690 }
11691
11692 bool DpWriterComponentBase::isConnected_procBufferSendOut_OutputPort(FwIndexType portNum) const {
11693 FW_ASSERT(
11694 (0 <= portNum) && (portNum < NUM_PROCBUFFERSENDOUT_OUTPUT_PORTS),
11695 static_cast<FwAssertArgType>(portNum),
11696 static_cast<FwAssertArgType>(NUM_PROCBUFFERSENDOUT_OUTPUT_PORTS)
11697 );
11698 bool result = false;
11699 switch (portNum) {
11700 default:
11701 break;
11702 }
11703 return result;
11704 }
11705
11706 #if FW_ENABLE_TEXT_LOGGING == 1
11707
11708 2 bool DpWriterComponentBase::isConnected_textEventOut_OutputPort(FwIndexType portNum) const {
11709 2 FW_ASSERT(
11710 (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS),
11711 static_cast<FwAssertArgType>(portNum),
11712 static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS)
11713 );
11714 2 bool result = false;
11715
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11716 2 case 0:
11717 2 result = true;
11718 2 break;
11719 default:
11720 break;
11721 }
11722 2 return result;
11723 }
11724
11725 #endif
11726
11727 13 bool DpWriterComponentBase::isConnected_timeGetOut_OutputPort(FwIndexType portNum) const {
11728 13 FW_ASSERT(
11729 (0 <= portNum) && (portNum < NUM_TIMEGETOUT_OUTPUT_PORTS),
11730 static_cast<FwAssertArgType>(portNum),
11731 static_cast<FwAssertArgType>(NUM_TIMEGETOUT_OUTPUT_PORTS)
11732 );
11733 13 bool result = false;
11734
1/2
✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
13 switch (portNum) {
11735 13 case 0:
11736 13 result = true;
11737 13 break;
11738 default:
11739 break;
11740 }
11741 13 return result;
11742 }
11743
11744 22 bool DpWriterComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
11745 22 FW_ASSERT(
11746 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
11747 static_cast<FwAssertArgType>(portNum),
11748 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
11749 );
11750 22 bool result = false;
11751
1/2
✓ Branch 0 taken 22 times.
✗ Branch 1 not taken.
22 switch (portNum) {
11752 22 case 0:
11753 22 result = true;
11754 22 break;
11755 default:
11756 break;
11757 }
11758 22 return result;
11759 }
11760
11761 1 void DpWriterComponentBase::cmdRegIn_out(
11762 FwIndexType portNum,
11763 FwOpcodeType opCode
11764 ) const {
11765 1 FW_ASSERT(
11766 (0 <= portNum) && (portNum < NUM_CMDREGIN_OUTPUT_PORTS),
11767 static_cast<FwAssertArgType>(portNum),
11768 static_cast<FwAssertArgType>(NUM_CMDREGIN_OUTPUT_PORTS)
11769 );
11770
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
11771 1 case 0:
11772 1 CdhCore::cmdDisp.compCmdReg_handlerBase(
11773 8,
11774 opCode
11775 );
11776 1 break;
11777 default:
11778 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11779 break;
11780 }
11781 1 }
11782
11783 void DpWriterComponentBase::cmdResponseOut_out(
11784 FwIndexType portNum,
11785 FwOpcodeType opCode,
11786 U32 cmdSeq,
11787 const Fw::CmdResponse& response
11788 ) const {
11789 FW_ASSERT(
11790 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
11791 static_cast<FwAssertArgType>(portNum),
11792 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
11793 );
11794 switch (portNum) {
11795 case 0:
11796 CdhCore::cmdDisp.compCmdStat_handlerBase(
11797 0,
11798 opCode,
11799 cmdSeq,
11800 response
11801 );
11802 break;
11803 default:
11804 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11805 break;
11806 }
11807 }
11808
11809 2 void DpWriterComponentBase::deallocBufferSendOut_out(
11810 FwIndexType portNum,
11811 Fw::Buffer& fwBuffer
11812 ) const {
11813 2 FW_ASSERT(
11814 (0 <= portNum) && (portNum < NUM_DEALLOCBUFFERSENDOUT_OUTPUT_PORTS),
11815 static_cast<FwAssertArgType>(portNum),
11816 static_cast<FwAssertArgType>(NUM_DEALLOCBUFFERSENDOUT_OUTPUT_PORTS)
11817 );
11818
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11819 2 case 0:
11820 2 DataProducts::dpBufferAccumulator.bufferSendInReturn_handlerBase(
11821 0,
11822 fwBuffer
11823 );
11824 2 break;
11825 default:
11826 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11827 break;
11828 }
11829 2 }
11830
11831 2 void DpWriterComponentBase::dpWrittenOut_out(
11832 FwIndexType portNum,
11833 const Fw::StringBase& fileName,
11834 FwDpPriorityType priority,
11835 FwSizeType size
11836 ) const {
11837 2 FW_ASSERT(
11838 (0 <= portNum) && (portNum < NUM_DPWRITTENOUT_OUTPUT_PORTS),
11839 static_cast<FwAssertArgType>(portNum),
11840 static_cast<FwAssertArgType>(NUM_DPWRITTENOUT_OUTPUT_PORTS)
11841 );
11842
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11843 2 case 0:
11844 2 DataProducts::dpCat.addToCat_handlerBase(
11845 0,
11846 fileName,
11847 priority,
11848 size
11849 );
11850 2 break;
11851 default:
11852 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11853 break;
11854 }
11855 2 }
11856
11857 2 void DpWriterComponentBase::eventOut_out(
11858 FwIndexType portNum,
11859 FwEventIdType id,
11860 Fw::Time& timeTag,
11861 const Fw::LogSeverity& severity,
11862 Fw::LogBuffer& args
11863 ) const {
11864 2 FW_ASSERT(
11865 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
11866 static_cast<FwAssertArgType>(portNum),
11867 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
11868 );
11869
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11870 2 case 0:
11871 2 CdhCore::events.LogRecv_handlerBase(
11872 0,
11873 id,
11874 timeTag,
11875 severity,
11876 args
11877 );
11878 2 break;
11879 default:
11880 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11881 break;
11882 }
11883 2 }
11884
11885 void DpWriterComponentBase::procBufferSendOut_out(
11886 FwIndexType portNum,
11887 Fw::Buffer& fwBuffer
11888 ) const {
11889 FW_ASSERT(
11890 (0 <= portNum) && (portNum < NUM_PROCBUFFERSENDOUT_OUTPUT_PORTS),
11891 static_cast<FwAssertArgType>(portNum),
11892 static_cast<FwAssertArgType>(NUM_PROCBUFFERSENDOUT_OUTPUT_PORTS)
11893 );
11894 switch (portNum) {
11895 default:
11896 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11897 break;
11898 }
11899 }
11900
11901 #if FW_ENABLE_TEXT_LOGGING == 1
11902
11903 2 void DpWriterComponentBase::textEventOut_out(
11904 FwIndexType portNum,
11905 FwEventIdType id,
11906 Fw::Time& timeTag,
11907 const Fw::LogSeverity& severity,
11908 Fw::TextLogString& text
11909 ) const {
11910 2 FW_ASSERT(
11911 (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS),
11912 static_cast<FwAssertArgType>(portNum),
11913 static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS)
11914 );
11915
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
11916 2 case 0:
11917 2 CdhCore::textLogger.TextLogger_handlerBase(
11918 0,
11919 id,
11920 timeTag,
11921 severity,
11922 text
11923 );
11924 2 break;
11925 default:
11926 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11927 break;
11928 }
11929 2 }
11930
11931 #endif
11932
11933 13 void DpWriterComponentBase::timeGetOut_out(
11934 FwIndexType portNum,
11935 Fw::Time& time
11936 ) const {
11937 13 FW_ASSERT(
11938 (0 <= portNum) && (portNum < NUM_TIMEGETOUT_OUTPUT_PORTS),
11939 static_cast<FwAssertArgType>(portNum),
11940 static_cast<FwAssertArgType>(NUM_TIMEGETOUT_OUTPUT_PORTS)
11941 );
11942
1/2
✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
13 switch (portNum) {
11943 13 case 0:
11944 13 Ref::posixTime.timeGetPort_handlerBase(
11945 0,
11946 time
11947 );
11948 13 break;
11949 default:
11950 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11951 break;
11952 }
11953 13 }
11954
11955 11 void DpWriterComponentBase::tlmOut_out(
11956 FwIndexType portNum,
11957 FwChanIdType id,
11958 Fw::Time& timeTag,
11959 Fw::TlmBuffer& val
11960 ) const {
11961 11 FW_ASSERT(
11962 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
11963 static_cast<FwAssertArgType>(portNum),
11964 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
11965 );
11966
1/2
✓ Branch 0 taken 11 times.
✗ Branch 1 not taken.
11 switch (portNum) {
11967 11 case 0:
11968 11 CdhCore::tlmSend.TlmRecv_handlerBase(
11969 0,
11970 id,
11971 timeTag,
11972 val
11973 );
11974 11 break;
11975 default:
11976 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
11977 break;
11978 }
11979 11 }
11980
11981 }
11982
11983 namespace Svc {
11984
11985 1 bool EventManagerComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const {
11986 1 FW_ASSERT(
11987 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
11988 static_cast<FwAssertArgType>(portNum),
11989 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
11990 );
11991 1 bool result = false;
11992
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
11993 1 case 0:
11994 1 result = true;
11995 1 break;
11996 default:
11997 break;
11998 }
11999 1 return result;
12000 }
12001
12002 13 bool EventManagerComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const {
12003 13 FW_ASSERT(
12004 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
12005 static_cast<FwAssertArgType>(portNum),
12006 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
12007 );
12008 13 bool result = false;
12009
1/2
✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
13 switch (portNum) {
12010 13 case 0:
12011 13 result = true;
12012 13 break;
12013 default:
12014 break;
12015 }
12016 13 return result;
12017 }
12018
12019 bool EventManagerComponentBase::isConnected_FatalAnnounce_OutputPort(FwIndexType portNum) const {
12020 FW_ASSERT(
12021 (0 <= portNum) && (portNum < NUM_FATALANNOUNCE_OUTPUT_PORTS),
12022 static_cast<FwAssertArgType>(portNum),
12023 static_cast<FwAssertArgType>(NUM_FATALANNOUNCE_OUTPUT_PORTS)
12024 );
12025 bool result = false;
12026 switch (portNum) {
12027 case 0:
12028 result = true;
12029 break;
12030 default:
12031 break;
12032 }
12033 return result;
12034 }
12035
12036 bool EventManagerComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
12037 FW_ASSERT(
12038 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
12039 static_cast<FwAssertArgType>(portNum),
12040 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
12041 );
12042 bool result = false;
12043 switch (portNum) {
12044 case 0:
12045 result = true;
12046 break;
12047 default:
12048 break;
12049 }
12050 return result;
12051 }
12052
12053 #if FW_ENABLE_TEXT_LOGGING == 1
12054
12055 bool EventManagerComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
12056 FW_ASSERT(
12057 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
12058 static_cast<FwAssertArgType>(portNum),
12059 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
12060 );
12061 bool result = false;
12062 switch (portNum) {
12063 case 0:
12064 result = true;
12065 break;
12066 default:
12067 break;
12068 }
12069 return result;
12070 }
12071
12072 #endif
12073
12074 442 bool EventManagerComponentBase::isConnected_PktSend_OutputPort(FwIndexType portNum) const {
12075 442 FW_ASSERT(
12076 (0 <= portNum) && (portNum < NUM_PKTSEND_OUTPUT_PORTS),
12077 static_cast<FwAssertArgType>(portNum),
12078 static_cast<FwAssertArgType>(NUM_PKTSEND_OUTPUT_PORTS)
12079 );
12080 442 bool result = false;
12081
1/2
✓ Branch 0 taken 442 times.
✗ Branch 1 not taken.
442 switch (portNum) {
12082 442 case 0:
12083 442 result = true;
12084 442 break;
12085 default:
12086 break;
12087 }
12088 442 return result;
12089 }
12090
12091 1 bool EventManagerComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
12092 1 FW_ASSERT(
12093 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
12094 static_cast<FwAssertArgType>(portNum),
12095 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
12096 );
12097 1 bool result = false;
12098
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
12099 1 case 0:
12100 1 result = true;
12101 1 break;
12102 default:
12103 break;
12104 }
12105 1 return result;
12106 }
12107
12108 2 bool EventManagerComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const {
12109 2 FW_ASSERT(
12110 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
12111 static_cast<FwAssertArgType>(portNum),
12112 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
12113 );
12114 2 bool result = false;
12115
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
12116 2 case 0:
12117 2 result = true;
12118 2 break;
12119 default:
12120 break;
12121 }
12122 2 return result;
12123 }
12124
12125 bool EventManagerComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const {
12126 FW_ASSERT(
12127 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
12128 static_cast<FwAssertArgType>(portNum),
12129 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
12130 );
12131 bool result = false;
12132 switch (portNum) {
12133 case 0:
12134 result = true;
12135 break;
12136 default:
12137 break;
12138 }
12139 return result;
12140 }
12141
12142 3 void EventManagerComponentBase::CmdReg_out(
12143 FwIndexType portNum,
12144 FwOpcodeType opCode
12145 ) const {
12146 3 FW_ASSERT(
12147 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
12148 static_cast<FwAssertArgType>(portNum),
12149 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
12150 );
12151
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
12152 3 case 0:
12153 3 CdhCore::cmdDisp.compCmdReg_handlerBase(
12154 1,
12155 opCode
12156 );
12157 3 break;
12158 default:
12159 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12160 break;
12161 }
12162 3 }
12163
12164 13 void EventManagerComponentBase::CmdStatus_out(
12165 FwIndexType portNum,
12166 FwOpcodeType opCode,
12167 U32 cmdSeq,
12168 const Fw::CmdResponse& response
12169 ) const {
12170 13 FW_ASSERT(
12171 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
12172 static_cast<FwAssertArgType>(portNum),
12173 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
12174 );
12175
1/2
✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
13 switch (portNum) {
12176 13 case 0:
12177 13 CdhCore::cmdDisp.compCmdStat_handlerBase(
12178 0,
12179 opCode,
12180 cmdSeq,
12181 response
12182 );
12183 13 break;
12184 default:
12185 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12186 break;
12187 }
12188 13 }
12189
12190 void EventManagerComponentBase::FatalAnnounce_out(
12191 FwIndexType portNum,
12192 FwEventIdType Id
12193 ) const {
12194 FW_ASSERT(
12195 (0 <= portNum) && (portNum < NUM_FATALANNOUNCE_OUTPUT_PORTS),
12196 static_cast<FwAssertArgType>(portNum),
12197 static_cast<FwAssertArgType>(NUM_FATALANNOUNCE_OUTPUT_PORTS)
12198 );
12199 switch (portNum) {
12200 case 0:
12201 CdhCore::fatalHandler.FatalReceive_handlerBase(
12202 0,
12203 Id
12204 );
12205 break;
12206 default:
12207 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12208 break;
12209 }
12210 }
12211
12212 void EventManagerComponentBase::Log_out(
12213 FwIndexType portNum,
12214 FwEventIdType id,
12215 Fw::Time& timeTag,
12216 const Fw::LogSeverity& severity,
12217 Fw::LogBuffer& args
12218 ) const {
12219 FW_ASSERT(
12220 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
12221 static_cast<FwAssertArgType>(portNum),
12222 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
12223 );
12224 switch (portNum) {
12225 case 0:
12226 CdhCore::events.LogRecv_handlerBase(
12227 0,
12228 id,
12229 timeTag,
12230 severity,
12231 args
12232 );
12233 break;
12234 default:
12235 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12236 break;
12237 }
12238 }
12239
12240 #if FW_ENABLE_TEXT_LOGGING == 1
12241
12242 void EventManagerComponentBase::LogText_out(
12243 FwIndexType portNum,
12244 FwEventIdType id,
12245 Fw::Time& timeTag,
12246 const Fw::LogSeverity& severity,
12247 Fw::TextLogString& text
12248 ) const {
12249 FW_ASSERT(
12250 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
12251 static_cast<FwAssertArgType>(portNum),
12252 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
12253 );
12254 switch (portNum) {
12255 case 0:
12256 CdhCore::textLogger.TextLogger_handlerBase(
12257 0,
12258 id,
12259 timeTag,
12260 severity,
12261 text
12262 );
12263 break;
12264 default:
12265 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12266 break;
12267 }
12268 }
12269
12270 #endif
12271
12272 442 void EventManagerComponentBase::PktSend_out(
12273 FwIndexType portNum,
12274 Fw::ComBuffer& data,
12275 U32 context
12276 ) const {
12277 442 FW_ASSERT(
12278 (0 <= portNum) && (portNum < NUM_PKTSEND_OUTPUT_PORTS),
12279 static_cast<FwAssertArgType>(portNum),
12280 static_cast<FwAssertArgType>(NUM_PKTSEND_OUTPUT_PORTS)
12281 );
12282
1/2
✓ Branch 0 taken 442 times.
✗ Branch 1 not taken.
442 switch (portNum) {
12283 442 case 0:
12284 442 ComCcsds::comQueue.comPacketQueueIn_handlerBase(
12285 0,
12286 data,
12287 context
12288 );
12289 442 break;
12290 default:
12291 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12292 break;
12293 }
12294 442 }
12295
12296 1 void EventManagerComponentBase::Time_out(
12297 FwIndexType portNum,
12298 Fw::Time& time
12299 ) const {
12300 1 FW_ASSERT(
12301 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
12302 static_cast<FwAssertArgType>(portNum),
12303 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
12304 );
12305
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
12306 1 case 0:
12307 1 Ref::posixTime.timeGetPort_handlerBase(
12308 0,
12309 time
12310 );
12311 1 break;
12312 default:
12313 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12314 break;
12315 }
12316 1 }
12317
12318 1 void EventManagerComponentBase::Tlm_out(
12319 FwIndexType portNum,
12320 FwChanIdType id,
12321 Fw::Time& timeTag,
12322 Fw::TlmBuffer& val
12323 ) const {
12324 1 FW_ASSERT(
12325 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
12326 static_cast<FwAssertArgType>(portNum),
12327 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
12328 );
12329
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
12330 1 case 0:
12331 1 CdhCore::tlmSend.TlmRecv_handlerBase(
12332 0,
12333 id,
12334 timeTag,
12335 val
12336 );
12337 1 break;
12338 default:
12339 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12340 break;
12341 }
12342 1 }
12343
12344 59 void EventManagerComponentBase::pingOut_out(
12345 FwIndexType portNum,
12346 U32 key
12347 ) const {
12348 59 FW_ASSERT(
12349 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
12350 static_cast<FwAssertArgType>(portNum),
12351 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
12352 );
12353
1/2
✓ Branch 0 taken 59 times.
✗ Branch 1 not taken.
59 switch (portNum) {
12354 59 case 0:
12355 59 CdhCore::health.PingReturn_handlerBase(
12356 1,
12357 key
12358 );
12359 59 break;
12360 default:
12361 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12362 break;
12363 }
12364 59 }
12365
12366 }
12367
12368 namespace Svc {
12369
12370 bool FileDownlinkComponentBase::isConnected_FileComplete_OutputPort(FwIndexType portNum) const {
12371 FW_ASSERT(
12372 (0 <= portNum) && (portNum < NUM_FILECOMPLETE_OUTPUT_PORTS),
12373 static_cast<FwAssertArgType>(portNum),
12374 static_cast<FwAssertArgType>(NUM_FILECOMPLETE_OUTPUT_PORTS)
12375 );
12376 bool result = false;
12377 switch (portNum) {
12378 case 0:
12379 result = true;
12380 break;
12381 default:
12382 break;
12383 }
12384 return result;
12385 }
12386
12387 bool FileDownlinkComponentBase::isConnected_bufferSendOut_OutputPort(FwIndexType portNum) const {
12388 FW_ASSERT(
12389 (0 <= portNum) && (portNum < NUM_BUFFERSENDOUT_OUTPUT_PORTS),
12390 static_cast<FwAssertArgType>(portNum),
12391 static_cast<FwAssertArgType>(NUM_BUFFERSENDOUT_OUTPUT_PORTS)
12392 );
12393 bool result = false;
12394 switch (portNum) {
12395 case 0:
12396 result = true;
12397 break;
12398 default:
12399 break;
12400 }
12401 return result;
12402 }
12403
12404 1 bool FileDownlinkComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const {
12405 1 FW_ASSERT(
12406 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
12407 static_cast<FwAssertArgType>(portNum),
12408 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
12409 );
12410 1 bool result = false;
12411
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
12412 1 case 0:
12413 1 result = true;
12414 1 break;
12415 default:
12416 break;
12417 }
12418 1 return result;
12419 }
12420
12421 bool FileDownlinkComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const {
12422 FW_ASSERT(
12423 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
12424 static_cast<FwAssertArgType>(portNum),
12425 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
12426 );
12427 bool result = false;
12428 switch (portNum) {
12429 case 0:
12430 result = true;
12431 break;
12432 default:
12433 break;
12434 }
12435 return result;
12436 }
12437
12438 bool FileDownlinkComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const {
12439 FW_ASSERT(
12440 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
12441 static_cast<FwAssertArgType>(portNum),
12442 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
12443 );
12444 bool result = false;
12445 switch (portNum) {
12446 case 0:
12447 result = true;
12448 break;
12449 default:
12450 break;
12451 }
12452 return result;
12453 }
12454
12455 bool FileDownlinkComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const {
12456 FW_ASSERT(
12457 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
12458 static_cast<FwAssertArgType>(portNum),
12459 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
12460 );
12461 bool result = false;
12462 switch (portNum) {
12463 case 0:
12464 result = true;
12465 break;
12466 default:
12467 break;
12468 }
12469 return result;
12470 }
12471
12472 #if FW_ENABLE_TEXT_LOGGING == 1
12473
12474 bool FileDownlinkComponentBase::isConnected_textEventOut_OutputPort(FwIndexType portNum) const {
12475 FW_ASSERT(
12476 (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS),
12477 static_cast<FwAssertArgType>(portNum),
12478 static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS)
12479 );
12480 bool result = false;
12481 switch (portNum) {
12482 case 0:
12483 result = true;
12484 break;
12485 default:
12486 break;
12487 }
12488 return result;
12489 }
12490
12491 #endif
12492
12493 bool FileDownlinkComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
12494 FW_ASSERT(
12495 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
12496 static_cast<FwAssertArgType>(portNum),
12497 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
12498 );
12499 bool result = false;
12500 switch (portNum) {
12501 case 0:
12502 result = true;
12503 break;
12504 default:
12505 break;
12506 }
12507 return result;
12508 }
12509
12510 bool FileDownlinkComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
12511 FW_ASSERT(
12512 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
12513 static_cast<FwAssertArgType>(portNum),
12514 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
12515 );
12516 bool result = false;
12517 switch (portNum) {
12518 case 0:
12519 result = true;
12520 break;
12521 default:
12522 break;
12523 }
12524 return result;
12525 }
12526
12527 void FileDownlinkComponentBase::FileComplete_out(
12528 FwIndexType portNum,
12529 const Svc::SendFileResponse& resp
12530 ) const {
12531 FW_ASSERT(
12532 (0 <= portNum) && (portNum < NUM_FILECOMPLETE_OUTPUT_PORTS),
12533 static_cast<FwAssertArgType>(portNum),
12534 static_cast<FwAssertArgType>(NUM_FILECOMPLETE_OUTPUT_PORTS)
12535 );
12536 switch (portNum) {
12537 case 0:
12538 DataProducts::dpCat.fileDone_handlerBase(
12539 0,
12540 resp
12541 );
12542 break;
12543 default:
12544 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12545 break;
12546 }
12547 }
12548
12549 void FileDownlinkComponentBase::bufferSendOut_out(
12550 FwIndexType portNum,
12551 Fw::Buffer& fwBuffer
12552 ) const {
12553 FW_ASSERT(
12554 (0 <= portNum) && (portNum < NUM_BUFFERSENDOUT_OUTPUT_PORTS),
12555 static_cast<FwAssertArgType>(portNum),
12556 static_cast<FwAssertArgType>(NUM_BUFFERSENDOUT_OUTPUT_PORTS)
12557 );
12558 switch (portNum) {
12559 case 0:
12560 ComCcsds::comQueue.bufferQueueIn_handlerBase(
12561 0,
12562 fwBuffer
12563 );
12564 break;
12565 default:
12566 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12567 break;
12568 }
12569 }
12570
12571 3 void FileDownlinkComponentBase::cmdRegOut_out(
12572 FwIndexType portNum,
12573 FwOpcodeType opCode
12574 ) const {
12575 3 FW_ASSERT(
12576 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
12577 static_cast<FwAssertArgType>(portNum),
12578 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
12579 );
12580
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
12581 3 case 0:
12582 3 CdhCore::cmdDisp.compCmdReg_handlerBase(
12583 9,
12584 opCode
12585 );
12586 3 break;
12587 default:
12588 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12589 break;
12590 }
12591 3 }
12592
12593 void FileDownlinkComponentBase::cmdResponseOut_out(
12594 FwIndexType portNum,
12595 FwOpcodeType opCode,
12596 U32 cmdSeq,
12597 const Fw::CmdResponse& response
12598 ) const {
12599 FW_ASSERT(
12600 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
12601 static_cast<FwAssertArgType>(portNum),
12602 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
12603 );
12604 switch (portNum) {
12605 case 0:
12606 CdhCore::cmdDisp.compCmdStat_handlerBase(
12607 0,
12608 opCode,
12609 cmdSeq,
12610 response
12611 );
12612 break;
12613 default:
12614 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12615 break;
12616 }
12617 }
12618
12619 void FileDownlinkComponentBase::eventOut_out(
12620 FwIndexType portNum,
12621 FwEventIdType id,
12622 Fw::Time& timeTag,
12623 const Fw::LogSeverity& severity,
12624 Fw::LogBuffer& args
12625 ) const {
12626 FW_ASSERT(
12627 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
12628 static_cast<FwAssertArgType>(portNum),
12629 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
12630 );
12631 switch (portNum) {
12632 case 0:
12633 CdhCore::events.LogRecv_handlerBase(
12634 0,
12635 id,
12636 timeTag,
12637 severity,
12638 args
12639 );
12640 break;
12641 default:
12642 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12643 break;
12644 }
12645 }
12646
12647 59 void FileDownlinkComponentBase::pingOut_out(
12648 FwIndexType portNum,
12649 U32 key
12650 ) const {
12651 59 FW_ASSERT(
12652 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
12653 static_cast<FwAssertArgType>(portNum),
12654 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
12655 );
12656
1/2
✓ Branch 0 taken 59 times.
✗ Branch 1 not taken.
59 switch (portNum) {
12657 59 case 0:
12658 59 CdhCore::health.PingReturn_handlerBase(
12659 5,
12660 key
12661 );
12662 59 break;
12663 default:
12664 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12665 break;
12666 }
12667 59 }
12668
12669 #if FW_ENABLE_TEXT_LOGGING == 1
12670
12671 void FileDownlinkComponentBase::textEventOut_out(
12672 FwIndexType portNum,
12673 FwEventIdType id,
12674 Fw::Time& timeTag,
12675 const Fw::LogSeverity& severity,
12676 Fw::TextLogString& text
12677 ) const {
12678 FW_ASSERT(
12679 (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS),
12680 static_cast<FwAssertArgType>(portNum),
12681 static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS)
12682 );
12683 switch (portNum) {
12684 case 0:
12685 CdhCore::textLogger.TextLogger_handlerBase(
12686 0,
12687 id,
12688 timeTag,
12689 severity,
12690 text
12691 );
12692 break;
12693 default:
12694 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12695 break;
12696 }
12697 }
12698
12699 #endif
12700
12701 void FileDownlinkComponentBase::timeCaller_out(
12702 FwIndexType portNum,
12703 Fw::Time& time
12704 ) const {
12705 FW_ASSERT(
12706 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
12707 static_cast<FwAssertArgType>(portNum),
12708 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
12709 );
12710 switch (portNum) {
12711 case 0:
12712 Ref::posixTime.timeGetPort_handlerBase(
12713 0,
12714 time
12715 );
12716 break;
12717 default:
12718 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12719 break;
12720 }
12721 }
12722
12723 void FileDownlinkComponentBase::tlmOut_out(
12724 FwIndexType portNum,
12725 FwChanIdType id,
12726 Fw::Time& timeTag,
12727 Fw::TlmBuffer& val
12728 ) const {
12729 FW_ASSERT(
12730 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
12731 static_cast<FwAssertArgType>(portNum),
12732 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
12733 );
12734 switch (portNum) {
12735 case 0:
12736 CdhCore::tlmSend.TlmRecv_handlerBase(
12737 0,
12738 id,
12739 timeTag,
12740 val
12741 );
12742 break;
12743 default:
12744 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12745 break;
12746 }
12747 }
12748
12749 }
12750
12751 namespace Svc {
12752
12753 #if FW_ENABLE_TEXT_LOGGING == 1
12754
12755 bool FileManagerComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
12756 FW_ASSERT(
12757 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
12758 static_cast<FwAssertArgType>(portNum),
12759 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
12760 );
12761 bool result = false;
12762 switch (portNum) {
12763 case 0:
12764 result = true;
12765 break;
12766 default:
12767 break;
12768 }
12769 return result;
12770 }
12771
12772 #endif
12773
12774 1 bool FileManagerComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const {
12775 1 FW_ASSERT(
12776 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
12777 static_cast<FwAssertArgType>(portNum),
12778 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
12779 );
12780 1 bool result = false;
12781
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
12782 1 case 0:
12783 1 result = true;
12784 1 break;
12785 default:
12786 break;
12787 }
12788 1 return result;
12789 }
12790
12791 bool FileManagerComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const {
12792 FW_ASSERT(
12793 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
12794 static_cast<FwAssertArgType>(portNum),
12795 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
12796 );
12797 bool result = false;
12798 switch (portNum) {
12799 case 0:
12800 result = true;
12801 break;
12802 default:
12803 break;
12804 }
12805 return result;
12806 }
12807
12808 bool FileManagerComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const {
12809 FW_ASSERT(
12810 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
12811 static_cast<FwAssertArgType>(portNum),
12812 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
12813 );
12814 bool result = false;
12815 switch (portNum) {
12816 case 0:
12817 result = true;
12818 break;
12819 default:
12820 break;
12821 }
12822 return result;
12823 }
12824
12825 bool FileManagerComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const {
12826 FW_ASSERT(
12827 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
12828 static_cast<FwAssertArgType>(portNum),
12829 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
12830 );
12831 bool result = false;
12832 switch (portNum) {
12833 case 0:
12834 result = true;
12835 break;
12836 default:
12837 break;
12838 }
12839 return result;
12840 }
12841
12842 bool FileManagerComponentBase::isConnected_productGetOut_OutputPort(FwIndexType portNum) const {
12843 FW_ASSERT(
12844 (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS),
12845 static_cast<FwAssertArgType>(portNum),
12846 static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS)
12847 );
12848 bool result = false;
12849 switch (portNum) {
12850 default:
12851 break;
12852 }
12853 return result;
12854 }
12855
12856 bool FileManagerComponentBase::isConnected_productSendOut_OutputPort(FwIndexType portNum) const {
12857 FW_ASSERT(
12858 (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS),
12859 static_cast<FwAssertArgType>(portNum),
12860 static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS)
12861 );
12862 bool result = false;
12863 switch (portNum) {
12864 default:
12865 break;
12866 }
12867 return result;
12868 }
12869
12870 bool FileManagerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
12871 FW_ASSERT(
12872 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
12873 static_cast<FwAssertArgType>(portNum),
12874 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
12875 );
12876 bool result = false;
12877 switch (portNum) {
12878 case 0:
12879 result = true;
12880 break;
12881 default:
12882 break;
12883 }
12884 return result;
12885 }
12886
12887 bool FileManagerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
12888 FW_ASSERT(
12889 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
12890 static_cast<FwAssertArgType>(portNum),
12891 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
12892 );
12893 bool result = false;
12894 switch (portNum) {
12895 case 0:
12896 result = true;
12897 break;
12898 default:
12899 break;
12900 }
12901 return result;
12902 }
12903
12904 #if FW_ENABLE_TEXT_LOGGING == 1
12905
12906 void FileManagerComponentBase::LogText_out(
12907 FwIndexType portNum,
12908 FwEventIdType id,
12909 Fw::Time& timeTag,
12910 const Fw::LogSeverity& severity,
12911 Fw::TextLogString& text
12912 ) const {
12913 FW_ASSERT(
12914 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
12915 static_cast<FwAssertArgType>(portNum),
12916 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
12917 );
12918 switch (portNum) {
12919 case 0:
12920 CdhCore::textLogger.TextLogger_handlerBase(
12921 0,
12922 id,
12923 timeTag,
12924 severity,
12925 text
12926 );
12927 break;
12928 default:
12929 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12930 break;
12931 }
12932 }
12933
12934 #endif
12935
12936 9 void FileManagerComponentBase::cmdRegOut_out(
12937 FwIndexType portNum,
12938 FwOpcodeType opCode
12939 ) const {
12940 9 FW_ASSERT(
12941 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
12942 static_cast<FwAssertArgType>(portNum),
12943 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
12944 );
12945
1/2
✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
9 switch (portNum) {
12946 9 case 0:
12947 9 CdhCore::cmdDisp.compCmdReg_handlerBase(
12948 10,
12949 opCode
12950 );
12951 9 break;
12952 default:
12953 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12954 break;
12955 }
12956 9 }
12957
12958 void FileManagerComponentBase::cmdResponseOut_out(
12959 FwIndexType portNum,
12960 FwOpcodeType opCode,
12961 U32 cmdSeq,
12962 const Fw::CmdResponse& response
12963 ) const {
12964 FW_ASSERT(
12965 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
12966 static_cast<FwAssertArgType>(portNum),
12967 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
12968 );
12969 switch (portNum) {
12970 case 0:
12971 CdhCore::cmdDisp.compCmdStat_handlerBase(
12972 0,
12973 opCode,
12974 cmdSeq,
12975 response
12976 );
12977 break;
12978 default:
12979 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
12980 break;
12981 }
12982 }
12983
12984 void FileManagerComponentBase::eventOut_out(
12985 FwIndexType portNum,
12986 FwEventIdType id,
12987 Fw::Time& timeTag,
12988 const Fw::LogSeverity& severity,
12989 Fw::LogBuffer& args
12990 ) const {
12991 FW_ASSERT(
12992 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
12993 static_cast<FwAssertArgType>(portNum),
12994 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
12995 );
12996 switch (portNum) {
12997 case 0:
12998 CdhCore::events.LogRecv_handlerBase(
12999 0,
13000 id,
13001 timeTag,
13002 severity,
13003 args
13004 );
13005 break;
13006 default:
13007 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13008 break;
13009 }
13010 }
13011
13012 59 void FileManagerComponentBase::pingOut_out(
13013 FwIndexType portNum,
13014 U32 key
13015 ) const {
13016 59 FW_ASSERT(
13017 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
13018 static_cast<FwAssertArgType>(portNum),
13019 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
13020 );
13021
1/2
✓ Branch 0 taken 59 times.
✗ Branch 1 not taken.
59 switch (portNum) {
13022 59 case 0:
13023 59 CdhCore::health.PingReturn_handlerBase(
13024 6,
13025 key
13026 );
13027 59 break;
13028 default:
13029 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13030 break;
13031 }
13032 59 }
13033
13034 Fw::Success FileManagerComponentBase::productGetOut_out(
13035 FwIndexType portNum,
13036 FwDpIdType id,
13037 FwSizeType dataSize,
13038 Fw::Buffer& buffer
13039 ) const {
13040 FW_ASSERT(
13041 (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS),
13042 static_cast<FwAssertArgType>(portNum),
13043 static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS)
13044 );
13045 Fw::Success _result = {};
13046 switch (portNum) {
13047 default:
13048 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13049 break;
13050 }
13051 return _result;
13052 }
13053
13054 void FileManagerComponentBase::productSendOut_out(
13055 FwIndexType portNum,
13056 FwDpIdType id,
13057 const Fw::Buffer& buffer
13058 ) const {
13059 FW_ASSERT(
13060 (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS),
13061 static_cast<FwAssertArgType>(portNum),
13062 static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS)
13063 );
13064 switch (portNum) {
13065 default:
13066 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13067 break;
13068 }
13069 }
13070
13071 void FileManagerComponentBase::timeCaller_out(
13072 FwIndexType portNum,
13073 Fw::Time& time
13074 ) const {
13075 FW_ASSERT(
13076 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
13077 static_cast<FwAssertArgType>(portNum),
13078 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
13079 );
13080 switch (portNum) {
13081 case 0:
13082 Ref::posixTime.timeGetPort_handlerBase(
13083 0,
13084 time
13085 );
13086 break;
13087 default:
13088 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13089 break;
13090 }
13091 }
13092
13093 void FileManagerComponentBase::tlmOut_out(
13094 FwIndexType portNum,
13095 FwChanIdType id,
13096 Fw::Time& timeTag,
13097 Fw::TlmBuffer& val
13098 ) const {
13099 FW_ASSERT(
13100 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
13101 static_cast<FwAssertArgType>(portNum),
13102 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
13103 );
13104 switch (portNum) {
13105 case 0:
13106 CdhCore::tlmSend.TlmRecv_handlerBase(
13107 0,
13108 id,
13109 timeTag,
13110 val
13111 );
13112 break;
13113 default:
13114 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13115 break;
13116 }
13117 }
13118
13119 }
13120
13121 namespace Svc {
13122
13123 #if FW_ENABLE_TEXT_LOGGING == 1
13124
13125 4 bool FileUplinkComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
13126 4 FW_ASSERT(
13127 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
13128 static_cast<FwAssertArgType>(portNum),
13129 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
13130 );
13131 4 bool result = false;
13132
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
13133 4 case 0:
13134 4 result = true;
13135 4 break;
13136 default:
13137 break;
13138 }
13139 4 return result;
13140 }
13141
13142 #endif
13143
13144 bool FileUplinkComponentBase::isConnected_bufferSendOut_OutputPort(FwIndexType portNum) const {
13145 FW_ASSERT(
13146 (0 <= portNum) && (portNum < NUM_BUFFERSENDOUT_OUTPUT_PORTS),
13147 static_cast<FwAssertArgType>(portNum),
13148 static_cast<FwAssertArgType>(NUM_BUFFERSENDOUT_OUTPUT_PORTS)
13149 );
13150 bool result = false;
13151 switch (portNum) {
13152 case 0:
13153 result = true;
13154 break;
13155 default:
13156 break;
13157 }
13158 return result;
13159 }
13160
13161 4 bool FileUplinkComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const {
13162 4 FW_ASSERT(
13163 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
13164 static_cast<FwAssertArgType>(portNum),
13165 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
13166 );
13167 4 bool result = false;
13168
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
13169 4 case 0:
13170 4 result = true;
13171 4 break;
13172 default:
13173 break;
13174 }
13175 4 return result;
13176 }
13177
13178 1 bool FileUplinkComponentBase::isConnected_fileAnnounce_OutputPort(FwIndexType portNum) const {
13179 1 FW_ASSERT(
13180 (0 <= portNum) && (portNum < NUM_FILEANNOUNCE_OUTPUT_PORTS),
13181 static_cast<FwAssertArgType>(portNum),
13182 static_cast<FwAssertArgType>(NUM_FILEANNOUNCE_OUTPUT_PORTS)
13183 );
13184 1 bool result = false;
13185 1 switch (portNum) {
13186 default:
13187 1 break;
13188 }
13189 1 return result;
13190 }
13191
13192 bool FileUplinkComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const {
13193 FW_ASSERT(
13194 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
13195 static_cast<FwAssertArgType>(portNum),
13196 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
13197 );
13198 bool result = false;
13199 switch (portNum) {
13200 case 0:
13201 result = true;
13202 break;
13203 default:
13204 break;
13205 }
13206 return result;
13207 }
13208
13209 14 bool FileUplinkComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
13210 14 FW_ASSERT(
13211 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
13212 static_cast<FwAssertArgType>(portNum),
13213 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
13214 );
13215 14 bool result = false;
13216
1/2
✓ Branch 0 taken 14 times.
✗ Branch 1 not taken.
14 switch (portNum) {
13217 14 case 0:
13218 14 result = true;
13219 14 break;
13220 default:
13221 break;
13222 }
13223 14 return result;
13224 }
13225
13226 20 bool FileUplinkComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
13227 20 FW_ASSERT(
13228 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
13229 static_cast<FwAssertArgType>(portNum),
13230 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
13231 );
13232 20 bool result = false;
13233
1/2
✓ Branch 0 taken 20 times.
✗ Branch 1 not taken.
20 switch (portNum) {
13234 20 case 0:
13235 20 result = true;
13236 20 break;
13237 default:
13238 break;
13239 }
13240 20 return result;
13241 }
13242
13243 #if FW_ENABLE_TEXT_LOGGING == 1
13244
13245 4 void FileUplinkComponentBase::LogText_out(
13246 FwIndexType portNum,
13247 FwEventIdType id,
13248 Fw::Time& timeTag,
13249 const Fw::LogSeverity& severity,
13250 Fw::TextLogString& text
13251 ) const {
13252 4 FW_ASSERT(
13253 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
13254 static_cast<FwAssertArgType>(portNum),
13255 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
13256 );
13257
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
13258 4 case 0:
13259 4 CdhCore::textLogger.TextLogger_handlerBase(
13260 0,
13261 id,
13262 timeTag,
13263 severity,
13264 text
13265 );
13266 4 break;
13267 default:
13268 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13269 break;
13270 }
13271 4 }
13272
13273 #endif
13274
13275 6 void FileUplinkComponentBase::bufferSendOut_out(
13276 FwIndexType portNum,
13277 Fw::Buffer& fwBuffer
13278 ) const {
13279 6 FW_ASSERT(
13280 (0 <= portNum) && (portNum < NUM_BUFFERSENDOUT_OUTPUT_PORTS),
13281 static_cast<FwAssertArgType>(portNum),
13282 static_cast<FwAssertArgType>(NUM_BUFFERSENDOUT_OUTPUT_PORTS)
13283 );
13284
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
13285 6 case 0:
13286 6 ComCcsds::fprimeRouter.fileBufferReturnIn_handlerBase(
13287 0,
13288 fwBuffer
13289 );
13290 6 break;
13291 default:
13292 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13293 break;
13294 }
13295 6 }
13296
13297 4 void FileUplinkComponentBase::eventOut_out(
13298 FwIndexType portNum,
13299 FwEventIdType id,
13300 Fw::Time& timeTag,
13301 const Fw::LogSeverity& severity,
13302 Fw::LogBuffer& args
13303 ) const {
13304 4 FW_ASSERT(
13305 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
13306 static_cast<FwAssertArgType>(portNum),
13307 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
13308 );
13309
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
13310 4 case 0:
13311 4 CdhCore::events.LogRecv_handlerBase(
13312 0,
13313 id,
13314 timeTag,
13315 severity,
13316 args
13317 );
13318 4 break;
13319 default:
13320 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13321 break;
13322 }
13323 4 }
13324
13325 void FileUplinkComponentBase::fileAnnounce_out(
13326 FwIndexType portNum,
13327 Fw::StringBase& file_name
13328 ) const {
13329 FW_ASSERT(
13330 (0 <= portNum) && (portNum < NUM_FILEANNOUNCE_OUTPUT_PORTS),
13331 static_cast<FwAssertArgType>(portNum),
13332 static_cast<FwAssertArgType>(NUM_FILEANNOUNCE_OUTPUT_PORTS)
13333 );
13334 switch (portNum) {
13335 default:
13336 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13337 break;
13338 }
13339 }
13340
13341 59 void FileUplinkComponentBase::pingOut_out(
13342 FwIndexType portNum,
13343 U32 key
13344 ) const {
13345 59 FW_ASSERT(
13346 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
13347 static_cast<FwAssertArgType>(portNum),
13348 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
13349 );
13350
1/2
✓ Branch 0 taken 59 times.
✗ Branch 1 not taken.
59 switch (portNum) {
13351 59 case 0:
13352 59 CdhCore::health.PingReturn_handlerBase(
13353 7,
13354 key
13355 );
13356 59 break;
13357 default:
13358 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13359 break;
13360 }
13361 59 }
13362
13363 14 void FileUplinkComponentBase::timeCaller_out(
13364 FwIndexType portNum,
13365 Fw::Time& time
13366 ) const {
13367 14 FW_ASSERT(
13368 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
13369 static_cast<FwAssertArgType>(portNum),
13370 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
13371 );
13372
1/2
✓ Branch 0 taken 14 times.
✗ Branch 1 not taken.
14 switch (portNum) {
13373 14 case 0:
13374 14 Ref::posixTime.timeGetPort_handlerBase(
13375 0,
13376 time
13377 );
13378 14 break;
13379 default:
13380 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13381 break;
13382 }
13383 14 }
13384
13385 10 void FileUplinkComponentBase::tlmOut_out(
13386 FwIndexType portNum,
13387 FwChanIdType id,
13388 Fw::Time& timeTag,
13389 Fw::TlmBuffer& val
13390 ) const {
13391 10 FW_ASSERT(
13392 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
13393 static_cast<FwAssertArgType>(portNum),
13394 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
13395 );
13396
1/2
✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
10 switch (portNum) {
13397 10 case 0:
13398 10 CdhCore::tlmSend.TlmRecv_handlerBase(
13399 0,
13400 id,
13401 timeTag,
13402 val
13403 );
13404 10 break;
13405 default:
13406 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13407 break;
13408 }
13409 10 }
13410
13411 }
13412
13413 namespace Svc {
13414
13415 bool FprimeRouterComponentBase::isConnected_commandOut_OutputPort(FwIndexType portNum) const {
13416 FW_ASSERT(
13417 (0 <= portNum) && (portNum < NUM_COMMANDOUT_OUTPUT_PORTS),
13418 static_cast<FwAssertArgType>(portNum),
13419 static_cast<FwAssertArgType>(NUM_COMMANDOUT_OUTPUT_PORTS)
13420 );
13421 bool result = false;
13422 switch (portNum) {
13423 case 0:
13424 result = true;
13425 break;
13426 default:
13427 break;
13428 }
13429 return result;
13430 }
13431
13432 bool FprimeRouterComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const {
13433 FW_ASSERT(
13434 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
13435 static_cast<FwAssertArgType>(portNum),
13436 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
13437 );
13438 bool result = false;
13439 switch (portNum) {
13440 case 0:
13441 result = true;
13442 break;
13443 default:
13444 break;
13445 }
13446 return result;
13447 }
13448
13449 6 bool FprimeRouterComponentBase::isConnected_fileOut_OutputPort(FwIndexType portNum) const {
13450 6 FW_ASSERT(
13451 (0 <= portNum) && (portNum < NUM_FILEOUT_OUTPUT_PORTS),
13452 static_cast<FwAssertArgType>(portNum),
13453 static_cast<FwAssertArgType>(NUM_FILEOUT_OUTPUT_PORTS)
13454 );
13455 6 bool result = false;
13456
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
13457 6 case 0:
13458 6 result = true;
13459 6 break;
13460 default:
13461 break;
13462 }
13463 6 return result;
13464 }
13465
13466 bool FprimeRouterComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
13467 FW_ASSERT(
13468 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
13469 static_cast<FwAssertArgType>(portNum),
13470 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
13471 );
13472 bool result = false;
13473 switch (portNum) {
13474 case 0:
13475 result = true;
13476 break;
13477 default:
13478 break;
13479 }
13480 return result;
13481 }
13482
13483 #if FW_ENABLE_TEXT_LOGGING == 1
13484
13485 bool FprimeRouterComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
13486 FW_ASSERT(
13487 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
13488 static_cast<FwAssertArgType>(portNum),
13489 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
13490 );
13491 bool result = false;
13492 switch (portNum) {
13493 case 0:
13494 result = true;
13495 break;
13496 default:
13497 break;
13498 }
13499 return result;
13500 }
13501
13502 #endif
13503
13504 bool FprimeRouterComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
13505 FW_ASSERT(
13506 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
13507 static_cast<FwAssertArgType>(portNum),
13508 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
13509 );
13510 bool result = false;
13511 switch (portNum) {
13512 case 0:
13513 result = true;
13514 break;
13515 default:
13516 break;
13517 }
13518 return result;
13519 }
13520
13521 bool FprimeRouterComponentBase::isConnected_unknownDataOut_OutputPort(FwIndexType portNum) const {
13522 FW_ASSERT(
13523 (0 <= portNum) && (portNum < NUM_UNKNOWNDATAOUT_OUTPUT_PORTS),
13524 static_cast<FwAssertArgType>(portNum),
13525 static_cast<FwAssertArgType>(NUM_UNKNOWNDATAOUT_OUTPUT_PORTS)
13526 );
13527 bool result = false;
13528 switch (portNum) {
13529 default:
13530 break;
13531 }
13532 return result;
13533 }
13534
13535 140 void FprimeRouterComponentBase::commandOut_out(
13536 FwIndexType portNum,
13537 Fw::ComBuffer& data,
13538 U32 context
13539 ) const {
13540 140 FW_ASSERT(
13541 (0 <= portNum) && (portNum < NUM_COMMANDOUT_OUTPUT_PORTS),
13542 static_cast<FwAssertArgType>(portNum),
13543 static_cast<FwAssertArgType>(NUM_COMMANDOUT_OUTPUT_PORTS)
13544 );
13545
1/2
✓ Branch 0 taken 140 times.
✗ Branch 1 not taken.
140 switch (portNum) {
13546 140 case 0:
13547 140 CdhCore::cmdDisp.seqCmdBuff_handlerBase(
13548 0,
13549 data,
13550 context
13551 );
13552 140 break;
13553 default:
13554 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13555 break;
13556 }
13557 140 }
13558
13559 146 void FprimeRouterComponentBase::dataReturnOut_out(
13560 FwIndexType portNum,
13561 Fw::Buffer& data,
13562 const ComCfg::FrameContext& context
13563 ) const {
13564 146 FW_ASSERT(
13565 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
13566 static_cast<FwAssertArgType>(portNum),
13567 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
13568 );
13569
1/2
✓ Branch 0 taken 146 times.
✗ Branch 1 not taken.
146 switch (portNum) {
13570 146 case 0:
13571 146 ComCcsds::spacePacketDeframer.dataReturnIn_handlerBase(
13572 0,
13573 data,
13574 context
13575 );
13576 146 break;
13577 default:
13578 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13579 break;
13580 }
13581 146 }
13582
13583 6 void FprimeRouterComponentBase::fileOut_out(
13584 FwIndexType portNum,
13585 Fw::Buffer& fwBuffer
13586 ) const {
13587 6 FW_ASSERT(
13588 (0 <= portNum) && (portNum < NUM_FILEOUT_OUTPUT_PORTS),
13589 static_cast<FwAssertArgType>(portNum),
13590 static_cast<FwAssertArgType>(NUM_FILEOUT_OUTPUT_PORTS)
13591 );
13592
1/2
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
6 switch (portNum) {
13593 6 case 0:
13594 6 FileHandling::fileUplink.bufferSendIn_handlerBase(
13595 0,
13596 fwBuffer
13597 );
13598 6 break;
13599 default:
13600 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13601 break;
13602 }
13603 6 }
13604
13605 void FprimeRouterComponentBase::logOut_out(
13606 FwIndexType portNum,
13607 FwEventIdType id,
13608 Fw::Time& timeTag,
13609 const Fw::LogSeverity& severity,
13610 Fw::LogBuffer& args
13611 ) const {
13612 FW_ASSERT(
13613 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
13614 static_cast<FwAssertArgType>(portNum),
13615 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
13616 );
13617 switch (portNum) {
13618 case 0:
13619 CdhCore::events.LogRecv_handlerBase(
13620 0,
13621 id,
13622 timeTag,
13623 severity,
13624 args
13625 );
13626 break;
13627 default:
13628 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13629 break;
13630 }
13631 }
13632
13633 #if FW_ENABLE_TEXT_LOGGING == 1
13634
13635 void FprimeRouterComponentBase::logTextOut_out(
13636 FwIndexType portNum,
13637 FwEventIdType id,
13638 Fw::Time& timeTag,
13639 const Fw::LogSeverity& severity,
13640 Fw::TextLogString& text
13641 ) const {
13642 FW_ASSERT(
13643 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
13644 static_cast<FwAssertArgType>(portNum),
13645 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
13646 );
13647 switch (portNum) {
13648 case 0:
13649 CdhCore::textLogger.TextLogger_handlerBase(
13650 0,
13651 id,
13652 timeTag,
13653 severity,
13654 text
13655 );
13656 break;
13657 default:
13658 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13659 break;
13660 }
13661 }
13662
13663 #endif
13664
13665 void FprimeRouterComponentBase::timeCaller_out(
13666 FwIndexType portNum,
13667 Fw::Time& time
13668 ) const {
13669 FW_ASSERT(
13670 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
13671 static_cast<FwAssertArgType>(portNum),
13672 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
13673 );
13674 switch (portNum) {
13675 case 0:
13676 Ref::posixTime.timeGetPort_handlerBase(
13677 0,
13678 time
13679 );
13680 break;
13681 default:
13682 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13683 break;
13684 }
13685 }
13686
13687 void FprimeRouterComponentBase::unknownDataOut_out(
13688 FwIndexType portNum,
13689 Fw::Buffer& data,
13690 const ComCfg::FrameContext& context
13691 ) const {
13692 FW_ASSERT(
13693 (0 <= portNum) && (portNum < NUM_UNKNOWNDATAOUT_OUTPUT_PORTS),
13694 static_cast<FwAssertArgType>(portNum),
13695 static_cast<FwAssertArgType>(NUM_UNKNOWNDATAOUT_OUTPUT_PORTS)
13696 );
13697 switch (portNum) {
13698 default:
13699 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13700 break;
13701 }
13702 }
13703
13704 }
13705
13706 namespace Svc {
13707
13708 bool FrameAccumulatorComponentBase::isConnected_bufferAllocate_OutputPort(FwIndexType portNum) const {
13709 FW_ASSERT(
13710 (0 <= portNum) && (portNum < NUM_BUFFERALLOCATE_OUTPUT_PORTS),
13711 static_cast<FwAssertArgType>(portNum),
13712 static_cast<FwAssertArgType>(NUM_BUFFERALLOCATE_OUTPUT_PORTS)
13713 );
13714 bool result = false;
13715 switch (portNum) {
13716 case 0:
13717 result = true;
13718 break;
13719 default:
13720 break;
13721 }
13722 return result;
13723 }
13724
13725 bool FrameAccumulatorComponentBase::isConnected_bufferDeallocate_OutputPort(FwIndexType portNum) const {
13726 FW_ASSERT(
13727 (0 <= portNum) && (portNum < NUM_BUFFERDEALLOCATE_OUTPUT_PORTS),
13728 static_cast<FwAssertArgType>(portNum),
13729 static_cast<FwAssertArgType>(NUM_BUFFERDEALLOCATE_OUTPUT_PORTS)
13730 );
13731 bool result = false;
13732 switch (portNum) {
13733 case 0:
13734 result = true;
13735 break;
13736 default:
13737 break;
13738 }
13739 return result;
13740 }
13741
13742 bool FrameAccumulatorComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const {
13743 FW_ASSERT(
13744 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
13745 static_cast<FwAssertArgType>(portNum),
13746 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
13747 );
13748 bool result = false;
13749 switch (portNum) {
13750 case 0:
13751 result = true;
13752 break;
13753 default:
13754 break;
13755 }
13756 return result;
13757 }
13758
13759 bool FrameAccumulatorComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const {
13760 FW_ASSERT(
13761 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
13762 static_cast<FwAssertArgType>(portNum),
13763 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
13764 );
13765 bool result = false;
13766 switch (portNum) {
13767 case 0:
13768 result = true;
13769 break;
13770 default:
13771 break;
13772 }
13773 return result;
13774 }
13775
13776 bool FrameAccumulatorComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
13777 FW_ASSERT(
13778 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
13779 static_cast<FwAssertArgType>(portNum),
13780 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
13781 );
13782 bool result = false;
13783 switch (portNum) {
13784 case 0:
13785 result = true;
13786 break;
13787 default:
13788 break;
13789 }
13790 return result;
13791 }
13792
13793 #if FW_ENABLE_TEXT_LOGGING == 1
13794
13795 bool FrameAccumulatorComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
13796 FW_ASSERT(
13797 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
13798 static_cast<FwAssertArgType>(portNum),
13799 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
13800 );
13801 bool result = false;
13802 switch (portNum) {
13803 case 0:
13804 result = true;
13805 break;
13806 default:
13807 break;
13808 }
13809 return result;
13810 }
13811
13812 #endif
13813
13814 bool FrameAccumulatorComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
13815 FW_ASSERT(
13816 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
13817 static_cast<FwAssertArgType>(portNum),
13818 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
13819 );
13820 bool result = false;
13821 switch (portNum) {
13822 case 0:
13823 result = true;
13824 break;
13825 default:
13826 break;
13827 }
13828 return result;
13829 }
13830
13831 146 Fw::Buffer FrameAccumulatorComponentBase::bufferAllocate_out(
13832 FwIndexType portNum,
13833 FwSizeType size
13834 ) const {
13835 146 FW_ASSERT(
13836 (0 <= portNum) && (portNum < NUM_BUFFERALLOCATE_OUTPUT_PORTS),
13837 static_cast<FwAssertArgType>(portNum),
13838 static_cast<FwAssertArgType>(NUM_BUFFERALLOCATE_OUTPUT_PORTS)
13839 );
13840 146 Fw::Buffer _result = {};
13841
1/2
✓ Branch 0 taken 146 times.
✗ Branch 1 not taken.
146 switch (portNum) {
13842 146 case 0:
13843
1/1
✓ Branch 1 taken 146 times.
292 _result = ComCcsds::commsBufferManager.bufferGetCallee_handlerBase(
13844 0,
13845 size
13846
1/1
✓ Branch 1 taken 146 times.
146 );
13847 146 break;
13848 default:
13849 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13850 break;
13851 }
13852 146 return _result;
13853 }
13854
13855 146 void FrameAccumulatorComponentBase::bufferDeallocate_out(
13856 FwIndexType portNum,
13857 Fw::Buffer& fwBuffer
13858 ) const {
13859 146 FW_ASSERT(
13860 (0 <= portNum) && (portNum < NUM_BUFFERDEALLOCATE_OUTPUT_PORTS),
13861 static_cast<FwAssertArgType>(portNum),
13862 static_cast<FwAssertArgType>(NUM_BUFFERDEALLOCATE_OUTPUT_PORTS)
13863 );
13864
1/2
✓ Branch 0 taken 146 times.
✗ Branch 1 not taken.
146 switch (portNum) {
13865 146 case 0:
13866 146 ComCcsds::commsBufferManager.bufferSendIn_handlerBase(
13867 0,
13868 fwBuffer
13869 );
13870 146 break;
13871 default:
13872 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13873 break;
13874 }
13875 146 }
13876
13877 146 void FrameAccumulatorComponentBase::dataOut_out(
13878 FwIndexType portNum,
13879 Fw::Buffer& data,
13880 const ComCfg::FrameContext& context
13881 ) const {
13882 146 FW_ASSERT(
13883 (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS),
13884 static_cast<FwAssertArgType>(portNum),
13885 static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS)
13886 );
13887
1/2
✓ Branch 0 taken 146 times.
✗ Branch 1 not taken.
146 switch (portNum) {
13888 146 case 0:
13889 146 ComCcsds::tcDeframer.dataIn_handlerBase(
13890 0,
13891 data,
13892 context
13893 );
13894 146 break;
13895 default:
13896 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13897 break;
13898 }
13899 146 }
13900
13901 614 void FrameAccumulatorComponentBase::dataReturnOut_out(
13902 FwIndexType portNum,
13903 Fw::Buffer& data,
13904 const ComCfg::FrameContext& context
13905 ) const {
13906 614 FW_ASSERT(
13907 (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS),
13908 static_cast<FwAssertArgType>(portNum),
13909 static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS)
13910 );
13911
1/2
✓ Branch 0 taken 614 times.
✗ Branch 1 not taken.
614 switch (portNum) {
13912 614 case 0:
13913 614 ComCcsds::comStub.dataReturnIn_handlerBase(
13914 0,
13915 data,
13916 context
13917 );
13918 614 break;
13919 default:
13920 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13921 break;
13922 }
13923 614 }
13924
13925 void FrameAccumulatorComponentBase::logOut_out(
13926 FwIndexType portNum,
13927 FwEventIdType id,
13928 Fw::Time& timeTag,
13929 const Fw::LogSeverity& severity,
13930 Fw::LogBuffer& args
13931 ) const {
13932 FW_ASSERT(
13933 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
13934 static_cast<FwAssertArgType>(portNum),
13935 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
13936 );
13937 switch (portNum) {
13938 case 0:
13939 CdhCore::events.LogRecv_handlerBase(
13940 0,
13941 id,
13942 timeTag,
13943 severity,
13944 args
13945 );
13946 break;
13947 default:
13948 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13949 break;
13950 }
13951 }
13952
13953 #if FW_ENABLE_TEXT_LOGGING == 1
13954
13955 void FrameAccumulatorComponentBase::logTextOut_out(
13956 FwIndexType portNum,
13957 FwEventIdType id,
13958 Fw::Time& timeTag,
13959 const Fw::LogSeverity& severity,
13960 Fw::TextLogString& text
13961 ) const {
13962 FW_ASSERT(
13963 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
13964 static_cast<FwAssertArgType>(portNum),
13965 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
13966 );
13967 switch (portNum) {
13968 case 0:
13969 CdhCore::textLogger.TextLogger_handlerBase(
13970 0,
13971 id,
13972 timeTag,
13973 severity,
13974 text
13975 );
13976 break;
13977 default:
13978 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
13979 break;
13980 }
13981 }
13982
13983 #endif
13984
13985 void FrameAccumulatorComponentBase::timeCaller_out(
13986 FwIndexType portNum,
13987 Fw::Time& time
13988 ) const {
13989 FW_ASSERT(
13990 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
13991 static_cast<FwAssertArgType>(portNum),
13992 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
13993 );
13994 switch (portNum) {
13995 case 0:
13996 Ref::posixTime.timeGetPort_handlerBase(
13997 0,
13998 time
13999 );
14000 break;
14001 default:
14002 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14003 break;
14004 }
14005 }
14006
14007 }
14008
14009 namespace Svc {
14010
14011 1 bool HealthComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const {
14012 1 FW_ASSERT(
14013 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
14014 static_cast<FwAssertArgType>(portNum),
14015 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
14016 );
14017 1 bool result = false;
14018
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
14019 1 case 0:
14020 1 result = true;
14021 1 break;
14022 default:
14023 break;
14024 }
14025 1 return result;
14026 }
14027
14028 bool HealthComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const {
14029 FW_ASSERT(
14030 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
14031 static_cast<FwAssertArgType>(portNum),
14032 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
14033 );
14034 bool result = false;
14035 switch (portNum) {
14036 case 0:
14037 result = true;
14038 break;
14039 default:
14040 break;
14041 }
14042 return result;
14043 }
14044
14045 bool HealthComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
14046 FW_ASSERT(
14047 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
14048 static_cast<FwAssertArgType>(portNum),
14049 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
14050 );
14051 bool result = false;
14052 switch (portNum) {
14053 case 0:
14054 result = true;
14055 break;
14056 default:
14057 break;
14058 }
14059 return result;
14060 }
14061
14062 #if FW_ENABLE_TEXT_LOGGING == 1
14063
14064 bool HealthComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
14065 FW_ASSERT(
14066 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
14067 static_cast<FwAssertArgType>(portNum),
14068 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
14069 );
14070 bool result = false;
14071 switch (portNum) {
14072 case 0:
14073 result = true;
14074 break;
14075 default:
14076 break;
14077 }
14078 return result;
14079 }
14080
14081 #endif
14082
14083 bool HealthComponentBase::isConnected_PingSend_OutputPort(FwIndexType portNum) const {
14084 FW_ASSERT(
14085 (0 <= portNum) && (portNum < NUM_PINGSEND_OUTPUT_PORTS),
14086 static_cast<FwAssertArgType>(portNum),
14087 static_cast<FwAssertArgType>(NUM_PINGSEND_OUTPUT_PORTS)
14088 );
14089 bool result = false;
14090 switch (portNum) {
14091 case 0:
14092 result = true;
14093 break;
14094 case 1:
14095 result = true;
14096 break;
14097 case 2:
14098 result = true;
14099 break;
14100 case 3:
14101 result = true;
14102 break;
14103 case 4:
14104 result = true;
14105 break;
14106 case 5:
14107 result = true;
14108 break;
14109 case 6:
14110 result = true;
14111 break;
14112 case 7:
14113 result = true;
14114 break;
14115 case 8:
14116 result = true;
14117 break;
14118 case 9:
14119 result = true;
14120 break;
14121 case 10:
14122 result = true;
14123 break;
14124 case 11:
14125 result = true;
14126 break;
14127 case 12:
14128 result = true;
14129 break;
14130 case 13:
14131 result = true;
14132 break;
14133 case 14:
14134 result = true;
14135 break;
14136 default:
14137 break;
14138 }
14139 return result;
14140 }
14141
14142 bool HealthComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
14143 FW_ASSERT(
14144 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
14145 static_cast<FwAssertArgType>(portNum),
14146 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
14147 );
14148 bool result = false;
14149 switch (portNum) {
14150 case 0:
14151 result = true;
14152 break;
14153 default:
14154 break;
14155 }
14156 return result;
14157 }
14158
14159 bool HealthComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const {
14160 FW_ASSERT(
14161 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
14162 static_cast<FwAssertArgType>(portNum),
14163 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
14164 );
14165 bool result = false;
14166 switch (portNum) {
14167 case 0:
14168 result = true;
14169 break;
14170 default:
14171 break;
14172 }
14173 return result;
14174 }
14175
14176 59 bool HealthComponentBase::isConnected_WdogStroke_OutputPort(FwIndexType portNum) const {
14177 59 FW_ASSERT(
14178 (0 <= portNum) && (portNum < NUM_WDOGSTROKE_OUTPUT_PORTS),
14179 static_cast<FwAssertArgType>(portNum),
14180 static_cast<FwAssertArgType>(NUM_WDOGSTROKE_OUTPUT_PORTS)
14181 );
14182 59 bool result = false;
14183 59 switch (portNum) {
14184 default:
14185 59 break;
14186 }
14187 59 return result;
14188 }
14189
14190 3 void HealthComponentBase::CmdReg_out(
14191 FwIndexType portNum,
14192 FwOpcodeType opCode
14193 ) const {
14194 3 FW_ASSERT(
14195 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
14196 static_cast<FwAssertArgType>(portNum),
14197 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
14198 );
14199
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
14200 3 case 0:
14201 3 CdhCore::cmdDisp.compCmdReg_handlerBase(
14202 2,
14203 opCode
14204 );
14205 3 break;
14206 default:
14207 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14208 break;
14209 }
14210 3 }
14211
14212 void HealthComponentBase::CmdStatus_out(
14213 FwIndexType portNum,
14214 FwOpcodeType opCode,
14215 U32 cmdSeq,
14216 const Fw::CmdResponse& response
14217 ) const {
14218 FW_ASSERT(
14219 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
14220 static_cast<FwAssertArgType>(portNum),
14221 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
14222 );
14223 switch (portNum) {
14224 case 0:
14225 CdhCore::cmdDisp.compCmdStat_handlerBase(
14226 0,
14227 opCode,
14228 cmdSeq,
14229 response
14230 );
14231 break;
14232 default:
14233 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14234 break;
14235 }
14236 }
14237
14238 void HealthComponentBase::Log_out(
14239 FwIndexType portNum,
14240 FwEventIdType id,
14241 Fw::Time& timeTag,
14242 const Fw::LogSeverity& severity,
14243 Fw::LogBuffer& args
14244 ) const {
14245 FW_ASSERT(
14246 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
14247 static_cast<FwAssertArgType>(portNum),
14248 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
14249 );
14250 switch (portNum) {
14251 case 0:
14252 CdhCore::events.LogRecv_handlerBase(
14253 0,
14254 id,
14255 timeTag,
14256 severity,
14257 args
14258 );
14259 break;
14260 default:
14261 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14262 break;
14263 }
14264 }
14265
14266 #if FW_ENABLE_TEXT_LOGGING == 1
14267
14268 void HealthComponentBase::LogText_out(
14269 FwIndexType portNum,
14270 FwEventIdType id,
14271 Fw::Time& timeTag,
14272 const Fw::LogSeverity& severity,
14273 Fw::TextLogString& text
14274 ) const {
14275 FW_ASSERT(
14276 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
14277 static_cast<FwAssertArgType>(portNum),
14278 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
14279 );
14280 switch (portNum) {
14281 case 0:
14282 CdhCore::textLogger.TextLogger_handlerBase(
14283 0,
14284 id,
14285 timeTag,
14286 severity,
14287 text
14288 );
14289 break;
14290 default:
14291 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14292 break;
14293 }
14294 }
14295
14296 #endif
14297
14298 885 void HealthComponentBase::PingSend_out(
14299 FwIndexType portNum,
14300 U32 key
14301 ) const {
14302 885 FW_ASSERT(
14303 (0 <= portNum) && (portNum < NUM_PINGSEND_OUTPUT_PORTS),
14304 static_cast<FwAssertArgType>(portNum),
14305 static_cast<FwAssertArgType>(NUM_PINGSEND_OUTPUT_PORTS)
14306 );
14307
15/16
✓ Branch 0 taken 59 times.
✓ Branch 1 taken 59 times.
✓ Branch 2 taken 59 times.
✓ Branch 3 taken 59 times.
✓ Branch 4 taken 59 times.
✓ Branch 5 taken 59 times.
✓ Branch 6 taken 59 times.
✓ Branch 7 taken 59 times.
✓ Branch 8 taken 59 times.
✓ Branch 9 taken 59 times.
✓ Branch 10 taken 59 times.
✓ Branch 11 taken 59 times.
✓ Branch 12 taken 59 times.
✓ Branch 13 taken 59 times.
✓ Branch 14 taken 59 times.
✗ Branch 15 not taken.
885 switch (portNum) {
14308 59 case 0:
14309 59 CdhCore::cmdDisp.pingIn_handlerBase(
14310 0,
14311 key
14312 );
14313 59 break;
14314 59 case 1:
14315 59 CdhCore::events.pingIn_handlerBase(
14316 0,
14317 key
14318 );
14319 59 break;
14320 59 case 2:
14321 59 CdhCore::tlmSend.pingIn_handlerBase(
14322 0,
14323 key
14324 );
14325 59 break;
14326 59 case 3:
14327 59 DataProducts::dpBufferAccumulator.pingIn_handlerBase(
14328 0,
14329 key
14330 );
14331 59 break;
14332 59 case 4:
14333 59 DataProducts::dpCat.pingIn_handlerBase(
14334 0,
14335 key
14336 );
14337 59 break;
14338 59 case 5:
14339 59 FileHandling::fileDownlink.pingIn_handlerBase(
14340 0,
14341 key
14342 );
14343 59 break;
14344 59 case 6:
14345 59 FileHandling::fileManager.pingIn_handlerBase(
14346 0,
14347 key
14348 );
14349 59 break;
14350 59 case 7:
14351 59 FileHandling::fileUplink.pingIn_handlerBase(
14352 0,
14353 key
14354 );
14355 59 break;
14356 59 case 8:
14357 59 FileHandling::prmDb.pingIn_handlerBase(
14358 0,
14359 key
14360 );
14361 59 break;
14362 59 case 9:
14363 59 Ref::blockDrv.PingIn_handlerBase(
14364 0,
14365 key
14366 );
14367 59 break;
14368 59 case 10:
14369 59 Ref::cmdSeq.pingIn_handlerBase(
14370 0,
14371 key
14372 );
14373 59 break;
14374 59 case 11:
14375 59 Ref::pingRcvr.PingIn_handlerBase(
14376 0,
14377 key
14378 );
14379 59 break;
14380 59 case 12:
14381 59 Ref::rateGroup1Comp.PingIn_handlerBase(
14382 0,
14383 key
14384 );
14385 59 break;
14386 59 case 13:
14387 59 Ref::rateGroup2Comp.PingIn_handlerBase(
14388 0,
14389 key
14390 );
14391 59 break;
14392 59 case 14:
14393 59 Ref::rateGroup3Comp.PingIn_handlerBase(
14394 0,
14395 key
14396 );
14397 59 break;
14398 default:
14399 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14400 break;
14401 }
14402 885 }
14403
14404 void HealthComponentBase::Time_out(
14405 FwIndexType portNum,
14406 Fw::Time& time
14407 ) const {
14408 FW_ASSERT(
14409 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
14410 static_cast<FwAssertArgType>(portNum),
14411 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
14412 );
14413 switch (portNum) {
14414 case 0:
14415 Ref::posixTime.timeGetPort_handlerBase(
14416 0,
14417 time
14418 );
14419 break;
14420 default:
14421 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14422 break;
14423 }
14424 }
14425
14426 void HealthComponentBase::Tlm_out(
14427 FwIndexType portNum,
14428 FwChanIdType id,
14429 Fw::Time& timeTag,
14430 Fw::TlmBuffer& val
14431 ) const {
14432 FW_ASSERT(
14433 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
14434 static_cast<FwAssertArgType>(portNum),
14435 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
14436 );
14437 switch (portNum) {
14438 case 0:
14439 CdhCore::tlmSend.TlmRecv_handlerBase(
14440 0,
14441 id,
14442 timeTag,
14443 val
14444 );
14445 break;
14446 default:
14447 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14448 break;
14449 }
14450 }
14451
14452 void HealthComponentBase::WdogStroke_out(
14453 FwIndexType portNum,
14454 U32 code
14455 ) const {
14456 FW_ASSERT(
14457 (0 <= portNum) && (portNum < NUM_WDOGSTROKE_OUTPUT_PORTS),
14458 static_cast<FwAssertArgType>(portNum),
14459 static_cast<FwAssertArgType>(NUM_WDOGSTROKE_OUTPUT_PORTS)
14460 );
14461 switch (portNum) {
14462 default:
14463 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14464 break;
14465 }
14466 }
14467
14468 }
14469
14470 namespace Svc {
14471
14472 bool LinuxTimerComponentBase::isConnected_CycleOut_OutputPort(FwIndexType portNum) const {
14473 FW_ASSERT(
14474 (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS),
14475 static_cast<FwAssertArgType>(portNum),
14476 static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS)
14477 );
14478 bool result = false;
14479 switch (portNum) {
14480 case 0:
14481 result = true;
14482 break;
14483 default:
14484 break;
14485 }
14486 return result;
14487 }
14488
14489 235 void LinuxTimerComponentBase::CycleOut_out(
14490 FwIndexType portNum,
14491 Os::RawTime& cycleStart
14492 ) const {
14493 235 FW_ASSERT(
14494 (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS),
14495 static_cast<FwAssertArgType>(portNum),
14496 static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS)
14497 );
14498
1/2
✓ Branch 0 taken 235 times.
✗ Branch 1 not taken.
235 switch (portNum) {
14499 235 case 0:
14500 235 Ref::rateGroupDriverComp.CycleIn_handlerBase(
14501 0,
14502 cycleStart
14503 );
14504 235 break;
14505 default:
14506 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14507 break;
14508 }
14509 235 }
14510
14511 }
14512
14513 namespace Svc {
14514
14515 1 bool PrmDbComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const {
14516 1 FW_ASSERT(
14517 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
14518 static_cast<FwAssertArgType>(portNum),
14519 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
14520 );
14521 1 bool result = false;
14522
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
14523 1 case 0:
14524 1 result = true;
14525 1 break;
14526 default:
14527 break;
14528 }
14529 1 return result;
14530 }
14531
14532 bool PrmDbComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const {
14533 FW_ASSERT(
14534 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
14535 static_cast<FwAssertArgType>(portNum),
14536 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
14537 );
14538 bool result = false;
14539 switch (portNum) {
14540 case 0:
14541 result = true;
14542 break;
14543 default:
14544 break;
14545 }
14546 return result;
14547 }
14548
14549 9 bool PrmDbComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
14550 9 FW_ASSERT(
14551 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
14552 static_cast<FwAssertArgType>(portNum),
14553 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
14554 );
14555 9 bool result = false;
14556
1/2
✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
9 switch (portNum) {
14557 9 case 0:
14558 9 result = true;
14559 9 break;
14560 default:
14561 break;
14562 }
14563 9 return result;
14564 }
14565
14566 #if FW_ENABLE_TEXT_LOGGING == 1
14567
14568 9 bool PrmDbComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
14569 9 FW_ASSERT(
14570 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
14571 static_cast<FwAssertArgType>(portNum),
14572 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
14573 );
14574 9 bool result = false;
14575
1/2
✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
9 switch (portNum) {
14576 9 case 0:
14577 9 result = true;
14578 9 break;
14579 default:
14580 break;
14581 }
14582 9 return result;
14583 }
14584
14585 #endif
14586
14587 9 bool PrmDbComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
14588 9 FW_ASSERT(
14589 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
14590 static_cast<FwAssertArgType>(portNum),
14591 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
14592 );
14593 9 bool result = false;
14594
1/2
✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
9 switch (portNum) {
14595 9 case 0:
14596 9 result = true;
14597 9 break;
14598 default:
14599 break;
14600 }
14601 9 return result;
14602 }
14603
14604 bool PrmDbComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const {
14605 FW_ASSERT(
14606 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
14607 static_cast<FwAssertArgType>(portNum),
14608 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
14609 );
14610 bool result = false;
14611 switch (portNum) {
14612 case 0:
14613 result = true;
14614 break;
14615 default:
14616 break;
14617 }
14618 return result;
14619 }
14620
14621 3 void PrmDbComponentBase::CmdReg_out(
14622 FwIndexType portNum,
14623 FwOpcodeType opCode
14624 ) const {
14625 3 FW_ASSERT(
14626 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
14627 static_cast<FwAssertArgType>(portNum),
14628 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
14629 );
14630
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 switch (portNum) {
14631 3 case 0:
14632 3 CdhCore::cmdDisp.compCmdReg_handlerBase(
14633 11,
14634 opCode
14635 );
14636 3 break;
14637 default:
14638 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14639 break;
14640 }
14641 3 }
14642
14643 void PrmDbComponentBase::CmdStatus_out(
14644 FwIndexType portNum,
14645 FwOpcodeType opCode,
14646 U32 cmdSeq,
14647 const Fw::CmdResponse& response
14648 ) const {
14649 FW_ASSERT(
14650 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
14651 static_cast<FwAssertArgType>(portNum),
14652 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
14653 );
14654 switch (portNum) {
14655 case 0:
14656 CdhCore::cmdDisp.compCmdStat_handlerBase(
14657 0,
14658 opCode,
14659 cmdSeq,
14660 response
14661 );
14662 break;
14663 default:
14664 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14665 break;
14666 }
14667 }
14668
14669 9 void PrmDbComponentBase::Log_out(
14670 FwIndexType portNum,
14671 FwEventIdType id,
14672 Fw::Time& timeTag,
14673 const Fw::LogSeverity& severity,
14674 Fw::LogBuffer& args
14675 ) const {
14676 9 FW_ASSERT(
14677 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
14678 static_cast<FwAssertArgType>(portNum),
14679 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
14680 );
14681
1/2
✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
9 switch (portNum) {
14682 9 case 0:
14683 9 CdhCore::events.LogRecv_handlerBase(
14684 0,
14685 id,
14686 timeTag,
14687 severity,
14688 args
14689 );
14690 9 break;
14691 default:
14692 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14693 break;
14694 }
14695 9 }
14696
14697 #if FW_ENABLE_TEXT_LOGGING == 1
14698
14699 9 void PrmDbComponentBase::LogText_out(
14700 FwIndexType portNum,
14701 FwEventIdType id,
14702 Fw::Time& timeTag,
14703 const Fw::LogSeverity& severity,
14704 Fw::TextLogString& text
14705 ) const {
14706 9 FW_ASSERT(
14707 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
14708 static_cast<FwAssertArgType>(portNum),
14709 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
14710 );
14711
1/2
✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
9 switch (portNum) {
14712 9 case 0:
14713 9 CdhCore::textLogger.TextLogger_handlerBase(
14714 0,
14715 id,
14716 timeTag,
14717 severity,
14718 text
14719 );
14720 9 break;
14721 default:
14722 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14723 break;
14724 }
14725 9 }
14726
14727 #endif
14728
14729 9 void PrmDbComponentBase::Time_out(
14730 FwIndexType portNum,
14731 Fw::Time& time
14732 ) const {
14733 9 FW_ASSERT(
14734 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
14735 static_cast<FwAssertArgType>(portNum),
14736 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
14737 );
14738
1/2
✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
9 switch (portNum) {
14739 9 case 0:
14740 9 Ref::posixTime.timeGetPort_handlerBase(
14741 0,
14742 time
14743 );
14744 9 break;
14745 default:
14746 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14747 break;
14748 }
14749 9 }
14750
14751 59 void PrmDbComponentBase::pingOut_out(
14752 FwIndexType portNum,
14753 U32 key
14754 ) const {
14755 59 FW_ASSERT(
14756 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
14757 static_cast<FwAssertArgType>(portNum),
14758 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
14759 );
14760
1/2
✓ Branch 0 taken 59 times.
✗ Branch 1 not taken.
59 switch (portNum) {
14761 59 case 0:
14762 59 CdhCore::health.PingReturn_handlerBase(
14763 8,
14764 key
14765 );
14766 59 break;
14767 default:
14768 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14769 break;
14770 }
14771 59 }
14772
14773 }
14774
14775 namespace Svc {
14776
14777 705 bool RateGroupDriverComponentBase::isConnected_CycleOut_OutputPort(FwIndexType portNum) const {
14778 705 FW_ASSERT(
14779 (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS),
14780 static_cast<FwAssertArgType>(portNum),
14781 static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS)
14782 );
14783 705 bool result = false;
14784
3/4
✓ Branch 0 taken 235 times.
✓ Branch 1 taken 235 times.
✓ Branch 2 taken 235 times.
✗ Branch 3 not taken.
705 switch (portNum) {
14785 235 case 0:
14786 235 result = true;
14787 235 break;
14788 235 case 1:
14789 235 result = true;
14790 235 break;
14791 235 case 2:
14792 235 result = true;
14793 235 break;
14794 default:
14795 break;
14796 }
14797 705 return result;
14798 }
14799
14800 412 void RateGroupDriverComponentBase::CycleOut_out(
14801 FwIndexType portNum,
14802 Os::RawTime& cycleStart
14803 ) const {
14804 412 FW_ASSERT(
14805 (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS),
14806 static_cast<FwAssertArgType>(portNum),
14807 static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS)
14808 );
14809
3/4
✓ Branch 0 taken 235 times.
✓ Branch 1 taken 118 times.
✓ Branch 2 taken 59 times.
✗ Branch 3 not taken.
412 switch (portNum) {
14810 235 case 0:
14811 235 Ref::rateGroup1Comp.CycleIn_handlerBase(
14812 0,
14813 cycleStart
14814 );
14815 235 break;
14816 118 case 1:
14817 118 Ref::rateGroup2Comp.CycleIn_handlerBase(
14818 0,
14819 cycleStart
14820 );
14821 118 break;
14822 59 case 2:
14823 59 Ref::rateGroup3Comp.CycleIn_handlerBase(
14824 0,
14825 cycleStart
14826 );
14827 59 break;
14828 default:
14829 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14830 break;
14831 }
14832 412 }
14833
14834 }
14835
14836 namespace Svc {
14837
14838 1 bool SystemResourcesComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const {
14839 1 FW_ASSERT(
14840 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
14841 static_cast<FwAssertArgType>(portNum),
14842 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
14843 );
14844 1 bool result = false;
14845
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
14846 1 case 0:
14847 1 result = true;
14848 1 break;
14849 default:
14850 break;
14851 }
14852 1 return result;
14853 }
14854
14855 bool SystemResourcesComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const {
14856 FW_ASSERT(
14857 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
14858 static_cast<FwAssertArgType>(portNum),
14859 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
14860 );
14861 bool result = false;
14862 switch (portNum) {
14863 case 0:
14864 result = true;
14865 break;
14866 default:
14867 break;
14868 }
14869 return result;
14870 }
14871
14872 bool SystemResourcesComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const {
14873 FW_ASSERT(
14874 (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS),
14875 static_cast<FwAssertArgType>(portNum),
14876 static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS)
14877 );
14878 bool result = false;
14879 switch (portNum) {
14880 case 0:
14881 result = true;
14882 break;
14883 default:
14884 break;
14885 }
14886 return result;
14887 }
14888
14889 #if FW_ENABLE_TEXT_LOGGING == 1
14890
14891 bool SystemResourcesComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const {
14892 FW_ASSERT(
14893 (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS),
14894 static_cast<FwAssertArgType>(portNum),
14895 static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS)
14896 );
14897 bool result = false;
14898 switch (portNum) {
14899 case 0:
14900 result = true;
14901 break;
14902 default:
14903 break;
14904 }
14905 return result;
14906 }
14907
14908 #endif
14909
14910 2115 bool SystemResourcesComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const {
14911 2115 FW_ASSERT(
14912 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
14913 static_cast<FwAssertArgType>(portNum),
14914 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
14915 );
14916 2115 bool result = false;
14917
1/2
✓ Branch 0 taken 2115 times.
✗ Branch 1 not taken.
2115 switch (portNum) {
14918 2115 case 0:
14919 2115 result = true;
14920 2115 break;
14921 default:
14922 break;
14923 }
14924 2115 return result;
14925 }
14926
14927 4230 bool SystemResourcesComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const {
14928 4230 FW_ASSERT(
14929 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
14930 static_cast<FwAssertArgType>(portNum),
14931 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
14932 );
14933 4230 bool result = false;
14934
1/2
✓ Branch 0 taken 4230 times.
✗ Branch 1 not taken.
4230 switch (portNum) {
14935 4230 case 0:
14936 4230 result = true;
14937 4230 break;
14938 default:
14939 break;
14940 }
14941 4230 return result;
14942 }
14943
14944 1 void SystemResourcesComponentBase::CmdReg_out(
14945 FwIndexType portNum,
14946 FwOpcodeType opCode
14947 ) const {
14948 1 FW_ASSERT(
14949 (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS),
14950 static_cast<FwAssertArgType>(portNum),
14951 static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS)
14952 );
14953
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
14954 1 case 0:
14955 1 CdhCore::cmdDisp.compCmdReg_handlerBase(
14956 22,
14957 opCode
14958 );
14959 1 break;
14960 default:
14961 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14962 break;
14963 }
14964 1 }
14965
14966 void SystemResourcesComponentBase::CmdStatus_out(
14967 FwIndexType portNum,
14968 FwOpcodeType opCode,
14969 U32 cmdSeq,
14970 const Fw::CmdResponse& response
14971 ) const {
14972 FW_ASSERT(
14973 (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS),
14974 static_cast<FwAssertArgType>(portNum),
14975 static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS)
14976 );
14977 switch (portNum) {
14978 case 0:
14979 CdhCore::cmdDisp.compCmdStat_handlerBase(
14980 0,
14981 opCode,
14982 cmdSeq,
14983 response
14984 );
14985 break;
14986 default:
14987 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
14988 break;
14989 }
14990 }
14991
14992 2115 void SystemResourcesComponentBase::Time_out(
14993 FwIndexType portNum,
14994 Fw::Time& time
14995 ) const {
14996 2115 FW_ASSERT(
14997 (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS),
14998 static_cast<FwAssertArgType>(portNum),
14999 static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS)
15000 );
15001
1/2
✓ Branch 0 taken 2115 times.
✗ Branch 1 not taken.
2115 switch (portNum) {
15002 2115 case 0:
15003 2115 Ref::posixTime.timeGetPort_handlerBase(
15004 0,
15005 time
15006 );
15007 2115 break;
15008 default:
15009 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15010 break;
15011 }
15012 2115 }
15013
15014 2115 void SystemResourcesComponentBase::Tlm_out(
15015 FwIndexType portNum,
15016 FwChanIdType id,
15017 Fw::Time& timeTag,
15018 Fw::TlmBuffer& val
15019 ) const {
15020 2115 FW_ASSERT(
15021 (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS),
15022 static_cast<FwAssertArgType>(portNum),
15023 static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS)
15024 );
15025
1/2
✓ Branch 0 taken 2115 times.
✗ Branch 1 not taken.
2115 switch (portNum) {
15026 2115 case 0:
15027 2115 CdhCore::tlmSend.TlmRecv_handlerBase(
15028 0,
15029 id,
15030 timeTag,
15031 val
15032 );
15033 2115 break;
15034 default:
15035 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15036 break;
15037 }
15038 2115 }
15039
15040 }
15041
15042 namespace Svc {
15043
15044 235 bool TlmChanComponentBase::isConnected_PktSend_OutputPort(FwIndexType portNum) const {
15045 235 FW_ASSERT(
15046 (0 <= portNum) && (portNum < NUM_PKTSEND_OUTPUT_PORTS),
15047 static_cast<FwAssertArgType>(portNum),
15048 static_cast<FwAssertArgType>(NUM_PKTSEND_OUTPUT_PORTS)
15049 );
15050 235 bool result = false;
15051
1/2
✓ Branch 0 taken 235 times.
✗ Branch 1 not taken.
235 switch (portNum) {
15052 235 case 0:
15053 235 result = true;
15054 235 break;
15055 default:
15056 break;
15057 }
15058 235 return result;
15059 }
15060
15061 bool TlmChanComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const {
15062 FW_ASSERT(
15063 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
15064 static_cast<FwAssertArgType>(portNum),
15065 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
15066 );
15067 bool result = false;
15068 switch (portNum) {
15069 case 0:
15070 result = true;
15071 break;
15072 default:
15073 break;
15074 }
15075 return result;
15076 }
15077
15078 #if FW_ENABLE_TEXT_LOGGING == 1
15079
15080 bool TlmChanComponentBase::isConnected_eventOutText_OutputPort(FwIndexType portNum) const {
15081 FW_ASSERT(
15082 (0 <= portNum) && (portNum < NUM_EVENTOUTTEXT_OUTPUT_PORTS),
15083 static_cast<FwAssertArgType>(portNum),
15084 static_cast<FwAssertArgType>(NUM_EVENTOUTTEXT_OUTPUT_PORTS)
15085 );
15086 bool result = false;
15087 switch (portNum) {
15088 case 0:
15089 result = true;
15090 break;
15091 default:
15092 break;
15093 }
15094 return result;
15095 }
15096
15097 #endif
15098
15099 bool TlmChanComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const {
15100 FW_ASSERT(
15101 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
15102 static_cast<FwAssertArgType>(portNum),
15103 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
15104 );
15105 bool result = false;
15106 switch (portNum) {
15107 case 0:
15108 result = true;
15109 break;
15110 default:
15111 break;
15112 }
15113 return result;
15114 }
15115
15116 bool TlmChanComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
15117 FW_ASSERT(
15118 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
15119 static_cast<FwAssertArgType>(portNum),
15120 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
15121 );
15122 bool result = false;
15123 switch (portNum) {
15124 case 0:
15125 result = true;
15126 break;
15127 default:
15128 break;
15129 }
15130 return result;
15131 }
15132
15133 226 void TlmChanComponentBase::PktSend_out(
15134 FwIndexType portNum,
15135 Fw::ComBuffer& data,
15136 U32 context
15137 ) const {
15138 226 FW_ASSERT(
15139 (0 <= portNum) && (portNum < NUM_PKTSEND_OUTPUT_PORTS),
15140 static_cast<FwAssertArgType>(portNum),
15141 static_cast<FwAssertArgType>(NUM_PKTSEND_OUTPUT_PORTS)
15142 );
15143
1/2
✓ Branch 0 taken 226 times.
✗ Branch 1 not taken.
226 switch (portNum) {
15144 226 case 0:
15145 226 ComCcsds::comQueue.comPacketQueueIn_handlerBase(
15146 1,
15147 data,
15148 context
15149 );
15150 226 break;
15151 default:
15152 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15153 break;
15154 }
15155 226 }
15156
15157 void TlmChanComponentBase::eventOut_out(
15158 FwIndexType portNum,
15159 FwEventIdType id,
15160 Fw::Time& timeTag,
15161 const Fw::LogSeverity& severity,
15162 Fw::LogBuffer& args
15163 ) const {
15164 FW_ASSERT(
15165 (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS),
15166 static_cast<FwAssertArgType>(portNum),
15167 static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS)
15168 );
15169 switch (portNum) {
15170 case 0:
15171 CdhCore::events.LogRecv_handlerBase(
15172 0,
15173 id,
15174 timeTag,
15175 severity,
15176 args
15177 );
15178 break;
15179 default:
15180 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15181 break;
15182 }
15183 }
15184
15185 #if FW_ENABLE_TEXT_LOGGING == 1
15186
15187 void TlmChanComponentBase::eventOutText_out(
15188 FwIndexType portNum,
15189 FwEventIdType id,
15190 Fw::Time& timeTag,
15191 const Fw::LogSeverity& severity,
15192 Fw::TextLogString& text
15193 ) const {
15194 FW_ASSERT(
15195 (0 <= portNum) && (portNum < NUM_EVENTOUTTEXT_OUTPUT_PORTS),
15196 static_cast<FwAssertArgType>(portNum),
15197 static_cast<FwAssertArgType>(NUM_EVENTOUTTEXT_OUTPUT_PORTS)
15198 );
15199 switch (portNum) {
15200 case 0:
15201 CdhCore::textLogger.TextLogger_handlerBase(
15202 0,
15203 id,
15204 timeTag,
15205 severity,
15206 text
15207 );
15208 break;
15209 default:
15210 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15211 break;
15212 }
15213 }
15214
15215 #endif
15216
15217 59 void TlmChanComponentBase::pingOut_out(
15218 FwIndexType portNum,
15219 U32 key
15220 ) const {
15221 59 FW_ASSERT(
15222 (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS),
15223 static_cast<FwAssertArgType>(portNum),
15224 static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS)
15225 );
15226
1/2
✓ Branch 0 taken 59 times.
✗ Branch 1 not taken.
59 switch (portNum) {
15227 59 case 0:
15228 59 CdhCore::health.PingReturn_handlerBase(
15229 2,
15230 key
15231 );
15232 59 break;
15233 default:
15234 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15235 break;
15236 }
15237 59 }
15238
15239 void TlmChanComponentBase::timeCaller_out(
15240 FwIndexType portNum,
15241 Fw::Time& time
15242 ) const {
15243 FW_ASSERT(
15244 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
15245 static_cast<FwAssertArgType>(portNum),
15246 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
15247 );
15248 switch (portNum) {
15249 case 0:
15250 Ref::posixTime.timeGetPort_handlerBase(
15251 0,
15252 time
15253 );
15254 break;
15255 default:
15256 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15257 break;
15258 }
15259 }
15260
15261 }
15262
15263 namespace Svc {
15264
15265 1 bool VersionComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const {
15266 1 FW_ASSERT(
15267 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
15268 static_cast<FwAssertArgType>(portNum),
15269 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
15270 );
15271 1 bool result = false;
15272
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 switch (portNum) {
15273 1 case 0:
15274 1 result = true;
15275 1 break;
15276 default:
15277 break;
15278 }
15279 1 return result;
15280 }
15281
15282 bool VersionComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const {
15283 FW_ASSERT(
15284 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
15285 static_cast<FwAssertArgType>(portNum),
15286 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
15287 );
15288 bool result = false;
15289 switch (portNum) {
15290 case 0:
15291 result = true;
15292 break;
15293 default:
15294 break;
15295 }
15296 return result;
15297 }
15298
15299 2 bool VersionComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const {
15300 2 FW_ASSERT(
15301 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
15302 static_cast<FwAssertArgType>(portNum),
15303 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
15304 );
15305 2 bool result = false;
15306
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
15307 2 case 0:
15308 2 result = true;
15309 2 break;
15310 default:
15311 break;
15312 }
15313 2 return result;
15314 }
15315
15316 #if FW_ENABLE_TEXT_LOGGING == 1
15317
15318 2 bool VersionComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const {
15319 2 FW_ASSERT(
15320 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
15321 static_cast<FwAssertArgType>(portNum),
15322 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
15323 );
15324 2 bool result = false;
15325
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
15326 2 case 0:
15327 2 result = true;
15328 2 break;
15329 default:
15330 break;
15331 }
15332 2 return result;
15333 }
15334
15335 #endif
15336
15337 4 bool VersionComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const {
15338 4 FW_ASSERT(
15339 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
15340 static_cast<FwAssertArgType>(portNum),
15341 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
15342 );
15343 4 bool result = false;
15344
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
15345 4 case 0:
15346 4 result = true;
15347 4 break;
15348 default:
15349 break;
15350 }
15351 4 return result;
15352 }
15353
15354 4 bool VersionComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const {
15355 4 FW_ASSERT(
15356 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
15357 static_cast<FwAssertArgType>(portNum),
15358 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
15359 );
15360 4 bool result = false;
15361
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
15362 4 case 0:
15363 4 result = true;
15364 4 break;
15365 default:
15366 break;
15367 }
15368 4 return result;
15369 }
15370
15371 2 void VersionComponentBase::cmdRegOut_out(
15372 FwIndexType portNum,
15373 FwOpcodeType opCode
15374 ) const {
15375 2 FW_ASSERT(
15376 (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS),
15377 static_cast<FwAssertArgType>(portNum),
15378 static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS)
15379 );
15380
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
15381 2 case 0:
15382 2 CdhCore::cmdDisp.compCmdReg_handlerBase(
15383 3,
15384 opCode
15385 );
15386 2 break;
15387 default:
15388 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15389 break;
15390 }
15391 2 }
15392
15393 void VersionComponentBase::cmdResponseOut_out(
15394 FwIndexType portNum,
15395 FwOpcodeType opCode,
15396 U32 cmdSeq,
15397 const Fw::CmdResponse& response
15398 ) const {
15399 FW_ASSERT(
15400 (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS),
15401 static_cast<FwAssertArgType>(portNum),
15402 static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS)
15403 );
15404 switch (portNum) {
15405 case 0:
15406 CdhCore::cmdDisp.compCmdStat_handlerBase(
15407 0,
15408 opCode,
15409 cmdSeq,
15410 response
15411 );
15412 break;
15413 default:
15414 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15415 break;
15416 }
15417 }
15418
15419 2 void VersionComponentBase::logOut_out(
15420 FwIndexType portNum,
15421 FwEventIdType id,
15422 Fw::Time& timeTag,
15423 const Fw::LogSeverity& severity,
15424 Fw::LogBuffer& args
15425 ) const {
15426 2 FW_ASSERT(
15427 (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS),
15428 static_cast<FwAssertArgType>(portNum),
15429 static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS)
15430 );
15431
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
15432 2 case 0:
15433 2 CdhCore::events.LogRecv_handlerBase(
15434 0,
15435 id,
15436 timeTag,
15437 severity,
15438 args
15439 );
15440 2 break;
15441 default:
15442 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15443 break;
15444 }
15445 2 }
15446
15447 #if FW_ENABLE_TEXT_LOGGING == 1
15448
15449 2 void VersionComponentBase::logTextOut_out(
15450 FwIndexType portNum,
15451 FwEventIdType id,
15452 Fw::Time& timeTag,
15453 const Fw::LogSeverity& severity,
15454 Fw::TextLogString& text
15455 ) const {
15456 2 FW_ASSERT(
15457 (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS),
15458 static_cast<FwAssertArgType>(portNum),
15459 static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS)
15460 );
15461
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
15462 2 case 0:
15463 2 CdhCore::textLogger.TextLogger_handlerBase(
15464 0,
15465 id,
15466 timeTag,
15467 severity,
15468 text
15469 );
15470 2 break;
15471 default:
15472 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15473 break;
15474 }
15475 2 }
15476
15477 #endif
15478
15479 4 void VersionComponentBase::timeCaller_out(
15480 FwIndexType portNum,
15481 Fw::Time& time
15482 ) const {
15483 4 FW_ASSERT(
15484 (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS),
15485 static_cast<FwAssertArgType>(portNum),
15486 static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS)
15487 );
15488
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 switch (portNum) {
15489 4 case 0:
15490 4 Ref::posixTime.timeGetPort_handlerBase(
15491 0,
15492 time
15493 );
15494 4 break;
15495 default:
15496 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15497 break;
15498 }
15499 4 }
15500
15501 2 void VersionComponentBase::tlmOut_out(
15502 FwIndexType portNum,
15503 FwChanIdType id,
15504 Fw::Time& timeTag,
15505 Fw::TlmBuffer& val
15506 ) const {
15507 2 FW_ASSERT(
15508 (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS),
15509 static_cast<FwAssertArgType>(portNum),
15510 static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS)
15511 );
15512
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 switch (portNum) {
15513 2 case 0:
15514 2 CdhCore::tlmSend.TlmRecv_handlerBase(
15515 0,
15516 id,
15517 timeTag,
15518 val
15519 );
15520 2 break;
15521 default:
15522 FW_ASSERT(false, static_cast<FwAssertArgType>(portNum));
15523 break;
15524 }
15525 2 }
15526
15527 }
15528
15529 #endif
15530