| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // ====================================================================== | ||
| 2 | // \title RefTopologyAc.cpp | ||
| 3 | // \author Generated by fpp-to-cpp | ||
| 4 | // \brief cpp file for Ref topology | ||
| 5 | // ====================================================================== | ||
| 6 | |||
| 7 | #include "Ref/Top/RefTopologyAc.hpp" | ||
| 8 | |||
| 9 | // ---------------------------------------------------------------------- | ||
| 10 | // Component instances | ||
| 11 | // ---------------------------------------------------------------------- | ||
| 12 | |||
| 13 | namespace CdhCore { | ||
| 14 | |||
| 15 | Svc::CommandDispatcher cmdDisp(FW_OPTIONAL_NAME("CdhCore.cmdDisp")); | ||
| 16 | |||
| 17 | } | ||
| 18 | |||
| 19 | namespace CdhCore { | ||
| 20 | |||
| 21 | Svc::EventManager events(FW_OPTIONAL_NAME("CdhCore.events")); | ||
| 22 | |||
| 23 | } | ||
| 24 | |||
| 25 | namespace CdhCore { | ||
| 26 | |||
| 27 | Svc::AssertFatalAdapter fatalAdapter(FW_OPTIONAL_NAME("CdhCore.fatalAdapter")); | ||
| 28 | |||
| 29 | } | ||
| 30 | |||
| 31 | namespace CdhCore { | ||
| 32 | |||
| 33 | Svc::FatalHandler fatalHandler(FW_OPTIONAL_NAME("CdhCore.fatalHandler")); | ||
| 34 | |||
| 35 | } | ||
| 36 | |||
| 37 | namespace CdhCore { | ||
| 38 | |||
| 39 | Svc::Health health(FW_OPTIONAL_NAME("CdhCore.health")); | ||
| 40 | |||
| 41 | } | ||
| 42 | |||
| 43 | namespace CdhCore { | ||
| 44 | |||
| 45 | Svc::PassiveTextLogger textLogger(FW_OPTIONAL_NAME("CdhCore.textLogger")); | ||
| 46 | |||
| 47 | } | ||
| 48 | |||
| 49 | namespace CdhCore { | ||
| 50 | |||
| 51 | Svc::TlmChan tlmSend(FW_OPTIONAL_NAME("CdhCore.tlmSend")); | ||
| 52 | |||
| 53 | } | ||
| 54 | |||
| 55 | namespace CdhCore { | ||
| 56 | |||
| 57 | Svc::Version version(FW_OPTIONAL_NAME("CdhCore.version")); | ||
| 58 | |||
| 59 | } | ||
| 60 | |||
| 61 | namespace ComCcsds { | ||
| 62 | |||
| 63 | Svc::ComAggregator aggregator(FW_OPTIONAL_NAME("ComCcsds.aggregator")); | ||
| 64 | |||
| 65 | } | ||
| 66 | |||
| 67 | namespace ComCcsds { | ||
| 68 | |||
| 69 | Svc::Ccsds::ApidManager apidManager(FW_OPTIONAL_NAME("ComCcsds.apidManager")); | ||
| 70 | |||
| 71 | } | ||
| 72 | |||
| 73 | namespace ComCcsds { | ||
| 74 | |||
| 75 | Svc::ComQueue comQueue(FW_OPTIONAL_NAME("ComCcsds.comQueue")); | ||
| 76 | |||
| 77 | } | ||
| 78 | |||
| 79 | namespace ComCcsds { | ||
| 80 | |||
| 81 | Svc::ComStub comStub(FW_OPTIONAL_NAME("ComCcsds.comStub")); | ||
| 82 | |||
| 83 | } | ||
| 84 | |||
| 85 | namespace ComCcsds { | ||
| 86 | |||
| 87 | Svc::BufferManager commsBufferManager(FW_OPTIONAL_NAME("ComCcsds.commsBufferManager")); | ||
| 88 | |||
| 89 | } | ||
| 90 | |||
| 91 | namespace ComCcsds { | ||
| 92 | |||
| 93 | Svc::FprimeRouter fprimeRouter(FW_OPTIONAL_NAME("ComCcsds.fprimeRouter")); | ||
| 94 | |||
| 95 | } | ||
| 96 | |||
| 97 | namespace ComCcsds { | ||
| 98 | |||
| 99 | Svc::FrameAccumulator frameAccumulator(FW_OPTIONAL_NAME("ComCcsds.frameAccumulator")); | ||
| 100 | |||
| 101 | } | ||
| 102 | |||
| 103 | namespace ComCcsds { | ||
| 104 | |||
| 105 | Svc::Ccsds::TmFramer framer(FW_OPTIONAL_NAME("ComCcsds.framer")); | ||
| 106 | |||
| 107 | } | ||
| 108 | |||
| 109 | namespace ComCcsds { | ||
| 110 | |||
| 111 | Svc::Ccsds::SpacePacketDeframer spacePacketDeframer(FW_OPTIONAL_NAME("ComCcsds.spacePacketDeframer")); | ||
| 112 | |||
| 113 | } | ||
| 114 | |||
| 115 | namespace ComCcsds { | ||
| 116 | |||
| 117 | Svc::Ccsds::SpacePacketFramer spacePacketFramer(FW_OPTIONAL_NAME("ComCcsds.spacePacketFramer")); | ||
| 118 | |||
| 119 | } | ||
| 120 | |||
| 121 | namespace ComCcsds { | ||
| 122 | |||
| 123 | Svc::Ccsds::TcDeframer tcDeframer(FW_OPTIONAL_NAME("ComCcsds.tcDeframer")); | ||
| 124 | |||
| 125 | } | ||
| 126 | |||
| 127 | namespace DataProducts { | ||
| 128 | |||
| 129 | Svc::BufferAccumulator dpBufferAccumulator(FW_OPTIONAL_NAME("DataProducts.dpBufferAccumulator")); | ||
| 130 | |||
| 131 | } | ||
| 132 | |||
| 133 | namespace DataProducts { | ||
| 134 | |||
| 135 | Svc::BufferManager dpBufferManager(FW_OPTIONAL_NAME("DataProducts.dpBufferManager")); | ||
| 136 | |||
| 137 | } | ||
| 138 | |||
| 139 | namespace DataProducts { | ||
| 140 | |||
| 141 | Svc::DpCatalog dpCat(FW_OPTIONAL_NAME("DataProducts.dpCat")); | ||
| 142 | |||
| 143 | } | ||
| 144 | |||
| 145 | namespace DataProducts { | ||
| 146 | |||
| 147 | Svc::DpManager dpMgr(FW_OPTIONAL_NAME("DataProducts.dpMgr")); | ||
| 148 | |||
| 149 | } | ||
| 150 | |||
| 151 | namespace DataProducts { | ||
| 152 | |||
| 153 | Svc::DpWriter dpWriter(FW_OPTIONAL_NAME("DataProducts.dpWriter")); | ||
| 154 | |||
| 155 | } | ||
| 156 | |||
| 157 | namespace FileHandling { | ||
| 158 | |||
| 159 | Svc::FileDownlink fileDownlink(FW_OPTIONAL_NAME("FileHandling.fileDownlink")); | ||
| 160 | |||
| 161 | } | ||
| 162 | |||
| 163 | namespace FileHandling { | ||
| 164 | |||
| 165 | Svc::FileManager fileManager(FW_OPTIONAL_NAME("FileHandling.fileManager")); | ||
| 166 | |||
| 167 | } | ||
| 168 | |||
| 169 | namespace FileHandling { | ||
| 170 | |||
| 171 | Svc::FileUplink fileUplink(FW_OPTIONAL_NAME("FileHandling.fileUplink")); | ||
| 172 | |||
| 173 | } | ||
| 174 | |||
| 175 | namespace FileHandling { | ||
| 176 | |||
| 177 | Svc::PrmDb prmDb(FW_OPTIONAL_NAME("FileHandling.prmDb")); | ||
| 178 | |||
| 179 | } | ||
| 180 | |||
| 181 | namespace Ref { | ||
| 182 | |||
| 183 | Ref::SignalGen SG1(FW_OPTIONAL_NAME("Ref.SG1")); | ||
| 184 | |||
| 185 | } | ||
| 186 | |||
| 187 | namespace Ref { | ||
| 188 | |||
| 189 | Ref::SignalGen SG2(FW_OPTIONAL_NAME("Ref.SG2")); | ||
| 190 | |||
| 191 | } | ||
| 192 | |||
| 193 | namespace Ref { | ||
| 194 | |||
| 195 | Ref::SignalGen SG3(FW_OPTIONAL_NAME("Ref.SG3")); | ||
| 196 | |||
| 197 | } | ||
| 198 | |||
| 199 | namespace Ref { | ||
| 200 | |||
| 201 | Ref::SignalGen SG4(FW_OPTIONAL_NAME("Ref.SG4")); | ||
| 202 | |||
| 203 | } | ||
| 204 | |||
| 205 | namespace Ref { | ||
| 206 | |||
| 207 | Ref::SignalGen SG5(FW_OPTIONAL_NAME("Ref.SG5")); | ||
| 208 | |||
| 209 | } | ||
| 210 | |||
| 211 | namespace Ref { | ||
| 212 | |||
| 213 | Ref::BlockDriver blockDrv(FW_OPTIONAL_NAME("Ref.blockDrv")); | ||
| 214 | |||
| 215 | } | ||
| 216 | |||
| 217 | namespace Ref { | ||
| 218 | |||
| 219 | Svc::CmdSequencer cmdSeq(FW_OPTIONAL_NAME("Ref.cmdSeq")); | ||
| 220 | |||
| 221 | } | ||
| 222 | |||
| 223 | namespace Ref { | ||
| 224 | |||
| 225 | Drv::TcpClient comDriver(FW_OPTIONAL_NAME("Ref.comDriver")); | ||
| 226 | |||
| 227 | } | ||
| 228 | |||
| 229 | namespace Ref { | ||
| 230 | |||
| 231 | Ref::DpDemo dpDemo(FW_OPTIONAL_NAME("Ref.dpDemo")); | ||
| 232 | |||
| 233 | } | ||
| 234 | |||
| 235 | namespace Ref { | ||
| 236 | |||
| 237 | Svc::LinuxTimer linuxTimer(FW_OPTIONAL_NAME("Ref.linuxTimer")); | ||
| 238 | |||
| 239 | } | ||
| 240 | |||
| 241 | namespace Ref { | ||
| 242 | |||
| 243 | Ref::PingReceiver pingRcvr(FW_OPTIONAL_NAME("Ref.pingRcvr")); | ||
| 244 | |||
| 245 | } | ||
| 246 | |||
| 247 | namespace Ref { | ||
| 248 | |||
| 249 | Svc::PosixTime posixTime(FW_OPTIONAL_NAME("Ref.posixTime")); | ||
| 250 | |||
| 251 | } | ||
| 252 | |||
| 253 | namespace Ref { | ||
| 254 | |||
| 255 | Svc::ActiveRateGroup rateGroup1Comp(FW_OPTIONAL_NAME("Ref.rateGroup1Comp")); | ||
| 256 | |||
| 257 | } | ||
| 258 | |||
| 259 | namespace Ref { | ||
| 260 | |||
| 261 | Svc::ActiveRateGroup rateGroup2Comp(FW_OPTIONAL_NAME("Ref.rateGroup2Comp")); | ||
| 262 | |||
| 263 | } | ||
| 264 | |||
| 265 | namespace Ref { | ||
| 266 | |||
| 267 | Svc::ActiveRateGroup rateGroup3Comp(FW_OPTIONAL_NAME("Ref.rateGroup3Comp")); | ||
| 268 | |||
| 269 | } | ||
| 270 | |||
| 271 | namespace Ref { | ||
| 272 | |||
| 273 | Svc::RateGroupDriver rateGroupDriverComp(FW_OPTIONAL_NAME("Ref.rateGroupDriverComp")); | ||
| 274 | |||
| 275 | } | ||
| 276 | |||
| 277 | namespace Ref { | ||
| 278 | |||
| 279 | Ref::RecvBuff recvBuffComp(FW_OPTIONAL_NAME("Ref.recvBuffComp")); | ||
| 280 | |||
| 281 | } | ||
| 282 | |||
| 283 | namespace Ref { | ||
| 284 | |||
| 285 | Ref::SendBuff sendBuffComp(FW_OPTIONAL_NAME("Ref.sendBuffComp")); | ||
| 286 | |||
| 287 | } | ||
| 288 | |||
| 289 | namespace Ref { | ||
| 290 | |||
| 291 | Svc::SystemResources systemResources(FW_OPTIONAL_NAME("Ref.systemResources")); | ||
| 292 | |||
| 293 | } | ||
| 294 | |||
| 295 | namespace Ref { | ||
| 296 | |||
| 297 | Ref::TypeDemo typeDemo(FW_OPTIONAL_NAME("Ref.typeDemo")); | ||
| 298 | |||
| 299 | } | ||
| 300 | |||
| 301 | namespace Ref { | ||
| 302 | |||
| 303 | Svc::WasmSequencer wasmSeq(FW_OPTIONAL_NAME("Ref.wasmSeq")); | ||
| 304 | |||
| 305 | } | ||
| 306 | |||
| 307 | namespace Ref { | ||
| 308 | |||
| 309 | // ---------------------------------------------------------------------- | ||
| 310 | // Component configuration objects | ||
| 311 | // ---------------------------------------------------------------------- | ||
| 312 | |||
| 313 | namespace ConfigObjects { | ||
| 314 | |||
| 315 | namespace CdhCore_health { | ||
| 316 | Svc::Health::PingEntry pingEntries[NUM_PING_ENTRIES] = { | ||
| 317 | { | ||
| 318 | PingEntries::CdhCore_cmdDisp::WARN, | ||
| 319 | PingEntries::CdhCore_cmdDisp::FATAL, | ||
| 320 | "CdhCore_cmdDisp" | ||
| 321 | }, | ||
| 322 | { | ||
| 323 | PingEntries::CdhCore_events::WARN, | ||
| 324 | PingEntries::CdhCore_events::FATAL, | ||
| 325 | "CdhCore_events" | ||
| 326 | }, | ||
| 327 | { | ||
| 328 | PingEntries::CdhCore_tlmSend::WARN, | ||
| 329 | PingEntries::CdhCore_tlmSend::FATAL, | ||
| 330 | "CdhCore_tlmSend" | ||
| 331 | }, | ||
| 332 | { | ||
| 333 | PingEntries::DataProducts_dpBufferAccumulator::WARN, | ||
| 334 | PingEntries::DataProducts_dpBufferAccumulator::FATAL, | ||
| 335 | "DataProducts_dpBufferAccumulator" | ||
| 336 | }, | ||
| 337 | { | ||
| 338 | PingEntries::DataProducts_dpCat::WARN, | ||
| 339 | PingEntries::DataProducts_dpCat::FATAL, | ||
| 340 | "DataProducts_dpCat" | ||
| 341 | }, | ||
| 342 | { | ||
| 343 | PingEntries::FileHandling_fileDownlink::WARN, | ||
| 344 | PingEntries::FileHandling_fileDownlink::FATAL, | ||
| 345 | "FileHandling_fileDownlink" | ||
| 346 | }, | ||
| 347 | { | ||
| 348 | PingEntries::FileHandling_fileManager::WARN, | ||
| 349 | PingEntries::FileHandling_fileManager::FATAL, | ||
| 350 | "FileHandling_fileManager" | ||
| 351 | }, | ||
| 352 | { | ||
| 353 | PingEntries::FileHandling_fileUplink::WARN, | ||
| 354 | PingEntries::FileHandling_fileUplink::FATAL, | ||
| 355 | "FileHandling_fileUplink" | ||
| 356 | }, | ||
| 357 | { | ||
| 358 | PingEntries::FileHandling_prmDb::WARN, | ||
| 359 | PingEntries::FileHandling_prmDb::FATAL, | ||
| 360 | "FileHandling_prmDb" | ||
| 361 | }, | ||
| 362 | { | ||
| 363 | PingEntries::Ref_blockDrv::WARN, | ||
| 364 | PingEntries::Ref_blockDrv::FATAL, | ||
| 365 | "Ref_blockDrv" | ||
| 366 | }, | ||
| 367 | { | ||
| 368 | PingEntries::Ref_cmdSeq::WARN, | ||
| 369 | PingEntries::Ref_cmdSeq::FATAL, | ||
| 370 | "Ref_cmdSeq" | ||
| 371 | }, | ||
| 372 | { | ||
| 373 | PingEntries::Ref_pingRcvr::WARN, | ||
| 374 | PingEntries::Ref_pingRcvr::FATAL, | ||
| 375 | "Ref_pingRcvr" | ||
| 376 | }, | ||
| 377 | { | ||
| 378 | PingEntries::Ref_rateGroup1Comp::WARN, | ||
| 379 | PingEntries::Ref_rateGroup1Comp::FATAL, | ||
| 380 | "Ref_rateGroup1Comp" | ||
| 381 | }, | ||
| 382 | { | ||
| 383 | PingEntries::Ref_rateGroup2Comp::WARN, | ||
| 384 | PingEntries::Ref_rateGroup2Comp::FATAL, | ||
| 385 | "Ref_rateGroup2Comp" | ||
| 386 | }, | ||
| 387 | { | ||
| 388 | PingEntries::Ref_rateGroup3Comp::WARN, | ||
| 389 | PingEntries::Ref_rateGroup3Comp::FATAL, | ||
| 390 | "Ref_rateGroup3Comp" | ||
| 391 | }, | ||
| 392 | }; | ||
| 393 | } | ||
| 394 | |||
| 395 | namespace ComCcsds_commsBufferManager { | ||
| 396 | Svc::BufferManager::BufferBins bins; | ||
| 397 | } | ||
| 398 | |||
| 399 | namespace ComCcsds_frameAccumulator { | ||
| 400 | Svc::FrameDetectors::CcsdsTcFrameDetector frameDetector; | ||
| 401 | } | ||
| 402 | |||
| 403 | namespace DataProducts_dpBufferManager { | ||
| 404 | Svc::BufferManager::BufferBins bins; | ||
| 405 | } | ||
| 406 | |||
| 407 | } | ||
| 408 | |||
| 409 | // ---------------------------------------------------------------------- | ||
| 410 | // Helper functions | ||
| 411 | // ---------------------------------------------------------------------- | ||
| 412 | |||
| 413 | 1 | void initComponents(const TopologyState& state) { | |
| 414 | 1 | CdhCore::cmdDisp.init(QueueSizes::CdhCore_cmdDisp, InstanceIds::CdhCore_cmdDisp); | |
| 415 | 1 | CdhCore::events.init(QueueSizes::CdhCore_events, InstanceIds::CdhCore_events); | |
| 416 | 1 | CdhCore::fatalAdapter.init(InstanceIds::CdhCore_fatalAdapter); | |
| 417 | 1 | CdhCore::fatalHandler.init(InstanceIds::CdhCore_fatalHandler); | |
| 418 | 1 | CdhCore::health.init(QueueSizes::CdhCore_health, InstanceIds::CdhCore_health); | |
| 419 | 1 | CdhCore::textLogger.init(InstanceIds::CdhCore_textLogger); | |
| 420 | 1 | CdhCore::tlmSend.init(QueueSizes::CdhCore_tlmSend, InstanceIds::CdhCore_tlmSend); | |
| 421 | 1 | CdhCore::version.init(InstanceIds::CdhCore_version); | |
| 422 | 1 | ComCcsds::aggregator.init(QueueSizes::ComCcsds_aggregator, InstanceIds::ComCcsds_aggregator); | |
| 423 | 1 | ComCcsds::apidManager.init(InstanceIds::ComCcsds_apidManager); | |
| 424 | 1 | ComCcsds::comQueue.init(QueueSizes::ComCcsds_comQueue, InstanceIds::ComCcsds_comQueue); | |
| 425 | 1 | ComCcsds::comStub.init(InstanceIds::ComCcsds_comStub); | |
| 426 | 1 | ComCcsds::commsBufferManager.init(InstanceIds::ComCcsds_commsBufferManager); | |
| 427 | 1 | ComCcsds::fprimeRouter.init(InstanceIds::ComCcsds_fprimeRouter); | |
| 428 | 1 | ComCcsds::frameAccumulator.init(InstanceIds::ComCcsds_frameAccumulator); | |
| 429 | 1 | ComCcsds::framer.init(InstanceIds::ComCcsds_framer); | |
| 430 | 1 | ComCcsds::spacePacketDeframer.init(InstanceIds::ComCcsds_spacePacketDeframer); | |
| 431 | 1 | ComCcsds::spacePacketFramer.init(InstanceIds::ComCcsds_spacePacketFramer); | |
| 432 | 1 | ComCcsds::tcDeframer.init(InstanceIds::ComCcsds_tcDeframer); | |
| 433 | 1 | DataProducts::dpBufferAccumulator.init(QueueSizes::DataProducts_dpBufferAccumulator, InstanceIds::DataProducts_dpBufferAccumulator); | |
| 434 | 1 | DataProducts::dpBufferManager.init(InstanceIds::DataProducts_dpBufferManager); | |
| 435 | 1 | DataProducts::dpCat.init(QueueSizes::DataProducts_dpCat, InstanceIds::DataProducts_dpCat); | |
| 436 | 1 | DataProducts::dpMgr.init(QueueSizes::DataProducts_dpMgr, InstanceIds::DataProducts_dpMgr); | |
| 437 | 1 | DataProducts::dpWriter.init(QueueSizes::DataProducts_dpWriter, InstanceIds::DataProducts_dpWriter); | |
| 438 | 1 | FileHandling::fileDownlink.init(QueueSizes::FileHandling_fileDownlink, InstanceIds::FileHandling_fileDownlink); | |
| 439 | 1 | FileHandling::fileManager.init(QueueSizes::FileHandling_fileManager, InstanceIds::FileHandling_fileManager); | |
| 440 | 1 | FileHandling::fileUplink.init(QueueSizes::FileHandling_fileUplink, InstanceIds::FileHandling_fileUplink); | |
| 441 | 1 | FileHandling::prmDb.init(QueueSizes::FileHandling_prmDb, InstanceIds::FileHandling_prmDb); | |
| 442 | 1 | Ref::SG1.init(QueueSizes::Ref_SG1, InstanceIds::Ref_SG1); | |
| 443 | 1 | Ref::SG2.init(QueueSizes::Ref_SG2, InstanceIds::Ref_SG2); | |
| 444 | 1 | Ref::SG3.init(QueueSizes::Ref_SG3, InstanceIds::Ref_SG3); | |
| 445 | 1 | Ref::SG4.init(QueueSizes::Ref_SG4, InstanceIds::Ref_SG4); | |
| 446 | 1 | Ref::SG5.init(QueueSizes::Ref_SG5, InstanceIds::Ref_SG5); | |
| 447 | 1 | Ref::blockDrv.init(QueueSizes::Ref_blockDrv, InstanceIds::Ref_blockDrv); | |
| 448 | 1 | Ref::cmdSeq.init(QueueSizes::Ref_cmdSeq, InstanceIds::Ref_cmdSeq); | |
| 449 | 1 | Ref::comDriver.init(InstanceIds::Ref_comDriver); | |
| 450 | 1 | Ref::dpDemo.init(QueueSizes::Ref_dpDemo, InstanceIds::Ref_dpDemo); | |
| 451 | 1 | Ref::linuxTimer.init(InstanceIds::Ref_linuxTimer); | |
| 452 | 1 | Ref::pingRcvr.init(QueueSizes::Ref_pingRcvr, InstanceIds::Ref_pingRcvr); | |
| 453 | 1 | Ref::posixTime.init(InstanceIds::Ref_posixTime); | |
| 454 | 1 | Ref::rateGroup1Comp.init(QueueSizes::Ref_rateGroup1Comp, InstanceIds::Ref_rateGroup1Comp); | |
| 455 | 1 | Ref::rateGroup2Comp.init(QueueSizes::Ref_rateGroup2Comp, InstanceIds::Ref_rateGroup2Comp); | |
| 456 | 1 | Ref::rateGroup3Comp.init(QueueSizes::Ref_rateGroup3Comp, InstanceIds::Ref_rateGroup3Comp); | |
| 457 | 1 | Ref::rateGroupDriverComp.init(InstanceIds::Ref_rateGroupDriverComp); | |
| 458 | 1 | Ref::recvBuffComp.init(InstanceIds::Ref_recvBuffComp); | |
| 459 | 1 | Ref::sendBuffComp.init(QueueSizes::Ref_sendBuffComp, InstanceIds::Ref_sendBuffComp); | |
| 460 | 1 | Ref::systemResources.init(InstanceIds::Ref_systemResources); | |
| 461 | 1 | Ref::typeDemo.init(InstanceIds::Ref_typeDemo); | |
| 462 | 1 | Ref::wasmSeq.init(QueueSizes::Ref_wasmSeq, InstanceIds::Ref_wasmSeq); | |
| 463 | 1 | } | |
| 464 | |||
| 465 | 1 | void configComponents(const TopologyState& state) { | |
| 466 | // Health is supplied a set of ping entires. | ||
| 467 |
1/1✓ Branch 1 taken 1 times.
|
1 | CdhCore::health.setPingEntries( |
| 468 | ConfigObjects::CdhCore_health::pingEntries, | ||
| 469 | 1 | FW_NUM_ARRAY_ELEMENTS(ConfigObjects::CdhCore_health::pingEntries), | |
| 470 | ConfigConstants::CdhCore_health::HEALTH_WATCHDOG_CODE | ||
| 471 | ); | ||
| 472 | // Startup TLM and Config verbosity for Versions | ||
| 473 |
1/1✓ Branch 1 taken 1 times.
|
1 | CdhCore::version.config(true); |
| 474 | static_assert(static_cast<FwSizeType>(ComCcsdsConfig::Aggregator::aggregationSize) <= | ||
| 475 | static_cast<FwSizeType>(Svc::Ccsds::TmDataFieldSize), | ||
| 476 | "ComCcsdsConfig.Aggregator.aggregationSize must fit the TM Transfer Frame Data Field"); | ||
| 477 |
1/1✓ Branch 1 taken 1 times.
|
1 | ComCcsds::aggregator.configure(ComCcsdsConfig::Aggregator::aggregationSize, |
| 478 | ComCcsdsConfig::Aggregator::enablePacketSpanning, | ||
| 479 | 2, // Allocation id, distinct from the other ComCcsds instances | ||
| 480 | ComCcsds::Allocation::memAllocator); | ||
| 481 | using namespace ComCcsds; | ||
| 482 |
1/1✓ Branch 1 taken 1 times.
|
1 | Svc::ComQueue::QueueConfigurationTable configurationTable; |
| 483 | |||
| 484 | // Events (highest-priority) | ||
| 485 | 1 | configurationTable.entries[Ports_ComPacketQueue::EVENTS].depth = ComCcsdsConfig::QueueDepths::events; | |
| 486 | 1 | configurationTable.entries[Ports_ComPacketQueue::EVENTS].priority = ComCcsdsConfig::QueuePriorities::events; | |
| 487 | |||
| 488 | // Telemetry | ||
| 489 | 1 | configurationTable.entries[Ports_ComPacketQueue::TELEMETRY].depth = ComCcsdsConfig::QueueDepths::tlm; | |
| 490 | 1 | configurationTable.entries[Ports_ComPacketQueue::TELEMETRY].priority = ComCcsdsConfig::QueuePriorities::tlm; | |
| 491 | |||
| 492 | // File Downlink Queue (buffer queue using NUM_CONSTANTS offset) | ||
| 493 | 1 | configurationTable.entries[Ports_ComPacketQueue::NUM_CONSTANTS + Ports_ComBufferQueue::FILE].depth = ComCcsdsConfig::QueueDepths::file; | |
| 494 | 1 | configurationTable.entries[Ports_ComPacketQueue::NUM_CONSTANTS + Ports_ComBufferQueue::FILE].priority = ComCcsdsConfig::QueuePriorities::file; | |
| 495 | |||
| 496 | // Allocation identifier is 0 as the MallocAllocator discards it | ||
| 497 |
1/1✓ Branch 1 taken 1 times.
|
1 | ComCcsds::comQueue.configure(configurationTable, 0, ComCcsds::Allocation::memAllocator); |
| 498 | 1 | memset(&ConfigObjects::ComCcsds_commsBufferManager::bins, 0, sizeof(ConfigObjects::ComCcsds_commsBufferManager::bins)); | |
| 499 | 1 | ConfigObjects::ComCcsds_commsBufferManager::bins.bins[0].bufferSize = ComCcsdsConfig::BuffMgr::commsBuffSize; | |
| 500 | 1 | ConfigObjects::ComCcsds_commsBufferManager::bins.bins[0].numBuffers = ComCcsdsConfig::BuffMgr::commsBuffCount; | |
| 501 | 1 | ConfigObjects::ComCcsds_commsBufferManager::bins.bins[1].bufferSize = ComCcsdsConfig::BuffMgr::commsFileBuffSize; | |
| 502 | 1 | ConfigObjects::ComCcsds_commsBufferManager::bins.bins[1].numBuffers = ComCcsdsConfig::BuffMgr::commsFileBuffCount; | |
| 503 |
1/1✓ Branch 1 taken 1 times.
|
1 | ComCcsds::commsBufferManager.setup( |
| 504 | ComCcsdsConfig::BuffMgr::commsBuffMgrId, | ||
| 505 | 0, | ||
| 506 | ComCcsds::Allocation::memAllocator, | ||
| 507 | ConfigObjects::ComCcsds_commsBufferManager::bins | ||
| 508 | ); | ||
| 509 |
1/1✓ Branch 1 taken 1 times.
|
1 | ComCcsds::frameAccumulator.configure( |
| 510 | ConfigObjects::ComCcsds_frameAccumulator::frameDetector, | ||
| 511 | 1, | ||
| 512 | ComCcsds::Allocation::memAllocator, | ||
| 513 | ComCcsdsConfig::BuffMgr::frameAccumulatorSize | ||
| 514 | ); | ||
| 515 |
2/2✓ Branch 1 taken 1 times.
✓ Branch 4 taken 1 times.
|
1 | DataProducts::dpBufferAccumulator.allocateQueue( |
| 516 | DataProductsConfig::BufferAccumulator::allocatorId, | ||
| 517 | DataProducts::Allocation::memAllocator, | ||
| 518 | DataProductsConfig::BufferAccumulator::maxNumBuffers, | ||
| 519 | Svc::BufferAccumulator_OpState::DRAIN | ||
| 520 | ); | ||
| 521 | 1 | memset(&ConfigObjects::DataProducts_dpBufferManager::bins, 0, sizeof(ConfigObjects::DataProducts_dpBufferManager::bins)); | |
| 522 | 1 | ConfigObjects::DataProducts_dpBufferManager::bins.bins[0].bufferSize = DataProductsConfig::BuffMgr::dpBufferStoreSize; | |
| 523 | 1 | ConfigObjects::DataProducts_dpBufferManager::bins.bins[0].numBuffers = DataProductsConfig::BuffMgr::dpBufferStoreCount; | |
| 524 |
1/1✓ Branch 1 taken 1 times.
|
1 | DataProducts::dpBufferManager.setup( |
| 525 | DataProductsConfig::BuffMgr::dpBufferManagerId, | ||
| 526 | 0, | ||
| 527 | DataProducts::Allocation::memAllocator, | ||
| 528 | ConfigObjects::DataProducts_dpBufferManager::bins | ||
| 529 | ); | ||
| 530 |
1/1✓ Branch 1 taken 1 times.
|
1 | Fw::FileNameString dpDir(DataProductsConfig::Paths::dpDir); |
| 531 |
1/1✓ Branch 1 taken 1 times.
|
1 | Fw::FileNameString dpState(DataProductsConfig::Paths::dpState); |
| 532 |
1/1✓ Branch 2 taken 1 times.
|
1 | Os::FileSystem::createDirectory(dpDir.toChar()); |
| 533 | 1 | Fw::ExternalArray<Fw::FileNameString> dpDirs(&dpDir, 1); | |
| 534 |
1/1✓ Branch 1 taken 1 times.
|
1 | DataProducts::dpCat.configure(dpDirs, dpState, 0, DataProducts::Allocation::memAllocator); |
| 535 |
1/1✓ Branch 1 taken 1 times.
|
1 | DataProducts::dpWriter.configure(dpDir); |
| 536 |
1/1✓ Branch 1 taken 1 times.
|
1 | FileHandling::fileDownlink.configure( |
| 537 | FileHandlingConfig::DownlinkConfig::cooldown, | ||
| 538 | FileHandlingConfig::DownlinkConfig::cycleTime, | ||
| 539 | FileHandlingConfig::DownlinkConfig::fileQueueDepth | ||
| 540 | ); | ||
| 541 | // Sandbox for downlinked file reads; "/" is unrestricted. Re-configure to restrict. | ||
| 542 |
1/1✓ Branch 1 taken 1 times.
|
1 | FileHandling::fileDownlink.configure(FileHandlingConfig::Paths::sandboxDir); |
| 543 | // Sandbox for file-management command paths; "/" is unrestricted. Re-configure to restrict. | ||
| 544 |
1/1✓ Branch 1 taken 1 times.
|
1 | FileHandling::fileManager.configure(FileHandlingConfig::Paths::sandboxDir); |
| 545 | // Sandbox for uplinked file writes; "/" is unrestricted. Re-configure to restrict. | ||
| 546 |
1/1✓ Branch 1 taken 1 times.
|
1 | FileHandling::fileUplink.configure(FileHandlingConfig::Paths::sandboxDir); |
| 547 |
1/1✓ Branch 1 taken 1 times.
|
1 | FileHandling::prmDb.configure(FileHandlingConfig::Paths::prmDbFile); |
| 548 | // Sandbox for all PrmDb file access; "/" is unrestricted. Re-configure to restrict. | ||
| 549 |
1/1✓ Branch 1 taken 1 times.
|
1 | FileHandling::prmDb.configureSandbox(FileHandlingConfig::Paths::sandboxDir); |
| 550 |
1/1✓ Branch 2 taken 1 times.
|
1 | wasmSeq.configure(Svc::WasmSequencer::Config(), memAllocator); |
| 551 | 1 | } | |
| 552 | |||
| 553 | 1 | void setBaseIds() { | |
| 554 | 1 | Ref::dpDemo.setIdBase(BaseIds::Ref_dpDemo); | |
| 555 | 1 | CdhCore::cmdDisp.setIdBase(BaseIds::CdhCore_cmdDisp); | |
| 556 | 1 | CdhCore::events.setIdBase(BaseIds::CdhCore_events); | |
| 557 | 1 | CdhCore::health.setIdBase(BaseIds::CdhCore_health); | |
| 558 | 1 | CdhCore::version.setIdBase(BaseIds::CdhCore_version); | |
| 559 | 1 | CdhCore::textLogger.setIdBase(BaseIds::CdhCore_textLogger); | |
| 560 | 1 | CdhCore::fatalAdapter.setIdBase(BaseIds::CdhCore_fatalAdapter); | |
| 561 | 1 | CdhCore::tlmSend.setIdBase(BaseIds::CdhCore_tlmSend); | |
| 562 | 1 | CdhCore::fatalHandler.setIdBase(BaseIds::CdhCore_fatalHandler); | |
| 563 | 1 | ComCcsds::comQueue.setIdBase(BaseIds::ComCcsds_comQueue); | |
| 564 | 1 | ComCcsds::frameAccumulator.setIdBase(BaseIds::ComCcsds_frameAccumulator); | |
| 565 | 1 | ComCcsds::commsBufferManager.setIdBase(BaseIds::ComCcsds_commsBufferManager); | |
| 566 | 1 | ComCcsds::fprimeRouter.setIdBase(BaseIds::ComCcsds_fprimeRouter); | |
| 567 | 1 | ComCcsds::tcDeframer.setIdBase(BaseIds::ComCcsds_tcDeframer); | |
| 568 | 1 | ComCcsds::spacePacketDeframer.setIdBase(BaseIds::ComCcsds_spacePacketDeframer); | |
| 569 | 1 | ComCcsds::aggregator.setIdBase(BaseIds::ComCcsds_aggregator); | |
| 570 | 1 | ComCcsds::framer.setIdBase(BaseIds::ComCcsds_framer); | |
| 571 | 1 | ComCcsds::spacePacketFramer.setIdBase(BaseIds::ComCcsds_spacePacketFramer); | |
| 572 | 1 | ComCcsds::apidManager.setIdBase(BaseIds::ComCcsds_apidManager); | |
| 573 | 1 | ComCcsds::comStub.setIdBase(BaseIds::ComCcsds_comStub); | |
| 574 | 1 | DataProducts::dpCat.setIdBase(BaseIds::DataProducts_dpCat); | |
| 575 | 1 | DataProducts::dpMgr.setIdBase(BaseIds::DataProducts_dpMgr); | |
| 576 | 1 | DataProducts::dpWriter.setIdBase(BaseIds::DataProducts_dpWriter); | |
| 577 | 1 | DataProducts::dpBufferManager.setIdBase(BaseIds::DataProducts_dpBufferManager); | |
| 578 | 1 | DataProducts::dpBufferAccumulator.setIdBase(BaseIds::DataProducts_dpBufferAccumulator); | |
| 579 | 1 | FileHandling::fileUplink.setIdBase(BaseIds::FileHandling_fileUplink); | |
| 580 | 1 | FileHandling::fileDownlink.setIdBase(BaseIds::FileHandling_fileDownlink); | |
| 581 | 1 | FileHandling::fileManager.setIdBase(BaseIds::FileHandling_fileManager); | |
| 582 | 1 | FileHandling::prmDb.setIdBase(BaseIds::FileHandling_prmDb); | |
| 583 | 1 | Ref::blockDrv.setIdBase(BaseIds::Ref_blockDrv); | |
| 584 | 1 | Ref::rateGroup1Comp.setIdBase(BaseIds::Ref_rateGroup1Comp); | |
| 585 | 1 | Ref::rateGroup2Comp.setIdBase(BaseIds::Ref_rateGroup2Comp); | |
| 586 | 1 | Ref::rateGroup3Comp.setIdBase(BaseIds::Ref_rateGroup3Comp); | |
| 587 | 1 | Ref::pingRcvr.setIdBase(BaseIds::Ref_pingRcvr); | |
| 588 | 1 | Ref::typeDemo.setIdBase(BaseIds::Ref_typeDemo); | |
| 589 | 1 | Ref::cmdSeq.setIdBase(BaseIds::Ref_cmdSeq); | |
| 590 | 1 | Ref::wasmSeq.setIdBase(BaseIds::Ref_wasmSeq); | |
| 591 | 1 | Ref::sendBuffComp.setIdBase(BaseIds::Ref_sendBuffComp); | |
| 592 | 1 | Ref::SG1.setIdBase(BaseIds::Ref_SG1); | |
| 593 | 1 | Ref::SG2.setIdBase(BaseIds::Ref_SG2); | |
| 594 | 1 | Ref::SG3.setIdBase(BaseIds::Ref_SG3); | |
| 595 | 1 | Ref::SG4.setIdBase(BaseIds::Ref_SG4); | |
| 596 | 1 | Ref::SG5.setIdBase(BaseIds::Ref_SG5); | |
| 597 | 1 | Ref::posixTime.setIdBase(BaseIds::Ref_posixTime); | |
| 598 | 1 | Ref::rateGroupDriverComp.setIdBase(BaseIds::Ref_rateGroupDriverComp); | |
| 599 | 1 | Ref::recvBuffComp.setIdBase(BaseIds::Ref_recvBuffComp); | |
| 600 | 1 | Ref::systemResources.setIdBase(BaseIds::Ref_systemResources); | |
| 601 | 1 | Ref::linuxTimer.setIdBase(BaseIds::Ref_linuxTimer); | |
| 602 | 1 | Ref::comDriver.setIdBase(BaseIds::Ref_comDriver); | |
| 603 | 1 | } | |
| 604 | |||
| 605 | 1 | void connectComponents() { | |
| 606 | |||
| 607 | #if !FW_DIRECT_PORT_CALLS | ||
| 608 | |||
| 609 | // ComCcsds_CdhCore | ||
| 610 | CdhCore::cmdDisp.set_seqCmdStatus_OutputPort( | ||
| 611 | 0, | ||
| 612 | ComCcsds::fprimeRouter.get_cmdResponseIn_InputPort(0) | ||
| 613 | ); | ||
| 614 | CdhCore::cmdDisp.set_seqCmdStatus_OutputPort( | ||
| 615 | 1, | ||
| 616 | Ref::cmdSeq.get_cmdResponseIn_InputPort(0) | ||
| 617 | ); | ||
| 618 | CdhCore::cmdDisp.set_seqCmdStatus_OutputPort( | ||
| 619 | 2, | ||
| 620 | Ref::wasmSeq.get_cmdResponseIn_InputPort(0) | ||
| 621 | ); | ||
| 622 | CdhCore::events.set_PktSend_OutputPort( | ||
| 623 | 0, | ||
| 624 | ComCcsds::comQueue.get_comPacketQueueIn_InputPort(0) | ||
| 625 | ); | ||
| 626 | CdhCore::tlmSend.set_PktSend_OutputPort( | ||
| 627 | 0, | ||
| 628 | ComCcsds::comQueue.get_comPacketQueueIn_InputPort(1) | ||
| 629 | ); | ||
| 630 | ComCcsds::fprimeRouter.set_commandOut_OutputPort( | ||
| 631 | 0, | ||
| 632 | CdhCore::cmdDisp.get_seqCmdBuff_InputPort(0) | ||
| 633 | ); | ||
| 634 | Ref::cmdSeq.set_comCmdOut_OutputPort( | ||
| 635 | 0, | ||
| 636 | CdhCore::cmdDisp.get_seqCmdBuff_InputPort(1) | ||
| 637 | ); | ||
| 638 | Ref::wasmSeq.set_cmdOut_OutputPort( | ||
| 639 | 0, | ||
| 640 | CdhCore::cmdDisp.get_seqCmdBuff_InputPort(2) | ||
| 641 | ); | ||
| 642 | |||
| 643 | // ComCcsds_FileHandling | ||
| 644 | ComCcsds::comQueue.set_bufferReturnOut_OutputPort( | ||
| 645 | 0, | ||
| 646 | FileHandling::fileDownlink.get_bufferReturn_InputPort(0) | ||
| 647 | ); | ||
| 648 | ComCcsds::fprimeRouter.set_fileOut_OutputPort( | ||
| 649 | 0, | ||
| 650 | FileHandling::fileUplink.get_bufferSendIn_InputPort(0) | ||
| 651 | ); | ||
| 652 | FileHandling::fileDownlink.set_bufferSendOut_OutputPort( | ||
| 653 | 0, | ||
| 654 | ComCcsds::comQueue.get_bufferQueueIn_InputPort(0) | ||
| 655 | ); | ||
| 656 | FileHandling::fileUplink.set_bufferSendOut_OutputPort( | ||
| 657 | 0, | ||
| 658 | ComCcsds::fprimeRouter.get_fileBufferReturnIn_InputPort(0) | ||
| 659 | ); | ||
| 660 | |||
| 661 | // ComStub | ||
| 662 | ComCcsds::comStub.set_comStatusOut_OutputPort( | ||
| 663 | 0, | ||
| 664 | ComCcsds::framer.get_comStatusIn_InputPort(0) | ||
| 665 | ); | ||
| 666 | ComCcsds::comStub.set_dataOut_OutputPort( | ||
| 667 | 0, | ||
| 668 | ComCcsds::frameAccumulator.get_dataIn_InputPort(0) | ||
| 669 | ); | ||
| 670 | ComCcsds::comStub.set_dataReturnOut_OutputPort( | ||
| 671 | 0, | ||
| 672 | ComCcsds::framer.get_dataReturnIn_InputPort(0) | ||
| 673 | ); | ||
| 674 | ComCcsds::frameAccumulator.set_dataReturnOut_OutputPort( | ||
| 675 | 0, | ||
| 676 | ComCcsds::comStub.get_dataReturnIn_InputPort(0) | ||
| 677 | ); | ||
| 678 | ComCcsds::framer.set_dataOut_OutputPort( | ||
| 679 | 0, | ||
| 680 | ComCcsds::comStub.get_dataIn_InputPort(0) | ||
| 681 | ); | ||
| 682 | |||
| 683 | // Command | ||
| 684 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 685 | 0, | ||
| 686 | CdhCore::cmdDisp.get_CmdDisp_InputPort(0) | ||
| 687 | ); | ||
| 688 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 689 | 1, | ||
| 690 | CdhCore::events.get_CmdDisp_InputPort(0) | ||
| 691 | ); | ||
| 692 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 693 | 2, | ||
| 694 | CdhCore::health.get_CmdDisp_InputPort(0) | ||
| 695 | ); | ||
| 696 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 697 | 3, | ||
| 698 | CdhCore::version.get_cmdIn_InputPort(0) | ||
| 699 | ); | ||
| 700 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 701 | 4, | ||
| 702 | ComCcsds::comQueue.get_CmdDisp_InputPort(0) | ||
| 703 | ); | ||
| 704 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 705 | 5, | ||
| 706 | DataProducts::dpBufferAccumulator.get_cmdIn_InputPort(0) | ||
| 707 | ); | ||
| 708 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 709 | 6, | ||
| 710 | DataProducts::dpCat.get_CmdDisp_InputPort(0) | ||
| 711 | ); | ||
| 712 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 713 | 7, | ||
| 714 | DataProducts::dpMgr.get_cmdIn_InputPort(0) | ||
| 715 | ); | ||
| 716 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 717 | 8, | ||
| 718 | DataProducts::dpWriter.get_cmdIn_InputPort(0) | ||
| 719 | ); | ||
| 720 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 721 | 9, | ||
| 722 | FileHandling::fileDownlink.get_cmdIn_InputPort(0) | ||
| 723 | ); | ||
| 724 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 725 | 10, | ||
| 726 | FileHandling::fileManager.get_cmdIn_InputPort(0) | ||
| 727 | ); | ||
| 728 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 729 | 11, | ||
| 730 | FileHandling::prmDb.get_CmdDisp_InputPort(0) | ||
| 731 | ); | ||
| 732 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 733 | 12, | ||
| 734 | Ref::SG1.get_cmdIn_InputPort(0) | ||
| 735 | ); | ||
| 736 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 737 | 13, | ||
| 738 | Ref::SG2.get_cmdIn_InputPort(0) | ||
| 739 | ); | ||
| 740 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 741 | 14, | ||
| 742 | Ref::SG3.get_cmdIn_InputPort(0) | ||
| 743 | ); | ||
| 744 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 745 | 15, | ||
| 746 | Ref::SG4.get_cmdIn_InputPort(0) | ||
| 747 | ); | ||
| 748 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 749 | 16, | ||
| 750 | Ref::SG5.get_cmdIn_InputPort(0) | ||
| 751 | ); | ||
| 752 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 753 | 17, | ||
| 754 | Ref::cmdSeq.get_cmdIn_InputPort(0) | ||
| 755 | ); | ||
| 756 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 757 | 18, | ||
| 758 | Ref::dpDemo.get_cmdIn_InputPort(0) | ||
| 759 | ); | ||
| 760 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 761 | 19, | ||
| 762 | Ref::pingRcvr.get_CmdDisp_InputPort(0) | ||
| 763 | ); | ||
| 764 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 765 | 20, | ||
| 766 | Ref::recvBuffComp.get_CmdDisp_InputPort(0) | ||
| 767 | ); | ||
| 768 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 769 | 21, | ||
| 770 | Ref::sendBuffComp.get_CmdDisp_InputPort(0) | ||
| 771 | ); | ||
| 772 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 773 | 22, | ||
| 774 | Ref::systemResources.get_CmdDisp_InputPort(0) | ||
| 775 | ); | ||
| 776 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 777 | 23, | ||
| 778 | Ref::typeDemo.get_cmdIn_InputPort(0) | ||
| 779 | ); | ||
| 780 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 781 | 24, | ||
| 782 | Ref::wasmSeq.get_cmdIn_InputPort(0) | ||
| 783 | ); | ||
| 784 | |||
| 785 | // CommandRegistration | ||
| 786 | CdhCore::cmdDisp.set_CmdReg_OutputPort( | ||
| 787 | 0, | ||
| 788 | CdhCore::cmdDisp.get_compCmdReg_InputPort(0) | ||
| 789 | ); | ||
| 790 | CdhCore::events.set_CmdReg_OutputPort( | ||
| 791 | 0, | ||
| 792 | CdhCore::cmdDisp.get_compCmdReg_InputPort(1) | ||
| 793 | ); | ||
| 794 | CdhCore::health.set_CmdReg_OutputPort( | ||
| 795 | 0, | ||
| 796 | CdhCore::cmdDisp.get_compCmdReg_InputPort(2) | ||
| 797 | ); | ||
| 798 | CdhCore::version.set_cmdRegOut_OutputPort( | ||
| 799 | 0, | ||
| 800 | CdhCore::cmdDisp.get_compCmdReg_InputPort(3) | ||
| 801 | ); | ||
| 802 | ComCcsds::comQueue.set_CmdReg_OutputPort( | ||
| 803 | 0, | ||
| 804 | CdhCore::cmdDisp.get_compCmdReg_InputPort(4) | ||
| 805 | ); | ||
| 806 | DataProducts::dpBufferAccumulator.set_cmdRegOut_OutputPort( | ||
| 807 | 0, | ||
| 808 | CdhCore::cmdDisp.get_compCmdReg_InputPort(5) | ||
| 809 | ); | ||
| 810 | DataProducts::dpCat.set_CmdReg_OutputPort( | ||
| 811 | 0, | ||
| 812 | CdhCore::cmdDisp.get_compCmdReg_InputPort(6) | ||
| 813 | ); | ||
| 814 | DataProducts::dpMgr.set_cmdRegIn_OutputPort( | ||
| 815 | 0, | ||
| 816 | CdhCore::cmdDisp.get_compCmdReg_InputPort(7) | ||
| 817 | ); | ||
| 818 | DataProducts::dpWriter.set_cmdRegIn_OutputPort( | ||
| 819 | 0, | ||
| 820 | CdhCore::cmdDisp.get_compCmdReg_InputPort(8) | ||
| 821 | ); | ||
| 822 | FileHandling::fileDownlink.set_cmdRegOut_OutputPort( | ||
| 823 | 0, | ||
| 824 | CdhCore::cmdDisp.get_compCmdReg_InputPort(9) | ||
| 825 | ); | ||
| 826 | FileHandling::fileManager.set_cmdRegOut_OutputPort( | ||
| 827 | 0, | ||
| 828 | CdhCore::cmdDisp.get_compCmdReg_InputPort(10) | ||
| 829 | ); | ||
| 830 | FileHandling::prmDb.set_CmdReg_OutputPort( | ||
| 831 | 0, | ||
| 832 | CdhCore::cmdDisp.get_compCmdReg_InputPort(11) | ||
| 833 | ); | ||
| 834 | Ref::SG1.set_cmdRegOut_OutputPort( | ||
| 835 | 0, | ||
| 836 | CdhCore::cmdDisp.get_compCmdReg_InputPort(12) | ||
| 837 | ); | ||
| 838 | Ref::SG2.set_cmdRegOut_OutputPort( | ||
| 839 | 0, | ||
| 840 | CdhCore::cmdDisp.get_compCmdReg_InputPort(13) | ||
| 841 | ); | ||
| 842 | Ref::SG3.set_cmdRegOut_OutputPort( | ||
| 843 | 0, | ||
| 844 | CdhCore::cmdDisp.get_compCmdReg_InputPort(14) | ||
| 845 | ); | ||
| 846 | Ref::SG4.set_cmdRegOut_OutputPort( | ||
| 847 | 0, | ||
| 848 | CdhCore::cmdDisp.get_compCmdReg_InputPort(15) | ||
| 849 | ); | ||
| 850 | Ref::SG5.set_cmdRegOut_OutputPort( | ||
| 851 | 0, | ||
| 852 | CdhCore::cmdDisp.get_compCmdReg_InputPort(16) | ||
| 853 | ); | ||
| 854 | Ref::cmdSeq.set_cmdRegOut_OutputPort( | ||
| 855 | 0, | ||
| 856 | CdhCore::cmdDisp.get_compCmdReg_InputPort(17) | ||
| 857 | ); | ||
| 858 | Ref::dpDemo.set_cmdRegOut_OutputPort( | ||
| 859 | 0, | ||
| 860 | CdhCore::cmdDisp.get_compCmdReg_InputPort(18) | ||
| 861 | ); | ||
| 862 | Ref::pingRcvr.set_CmdReg_OutputPort( | ||
| 863 | 0, | ||
| 864 | CdhCore::cmdDisp.get_compCmdReg_InputPort(19) | ||
| 865 | ); | ||
| 866 | Ref::recvBuffComp.set_CmdReg_OutputPort( | ||
| 867 | 0, | ||
| 868 | CdhCore::cmdDisp.get_compCmdReg_InputPort(20) | ||
| 869 | ); | ||
| 870 | Ref::sendBuffComp.set_CmdReg_OutputPort( | ||
| 871 | 0, | ||
| 872 | CdhCore::cmdDisp.get_compCmdReg_InputPort(21) | ||
| 873 | ); | ||
| 874 | Ref::systemResources.set_CmdReg_OutputPort( | ||
| 875 | 0, | ||
| 876 | CdhCore::cmdDisp.get_compCmdReg_InputPort(22) | ||
| 877 | ); | ||
| 878 | Ref::typeDemo.set_cmdRegOut_OutputPort( | ||
| 879 | 0, | ||
| 880 | CdhCore::cmdDisp.get_compCmdReg_InputPort(23) | ||
| 881 | ); | ||
| 882 | Ref::wasmSeq.set_cmdRegOut_OutputPort( | ||
| 883 | 0, | ||
| 884 | CdhCore::cmdDisp.get_compCmdReg_InputPort(24) | ||
| 885 | ); | ||
| 886 | |||
| 887 | // CommandResponse | ||
| 888 | CdhCore::cmdDisp.set_CmdStatus_OutputPort( | ||
| 889 | 0, | ||
| 890 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 891 | ); | ||
| 892 | CdhCore::events.set_CmdStatus_OutputPort( | ||
| 893 | 0, | ||
| 894 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 895 | ); | ||
| 896 | CdhCore::health.set_CmdStatus_OutputPort( | ||
| 897 | 0, | ||
| 898 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 899 | ); | ||
| 900 | CdhCore::version.set_cmdResponseOut_OutputPort( | ||
| 901 | 0, | ||
| 902 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 903 | ); | ||
| 904 | ComCcsds::comQueue.set_CmdStatus_OutputPort( | ||
| 905 | 0, | ||
| 906 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 907 | ); | ||
| 908 | DataProducts::dpBufferAccumulator.set_cmdResponseOut_OutputPort( | ||
| 909 | 0, | ||
| 910 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 911 | ); | ||
| 912 | DataProducts::dpCat.set_CmdStatus_OutputPort( | ||
| 913 | 0, | ||
| 914 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 915 | ); | ||
| 916 | DataProducts::dpMgr.set_cmdResponseOut_OutputPort( | ||
| 917 | 0, | ||
| 918 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 919 | ); | ||
| 920 | DataProducts::dpWriter.set_cmdResponseOut_OutputPort( | ||
| 921 | 0, | ||
| 922 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 923 | ); | ||
| 924 | FileHandling::fileDownlink.set_cmdResponseOut_OutputPort( | ||
| 925 | 0, | ||
| 926 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 927 | ); | ||
| 928 | FileHandling::fileManager.set_cmdResponseOut_OutputPort( | ||
| 929 | 0, | ||
| 930 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 931 | ); | ||
| 932 | FileHandling::prmDb.set_CmdStatus_OutputPort( | ||
| 933 | 0, | ||
| 934 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 935 | ); | ||
| 936 | Ref::SG1.set_cmdResponseOut_OutputPort( | ||
| 937 | 0, | ||
| 938 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 939 | ); | ||
| 940 | Ref::SG2.set_cmdResponseOut_OutputPort( | ||
| 941 | 0, | ||
| 942 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 943 | ); | ||
| 944 | Ref::SG3.set_cmdResponseOut_OutputPort( | ||
| 945 | 0, | ||
| 946 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 947 | ); | ||
| 948 | Ref::SG4.set_cmdResponseOut_OutputPort( | ||
| 949 | 0, | ||
| 950 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 951 | ); | ||
| 952 | Ref::SG5.set_cmdResponseOut_OutputPort( | ||
| 953 | 0, | ||
| 954 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 955 | ); | ||
| 956 | Ref::cmdSeq.set_cmdResponseOut_OutputPort( | ||
| 957 | 0, | ||
| 958 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 959 | ); | ||
| 960 | Ref::dpDemo.set_cmdResponseOut_OutputPort( | ||
| 961 | 0, | ||
| 962 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 963 | ); | ||
| 964 | Ref::pingRcvr.set_CmdStatus_OutputPort( | ||
| 965 | 0, | ||
| 966 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 967 | ); | ||
| 968 | Ref::recvBuffComp.set_CmdStatus_OutputPort( | ||
| 969 | 0, | ||
| 970 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 971 | ); | ||
| 972 | Ref::sendBuffComp.set_CmdStatus_OutputPort( | ||
| 973 | 0, | ||
| 974 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 975 | ); | ||
| 976 | Ref::systemResources.set_CmdStatus_OutputPort( | ||
| 977 | 0, | ||
| 978 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 979 | ); | ||
| 980 | Ref::typeDemo.set_cmdResponseOut_OutputPort( | ||
| 981 | 0, | ||
| 982 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 983 | ); | ||
| 984 | Ref::wasmSeq.set_cmdResponseOut_OutputPort( | ||
| 985 | 0, | ||
| 986 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 987 | ); | ||
| 988 | |||
| 989 | // Communications | ||
| 990 | ComCcsds::comStub.set_drvReceiveReturnOut_OutputPort( | ||
| 991 | 0, | ||
| 992 | Ref::comDriver.get_recvReturnIn_InputPort(0) | ||
| 993 | ); | ||
| 994 | ComCcsds::comStub.set_drvSendOut_OutputPort( | ||
| 995 | 0, | ||
| 996 | Ref::comDriver.get_send_InputPort(0) | ||
| 997 | ); | ||
| 998 | Ref::comDriver.set_allocate_OutputPort( | ||
| 999 | 0, | ||
| 1000 | ComCcsds::commsBufferManager.get_bufferGetCallee_InputPort(0) | ||
| 1001 | ); | ||
| 1002 | Ref::comDriver.set_deallocate_OutputPort( | ||
| 1003 | 0, | ||
| 1004 | ComCcsds::commsBufferManager.get_bufferSendIn_InputPort(0) | ||
| 1005 | ); | ||
| 1006 | Ref::comDriver.set_ready_OutputPort( | ||
| 1007 | 0, | ||
| 1008 | ComCcsds::comStub.get_drvConnected_InputPort(0) | ||
| 1009 | ); | ||
| 1010 | Ref::comDriver.set_recv_OutputPort( | ||
| 1011 | 0, | ||
| 1012 | ComCcsds::comStub.get_drvReceiveIn_InputPort(0) | ||
| 1013 | ); | ||
| 1014 | |||
| 1015 | // DataProducts | ||
| 1016 | DataProducts::dpBufferAccumulator.set_bufferSendOutDrain_OutputPort( | ||
| 1017 | 0, | ||
| 1018 | DataProducts::dpWriter.get_bufferSendIn_InputPort(0) | ||
| 1019 | ); | ||
| 1020 | DataProducts::dpBufferAccumulator.set_bufferSendOutReturn_OutputPort( | ||
| 1021 | 0, | ||
| 1022 | DataProducts::dpBufferManager.get_bufferSendIn_InputPort(0) | ||
| 1023 | ); | ||
| 1024 | DataProducts::dpMgr.set_bufferGetOut_OutputPort( | ||
| 1025 | 0, | ||
| 1026 | DataProducts::dpBufferManager.get_bufferGetCallee_InputPort(0) | ||
| 1027 | ); | ||
| 1028 | DataProducts::dpMgr.set_productSendOut_OutputPort( | ||
| 1029 | 0, | ||
| 1030 | DataProducts::dpBufferAccumulator.get_bufferSendInFill_InputPort(0) | ||
| 1031 | ); | ||
| 1032 | DataProducts::dpWriter.set_deallocBufferSendOut_OutputPort( | ||
| 1033 | 0, | ||
| 1034 | DataProducts::dpBufferAccumulator.get_bufferSendInReturn_InputPort(0) | ||
| 1035 | ); | ||
| 1036 | DataProducts::dpWriter.set_dpWrittenOut_OutputPort( | ||
| 1037 | 0, | ||
| 1038 | DataProducts::dpCat.get_addToCat_InputPort(0) | ||
| 1039 | ); | ||
| 1040 | |||
| 1041 | // Downlink | ||
| 1042 | ComCcsds::aggregator.set_comStatusOut_OutputPort( | ||
| 1043 | 0, | ||
| 1044 | ComCcsds::spacePacketFramer.get_comStatusIn_InputPort(0) | ||
| 1045 | ); | ||
| 1046 | ComCcsds::aggregator.set_dataOut_OutputPort( | ||
| 1047 | 0, | ||
| 1048 | ComCcsds::framer.get_dataIn_InputPort(0) | ||
| 1049 | ); | ||
| 1050 | ComCcsds::aggregator.set_dataReturnOut_OutputPort( | ||
| 1051 | 0, | ||
| 1052 | ComCcsds::spacePacketFramer.get_dataReturnIn_InputPort(0) | ||
| 1053 | ); | ||
| 1054 | ComCcsds::comQueue.set_dataOut_OutputPort( | ||
| 1055 | 0, | ||
| 1056 | ComCcsds::spacePacketFramer.get_dataIn_InputPort(0) | ||
| 1057 | ); | ||
| 1058 | ComCcsds::framer.set_comStatusOut_OutputPort( | ||
| 1059 | 0, | ||
| 1060 | ComCcsds::aggregator.get_comStatusIn_InputPort(0) | ||
| 1061 | ); | ||
| 1062 | ComCcsds::framer.set_dataReturnOut_OutputPort( | ||
| 1063 | 0, | ||
| 1064 | ComCcsds::aggregator.get_dataReturnIn_InputPort(0) | ||
| 1065 | ); | ||
| 1066 | ComCcsds::spacePacketFramer.set_bufferAllocate_OutputPort( | ||
| 1067 | 0, | ||
| 1068 | ComCcsds::commsBufferManager.get_bufferGetCallee_InputPort(0) | ||
| 1069 | ); | ||
| 1070 | ComCcsds::spacePacketFramer.set_bufferDeallocate_OutputPort( | ||
| 1071 | 0, | ||
| 1072 | ComCcsds::commsBufferManager.get_bufferSendIn_InputPort(0) | ||
| 1073 | ); | ||
| 1074 | ComCcsds::spacePacketFramer.set_comStatusOut_OutputPort( | ||
| 1075 | 0, | ||
| 1076 | ComCcsds::comQueue.get_comStatusIn_InputPort(0) | ||
| 1077 | ); | ||
| 1078 | ComCcsds::spacePacketFramer.set_dataOut_OutputPort( | ||
| 1079 | 0, | ||
| 1080 | ComCcsds::aggregator.get_dataIn_InputPort(0) | ||
| 1081 | ); | ||
| 1082 | ComCcsds::spacePacketFramer.set_dataReturnOut_OutputPort( | ||
| 1083 | 0, | ||
| 1084 | ComCcsds::comQueue.get_dataReturnIn_InputPort(0) | ||
| 1085 | ); | ||
| 1086 | ComCcsds::spacePacketFramer.set_getApidSeqCount_OutputPort( | ||
| 1087 | 0, | ||
| 1088 | ComCcsds::apidManager.get_getApidSeqCountIn_InputPort(0) | ||
| 1089 | ); | ||
| 1090 | |||
| 1091 | // Events | ||
| 1092 | CdhCore::cmdDisp.set_Log_OutputPort( | ||
| 1093 | 0, | ||
| 1094 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1095 | ); | ||
| 1096 | CdhCore::events.set_Log_OutputPort( | ||
| 1097 | 0, | ||
| 1098 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1099 | ); | ||
| 1100 | CdhCore::fatalAdapter.set_Log_OutputPort( | ||
| 1101 | 0, | ||
| 1102 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1103 | ); | ||
| 1104 | CdhCore::health.set_Log_OutputPort( | ||
| 1105 | 0, | ||
| 1106 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1107 | ); | ||
| 1108 | CdhCore::tlmSend.set_eventOut_OutputPort( | ||
| 1109 | 0, | ||
| 1110 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1111 | ); | ||
| 1112 | CdhCore::version.set_logOut_OutputPort( | ||
| 1113 | 0, | ||
| 1114 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1115 | ); | ||
| 1116 | ComCcsds::apidManager.set_logOut_OutputPort( | ||
| 1117 | 0, | ||
| 1118 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1119 | ); | ||
| 1120 | ComCcsds::comQueue.set_Log_OutputPort( | ||
| 1121 | 0, | ||
| 1122 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1123 | ); | ||
| 1124 | ComCcsds::commsBufferManager.set_eventOut_OutputPort( | ||
| 1125 | 0, | ||
| 1126 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1127 | ); | ||
| 1128 | ComCcsds::fprimeRouter.set_logOut_OutputPort( | ||
| 1129 | 0, | ||
| 1130 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1131 | ); | ||
| 1132 | ComCcsds::frameAccumulator.set_logOut_OutputPort( | ||
| 1133 | 0, | ||
| 1134 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1135 | ); | ||
| 1136 | ComCcsds::framer.set_logOut_OutputPort( | ||
| 1137 | 0, | ||
| 1138 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1139 | ); | ||
| 1140 | ComCcsds::spacePacketDeframer.set_logOut_OutputPort( | ||
| 1141 | 0, | ||
| 1142 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1143 | ); | ||
| 1144 | ComCcsds::spacePacketFramer.set_logOut_OutputPort( | ||
| 1145 | 0, | ||
| 1146 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1147 | ); | ||
| 1148 | ComCcsds::tcDeframer.set_logOut_OutputPort( | ||
| 1149 | 0, | ||
| 1150 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1151 | ); | ||
| 1152 | DataProducts::dpBufferAccumulator.set_eventOut_OutputPort( | ||
| 1153 | 0, | ||
| 1154 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1155 | ); | ||
| 1156 | DataProducts::dpBufferManager.set_eventOut_OutputPort( | ||
| 1157 | 0, | ||
| 1158 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1159 | ); | ||
| 1160 | DataProducts::dpCat.set_Log_OutputPort( | ||
| 1161 | 0, | ||
| 1162 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1163 | ); | ||
| 1164 | DataProducts::dpMgr.set_eventOut_OutputPort( | ||
| 1165 | 0, | ||
| 1166 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1167 | ); | ||
| 1168 | DataProducts::dpWriter.set_eventOut_OutputPort( | ||
| 1169 | 0, | ||
| 1170 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1171 | ); | ||
| 1172 | FileHandling::fileDownlink.set_eventOut_OutputPort( | ||
| 1173 | 0, | ||
| 1174 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1175 | ); | ||
| 1176 | FileHandling::fileManager.set_eventOut_OutputPort( | ||
| 1177 | 0, | ||
| 1178 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1179 | ); | ||
| 1180 | FileHandling::fileUplink.set_eventOut_OutputPort( | ||
| 1181 | 0, | ||
| 1182 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1183 | ); | ||
| 1184 | FileHandling::prmDb.set_Log_OutputPort( | ||
| 1185 | 0, | ||
| 1186 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1187 | ); | ||
| 1188 | Ref::SG1.set_logOut_OutputPort( | ||
| 1189 | 0, | ||
| 1190 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1191 | ); | ||
| 1192 | Ref::SG2.set_logOut_OutputPort( | ||
| 1193 | 0, | ||
| 1194 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1195 | ); | ||
| 1196 | Ref::SG3.set_logOut_OutputPort( | ||
| 1197 | 0, | ||
| 1198 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1199 | ); | ||
| 1200 | Ref::SG4.set_logOut_OutputPort( | ||
| 1201 | 0, | ||
| 1202 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1203 | ); | ||
| 1204 | Ref::SG5.set_logOut_OutputPort( | ||
| 1205 | 0, | ||
| 1206 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1207 | ); | ||
| 1208 | Ref::cmdSeq.set_logOut_OutputPort( | ||
| 1209 | 0, | ||
| 1210 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1211 | ); | ||
| 1212 | Ref::dpDemo.set_logOut_OutputPort( | ||
| 1213 | 0, | ||
| 1214 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1215 | ); | ||
| 1216 | Ref::pingRcvr.set_Log_OutputPort( | ||
| 1217 | 0, | ||
| 1218 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1219 | ); | ||
| 1220 | Ref::rateGroup1Comp.set_Log_OutputPort( | ||
| 1221 | 0, | ||
| 1222 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1223 | ); | ||
| 1224 | Ref::rateGroup2Comp.set_Log_OutputPort( | ||
| 1225 | 0, | ||
| 1226 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1227 | ); | ||
| 1228 | Ref::rateGroup3Comp.set_Log_OutputPort( | ||
| 1229 | 0, | ||
| 1230 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1231 | ); | ||
| 1232 | Ref::recvBuffComp.set_Log_OutputPort( | ||
| 1233 | 0, | ||
| 1234 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1235 | ); | ||
| 1236 | Ref::sendBuffComp.set_Log_OutputPort( | ||
| 1237 | 0, | ||
| 1238 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1239 | ); | ||
| 1240 | Ref::systemResources.set_Log_OutputPort( | ||
| 1241 | 0, | ||
| 1242 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1243 | ); | ||
| 1244 | Ref::typeDemo.set_logOut_OutputPort( | ||
| 1245 | 0, | ||
| 1246 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1247 | ); | ||
| 1248 | Ref::wasmSeq.set_logOut_OutputPort( | ||
| 1249 | 0, | ||
| 1250 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1251 | ); | ||
| 1252 | |||
| 1253 | // FaultProtection | ||
| 1254 | CdhCore::events.set_FatalAnnounce_OutputPort( | ||
| 1255 | 0, | ||
| 1256 | CdhCore::fatalHandler.get_FatalReceive_InputPort(0) | ||
| 1257 | ); | ||
| 1258 | |||
| 1259 | // FileHandling_DataProducts | ||
| 1260 | DataProducts::dpCat.set_fileOut_OutputPort( | ||
| 1261 | 0, | ||
| 1262 | FileHandling::fileDownlink.get_SendFile_InputPort(0) | ||
| 1263 | ); | ||
| 1264 | FileHandling::fileDownlink.set_FileComplete_OutputPort( | ||
| 1265 | 0, | ||
| 1266 | DataProducts::dpCat.get_fileDone_InputPort(0) | ||
| 1267 | ); | ||
| 1268 | |||
| 1269 | // Health | ||
| 1270 | CdhCore::cmdDisp.set_pingOut_OutputPort( | ||
| 1271 | 0, | ||
| 1272 | CdhCore::health.get_PingReturn_InputPort(0) | ||
| 1273 | ); | ||
| 1274 | CdhCore::events.set_pingOut_OutputPort( | ||
| 1275 | 0, | ||
| 1276 | CdhCore::health.get_PingReturn_InputPort(1) | ||
| 1277 | ); | ||
| 1278 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1279 | 0, | ||
| 1280 | CdhCore::cmdDisp.get_pingIn_InputPort(0) | ||
| 1281 | ); | ||
| 1282 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1283 | 1, | ||
| 1284 | CdhCore::events.get_pingIn_InputPort(0) | ||
| 1285 | ); | ||
| 1286 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1287 | 2, | ||
| 1288 | CdhCore::tlmSend.get_pingIn_InputPort(0) | ||
| 1289 | ); | ||
| 1290 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1291 | 3, | ||
| 1292 | DataProducts::dpBufferAccumulator.get_pingIn_InputPort(0) | ||
| 1293 | ); | ||
| 1294 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1295 | 4, | ||
| 1296 | DataProducts::dpCat.get_pingIn_InputPort(0) | ||
| 1297 | ); | ||
| 1298 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1299 | 5, | ||
| 1300 | FileHandling::fileDownlink.get_pingIn_InputPort(0) | ||
| 1301 | ); | ||
| 1302 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1303 | 6, | ||
| 1304 | FileHandling::fileManager.get_pingIn_InputPort(0) | ||
| 1305 | ); | ||
| 1306 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1307 | 7, | ||
| 1308 | FileHandling::fileUplink.get_pingIn_InputPort(0) | ||
| 1309 | ); | ||
| 1310 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1311 | 8, | ||
| 1312 | FileHandling::prmDb.get_pingIn_InputPort(0) | ||
| 1313 | ); | ||
| 1314 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1315 | 9, | ||
| 1316 | Ref::blockDrv.get_PingIn_InputPort(0) | ||
| 1317 | ); | ||
| 1318 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1319 | 10, | ||
| 1320 | Ref::cmdSeq.get_pingIn_InputPort(0) | ||
| 1321 | ); | ||
| 1322 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1323 | 11, | ||
| 1324 | Ref::pingRcvr.get_PingIn_InputPort(0) | ||
| 1325 | ); | ||
| 1326 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1327 | 12, | ||
| 1328 | Ref::rateGroup1Comp.get_PingIn_InputPort(0) | ||
| 1329 | ); | ||
| 1330 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1331 | 13, | ||
| 1332 | Ref::rateGroup2Comp.get_PingIn_InputPort(0) | ||
| 1333 | ); | ||
| 1334 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1335 | 14, | ||
| 1336 | Ref::rateGroup3Comp.get_PingIn_InputPort(0) | ||
| 1337 | ); | ||
| 1338 | CdhCore::tlmSend.set_pingOut_OutputPort( | ||
| 1339 | 0, | ||
| 1340 | CdhCore::health.get_PingReturn_InputPort(2) | ||
| 1341 | ); | ||
| 1342 | DataProducts::dpBufferAccumulator.set_pingOut_OutputPort( | ||
| 1343 | 0, | ||
| 1344 | CdhCore::health.get_PingReturn_InputPort(3) | ||
| 1345 | ); | ||
| 1346 | DataProducts::dpCat.set_pingOut_OutputPort( | ||
| 1347 | 0, | ||
| 1348 | CdhCore::health.get_PingReturn_InputPort(4) | ||
| 1349 | ); | ||
| 1350 | FileHandling::fileDownlink.set_pingOut_OutputPort( | ||
| 1351 | 0, | ||
| 1352 | CdhCore::health.get_PingReturn_InputPort(5) | ||
| 1353 | ); | ||
| 1354 | FileHandling::fileManager.set_pingOut_OutputPort( | ||
| 1355 | 0, | ||
| 1356 | CdhCore::health.get_PingReturn_InputPort(6) | ||
| 1357 | ); | ||
| 1358 | FileHandling::fileUplink.set_pingOut_OutputPort( | ||
| 1359 | 0, | ||
| 1360 | CdhCore::health.get_PingReturn_InputPort(7) | ||
| 1361 | ); | ||
| 1362 | FileHandling::prmDb.set_pingOut_OutputPort( | ||
| 1363 | 0, | ||
| 1364 | CdhCore::health.get_PingReturn_InputPort(8) | ||
| 1365 | ); | ||
| 1366 | Ref::blockDrv.set_PingOut_OutputPort( | ||
| 1367 | 0, | ||
| 1368 | CdhCore::health.get_PingReturn_InputPort(9) | ||
| 1369 | ); | ||
| 1370 | Ref::cmdSeq.set_pingOut_OutputPort( | ||
| 1371 | 0, | ||
| 1372 | CdhCore::health.get_PingReturn_InputPort(10) | ||
| 1373 | ); | ||
| 1374 | Ref::pingRcvr.set_PingOut_OutputPort( | ||
| 1375 | 0, | ||
| 1376 | CdhCore::health.get_PingReturn_InputPort(11) | ||
| 1377 | ); | ||
| 1378 | Ref::rateGroup1Comp.set_PingOut_OutputPort( | ||
| 1379 | 0, | ||
| 1380 | CdhCore::health.get_PingReturn_InputPort(12) | ||
| 1381 | ); | ||
| 1382 | Ref::rateGroup2Comp.set_PingOut_OutputPort( | ||
| 1383 | 0, | ||
| 1384 | CdhCore::health.get_PingReturn_InputPort(13) | ||
| 1385 | ); | ||
| 1386 | Ref::rateGroup3Comp.set_PingOut_OutputPort( | ||
| 1387 | 0, | ||
| 1388 | CdhCore::health.get_PingReturn_InputPort(14) | ||
| 1389 | ); | ||
| 1390 | |||
| 1391 | // Parameters | ||
| 1392 | ComCcsds::framer.set_prmGetOut_OutputPort( | ||
| 1393 | 0, | ||
| 1394 | FileHandling::prmDb.get_getPrm_InputPort(0) | ||
| 1395 | ); | ||
| 1396 | ComCcsds::framer.set_prmSetOut_OutputPort( | ||
| 1397 | 0, | ||
| 1398 | FileHandling::prmDb.get_setPrm_InputPort(0) | ||
| 1399 | ); | ||
| 1400 | ComCcsds::spacePacketDeframer.set_prmGetOut_OutputPort( | ||
| 1401 | 0, | ||
| 1402 | FileHandling::prmDb.get_getPrm_InputPort(0) | ||
| 1403 | ); | ||
| 1404 | ComCcsds::spacePacketDeframer.set_prmSetOut_OutputPort( | ||
| 1405 | 0, | ||
| 1406 | FileHandling::prmDb.get_setPrm_InputPort(0) | ||
| 1407 | ); | ||
| 1408 | ComCcsds::spacePacketFramer.set_prmGetOut_OutputPort( | ||
| 1409 | 0, | ||
| 1410 | FileHandling::prmDb.get_getPrm_InputPort(0) | ||
| 1411 | ); | ||
| 1412 | ComCcsds::spacePacketFramer.set_prmSetOut_OutputPort( | ||
| 1413 | 0, | ||
| 1414 | FileHandling::prmDb.get_setPrm_InputPort(0) | ||
| 1415 | ); | ||
| 1416 | ComCcsds::tcDeframer.set_prmGetOut_OutputPort( | ||
| 1417 | 0, | ||
| 1418 | FileHandling::prmDb.get_getPrm_InputPort(0) | ||
| 1419 | ); | ||
| 1420 | ComCcsds::tcDeframer.set_prmSetOut_OutputPort( | ||
| 1421 | 0, | ||
| 1422 | FileHandling::prmDb.get_setPrm_InputPort(0) | ||
| 1423 | ); | ||
| 1424 | Ref::dpDemo.set_prmGetOut_OutputPort( | ||
| 1425 | 0, | ||
| 1426 | FileHandling::prmDb.get_getPrm_InputPort(0) | ||
| 1427 | ); | ||
| 1428 | Ref::dpDemo.set_prmSetOut_OutputPort( | ||
| 1429 | 0, | ||
| 1430 | FileHandling::prmDb.get_setPrm_InputPort(0) | ||
| 1431 | ); | ||
| 1432 | Ref::recvBuffComp.set_ParamGet_OutputPort( | ||
| 1433 | 0, | ||
| 1434 | FileHandling::prmDb.get_getPrm_InputPort(0) | ||
| 1435 | ); | ||
| 1436 | Ref::recvBuffComp.set_ParamSet_OutputPort( | ||
| 1437 | 0, | ||
| 1438 | FileHandling::prmDb.get_setPrm_InputPort(0) | ||
| 1439 | ); | ||
| 1440 | Ref::sendBuffComp.set_ParamGet_OutputPort( | ||
| 1441 | 0, | ||
| 1442 | FileHandling::prmDb.get_getPrm_InputPort(0) | ||
| 1443 | ); | ||
| 1444 | Ref::sendBuffComp.set_ParamSet_OutputPort( | ||
| 1445 | 0, | ||
| 1446 | FileHandling::prmDb.get_setPrm_InputPort(0) | ||
| 1447 | ); | ||
| 1448 | Ref::typeDemo.set_prmGetOut_OutputPort( | ||
| 1449 | 0, | ||
| 1450 | FileHandling::prmDb.get_getPrm_InputPort(0) | ||
| 1451 | ); | ||
| 1452 | Ref::typeDemo.set_prmSetOut_OutputPort( | ||
| 1453 | 0, | ||
| 1454 | FileHandling::prmDb.get_setPrm_InputPort(0) | ||
| 1455 | ); | ||
| 1456 | Ref::wasmSeq.set_prmGet_OutputPort( | ||
| 1457 | 0, | ||
| 1458 | FileHandling::prmDb.get_getPrm_InputPort(0) | ||
| 1459 | ); | ||
| 1460 | Ref::wasmSeq.set_prmSet_OutputPort( | ||
| 1461 | 0, | ||
| 1462 | FileHandling::prmDb.get_setPrm_InputPort(0) | ||
| 1463 | ); | ||
| 1464 | |||
| 1465 | // RateGroups | ||
| 1466 | Ref::linuxTimer.set_CycleOut_OutputPort( | ||
| 1467 | 0, | ||
| 1468 | Ref::rateGroupDriverComp.get_CycleIn_InputPort(0) | ||
| 1469 | ); | ||
| 1470 | Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1471 | 0, | ||
| 1472 | Ref::SG1.get_schedIn_InputPort(0) | ||
| 1473 | ); | ||
| 1474 | Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1475 | 1, | ||
| 1476 | Ref::SG2.get_schedIn_InputPort(0) | ||
| 1477 | ); | ||
| 1478 | Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1479 | 2, | ||
| 1480 | CdhCore::tlmSend.get_Run_InputPort(0) | ||
| 1481 | ); | ||
| 1482 | Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1483 | 3, | ||
| 1484 | FileHandling::fileDownlink.get_Run_InputPort(0) | ||
| 1485 | ); | ||
| 1486 | Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1487 | 4, | ||
| 1488 | Ref::systemResources.get_run_InputPort(0) | ||
| 1489 | ); | ||
| 1490 | Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1491 | 5, | ||
| 1492 | ComCcsds::comQueue.get_run_InputPort(0) | ||
| 1493 | ); | ||
| 1494 | Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1495 | 6, | ||
| 1496 | CdhCore::cmdDisp.get_run_InputPort(0) | ||
| 1497 | ); | ||
| 1498 | Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1499 | 7, | ||
| 1500 | ComCcsds::aggregator.get_timeout_InputPort(0) | ||
| 1501 | ); | ||
| 1502 | Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1503 | 0, | ||
| 1504 | Ref::cmdSeq.get_schedIn_InputPort(0) | ||
| 1505 | ); | ||
| 1506 | Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1507 | 1, | ||
| 1508 | Ref::sendBuffComp.get_SchedIn_InputPort(0) | ||
| 1509 | ); | ||
| 1510 | Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1511 | 2, | ||
| 1512 | Ref::SG3.get_schedIn_InputPort(0) | ||
| 1513 | ); | ||
| 1514 | Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1515 | 3, | ||
| 1516 | Ref::SG4.get_schedIn_InputPort(0) | ||
| 1517 | ); | ||
| 1518 | Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1519 | 4, | ||
| 1520 | Ref::dpDemo.get_run_InputPort(0) | ||
| 1521 | ); | ||
| 1522 | Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1523 | 5, | ||
| 1524 | FileHandling::fileManager.get_schedIn_InputPort(0) | ||
| 1525 | ); | ||
| 1526 | Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1527 | 6, | ||
| 1528 | Ref::wasmSeq.get_checkTimers_InputPort(0) | ||
| 1529 | ); | ||
| 1530 | Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1531 | 7, | ||
| 1532 | Ref::wasmSeq.get_writeTelemetry_InputPort(0) | ||
| 1533 | ); | ||
| 1534 | Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1535 | 0, | ||
| 1536 | CdhCore::health.get_Run_InputPort(0) | ||
| 1537 | ); | ||
| 1538 | Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1539 | 1, | ||
| 1540 | Ref::SG5.get_schedIn_InputPort(0) | ||
| 1541 | ); | ||
| 1542 | Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1543 | 2, | ||
| 1544 | Ref::blockDrv.get_Sched_InputPort(0) | ||
| 1545 | ); | ||
| 1546 | Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1547 | 3, | ||
| 1548 | ComCcsds::commsBufferManager.get_schedIn_InputPort(0) | ||
| 1549 | ); | ||
| 1550 | Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1551 | 4, | ||
| 1552 | DataProducts::dpBufferManager.get_schedIn_InputPort(0) | ||
| 1553 | ); | ||
| 1554 | Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1555 | 5, | ||
| 1556 | DataProducts::dpWriter.get_schedIn_InputPort(0) | ||
| 1557 | ); | ||
| 1558 | Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1559 | 6, | ||
| 1560 | DataProducts::dpMgr.get_schedIn_InputPort(0) | ||
| 1561 | ); | ||
| 1562 | Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1563 | 7, | ||
| 1564 | CdhCore::events.get_run_InputPort(0) | ||
| 1565 | ); | ||
| 1566 | Ref::rateGroupDriverComp.set_CycleOut_OutputPort( | ||
| 1567 | 0, | ||
| 1568 | Ref::rateGroup1Comp.get_CycleIn_InputPort(0) | ||
| 1569 | ); | ||
| 1570 | Ref::rateGroupDriverComp.set_CycleOut_OutputPort( | ||
| 1571 | 1, | ||
| 1572 | Ref::rateGroup2Comp.get_CycleIn_InputPort(0) | ||
| 1573 | ); | ||
| 1574 | Ref::rateGroupDriverComp.set_CycleOut_OutputPort( | ||
| 1575 | 2, | ||
| 1576 | Ref::rateGroup3Comp.get_CycleIn_InputPort(0) | ||
| 1577 | ); | ||
| 1578 | |||
| 1579 | // Ref | ||
| 1580 | DataProducts::dpMgr.set_productResponseOut_OutputPort( | ||
| 1581 | 0, | ||
| 1582 | Ref::SG1.get_productRecvIn_InputPort(0) | ||
| 1583 | ); | ||
| 1584 | DataProducts::dpMgr.set_productResponseOut_OutputPort( | ||
| 1585 | 1, | ||
| 1586 | Ref::dpDemo.get_productRecvIn_InputPort(0) | ||
| 1587 | ); | ||
| 1588 | Ref::SG1.set_productGetOut_OutputPort( | ||
| 1589 | 0, | ||
| 1590 | DataProducts::dpMgr.get_productGetIn_InputPort(0) | ||
| 1591 | ); | ||
| 1592 | Ref::SG1.set_productRequestOut_OutputPort( | ||
| 1593 | 0, | ||
| 1594 | DataProducts::dpMgr.get_productRequestIn_InputPort(0) | ||
| 1595 | ); | ||
| 1596 | Ref::SG1.set_productSendOut_OutputPort( | ||
| 1597 | 0, | ||
| 1598 | DataProducts::dpMgr.get_productSendIn_InputPort(0) | ||
| 1599 | ); | ||
| 1600 | Ref::blockDrv.set_BufferOut_OutputPort( | ||
| 1601 | 0, | ||
| 1602 | Ref::recvBuffComp.get_Data_InputPort(0) | ||
| 1603 | ); | ||
| 1604 | Ref::dpDemo.set_productGetOut_OutputPort( | ||
| 1605 | 0, | ||
| 1606 | DataProducts::dpMgr.get_productGetIn_InputPort(0) | ||
| 1607 | ); | ||
| 1608 | Ref::dpDemo.set_productRequestOut_OutputPort( | ||
| 1609 | 0, | ||
| 1610 | DataProducts::dpMgr.get_productRequestIn_InputPort(0) | ||
| 1611 | ); | ||
| 1612 | Ref::dpDemo.set_productSendOut_OutputPort( | ||
| 1613 | 0, | ||
| 1614 | DataProducts::dpMgr.get_productSendIn_InputPort(0) | ||
| 1615 | ); | ||
| 1616 | Ref::sendBuffComp.set_Data_OutputPort( | ||
| 1617 | 0, | ||
| 1618 | Ref::blockDrv.get_BufferIn_InputPort(0) | ||
| 1619 | ); | ||
| 1620 | Ref::wasmSeq.set_getParam_OutputPort( | ||
| 1621 | 0, | ||
| 1622 | FileHandling::prmDb.get_getPrm_InputPort(0) | ||
| 1623 | ); | ||
| 1624 | Ref::wasmSeq.set_getTlmChan_OutputPort( | ||
| 1625 | 0, | ||
| 1626 | CdhCore::tlmSend.get_TlmGet_InputPort(0) | ||
| 1627 | ); | ||
| 1628 | |||
| 1629 | // Telemetry | ||
| 1630 | CdhCore::cmdDisp.set_Tlm_OutputPort( | ||
| 1631 | 0, | ||
| 1632 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1633 | ); | ||
| 1634 | CdhCore::events.set_Tlm_OutputPort( | ||
| 1635 | 0, | ||
| 1636 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1637 | ); | ||
| 1638 | CdhCore::health.set_Tlm_OutputPort( | ||
| 1639 | 0, | ||
| 1640 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1641 | ); | ||
| 1642 | CdhCore::version.set_tlmOut_OutputPort( | ||
| 1643 | 0, | ||
| 1644 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1645 | ); | ||
| 1646 | ComCcsds::comQueue.set_Tlm_OutputPort( | ||
| 1647 | 0, | ||
| 1648 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1649 | ); | ||
| 1650 | ComCcsds::commsBufferManager.set_tlmOut_OutputPort( | ||
| 1651 | 0, | ||
| 1652 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1653 | ); | ||
| 1654 | ComCcsds::framer.set_tlmOut_OutputPort( | ||
| 1655 | 0, | ||
| 1656 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1657 | ); | ||
| 1658 | ComCcsds::spacePacketDeframer.set_tlmOut_OutputPort( | ||
| 1659 | 0, | ||
| 1660 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1661 | ); | ||
| 1662 | ComCcsds::spacePacketFramer.set_tlmOut_OutputPort( | ||
| 1663 | 0, | ||
| 1664 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1665 | ); | ||
| 1666 | ComCcsds::tcDeframer.set_tlmOut_OutputPort( | ||
| 1667 | 0, | ||
| 1668 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1669 | ); | ||
| 1670 | DataProducts::dpBufferAccumulator.set_tlmOut_OutputPort( | ||
| 1671 | 0, | ||
| 1672 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1673 | ); | ||
| 1674 | DataProducts::dpBufferManager.set_tlmOut_OutputPort( | ||
| 1675 | 0, | ||
| 1676 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1677 | ); | ||
| 1678 | DataProducts::dpCat.set_Tlm_OutputPort( | ||
| 1679 | 0, | ||
| 1680 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1681 | ); | ||
| 1682 | DataProducts::dpMgr.set_tlmOut_OutputPort( | ||
| 1683 | 0, | ||
| 1684 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1685 | ); | ||
| 1686 | DataProducts::dpWriter.set_tlmOut_OutputPort( | ||
| 1687 | 0, | ||
| 1688 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1689 | ); | ||
| 1690 | FileHandling::fileDownlink.set_tlmOut_OutputPort( | ||
| 1691 | 0, | ||
| 1692 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1693 | ); | ||
| 1694 | FileHandling::fileManager.set_tlmOut_OutputPort( | ||
| 1695 | 0, | ||
| 1696 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1697 | ); | ||
| 1698 | FileHandling::fileUplink.set_tlmOut_OutputPort( | ||
| 1699 | 0, | ||
| 1700 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1701 | ); | ||
| 1702 | Ref::SG1.set_tlmOut_OutputPort( | ||
| 1703 | 0, | ||
| 1704 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1705 | ); | ||
| 1706 | Ref::SG2.set_tlmOut_OutputPort( | ||
| 1707 | 0, | ||
| 1708 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1709 | ); | ||
| 1710 | Ref::SG3.set_tlmOut_OutputPort( | ||
| 1711 | 0, | ||
| 1712 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1713 | ); | ||
| 1714 | Ref::SG4.set_tlmOut_OutputPort( | ||
| 1715 | 0, | ||
| 1716 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1717 | ); | ||
| 1718 | Ref::SG5.set_tlmOut_OutputPort( | ||
| 1719 | 0, | ||
| 1720 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1721 | ); | ||
| 1722 | Ref::blockDrv.set_Tlm_OutputPort( | ||
| 1723 | 0, | ||
| 1724 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1725 | ); | ||
| 1726 | Ref::cmdSeq.set_tlmOut_OutputPort( | ||
| 1727 | 0, | ||
| 1728 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1729 | ); | ||
| 1730 | Ref::dpDemo.set_tlmOut_OutputPort( | ||
| 1731 | 0, | ||
| 1732 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1733 | ); | ||
| 1734 | Ref::pingRcvr.set_Tlm_OutputPort( | ||
| 1735 | 0, | ||
| 1736 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1737 | ); | ||
| 1738 | Ref::rateGroup1Comp.set_Tlm_OutputPort( | ||
| 1739 | 0, | ||
| 1740 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1741 | ); | ||
| 1742 | Ref::rateGroup2Comp.set_Tlm_OutputPort( | ||
| 1743 | 0, | ||
| 1744 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1745 | ); | ||
| 1746 | Ref::rateGroup3Comp.set_Tlm_OutputPort( | ||
| 1747 | 0, | ||
| 1748 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1749 | ); | ||
| 1750 | Ref::recvBuffComp.set_Tlm_OutputPort( | ||
| 1751 | 0, | ||
| 1752 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1753 | ); | ||
| 1754 | Ref::sendBuffComp.set_Tlm_OutputPort( | ||
| 1755 | 0, | ||
| 1756 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1757 | ); | ||
| 1758 | Ref::systemResources.set_Tlm_OutputPort( | ||
| 1759 | 0, | ||
| 1760 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1761 | ); | ||
| 1762 | Ref::typeDemo.set_tlmOut_OutputPort( | ||
| 1763 | 0, | ||
| 1764 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1765 | ); | ||
| 1766 | Ref::wasmSeq.set_tlmOut_OutputPort( | ||
| 1767 | 0, | ||
| 1768 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1769 | ); | ||
| 1770 | |||
| 1771 | // TextEvents | ||
| 1772 | CdhCore::cmdDisp.set_LogText_OutputPort( | ||
| 1773 | 0, | ||
| 1774 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1775 | ); | ||
| 1776 | CdhCore::events.set_LogText_OutputPort( | ||
| 1777 | 0, | ||
| 1778 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1779 | ); | ||
| 1780 | CdhCore::fatalAdapter.set_LogText_OutputPort( | ||
| 1781 | 0, | ||
| 1782 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1783 | ); | ||
| 1784 | CdhCore::health.set_LogText_OutputPort( | ||
| 1785 | 0, | ||
| 1786 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1787 | ); | ||
| 1788 | CdhCore::tlmSend.set_eventOutText_OutputPort( | ||
| 1789 | 0, | ||
| 1790 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1791 | ); | ||
| 1792 | CdhCore::version.set_logTextOut_OutputPort( | ||
| 1793 | 0, | ||
| 1794 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1795 | ); | ||
| 1796 | ComCcsds::apidManager.set_logTextOut_OutputPort( | ||
| 1797 | 0, | ||
| 1798 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1799 | ); | ||
| 1800 | ComCcsds::comQueue.set_LogText_OutputPort( | ||
| 1801 | 0, | ||
| 1802 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1803 | ); | ||
| 1804 | ComCcsds::commsBufferManager.set_textEventOut_OutputPort( | ||
| 1805 | 0, | ||
| 1806 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1807 | ); | ||
| 1808 | ComCcsds::fprimeRouter.set_logTextOut_OutputPort( | ||
| 1809 | 0, | ||
| 1810 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1811 | ); | ||
| 1812 | ComCcsds::frameAccumulator.set_logTextOut_OutputPort( | ||
| 1813 | 0, | ||
| 1814 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1815 | ); | ||
| 1816 | ComCcsds::framer.set_logTextOut_OutputPort( | ||
| 1817 | 0, | ||
| 1818 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1819 | ); | ||
| 1820 | ComCcsds::spacePacketDeframer.set_logTextOut_OutputPort( | ||
| 1821 | 0, | ||
| 1822 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1823 | ); | ||
| 1824 | ComCcsds::spacePacketFramer.set_logTextOut_OutputPort( | ||
| 1825 | 0, | ||
| 1826 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1827 | ); | ||
| 1828 | ComCcsds::tcDeframer.set_logTextOut_OutputPort( | ||
| 1829 | 0, | ||
| 1830 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1831 | ); | ||
| 1832 | DataProducts::dpBufferAccumulator.set_eventOutText_OutputPort( | ||
| 1833 | 0, | ||
| 1834 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1835 | ); | ||
| 1836 | DataProducts::dpBufferManager.set_textEventOut_OutputPort( | ||
| 1837 | 0, | ||
| 1838 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1839 | ); | ||
| 1840 | DataProducts::dpCat.set_LogText_OutputPort( | ||
| 1841 | 0, | ||
| 1842 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1843 | ); | ||
| 1844 | DataProducts::dpMgr.set_textEventOut_OutputPort( | ||
| 1845 | 0, | ||
| 1846 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1847 | ); | ||
| 1848 | DataProducts::dpWriter.set_textEventOut_OutputPort( | ||
| 1849 | 0, | ||
| 1850 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1851 | ); | ||
| 1852 | FileHandling::fileDownlink.set_textEventOut_OutputPort( | ||
| 1853 | 0, | ||
| 1854 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1855 | ); | ||
| 1856 | FileHandling::fileManager.set_LogText_OutputPort( | ||
| 1857 | 0, | ||
| 1858 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1859 | ); | ||
| 1860 | FileHandling::fileUplink.set_LogText_OutputPort( | ||
| 1861 | 0, | ||
| 1862 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1863 | ); | ||
| 1864 | FileHandling::prmDb.set_LogText_OutputPort( | ||
| 1865 | 0, | ||
| 1866 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1867 | ); | ||
| 1868 | Ref::SG1.set_logTextOut_OutputPort( | ||
| 1869 | 0, | ||
| 1870 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1871 | ); | ||
| 1872 | Ref::SG2.set_logTextOut_OutputPort( | ||
| 1873 | 0, | ||
| 1874 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1875 | ); | ||
| 1876 | Ref::SG3.set_logTextOut_OutputPort( | ||
| 1877 | 0, | ||
| 1878 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1879 | ); | ||
| 1880 | Ref::SG4.set_logTextOut_OutputPort( | ||
| 1881 | 0, | ||
| 1882 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1883 | ); | ||
| 1884 | Ref::SG5.set_logTextOut_OutputPort( | ||
| 1885 | 0, | ||
| 1886 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1887 | ); | ||
| 1888 | Ref::cmdSeq.set_LogText_OutputPort( | ||
| 1889 | 0, | ||
| 1890 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1891 | ); | ||
| 1892 | Ref::dpDemo.set_logTextOut_OutputPort( | ||
| 1893 | 0, | ||
| 1894 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1895 | ); | ||
| 1896 | Ref::pingRcvr.set_LogText_OutputPort( | ||
| 1897 | 0, | ||
| 1898 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1899 | ); | ||
| 1900 | Ref::rateGroup1Comp.set_LogText_OutputPort( | ||
| 1901 | 0, | ||
| 1902 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1903 | ); | ||
| 1904 | Ref::rateGroup2Comp.set_LogText_OutputPort( | ||
| 1905 | 0, | ||
| 1906 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1907 | ); | ||
| 1908 | Ref::rateGroup3Comp.set_LogText_OutputPort( | ||
| 1909 | 0, | ||
| 1910 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1911 | ); | ||
| 1912 | Ref::recvBuffComp.set_LogText_OutputPort( | ||
| 1913 | 0, | ||
| 1914 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1915 | ); | ||
| 1916 | Ref::sendBuffComp.set_LogText_OutputPort( | ||
| 1917 | 0, | ||
| 1918 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1919 | ); | ||
| 1920 | Ref::systemResources.set_LogText_OutputPort( | ||
| 1921 | 0, | ||
| 1922 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1923 | ); | ||
| 1924 | Ref::typeDemo.set_logTextOut_OutputPort( | ||
| 1925 | 0, | ||
| 1926 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1927 | ); | ||
| 1928 | Ref::wasmSeq.set_logTextOut_OutputPort( | ||
| 1929 | 0, | ||
| 1930 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1931 | ); | ||
| 1932 | |||
| 1933 | // Time | ||
| 1934 | CdhCore::cmdDisp.set_Time_OutputPort( | ||
| 1935 | 0, | ||
| 1936 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 1937 | ); | ||
| 1938 | CdhCore::events.set_Time_OutputPort( | ||
| 1939 | 0, | ||
| 1940 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 1941 | ); | ||
| 1942 | CdhCore::fatalAdapter.set_Time_OutputPort( | ||
| 1943 | 0, | ||
| 1944 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 1945 | ); | ||
| 1946 | CdhCore::health.set_Time_OutputPort( | ||
| 1947 | 0, | ||
| 1948 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 1949 | ); | ||
| 1950 | CdhCore::tlmSend.set_timeCaller_OutputPort( | ||
| 1951 | 0, | ||
| 1952 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 1953 | ); | ||
| 1954 | CdhCore::version.set_timeCaller_OutputPort( | ||
| 1955 | 0, | ||
| 1956 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 1957 | ); | ||
| 1958 | ComCcsds::apidManager.set_timeCaller_OutputPort( | ||
| 1959 | 0, | ||
| 1960 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 1961 | ); | ||
| 1962 | ComCcsds::comQueue.set_Time_OutputPort( | ||
| 1963 | 0, | ||
| 1964 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 1965 | ); | ||
| 1966 | ComCcsds::commsBufferManager.set_timeCaller_OutputPort( | ||
| 1967 | 0, | ||
| 1968 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 1969 | ); | ||
| 1970 | ComCcsds::fprimeRouter.set_timeCaller_OutputPort( | ||
| 1971 | 0, | ||
| 1972 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 1973 | ); | ||
| 1974 | ComCcsds::frameAccumulator.set_timeCaller_OutputPort( | ||
| 1975 | 0, | ||
| 1976 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 1977 | ); | ||
| 1978 | ComCcsds::framer.set_timeCaller_OutputPort( | ||
| 1979 | 0, | ||
| 1980 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 1981 | ); | ||
| 1982 | ComCcsds::spacePacketDeframer.set_timeCaller_OutputPort( | ||
| 1983 | 0, | ||
| 1984 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 1985 | ); | ||
| 1986 | ComCcsds::spacePacketFramer.set_timeCaller_OutputPort( | ||
| 1987 | 0, | ||
| 1988 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 1989 | ); | ||
| 1990 | ComCcsds::tcDeframer.set_timeCaller_OutputPort( | ||
| 1991 | 0, | ||
| 1992 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 1993 | ); | ||
| 1994 | DataProducts::dpBufferAccumulator.set_timeCaller_OutputPort( | ||
| 1995 | 0, | ||
| 1996 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 1997 | ); | ||
| 1998 | DataProducts::dpBufferManager.set_timeCaller_OutputPort( | ||
| 1999 | 0, | ||
| 2000 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2001 | ); | ||
| 2002 | DataProducts::dpCat.set_Time_OutputPort( | ||
| 2003 | 0, | ||
| 2004 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2005 | ); | ||
| 2006 | DataProducts::dpMgr.set_timeGetOut_OutputPort( | ||
| 2007 | 0, | ||
| 2008 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2009 | ); | ||
| 2010 | DataProducts::dpWriter.set_timeGetOut_OutputPort( | ||
| 2011 | 0, | ||
| 2012 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2013 | ); | ||
| 2014 | FileHandling::fileDownlink.set_timeCaller_OutputPort( | ||
| 2015 | 0, | ||
| 2016 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2017 | ); | ||
| 2018 | FileHandling::fileManager.set_timeCaller_OutputPort( | ||
| 2019 | 0, | ||
| 2020 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2021 | ); | ||
| 2022 | FileHandling::fileUplink.set_timeCaller_OutputPort( | ||
| 2023 | 0, | ||
| 2024 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2025 | ); | ||
| 2026 | FileHandling::prmDb.set_Time_OutputPort( | ||
| 2027 | 0, | ||
| 2028 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2029 | ); | ||
| 2030 | Ref::SG1.set_timeCaller_OutputPort( | ||
| 2031 | 0, | ||
| 2032 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2033 | ); | ||
| 2034 | Ref::SG2.set_timeCaller_OutputPort( | ||
| 2035 | 0, | ||
| 2036 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2037 | ); | ||
| 2038 | Ref::SG3.set_timeCaller_OutputPort( | ||
| 2039 | 0, | ||
| 2040 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2041 | ); | ||
| 2042 | Ref::SG4.set_timeCaller_OutputPort( | ||
| 2043 | 0, | ||
| 2044 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2045 | ); | ||
| 2046 | Ref::SG5.set_timeCaller_OutputPort( | ||
| 2047 | 0, | ||
| 2048 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2049 | ); | ||
| 2050 | Ref::blockDrv.set_Time_OutputPort( | ||
| 2051 | 0, | ||
| 2052 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2053 | ); | ||
| 2054 | Ref::cmdSeq.set_timeCaller_OutputPort( | ||
| 2055 | 0, | ||
| 2056 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2057 | ); | ||
| 2058 | Ref::dpDemo.set_timeCaller_OutputPort( | ||
| 2059 | 0, | ||
| 2060 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2061 | ); | ||
| 2062 | Ref::pingRcvr.set_Time_OutputPort( | ||
| 2063 | 0, | ||
| 2064 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2065 | ); | ||
| 2066 | Ref::rateGroup1Comp.set_Time_OutputPort( | ||
| 2067 | 0, | ||
| 2068 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2069 | ); | ||
| 2070 | Ref::rateGroup2Comp.set_Time_OutputPort( | ||
| 2071 | 0, | ||
| 2072 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2073 | ); | ||
| 2074 | Ref::rateGroup3Comp.set_Time_OutputPort( | ||
| 2075 | 0, | ||
| 2076 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2077 | ); | ||
| 2078 | Ref::recvBuffComp.set_Time_OutputPort( | ||
| 2079 | 0, | ||
| 2080 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2081 | ); | ||
| 2082 | Ref::sendBuffComp.set_Time_OutputPort( | ||
| 2083 | 0, | ||
| 2084 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2085 | ); | ||
| 2086 | Ref::systemResources.set_Time_OutputPort( | ||
| 2087 | 0, | ||
| 2088 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2089 | ); | ||
| 2090 | Ref::typeDemo.set_timeCaller_OutputPort( | ||
| 2091 | 0, | ||
| 2092 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2093 | ); | ||
| 2094 | Ref::wasmSeq.set_timeCaller_OutputPort( | ||
| 2095 | 0, | ||
| 2096 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2097 | ); | ||
| 2098 | |||
| 2099 | // Uplink | ||
| 2100 | ComCcsds::fprimeRouter.set_dataReturnOut_OutputPort( | ||
| 2101 | 0, | ||
| 2102 | ComCcsds::spacePacketDeframer.get_dataReturnIn_InputPort(0) | ||
| 2103 | ); | ||
| 2104 | ComCcsds::frameAccumulator.set_bufferAllocate_OutputPort( | ||
| 2105 | 0, | ||
| 2106 | ComCcsds::commsBufferManager.get_bufferGetCallee_InputPort(0) | ||
| 2107 | ); | ||
| 2108 | ComCcsds::frameAccumulator.set_bufferDeallocate_OutputPort( | ||
| 2109 | 0, | ||
| 2110 | ComCcsds::commsBufferManager.get_bufferSendIn_InputPort(0) | ||
| 2111 | ); | ||
| 2112 | ComCcsds::frameAccumulator.set_dataOut_OutputPort( | ||
| 2113 | 0, | ||
| 2114 | ComCcsds::tcDeframer.get_dataIn_InputPort(0) | ||
| 2115 | ); | ||
| 2116 | ComCcsds::spacePacketDeframer.set_dataOut_OutputPort( | ||
| 2117 | 0, | ||
| 2118 | ComCcsds::fprimeRouter.get_dataIn_InputPort(0) | ||
| 2119 | ); | ||
| 2120 | ComCcsds::spacePacketDeframer.set_dataReturnOut_OutputPort( | ||
| 2121 | 0, | ||
| 2122 | ComCcsds::tcDeframer.get_dataReturnIn_InputPort(0) | ||
| 2123 | ); | ||
| 2124 | ComCcsds::spacePacketDeframer.set_validateApidSeqCount_OutputPort( | ||
| 2125 | 0, | ||
| 2126 | ComCcsds::apidManager.get_validateApidSeqCountIn_InputPort(0) | ||
| 2127 | ); | ||
| 2128 | ComCcsds::tcDeframer.set_dataOut_OutputPort( | ||
| 2129 | 0, | ||
| 2130 | ComCcsds::spacePacketDeframer.get_dataIn_InputPort(0) | ||
| 2131 | ); | ||
| 2132 | ComCcsds::tcDeframer.set_dataReturnOut_OutputPort( | ||
| 2133 | 0, | ||
| 2134 | ComCcsds::frameAccumulator.get_dataReturnIn_InputPort(0) | ||
| 2135 | ); | ||
| 2136 | |||
| 2137 | #endif | ||
| 2138 | |||
| 2139 | 1 | } | |
| 2140 | |||
| 2141 | 1 | void regCommands() { | |
| 2142 | 1 | CdhCore::cmdDisp.regCommands(); | |
| 2143 | 1 | CdhCore::events.regCommands(); | |
| 2144 | 1 | CdhCore::health.regCommands(); | |
| 2145 | 1 | CdhCore::version.regCommands(); | |
| 2146 | 1 | ComCcsds::comQueue.regCommands(); | |
| 2147 | 1 | DataProducts::dpBufferAccumulator.regCommands(); | |
| 2148 | 1 | DataProducts::dpCat.regCommands(); | |
| 2149 | 1 | DataProducts::dpMgr.regCommands(); | |
| 2150 | 1 | DataProducts::dpWriter.regCommands(); | |
| 2151 | 1 | FileHandling::fileDownlink.regCommands(); | |
| 2152 | 1 | FileHandling::fileManager.regCommands(); | |
| 2153 | 1 | FileHandling::prmDb.regCommands(); | |
| 2154 | 1 | Ref::SG1.regCommands(); | |
| 2155 | 1 | Ref::SG2.regCommands(); | |
| 2156 | 1 | Ref::SG3.regCommands(); | |
| 2157 | 1 | Ref::SG4.regCommands(); | |
| 2158 | 1 | Ref::SG5.regCommands(); | |
| 2159 | 1 | Ref::cmdSeq.regCommands(); | |
| 2160 | 1 | Ref::dpDemo.regCommands(); | |
| 2161 | 1 | Ref::pingRcvr.regCommands(); | |
| 2162 | 1 | Ref::recvBuffComp.regCommands(); | |
| 2163 | 1 | Ref::sendBuffComp.regCommands(); | |
| 2164 | 1 | Ref::systemResources.regCommands(); | |
| 2165 | 1 | Ref::typeDemo.regCommands(); | |
| 2166 | 1 | Ref::wasmSeq.regCommands(); | |
| 2167 | 1 | } | |
| 2168 | |||
| 2169 | 1 | void readParameters() { | |
| 2170 | 1 | FileHandling::prmDb.readParamFile(); | |
| 2171 | 1 | } | |
| 2172 | |||
| 2173 | 1 | void loadParameters() { | |
| 2174 | 1 | Ref::recvBuffComp.loadParameters(); | |
| 2175 | 1 | Ref::sendBuffComp.loadParameters(); | |
| 2176 | 1 | Ref::typeDemo.loadParameters(); | |
| 2177 | 1 | Ref::wasmSeq.loadParameters(); | |
| 2178 | 1 | } | |
| 2179 | |||
| 2180 | 1 | void startTasks(const TopologyState& state) { | |
| 2181 | 1 | CdhCore::cmdDisp.start( | |
| 2182 | static_cast<FwTaskPriorityType>(Priorities::CdhCore_cmdDisp), | ||
| 2183 | static_cast<Os::Task::ParamType>(StackSizes::CdhCore_cmdDisp), | ||
| 2184 | static_cast<Os::Task::ParamType>(CPUs::CdhCore_cmdDisp), | ||
| 2185 | static_cast<Os::Task::ParamType>(TaskIds::CdhCore_cmdDisp) | ||
| 2186 | ); | ||
| 2187 | 1 | CdhCore::events.start( | |
| 2188 | static_cast<FwTaskPriorityType>(Priorities::CdhCore_events), | ||
| 2189 | static_cast<Os::Task::ParamType>(StackSizes::CdhCore_events), | ||
| 2190 | static_cast<Os::Task::ParamType>(CPUs::CdhCore_events), | ||
| 2191 | static_cast<Os::Task::ParamType>(TaskIds::CdhCore_events) | ||
| 2192 | ); | ||
| 2193 | 1 | CdhCore::tlmSend.start( | |
| 2194 | static_cast<FwTaskPriorityType>(Priorities::CdhCore_tlmSend), | ||
| 2195 | static_cast<Os::Task::ParamType>(StackSizes::CdhCore_tlmSend), | ||
| 2196 | static_cast<Os::Task::ParamType>(CPUs::CdhCore_tlmSend), | ||
| 2197 | static_cast<Os::Task::ParamType>(TaskIds::CdhCore_tlmSend) | ||
| 2198 | ); | ||
| 2199 | // Startup TLM and EVENTS | ||
| 2200 | 1 | CdhCore::version.start(); | |
| 2201 | 1 | ComCcsds::aggregator.start( | |
| 2202 | static_cast<FwTaskPriorityType>(Priorities::ComCcsds_aggregator), | ||
| 2203 | static_cast<Os::Task::ParamType>(StackSizes::ComCcsds_aggregator), | ||
| 2204 | static_cast<Os::Task::ParamType>(CPUs::ComCcsds_aggregator), | ||
| 2205 | static_cast<Os::Task::ParamType>(TaskIds::ComCcsds_aggregator) | ||
| 2206 | ); | ||
| 2207 | 1 | ComCcsds::comQueue.start( | |
| 2208 | static_cast<FwTaskPriorityType>(Priorities::ComCcsds_comQueue), | ||
| 2209 | static_cast<Os::Task::ParamType>(StackSizes::ComCcsds_comQueue), | ||
| 2210 | static_cast<Os::Task::ParamType>(CPUs::ComCcsds_comQueue), | ||
| 2211 | static_cast<Os::Task::ParamType>(TaskIds::ComCcsds_comQueue) | ||
| 2212 | ); | ||
| 2213 | 1 | DataProducts::dpBufferAccumulator.start( | |
| 2214 | static_cast<FwTaskPriorityType>(Priorities::DataProducts_dpBufferAccumulator), | ||
| 2215 | static_cast<Os::Task::ParamType>(StackSizes::DataProducts_dpBufferAccumulator), | ||
| 2216 | static_cast<Os::Task::ParamType>(CPUs::DataProducts_dpBufferAccumulator), | ||
| 2217 | static_cast<Os::Task::ParamType>(TaskIds::DataProducts_dpBufferAccumulator) | ||
| 2218 | ); | ||
| 2219 | 1 | DataProducts::dpCat.start( | |
| 2220 | static_cast<FwTaskPriorityType>(Priorities::DataProducts_dpCat), | ||
| 2221 | static_cast<Os::Task::ParamType>(StackSizes::DataProducts_dpCat), | ||
| 2222 | static_cast<Os::Task::ParamType>(CPUs::DataProducts_dpCat), | ||
| 2223 | static_cast<Os::Task::ParamType>(TaskIds::DataProducts_dpCat) | ||
| 2224 | ); | ||
| 2225 | 1 | DataProducts::dpMgr.start( | |
| 2226 | static_cast<FwTaskPriorityType>(Priorities::DataProducts_dpMgr), | ||
| 2227 | static_cast<Os::Task::ParamType>(StackSizes::DataProducts_dpMgr), | ||
| 2228 | static_cast<Os::Task::ParamType>(CPUs::DataProducts_dpMgr), | ||
| 2229 | static_cast<Os::Task::ParamType>(TaskIds::DataProducts_dpMgr) | ||
| 2230 | ); | ||
| 2231 | 1 | DataProducts::dpWriter.start( | |
| 2232 | static_cast<FwTaskPriorityType>(Priorities::DataProducts_dpWriter), | ||
| 2233 | static_cast<Os::Task::ParamType>(StackSizes::DataProducts_dpWriter), | ||
| 2234 | static_cast<Os::Task::ParamType>(CPUs::DataProducts_dpWriter), | ||
| 2235 | static_cast<Os::Task::ParamType>(TaskIds::DataProducts_dpWriter) | ||
| 2236 | ); | ||
| 2237 | 1 | FileHandling::fileDownlink.start( | |
| 2238 | static_cast<FwTaskPriorityType>(Priorities::FileHandling_fileDownlink), | ||
| 2239 | static_cast<Os::Task::ParamType>(StackSizes::FileHandling_fileDownlink), | ||
| 2240 | static_cast<Os::Task::ParamType>(CPUs::FileHandling_fileDownlink), | ||
| 2241 | static_cast<Os::Task::ParamType>(TaskIds::FileHandling_fileDownlink) | ||
| 2242 | ); | ||
| 2243 | 1 | FileHandling::fileManager.start( | |
| 2244 | static_cast<FwTaskPriorityType>(Priorities::FileHandling_fileManager), | ||
| 2245 | static_cast<Os::Task::ParamType>(StackSizes::FileHandling_fileManager), | ||
| 2246 | static_cast<Os::Task::ParamType>(CPUs::FileHandling_fileManager), | ||
| 2247 | static_cast<Os::Task::ParamType>(TaskIds::FileHandling_fileManager) | ||
| 2248 | ); | ||
| 2249 | 1 | FileHandling::fileUplink.start( | |
| 2250 | static_cast<FwTaskPriorityType>(Priorities::FileHandling_fileUplink), | ||
| 2251 | static_cast<Os::Task::ParamType>(StackSizes::FileHandling_fileUplink), | ||
| 2252 | static_cast<Os::Task::ParamType>(CPUs::FileHandling_fileUplink), | ||
| 2253 | static_cast<Os::Task::ParamType>(TaskIds::FileHandling_fileUplink) | ||
| 2254 | ); | ||
| 2255 | 1 | FileHandling::prmDb.start( | |
| 2256 | static_cast<FwTaskPriorityType>(Priorities::FileHandling_prmDb), | ||
| 2257 | static_cast<Os::Task::ParamType>(StackSizes::FileHandling_prmDb), | ||
| 2258 | static_cast<Os::Task::ParamType>(CPUs::FileHandling_prmDb), | ||
| 2259 | static_cast<Os::Task::ParamType>(TaskIds::FileHandling_prmDb) | ||
| 2260 | ); | ||
| 2261 | 1 | Ref::blockDrv.start( | |
| 2262 | static_cast<FwTaskPriorityType>(Priorities::Ref_blockDrv), | ||
| 2263 | static_cast<Os::Task::ParamType>(StackSizes::Ref_blockDrv), | ||
| 2264 | Os::Task::TASK_DEFAULT, // Default CPU | ||
| 2265 | static_cast<Os::Task::ParamType>(TaskIds::Ref_blockDrv) | ||
| 2266 | ); | ||
| 2267 | 1 | Ref::cmdSeq.start( | |
| 2268 | static_cast<FwTaskPriorityType>(Priorities::Ref_cmdSeq), | ||
| 2269 | static_cast<Os::Task::ParamType>(StackSizes::Ref_cmdSeq), | ||
| 2270 | Os::Task::TASK_DEFAULT, // Default CPU | ||
| 2271 | static_cast<Os::Task::ParamType>(TaskIds::Ref_cmdSeq) | ||
| 2272 | ); | ||
| 2273 | 1 | Ref::dpDemo.start( | |
| 2274 | static_cast<FwTaskPriorityType>(Priorities::Ref_dpDemo), | ||
| 2275 | static_cast<Os::Task::ParamType>(StackSizes::Ref_dpDemo), | ||
| 2276 | Os::Task::TASK_DEFAULT, // Default CPU | ||
| 2277 | static_cast<Os::Task::ParamType>(TaskIds::Ref_dpDemo) | ||
| 2278 | ); | ||
| 2279 | 1 | Ref::pingRcvr.start( | |
| 2280 | static_cast<FwTaskPriorityType>(Priorities::Ref_pingRcvr), | ||
| 2281 | static_cast<Os::Task::ParamType>(StackSizes::Ref_pingRcvr), | ||
| 2282 | Os::Task::TASK_DEFAULT, // Default CPU | ||
| 2283 | static_cast<Os::Task::ParamType>(TaskIds::Ref_pingRcvr) | ||
| 2284 | ); | ||
| 2285 | 1 | Ref::rateGroup1Comp.start( | |
| 2286 | static_cast<FwTaskPriorityType>(Priorities::Ref_rateGroup1Comp), | ||
| 2287 | static_cast<Os::Task::ParamType>(StackSizes::Ref_rateGroup1Comp), | ||
| 2288 | Os::Task::TASK_DEFAULT, // Default CPU | ||
| 2289 | static_cast<Os::Task::ParamType>(TaskIds::Ref_rateGroup1Comp) | ||
| 2290 | ); | ||
| 2291 | 1 | Ref::rateGroup2Comp.start( | |
| 2292 | static_cast<FwTaskPriorityType>(Priorities::Ref_rateGroup2Comp), | ||
| 2293 | static_cast<Os::Task::ParamType>(StackSizes::Ref_rateGroup2Comp), | ||
| 2294 | Os::Task::TASK_DEFAULT, // Default CPU | ||
| 2295 | static_cast<Os::Task::ParamType>(TaskIds::Ref_rateGroup2Comp) | ||
| 2296 | ); | ||
| 2297 | 1 | Ref::rateGroup3Comp.start( | |
| 2298 | static_cast<FwTaskPriorityType>(Priorities::Ref_rateGroup3Comp), | ||
| 2299 | static_cast<Os::Task::ParamType>(StackSizes::Ref_rateGroup3Comp), | ||
| 2300 | Os::Task::TASK_DEFAULT, // Default CPU | ||
| 2301 | static_cast<Os::Task::ParamType>(TaskIds::Ref_rateGroup3Comp) | ||
| 2302 | ); | ||
| 2303 | 1 | Ref::wasmSeq.start( | |
| 2304 | static_cast<FwTaskPriorityType>(Priorities::Ref_wasmSeq), | ||
| 2305 | static_cast<Os::Task::ParamType>(StackSizes::Ref_wasmSeq), | ||
| 2306 | Os::Task::TASK_DEFAULT, // Default CPU | ||
| 2307 | static_cast<Os::Task::ParamType>(TaskIds::Ref_wasmSeq) | ||
| 2308 | ); | ||
| 2309 | 1 | } | |
| 2310 | |||
| 2311 | 1 | void stopTasks(const TopologyState& state) { | |
| 2312 | 1 | CdhCore::cmdDisp.exit(); | |
| 2313 | 1 | CdhCore::events.exit(); | |
| 2314 | 1 | CdhCore::tlmSend.exit(); | |
| 2315 | 1 | ComCcsds::aggregator.exit(); | |
| 2316 | 1 | ComCcsds::comQueue.exit(); | |
| 2317 | 1 | DataProducts::dpBufferAccumulator.exit(); | |
| 2318 | 1 | DataProducts::dpCat.exit(); | |
| 2319 | 1 | DataProducts::dpMgr.exit(); | |
| 2320 | 1 | DataProducts::dpWriter.exit(); | |
| 2321 | 1 | FileHandling::fileDownlink.exit(); | |
| 2322 | 1 | FileHandling::fileManager.exit(); | |
| 2323 | 1 | FileHandling::fileUplink.exit(); | |
| 2324 | 1 | FileHandling::prmDb.exit(); | |
| 2325 | 1 | Ref::blockDrv.exit(); | |
| 2326 | 1 | Ref::cmdSeq.exit(); | |
| 2327 | 1 | Ref::dpDemo.exit(); | |
| 2328 | 1 | Ref::pingRcvr.exit(); | |
| 2329 | 1 | Ref::rateGroup1Comp.exit(); | |
| 2330 | 1 | Ref::rateGroup2Comp.exit(); | |
| 2331 | 1 | Ref::rateGroup3Comp.exit(); | |
| 2332 | 1 | Ref::wasmSeq.exit(); | |
| 2333 | 1 | } | |
| 2334 | |||
| 2335 | 1 | void freeThreads(const TopologyState& state) { | |
| 2336 | 1 | (void) CdhCore::cmdDisp.ActiveComponentBase::join(); | |
| 2337 | 1 | (void) CdhCore::events.ActiveComponentBase::join(); | |
| 2338 | 1 | (void) CdhCore::tlmSend.ActiveComponentBase::join(); | |
| 2339 | 1 | (void) ComCcsds::aggregator.ActiveComponentBase::join(); | |
| 2340 | 1 | (void) ComCcsds::comQueue.ActiveComponentBase::join(); | |
| 2341 | 1 | (void) DataProducts::dpBufferAccumulator.ActiveComponentBase::join(); | |
| 2342 | 1 | (void) DataProducts::dpCat.ActiveComponentBase::join(); | |
| 2343 | 1 | (void) DataProducts::dpMgr.ActiveComponentBase::join(); | |
| 2344 | 1 | (void) DataProducts::dpWriter.ActiveComponentBase::join(); | |
| 2345 | 1 | (void) FileHandling::fileDownlink.ActiveComponentBase::join(); | |
| 2346 | 1 | (void) FileHandling::fileManager.ActiveComponentBase::join(); | |
| 2347 | 1 | (void) FileHandling::fileUplink.ActiveComponentBase::join(); | |
| 2348 | 1 | (void) FileHandling::prmDb.ActiveComponentBase::join(); | |
| 2349 | 1 | (void) Ref::blockDrv.ActiveComponentBase::join(); | |
| 2350 | 1 | (void) Ref::cmdSeq.ActiveComponentBase::join(); | |
| 2351 | 1 | (void) Ref::dpDemo.ActiveComponentBase::join(); | |
| 2352 | 1 | (void) Ref::pingRcvr.ActiveComponentBase::join(); | |
| 2353 | 1 | (void) Ref::rateGroup1Comp.ActiveComponentBase::join(); | |
| 2354 | 1 | (void) Ref::rateGroup2Comp.ActiveComponentBase::join(); | |
| 2355 | 1 | (void) Ref::rateGroup3Comp.ActiveComponentBase::join(); | |
| 2356 | 1 | (void) Ref::wasmSeq.ActiveComponentBase::join(); | |
| 2357 | 1 | } | |
| 2358 | |||
| 2359 | 1 | void tearDownComponents(const TopologyState& state) { | |
| 2360 | 1 | ComCcsds::aggregator.cleanup(); | |
| 2361 | 1 | ComCcsds::comQueue.cleanup(); | |
| 2362 | 1 | ComCcsds::commsBufferManager.cleanup(); | |
| 2363 | 1 | ComCcsds::frameAccumulator.cleanup(); | |
| 2364 | 1 | DataProducts::dpBufferAccumulator.deallocateQueue(DataProducts::Allocation::memAllocator); | |
| 2365 | 1 | DataProducts::dpCat.shutdown(); | |
| 2366 | 1 | DataProducts::dpBufferManager.cleanup(); | |
| 2367 | 1 | } | |
| 2368 | |||
| 2369 | 1 | void deinitComponents(const TopologyState& state) { | |
| 2370 | 1 | CdhCore::cmdDisp.deinit(); | |
| 2371 | 1 | CdhCore::events.deinit(); | |
| 2372 | 1 | CdhCore::fatalAdapter.deinit(); | |
| 2373 | 1 | CdhCore::fatalHandler.deinit(); | |
| 2374 | 1 | CdhCore::health.deinit(); | |
| 2375 | 1 | CdhCore::textLogger.deinit(); | |
| 2376 | 1 | CdhCore::tlmSend.deinit(); | |
| 2377 | 1 | CdhCore::version.deinit(); | |
| 2378 | 1 | ComCcsds::aggregator.deinit(); | |
| 2379 | 1 | ComCcsds::apidManager.deinit(); | |
| 2380 | 1 | ComCcsds::comQueue.deinit(); | |
| 2381 | 1 | ComCcsds::comStub.deinit(); | |
| 2382 | 1 | ComCcsds::commsBufferManager.deinit(); | |
| 2383 | 1 | ComCcsds::fprimeRouter.deinit(); | |
| 2384 | 1 | ComCcsds::frameAccumulator.deinit(); | |
| 2385 | 1 | ComCcsds::framer.deinit(); | |
| 2386 | 1 | ComCcsds::spacePacketDeframer.deinit(); | |
| 2387 | 1 | ComCcsds::spacePacketFramer.deinit(); | |
| 2388 | 1 | ComCcsds::tcDeframer.deinit(); | |
| 2389 | 1 | DataProducts::dpBufferAccumulator.deinit(); | |
| 2390 | 1 | DataProducts::dpBufferManager.deinit(); | |
| 2391 | 1 | DataProducts::dpCat.deinit(); | |
| 2392 | 1 | DataProducts::dpMgr.deinit(); | |
| 2393 | 1 | DataProducts::dpWriter.deinit(); | |
| 2394 | 1 | FileHandling::fileDownlink.deinit(); | |
| 2395 | 1 | FileHandling::fileManager.deinit(); | |
| 2396 | 1 | FileHandling::fileUplink.deinit(); | |
| 2397 | 1 | FileHandling::prmDb.deinit(); | |
| 2398 | 1 | Ref::SG1.deinit(); | |
| 2399 | 1 | Ref::SG2.deinit(); | |
| 2400 | 1 | Ref::SG3.deinit(); | |
| 2401 | 1 | Ref::SG4.deinit(); | |
| 2402 | 1 | Ref::SG5.deinit(); | |
| 2403 | 1 | Ref::blockDrv.deinit(); | |
| 2404 | 1 | Ref::cmdSeq.deinit(); | |
| 2405 | 1 | Ref::comDriver.deinit(); | |
| 2406 | 1 | Ref::dpDemo.deinit(); | |
| 2407 | 1 | Ref::linuxTimer.deinit(); | |
| 2408 | 1 | Ref::pingRcvr.deinit(); | |
| 2409 | 1 | Ref::posixTime.deinit(); | |
| 2410 | 1 | Ref::rateGroup1Comp.deinit(); | |
| 2411 | 1 | Ref::rateGroup2Comp.deinit(); | |
| 2412 | 1 | Ref::rateGroup3Comp.deinit(); | |
| 2413 | 1 | Ref::rateGroupDriverComp.deinit(); | |
| 2414 | 1 | Ref::recvBuffComp.deinit(); | |
| 2415 | 1 | Ref::sendBuffComp.deinit(); | |
| 2416 | 1 | Ref::systemResources.deinit(); | |
| 2417 | 1 | Ref::typeDemo.deinit(); | |
| 2418 | 1 | Ref::wasmSeq.deinit(); | |
| 2419 | 1 | } | |
| 2420 | |||
| 2421 | // ---------------------------------------------------------------------- | ||
| 2422 | // Setup and teardown functions | ||
| 2423 | // ---------------------------------------------------------------------- | ||
| 2424 | |||
| 2425 | ✗ | void setup(const TopologyState& state) { | |
| 2426 | ✗ | initComponents(state); | |
| 2427 | ✗ | configComponents(state); | |
| 2428 | ✗ | setBaseIds(); | |
| 2429 | ✗ | connectComponents(); | |
| 2430 | ✗ | regCommands(); | |
| 2431 | ✗ | readParameters(); | |
| 2432 | ✗ | loadParameters(); | |
| 2433 | ✗ | startTasks(state); | |
| 2434 | ✗ | } | |
| 2435 | |||
| 2436 | ✗ | void teardown(const TopologyState& state) { | |
| 2437 | ✗ | stopTasks(state); | |
| 2438 | ✗ | freeThreads(state); | |
| 2439 | ✗ | tearDownComponents(state); | |
| 2440 | ✗ | deinitComponents(state); | |
| 2441 | ✗ | } | |
| 2442 | |||
| 2443 | } | ||
| 2444 | |||
| 2445 | #if FW_DIRECT_PORT_CALLS | ||
| 2446 | |||
| 2447 | // ---------------------------------------------------------------------- | ||
| 2448 | // Topology-dependent component implementation | ||
| 2449 | // ---------------------------------------------------------------------- | ||
| 2450 | |||
| 2451 | namespace Drv { | ||
| 2452 | |||
| 2453 | ✗ | bool TcpClientComponentBase::isConnected_allocate_OutputPort(FwIndexType portNum) const { | |
| 2454 | ✗ | FW_ASSERT( | |
| 2455 | (0 <= portNum) && (portNum < NUM_ALLOCATE_OUTPUT_PORTS), | ||
| 2456 | static_cast<FwAssertArgType>(portNum), | ||
| 2457 | static_cast<FwAssertArgType>(NUM_ALLOCATE_OUTPUT_PORTS) | ||
| 2458 | ); | ||
| 2459 | ✗ | bool result = false; | |
| 2460 | ✗ | switch (portNum) { | |
| 2461 | ✗ | case 0: | |
| 2462 | ✗ | result = true; | |
| 2463 | ✗ | break; | |
| 2464 | ✗ | default: | |
| 2465 | ✗ | break; | |
| 2466 | } | ||
| 2467 | ✗ | return result; | |
| 2468 | } | ||
| 2469 | |||
| 2470 | ✗ | bool TcpClientComponentBase::isConnected_deallocate_OutputPort(FwIndexType portNum) const { | |
| 2471 | ✗ | FW_ASSERT( | |
| 2472 | (0 <= portNum) && (portNum < NUM_DEALLOCATE_OUTPUT_PORTS), | ||
| 2473 | static_cast<FwAssertArgType>(portNum), | ||
| 2474 | static_cast<FwAssertArgType>(NUM_DEALLOCATE_OUTPUT_PORTS) | ||
| 2475 | ); | ||
| 2476 | ✗ | bool result = false; | |
| 2477 | ✗ | switch (portNum) { | |
| 2478 | ✗ | case 0: | |
| 2479 | ✗ | result = true; | |
| 2480 | ✗ | break; | |
| 2481 | ✗ | default: | |
| 2482 | ✗ | break; | |
| 2483 | } | ||
| 2484 | ✗ | return result; | |
| 2485 | } | ||
| 2486 | |||
| 2487 | 1 | bool TcpClientComponentBase::isConnected_ready_OutputPort(FwIndexType portNum) const { | |
| 2488 | 1 | FW_ASSERT( | |
| 2489 | (0 <= portNum) && (portNum < NUM_READY_OUTPUT_PORTS), | ||
| 2490 | static_cast<FwAssertArgType>(portNum), | ||
| 2491 | static_cast<FwAssertArgType>(NUM_READY_OUTPUT_PORTS) | ||
| 2492 | ); | ||
| 2493 | 1 | bool result = false; | |
| 2494 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 2495 | 1 | case 0: | |
| 2496 | 1 | result = true; | |
| 2497 | 1 | break; | |
| 2498 | ✗ | default: | |
| 2499 | ✗ | break; | |
| 2500 | } | ||
| 2501 | 1 | return result; | |
| 2502 | } | ||
| 2503 | |||
| 2504 | ✗ | bool TcpClientComponentBase::isConnected_recv_OutputPort(FwIndexType portNum) const { | |
| 2505 | ✗ | FW_ASSERT( | |
| 2506 | (0 <= portNum) && (portNum < NUM_RECV_OUTPUT_PORTS), | ||
| 2507 | static_cast<FwAssertArgType>(portNum), | ||
| 2508 | static_cast<FwAssertArgType>(NUM_RECV_OUTPUT_PORTS) | ||
| 2509 | ); | ||
| 2510 | ✗ | bool result = false; | |
| 2511 | ✗ | switch (portNum) { | |
| 2512 | ✗ | case 0: | |
| 2513 | ✗ | result = true; | |
| 2514 | ✗ | break; | |
| 2515 | ✗ | default: | |
| 2516 | ✗ | break; | |
| 2517 | } | ||
| 2518 | ✗ | return result; | |
| 2519 | } | ||
| 2520 | |||
| 2521 | 636 | Fw::Buffer TcpClientComponentBase::allocate_out( | |
| 2522 | FwIndexType portNum, | ||
| 2523 | FwSizeType size | ||
| 2524 | ) const { | ||
| 2525 | 636 | FW_ASSERT( | |
| 2526 | (0 <= portNum) && (portNum < NUM_ALLOCATE_OUTPUT_PORTS), | ||
| 2527 | static_cast<FwAssertArgType>(portNum), | ||
| 2528 | static_cast<FwAssertArgType>(NUM_ALLOCATE_OUTPUT_PORTS) | ||
| 2529 | ); | ||
| 2530 | 636 | Fw::Buffer _result = {}; | |
| 2531 |
1/2✓ Branch 0 taken 636 times.
✗ Branch 1 not taken.
|
636 | switch (portNum) { |
| 2532 | 636 | case 0: | |
| 2533 |
1/1✓ Branch 1 taken 636 times.
|
1272 | _result = ComCcsds::commsBufferManager.bufferGetCallee_handlerBase( |
| 2534 | 0, | ||
| 2535 | size | ||
| 2536 |
1/1✓ Branch 1 taken 636 times.
|
636 | ); |
| 2537 | 636 | break; | |
| 2538 | ✗ | default: | |
| 2539 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 2540 | ✗ | break; | |
| 2541 | } | ||
| 2542 | 636 | return _result; | |
| 2543 | ✗ | } | |
| 2544 | |||
| 2545 | 636 | void TcpClientComponentBase::deallocate_out( | |
| 2546 | FwIndexType portNum, | ||
| 2547 | Fw::Buffer& fwBuffer | ||
| 2548 | ) const { | ||
| 2549 | 636 | FW_ASSERT( | |
| 2550 | (0 <= portNum) && (portNum < NUM_DEALLOCATE_OUTPUT_PORTS), | ||
| 2551 | static_cast<FwAssertArgType>(portNum), | ||
| 2552 | static_cast<FwAssertArgType>(NUM_DEALLOCATE_OUTPUT_PORTS) | ||
| 2553 | ); | ||
| 2554 |
1/2✓ Branch 0 taken 636 times.
✗ Branch 1 not taken.
|
636 | switch (portNum) { |
| 2555 | 636 | case 0: | |
| 2556 | 636 | ComCcsds::commsBufferManager.bufferSendIn_handlerBase( | |
| 2557 | 0, | ||
| 2558 | fwBuffer | ||
| 2559 | ); | ||
| 2560 | 636 | break; | |
| 2561 | ✗ | default: | |
| 2562 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 2563 | ✗ | break; | |
| 2564 | } | ||
| 2565 | 636 | } | |
| 2566 | |||
| 2567 | 1 | void TcpClientComponentBase::ready_out(FwIndexType portNum) const { | |
| 2568 | 1 | FW_ASSERT( | |
| 2569 | (0 <= portNum) && (portNum < NUM_READY_OUTPUT_PORTS), | ||
| 2570 | static_cast<FwAssertArgType>(portNum), | ||
| 2571 | static_cast<FwAssertArgType>(NUM_READY_OUTPUT_PORTS) | ||
| 2572 | ); | ||
| 2573 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 2574 | 1 | case 0: | |
| 2575 | 1 | ComCcsds::comStub.drvConnected_handlerBase(0); | |
| 2576 | 1 | break; | |
| 2577 | ✗ | default: | |
| 2578 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 2579 | ✗ | break; | |
| 2580 | } | ||
| 2581 | 1 | } | |
| 2582 | |||
| 2583 | 636 | void TcpClientComponentBase::recv_out( | |
| 2584 | FwIndexType portNum, | ||
| 2585 | Fw::Buffer& buffer, | ||
| 2586 | const Drv::ByteStreamStatus& status | ||
| 2587 | ) const { | ||
| 2588 | 636 | FW_ASSERT( | |
| 2589 | (0 <= portNum) && (portNum < NUM_RECV_OUTPUT_PORTS), | ||
| 2590 | static_cast<FwAssertArgType>(portNum), | ||
| 2591 | static_cast<FwAssertArgType>(NUM_RECV_OUTPUT_PORTS) | ||
| 2592 | ); | ||
| 2593 |
1/2✓ Branch 0 taken 636 times.
✗ Branch 1 not taken.
|
636 | switch (portNum) { |
| 2594 | 636 | case 0: | |
| 2595 | 636 | ComCcsds::comStub.drvReceiveIn_handlerBase( | |
| 2596 | 0, | ||
| 2597 | buffer, | ||
| 2598 | status | ||
| 2599 | ); | ||
| 2600 | 636 | break; | |
| 2601 | ✗ | default: | |
| 2602 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 2603 | ✗ | break; | |
| 2604 | } | ||
| 2605 | 636 | } | |
| 2606 | |||
| 2607 | } | ||
| 2608 | |||
| 2609 | namespace Ref { | ||
| 2610 | |||
| 2611 | ✗ | bool BlockDriverComponentBase::isConnected_BufferOut_OutputPort(FwIndexType portNum) const { | |
| 2612 | ✗ | FW_ASSERT( | |
| 2613 | (0 <= portNum) && (portNum < NUM_BUFFEROUT_OUTPUT_PORTS), | ||
| 2614 | static_cast<FwAssertArgType>(portNum), | ||
| 2615 | static_cast<FwAssertArgType>(NUM_BUFFEROUT_OUTPUT_PORTS) | ||
| 2616 | ); | ||
| 2617 | ✗ | bool result = false; | |
| 2618 | ✗ | switch (portNum) { | |
| 2619 | ✗ | case 0: | |
| 2620 | ✗ | result = true; | |
| 2621 | ✗ | break; | |
| 2622 | ✗ | default: | |
| 2623 | ✗ | break; | |
| 2624 | } | ||
| 2625 | ✗ | return result; | |
| 2626 | } | ||
| 2627 | |||
| 2628 | ✗ | bool BlockDriverComponentBase::isConnected_CycleOut_OutputPort(FwIndexType portNum) const { | |
| 2629 | ✗ | FW_ASSERT( | |
| 2630 | (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS), | ||
| 2631 | static_cast<FwAssertArgType>(portNum), | ||
| 2632 | static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS) | ||
| 2633 | ); | ||
| 2634 | ✗ | bool result = false; | |
| 2635 | ✗ | switch (portNum) { | |
| 2636 | default: | ||
| 2637 | ✗ | break; | |
| 2638 | } | ||
| 2639 | ✗ | return result; | |
| 2640 | } | ||
| 2641 | |||
| 2642 | ✗ | bool BlockDriverComponentBase::isConnected_PingOut_OutputPort(FwIndexType portNum) const { | |
| 2643 | ✗ | FW_ASSERT( | |
| 2644 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 2645 | static_cast<FwAssertArgType>(portNum), | ||
| 2646 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 2647 | ); | ||
| 2648 | ✗ | bool result = false; | |
| 2649 | ✗ | switch (portNum) { | |
| 2650 | ✗ | case 0: | |
| 2651 | ✗ | result = true; | |
| 2652 | ✗ | break; | |
| 2653 | ✗ | default: | |
| 2654 | ✗ | break; | |
| 2655 | } | ||
| 2656 | ✗ | return result; | |
| 2657 | } | ||
| 2658 | |||
| 2659 | 62 | bool BlockDriverComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 2660 | 62 | FW_ASSERT( | |
| 2661 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 2662 | static_cast<FwAssertArgType>(portNum), | ||
| 2663 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 2664 | ); | ||
| 2665 | 62 | bool result = false; | |
| 2666 |
1/2✓ Branch 0 taken 62 times.
✗ Branch 1 not taken.
|
62 | switch (portNum) { |
| 2667 | 62 | case 0: | |
| 2668 | 62 | result = true; | |
| 2669 | 62 | break; | |
| 2670 | ✗ | default: | |
| 2671 | ✗ | break; | |
| 2672 | } | ||
| 2673 | 62 | return result; | |
| 2674 | } | ||
| 2675 | |||
| 2676 | 124 | bool BlockDriverComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const { | |
| 2677 | 124 | FW_ASSERT( | |
| 2678 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 2679 | static_cast<FwAssertArgType>(portNum), | ||
| 2680 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 2681 | ); | ||
| 2682 | 124 | bool result = false; | |
| 2683 |
1/2✓ Branch 0 taken 124 times.
✗ Branch 1 not taken.
|
124 | switch (portNum) { |
| 2684 | 124 | case 0: | |
| 2685 | 124 | result = true; | |
| 2686 | 124 | break; | |
| 2687 | ✗ | default: | |
| 2688 | ✗ | break; | |
| 2689 | } | ||
| 2690 | 124 | return result; | |
| 2691 | } | ||
| 2692 | |||
| 2693 | ✗ | void BlockDriverComponentBase::BufferOut_out( | |
| 2694 | FwIndexType portNum, | ||
| 2695 | Drv::DataBuffer& buff | ||
| 2696 | ) const { | ||
| 2697 | ✗ | FW_ASSERT( | |
| 2698 | (0 <= portNum) && (portNum < NUM_BUFFEROUT_OUTPUT_PORTS), | ||
| 2699 | static_cast<FwAssertArgType>(portNum), | ||
| 2700 | static_cast<FwAssertArgType>(NUM_BUFFEROUT_OUTPUT_PORTS) | ||
| 2701 | ); | ||
| 2702 | ✗ | switch (portNum) { | |
| 2703 | ✗ | case 0: | |
| 2704 | ✗ | Ref::recvBuffComp.Data_handlerBase( | |
| 2705 | 0, | ||
| 2706 | buff | ||
| 2707 | ); | ||
| 2708 | ✗ | break; | |
| 2709 | ✗ | default: | |
| 2710 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 2711 | ✗ | break; | |
| 2712 | } | ||
| 2713 | ✗ | } | |
| 2714 | |||
| 2715 | ✗ | void BlockDriverComponentBase::CycleOut_out( | |
| 2716 | FwIndexType portNum, | ||
| 2717 | Os::RawTime& cycleStart | ||
| 2718 | ) const { | ||
| 2719 | ✗ | FW_ASSERT( | |
| 2720 | (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS), | ||
| 2721 | static_cast<FwAssertArgType>(portNum), | ||
| 2722 | static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS) | ||
| 2723 | ); | ||
| 2724 | ✗ | switch (portNum) { | |
| 2725 | default: | ||
| 2726 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 2727 | ✗ | break; | |
| 2728 | } | ||
| 2729 | ✗ | } | |
| 2730 | |||
| 2731 | 62 | void BlockDriverComponentBase::PingOut_out( | |
| 2732 | FwIndexType portNum, | ||
| 2733 | U32 key | ||
| 2734 | ) const { | ||
| 2735 | 62 | FW_ASSERT( | |
| 2736 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 2737 | static_cast<FwAssertArgType>(portNum), | ||
| 2738 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 2739 | ); | ||
| 2740 |
1/2✓ Branch 0 taken 62 times.
✗ Branch 1 not taken.
|
62 | switch (portNum) { |
| 2741 | 62 | case 0: | |
| 2742 | 62 | CdhCore::health.PingReturn_handlerBase( | |
| 2743 | 9, | ||
| 2744 | key | ||
| 2745 | ); | ||
| 2746 | 62 | break; | |
| 2747 | ✗ | default: | |
| 2748 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 2749 | ✗ | break; | |
| 2750 | } | ||
| 2751 | 62 | } | |
| 2752 | |||
| 2753 | 62 | void BlockDriverComponentBase::Time_out( | |
| 2754 | FwIndexType portNum, | ||
| 2755 | Fw::Time& time | ||
| 2756 | ) const { | ||
| 2757 | 62 | FW_ASSERT( | |
| 2758 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 2759 | static_cast<FwAssertArgType>(portNum), | ||
| 2760 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 2761 | ); | ||
| 2762 |
1/2✓ Branch 0 taken 62 times.
✗ Branch 1 not taken.
|
62 | switch (portNum) { |
| 2763 | 62 | case 0: | |
| 2764 | 62 | Ref::posixTime.timeGetPort_handlerBase( | |
| 2765 | 0, | ||
| 2766 | time | ||
| 2767 | ); | ||
| 2768 | 62 | break; | |
| 2769 | ✗ | default: | |
| 2770 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 2771 | ✗ | break; | |
| 2772 | } | ||
| 2773 | 62 | } | |
| 2774 | |||
| 2775 | 62 | void BlockDriverComponentBase::Tlm_out( | |
| 2776 | FwIndexType portNum, | ||
| 2777 | FwChanIdType id, | ||
| 2778 | Fw::Time& timeTag, | ||
| 2779 | Fw::TlmBuffer& val | ||
| 2780 | ) const { | ||
| 2781 | 62 | FW_ASSERT( | |
| 2782 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 2783 | static_cast<FwAssertArgType>(portNum), | ||
| 2784 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 2785 | ); | ||
| 2786 |
1/2✓ Branch 0 taken 62 times.
✗ Branch 1 not taken.
|
62 | switch (portNum) { |
| 2787 | 62 | case 0: | |
| 2788 | 62 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 2789 | 0, | ||
| 2790 | id, | ||
| 2791 | timeTag, | ||
| 2792 | val | ||
| 2793 | ); | ||
| 2794 | 62 | break; | |
| 2795 | ✗ | default: | |
| 2796 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 2797 | ✗ | break; | |
| 2798 | } | ||
| 2799 | 62 | } | |
| 2800 | |||
| 2801 | } | ||
| 2802 | |||
| 2803 | namespace Ref { | ||
| 2804 | |||
| 2805 | 1 | bool DpDemoComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const { | |
| 2806 | 1 | FW_ASSERT( | |
| 2807 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 2808 | static_cast<FwAssertArgType>(portNum), | ||
| 2809 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 2810 | ); | ||
| 2811 | 1 | bool result = false; | |
| 2812 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 2813 | 1 | case 0: | |
| 2814 | 1 | result = true; | |
| 2815 | 1 | break; | |
| 2816 | ✗ | default: | |
| 2817 | ✗ | break; | |
| 2818 | } | ||
| 2819 | 1 | return result; | |
| 2820 | } | ||
| 2821 | |||
| 2822 | 2 | bool DpDemoComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const { | |
| 2823 | 2 | FW_ASSERT( | |
| 2824 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 2825 | static_cast<FwAssertArgType>(portNum), | ||
| 2826 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 2827 | ); | ||
| 2828 | 2 | bool result = false; | |
| 2829 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 2830 | 2 | case 0: | |
| 2831 | 2 | result = true; | |
| 2832 | 2 | break; | |
| 2833 | ✗ | default: | |
| 2834 | ✗ | break; | |
| 2835 | } | ||
| 2836 | 2 | return result; | |
| 2837 | } | ||
| 2838 | |||
| 2839 | 8 | bool DpDemoComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 2840 | 8 | FW_ASSERT( | |
| 2841 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 2842 | static_cast<FwAssertArgType>(portNum), | ||
| 2843 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 2844 | ); | ||
| 2845 | 8 | bool result = false; | |
| 2846 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | switch (portNum) { |
| 2847 | 8 | case 0: | |
| 2848 | 8 | result = true; | |
| 2849 | 8 | break; | |
| 2850 | ✗ | default: | |
| 2851 | ✗ | break; | |
| 2852 | } | ||
| 2853 | 8 | return result; | |
| 2854 | } | ||
| 2855 | |||
| 2856 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 2857 | |||
| 2858 | 8 | bool DpDemoComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 2859 | 8 | FW_ASSERT( | |
| 2860 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 2861 | static_cast<FwAssertArgType>(portNum), | ||
| 2862 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 2863 | ); | ||
| 2864 | 8 | bool result = false; | |
| 2865 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | switch (portNum) { |
| 2866 | 8 | case 0: | |
| 2867 | 8 | result = true; | |
| 2868 | 8 | break; | |
| 2869 | ✗ | default: | |
| 2870 | ✗ | break; | |
| 2871 | } | ||
| 2872 | 8 | return result; | |
| 2873 | } | ||
| 2874 | |||
| 2875 | #endif | ||
| 2876 | |||
| 2877 | ✗ | bool DpDemoComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const { | |
| 2878 | ✗ | FW_ASSERT( | |
| 2879 | (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS), | ||
| 2880 | static_cast<FwAssertArgType>(portNum), | ||
| 2881 | static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS) | ||
| 2882 | ); | ||
| 2883 | ✗ | bool result = false; | |
| 2884 | ✗ | switch (portNum) { | |
| 2885 | ✗ | case 0: | |
| 2886 | ✗ | result = true; | |
| 2887 | ✗ | break; | |
| 2888 | ✗ | default: | |
| 2889 | ✗ | break; | |
| 2890 | } | ||
| 2891 | ✗ | return result; | |
| 2892 | } | ||
| 2893 | |||
| 2894 | ✗ | bool DpDemoComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const { | |
| 2895 | ✗ | FW_ASSERT( | |
| 2896 | (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS), | ||
| 2897 | static_cast<FwAssertArgType>(portNum), | ||
| 2898 | static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS) | ||
| 2899 | ); | ||
| 2900 | ✗ | bool result = false; | |
| 2901 | ✗ | switch (portNum) { | |
| 2902 | ✗ | case 0: | |
| 2903 | ✗ | result = true; | |
| 2904 | ✗ | break; | |
| 2905 | ✗ | default: | |
| 2906 | ✗ | break; | |
| 2907 | } | ||
| 2908 | ✗ | return result; | |
| 2909 | } | ||
| 2910 | |||
| 2911 | 2 | bool DpDemoComponentBase::isConnected_productGetOut_OutputPort(FwIndexType portNum) const { | |
| 2912 | 2 | FW_ASSERT( | |
| 2913 | (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS), | ||
| 2914 | static_cast<FwAssertArgType>(portNum), | ||
| 2915 | static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS) | ||
| 2916 | ); | ||
| 2917 | 2 | bool result = false; | |
| 2918 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 2919 | 2 | case 0: | |
| 2920 | 2 | result = true; | |
| 2921 | 2 | break; | |
| 2922 | ✗ | default: | |
| 2923 | ✗ | break; | |
| 2924 | } | ||
| 2925 | 2 | return result; | |
| 2926 | } | ||
| 2927 | |||
| 2928 | 2 | bool DpDemoComponentBase::isConnected_productRequestOut_OutputPort(FwIndexType portNum) const { | |
| 2929 | 2 | FW_ASSERT( | |
| 2930 | (0 <= portNum) && (portNum < NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS), | ||
| 2931 | static_cast<FwAssertArgType>(portNum), | ||
| 2932 | static_cast<FwAssertArgType>(NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS) | ||
| 2933 | ); | ||
| 2934 | 2 | bool result = false; | |
| 2935 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 2936 | 2 | case 0: | |
| 2937 | 2 | result = true; | |
| 2938 | 2 | break; | |
| 2939 | ✗ | default: | |
| 2940 | ✗ | break; | |
| 2941 | } | ||
| 2942 | 2 | return result; | |
| 2943 | } | ||
| 2944 | |||
| 2945 | ✗ | bool DpDemoComponentBase::isConnected_productSendOut_OutputPort(FwIndexType portNum) const { | |
| 2946 | ✗ | FW_ASSERT( | |
| 2947 | (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS), | ||
| 2948 | static_cast<FwAssertArgType>(portNum), | ||
| 2949 | static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS) | ||
| 2950 | ); | ||
| 2951 | ✗ | bool result = false; | |
| 2952 | ✗ | switch (portNum) { | |
| 2953 | ✗ | case 0: | |
| 2954 | ✗ | result = true; | |
| 2955 | ✗ | break; | |
| 2956 | ✗ | default: | |
| 2957 | ✗ | break; | |
| 2958 | } | ||
| 2959 | ✗ | return result; | |
| 2960 | } | ||
| 2961 | |||
| 2962 | 10 | bool DpDemoComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 2963 | 10 | FW_ASSERT( | |
| 2964 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 2965 | static_cast<FwAssertArgType>(portNum), | ||
| 2966 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 2967 | ); | ||
| 2968 | 10 | bool result = false; | |
| 2969 |
1/2✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
|
10 | switch (portNum) { |
| 2970 | 10 | case 0: | |
| 2971 | 10 | result = true; | |
| 2972 | 10 | break; | |
| 2973 | ✗ | default: | |
| 2974 | ✗ | break; | |
| 2975 | } | ||
| 2976 | 10 | return result; | |
| 2977 | } | ||
| 2978 | |||
| 2979 | ✗ | bool DpDemoComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 2980 | ✗ | FW_ASSERT( | |
| 2981 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 2982 | static_cast<FwAssertArgType>(portNum), | ||
| 2983 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 2984 | ); | ||
| 2985 | ✗ | bool result = false; | |
| 2986 | ✗ | switch (portNum) { | |
| 2987 | ✗ | case 0: | |
| 2988 | ✗ | result = true; | |
| 2989 | ✗ | break; | |
| 2990 | ✗ | default: | |
| 2991 | ✗ | break; | |
| 2992 | } | ||
| 2993 | ✗ | return result; | |
| 2994 | } | ||
| 2995 | |||
| 2996 | 2 | void DpDemoComponentBase::cmdRegOut_out( | |
| 2997 | FwIndexType portNum, | ||
| 2998 | FwOpcodeType opCode | ||
| 2999 | ) const { | ||
| 3000 | 2 | FW_ASSERT( | |
| 3001 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 3002 | static_cast<FwAssertArgType>(portNum), | ||
| 3003 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 3004 | ); | ||
| 3005 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 3006 | 2 | case 0: | |
| 3007 | 2 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 3008 | 18, | ||
| 3009 | opCode | ||
| 3010 | ); | ||
| 3011 | 2 | break; | |
| 3012 | ✗ | default: | |
| 3013 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3014 | ✗ | break; | |
| 3015 | } | ||
| 3016 | 2 | } | |
| 3017 | |||
| 3018 | 2 | void DpDemoComponentBase::cmdResponseOut_out( | |
| 3019 | FwIndexType portNum, | ||
| 3020 | FwOpcodeType opCode, | ||
| 3021 | U32 cmdSeq, | ||
| 3022 | const Fw::CmdResponse& response | ||
| 3023 | ) const { | ||
| 3024 | 2 | FW_ASSERT( | |
| 3025 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 3026 | static_cast<FwAssertArgType>(portNum), | ||
| 3027 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 3028 | ); | ||
| 3029 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 3030 | 2 | case 0: | |
| 3031 | 2 | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 3032 | 0, | ||
| 3033 | opCode, | ||
| 3034 | cmdSeq, | ||
| 3035 | response | ||
| 3036 | ); | ||
| 3037 | 2 | break; | |
| 3038 | ✗ | default: | |
| 3039 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3040 | ✗ | break; | |
| 3041 | } | ||
| 3042 | 2 | } | |
| 3043 | |||
| 3044 | 8 | void DpDemoComponentBase::logOut_out( | |
| 3045 | FwIndexType portNum, | ||
| 3046 | FwEventIdType id, | ||
| 3047 | Fw::Time& timeTag, | ||
| 3048 | const Fw::LogSeverity& severity, | ||
| 3049 | Fw::LogBuffer& args | ||
| 3050 | ) const { | ||
| 3051 | 8 | FW_ASSERT( | |
| 3052 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 3053 | static_cast<FwAssertArgType>(portNum), | ||
| 3054 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 3055 | ); | ||
| 3056 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | switch (portNum) { |
| 3057 | 8 | case 0: | |
| 3058 | 8 | CdhCore::events.LogRecv_handlerBase( | |
| 3059 | 0, | ||
| 3060 | id, | ||
| 3061 | timeTag, | ||
| 3062 | severity, | ||
| 3063 | args | ||
| 3064 | ); | ||
| 3065 | 8 | break; | |
| 3066 | ✗ | default: | |
| 3067 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3068 | ✗ | break; | |
| 3069 | } | ||
| 3070 | 8 | } | |
| 3071 | |||
| 3072 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 3073 | |||
| 3074 | 8 | void DpDemoComponentBase::logTextOut_out( | |
| 3075 | FwIndexType portNum, | ||
| 3076 | FwEventIdType id, | ||
| 3077 | Fw::Time& timeTag, | ||
| 3078 | const Fw::LogSeverity& severity, | ||
| 3079 | Fw::TextLogString& text | ||
| 3080 | ) const { | ||
| 3081 | 8 | FW_ASSERT( | |
| 3082 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 3083 | static_cast<FwAssertArgType>(portNum), | ||
| 3084 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 3085 | ); | ||
| 3086 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | switch (portNum) { |
| 3087 | 8 | case 0: | |
| 3088 | 8 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 3089 | 0, | ||
| 3090 | id, | ||
| 3091 | timeTag, | ||
| 3092 | severity, | ||
| 3093 | text | ||
| 3094 | ); | ||
| 3095 | 8 | break; | |
| 3096 | ✗ | default: | |
| 3097 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3098 | ✗ | break; | |
| 3099 | } | ||
| 3100 | 8 | } | |
| 3101 | |||
| 3102 | #endif | ||
| 3103 | |||
| 3104 | 2 | Fw::Success DpDemoComponentBase::productGetOut_out( | |
| 3105 | FwIndexType portNum, | ||
| 3106 | FwDpIdType id, | ||
| 3107 | FwSizeType dataSize, | ||
| 3108 | Fw::Buffer& buffer | ||
| 3109 | ) const { | ||
| 3110 | 2 | FW_ASSERT( | |
| 3111 | (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS), | ||
| 3112 | static_cast<FwAssertArgType>(portNum), | ||
| 3113 | static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS) | ||
| 3114 | ); | ||
| 3115 | 2 | Fw::Success _result = {}; | |
| 3116 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 3117 | 2 | case 0: | |
| 3118 |
1/1✓ Branch 1 taken 2 times.
|
4 | _result = DataProducts::dpMgr.productGetIn_handlerBase( |
| 3119 | 0, | ||
| 3120 | id, | ||
| 3121 | dataSize, | ||
| 3122 | buffer | ||
| 3123 |
1/1✓ Branch 1 taken 2 times.
|
2 | ); |
| 3124 | 2 | break; | |
| 3125 | ✗ | default: | |
| 3126 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3127 | ✗ | break; | |
| 3128 | } | ||
| 3129 | 2 | return _result; | |
| 3130 | ✗ | } | |
| 3131 | |||
| 3132 | ✗ | void DpDemoComponentBase::productRequestOut_out( | |
| 3133 | FwIndexType portNum, | ||
| 3134 | FwDpIdType id, | ||
| 3135 | FwSizeType dataSize | ||
| 3136 | ) const { | ||
| 3137 | ✗ | FW_ASSERT( | |
| 3138 | (0 <= portNum) && (portNum < NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS), | ||
| 3139 | static_cast<FwAssertArgType>(portNum), | ||
| 3140 | static_cast<FwAssertArgType>(NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS) | ||
| 3141 | ); | ||
| 3142 | ✗ | switch (portNum) { | |
| 3143 | ✗ | case 0: | |
| 3144 | ✗ | DataProducts::dpMgr.productRequestIn_handlerBase( | |
| 3145 | 0, | ||
| 3146 | id, | ||
| 3147 | dataSize | ||
| 3148 | ); | ||
| 3149 | ✗ | break; | |
| 3150 | ✗ | default: | |
| 3151 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3152 | ✗ | break; | |
| 3153 | } | ||
| 3154 | ✗ | } | |
| 3155 | |||
| 3156 | 2 | void DpDemoComponentBase::productSendOut_out( | |
| 3157 | FwIndexType portNum, | ||
| 3158 | FwDpIdType id, | ||
| 3159 | const Fw::Buffer& buffer | ||
| 3160 | ) const { | ||
| 3161 | 2 | FW_ASSERT( | |
| 3162 | (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS), | ||
| 3163 | static_cast<FwAssertArgType>(portNum), | ||
| 3164 | static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS) | ||
| 3165 | ); | ||
| 3166 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 3167 | 2 | case 0: | |
| 3168 | 2 | DataProducts::dpMgr.productSendIn_handlerBase( | |
| 3169 | 0, | ||
| 3170 | id, | ||
| 3171 | buffer | ||
| 3172 | ); | ||
| 3173 | 2 | break; | |
| 3174 | ✗ | default: | |
| 3175 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3176 | ✗ | break; | |
| 3177 | } | ||
| 3178 | 2 | } | |
| 3179 | |||
| 3180 | 10 | void DpDemoComponentBase::timeCaller_out( | |
| 3181 | FwIndexType portNum, | ||
| 3182 | Fw::Time& time | ||
| 3183 | ) const { | ||
| 3184 | 10 | FW_ASSERT( | |
| 3185 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 3186 | static_cast<FwAssertArgType>(portNum), | ||
| 3187 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 3188 | ); | ||
| 3189 |
1/2✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
|
10 | switch (portNum) { |
| 3190 | 10 | case 0: | |
| 3191 | 10 | Ref::posixTime.timeGetPort_handlerBase( | |
| 3192 | 0, | ||
| 3193 | time | ||
| 3194 | ); | ||
| 3195 | 10 | break; | |
| 3196 | ✗ | default: | |
| 3197 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3198 | ✗ | break; | |
| 3199 | } | ||
| 3200 | 10 | } | |
| 3201 | |||
| 3202 | } | ||
| 3203 | |||
| 3204 | namespace Ref { | ||
| 3205 | |||
| 3206 | 1 | bool PingReceiverComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const { | |
| 3207 | 1 | FW_ASSERT( | |
| 3208 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 3209 | static_cast<FwAssertArgType>(portNum), | ||
| 3210 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 3211 | ); | ||
| 3212 | 1 | bool result = false; | |
| 3213 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 3214 | 1 | case 0: | |
| 3215 | 1 | result = true; | |
| 3216 | 1 | break; | |
| 3217 | ✗ | default: | |
| 3218 | ✗ | break; | |
| 3219 | } | ||
| 3220 | 1 | return result; | |
| 3221 | } | ||
| 3222 | |||
| 3223 | ✗ | bool PingReceiverComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const { | |
| 3224 | ✗ | FW_ASSERT( | |
| 3225 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 3226 | static_cast<FwAssertArgType>(portNum), | ||
| 3227 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 3228 | ); | ||
| 3229 | ✗ | bool result = false; | |
| 3230 | ✗ | switch (portNum) { | |
| 3231 | ✗ | case 0: | |
| 3232 | ✗ | result = true; | |
| 3233 | ✗ | break; | |
| 3234 | ✗ | default: | |
| 3235 | ✗ | break; | |
| 3236 | } | ||
| 3237 | ✗ | return result; | |
| 3238 | } | ||
| 3239 | |||
| 3240 | ✗ | bool PingReceiverComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 3241 | ✗ | FW_ASSERT( | |
| 3242 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 3243 | static_cast<FwAssertArgType>(portNum), | ||
| 3244 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 3245 | ); | ||
| 3246 | ✗ | bool result = false; | |
| 3247 | ✗ | switch (portNum) { | |
| 3248 | ✗ | case 0: | |
| 3249 | ✗ | result = true; | |
| 3250 | ✗ | break; | |
| 3251 | ✗ | default: | |
| 3252 | ✗ | break; | |
| 3253 | } | ||
| 3254 | ✗ | return result; | |
| 3255 | } | ||
| 3256 | |||
| 3257 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 3258 | |||
| 3259 | ✗ | bool PingReceiverComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 3260 | ✗ | FW_ASSERT( | |
| 3261 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 3262 | static_cast<FwAssertArgType>(portNum), | ||
| 3263 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 3264 | ); | ||
| 3265 | ✗ | bool result = false; | |
| 3266 | ✗ | switch (portNum) { | |
| 3267 | ✗ | case 0: | |
| 3268 | ✗ | result = true; | |
| 3269 | ✗ | break; | |
| 3270 | ✗ | default: | |
| 3271 | ✗ | break; | |
| 3272 | } | ||
| 3273 | ✗ | return result; | |
| 3274 | } | ||
| 3275 | |||
| 3276 | #endif | ||
| 3277 | |||
| 3278 | ✗ | bool PingReceiverComponentBase::isConnected_PingOut_OutputPort(FwIndexType portNum) const { | |
| 3279 | ✗ | FW_ASSERT( | |
| 3280 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 3281 | static_cast<FwAssertArgType>(portNum), | ||
| 3282 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 3283 | ); | ||
| 3284 | ✗ | bool result = false; | |
| 3285 | ✗ | switch (portNum) { | |
| 3286 | ✗ | case 0: | |
| 3287 | ✗ | result = true; | |
| 3288 | ✗ | break; | |
| 3289 | ✗ | default: | |
| 3290 | ✗ | break; | |
| 3291 | } | ||
| 3292 | ✗ | return result; | |
| 3293 | } | ||
| 3294 | |||
| 3295 | 62 | bool PingReceiverComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 3296 | 62 | FW_ASSERT( | |
| 3297 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 3298 | static_cast<FwAssertArgType>(portNum), | ||
| 3299 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 3300 | ); | ||
| 3301 | 62 | bool result = false; | |
| 3302 |
1/2✓ Branch 0 taken 62 times.
✗ Branch 1 not taken.
|
62 | switch (portNum) { |
| 3303 | 62 | case 0: | |
| 3304 | 62 | result = true; | |
| 3305 | 62 | break; | |
| 3306 | ✗ | default: | |
| 3307 | ✗ | break; | |
| 3308 | } | ||
| 3309 | 62 | return result; | |
| 3310 | } | ||
| 3311 | |||
| 3312 | 124 | bool PingReceiverComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const { | |
| 3313 | 124 | FW_ASSERT( | |
| 3314 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 3315 | static_cast<FwAssertArgType>(portNum), | ||
| 3316 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 3317 | ); | ||
| 3318 | 124 | bool result = false; | |
| 3319 |
1/2✓ Branch 0 taken 124 times.
✗ Branch 1 not taken.
|
124 | switch (portNum) { |
| 3320 | 124 | case 0: | |
| 3321 | 124 | result = true; | |
| 3322 | 124 | break; | |
| 3323 | ✗ | default: | |
| 3324 | ✗ | break; | |
| 3325 | } | ||
| 3326 | 124 | return result; | |
| 3327 | } | ||
| 3328 | |||
| 3329 | 1 | void PingReceiverComponentBase::CmdReg_out( | |
| 3330 | FwIndexType portNum, | ||
| 3331 | FwOpcodeType opCode | ||
| 3332 | ) const { | ||
| 3333 | 1 | FW_ASSERT( | |
| 3334 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 3335 | static_cast<FwAssertArgType>(portNum), | ||
| 3336 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 3337 | ); | ||
| 3338 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 3339 | 1 | case 0: | |
| 3340 | 1 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 3341 | 19, | ||
| 3342 | opCode | ||
| 3343 | ); | ||
| 3344 | 1 | break; | |
| 3345 | ✗ | default: | |
| 3346 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3347 | ✗ | break; | |
| 3348 | } | ||
| 3349 | 1 | } | |
| 3350 | |||
| 3351 | ✗ | void PingReceiverComponentBase::CmdStatus_out( | |
| 3352 | FwIndexType portNum, | ||
| 3353 | FwOpcodeType opCode, | ||
| 3354 | U32 cmdSeq, | ||
| 3355 | const Fw::CmdResponse& response | ||
| 3356 | ) const { | ||
| 3357 | ✗ | FW_ASSERT( | |
| 3358 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 3359 | static_cast<FwAssertArgType>(portNum), | ||
| 3360 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 3361 | ); | ||
| 3362 | ✗ | switch (portNum) { | |
| 3363 | ✗ | case 0: | |
| 3364 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 3365 | 0, | ||
| 3366 | opCode, | ||
| 3367 | cmdSeq, | ||
| 3368 | response | ||
| 3369 | ); | ||
| 3370 | ✗ | break; | |
| 3371 | ✗ | default: | |
| 3372 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3373 | ✗ | break; | |
| 3374 | } | ||
| 3375 | ✗ | } | |
| 3376 | |||
| 3377 | ✗ | void PingReceiverComponentBase::Log_out( | |
| 3378 | FwIndexType portNum, | ||
| 3379 | FwEventIdType id, | ||
| 3380 | Fw::Time& timeTag, | ||
| 3381 | const Fw::LogSeverity& severity, | ||
| 3382 | Fw::LogBuffer& args | ||
| 3383 | ) const { | ||
| 3384 | ✗ | FW_ASSERT( | |
| 3385 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 3386 | static_cast<FwAssertArgType>(portNum), | ||
| 3387 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 3388 | ); | ||
| 3389 | ✗ | switch (portNum) { | |
| 3390 | ✗ | case 0: | |
| 3391 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 3392 | 0, | ||
| 3393 | id, | ||
| 3394 | timeTag, | ||
| 3395 | severity, | ||
| 3396 | args | ||
| 3397 | ); | ||
| 3398 | ✗ | break; | |
| 3399 | ✗ | default: | |
| 3400 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3401 | ✗ | break; | |
| 3402 | } | ||
| 3403 | ✗ | } | |
| 3404 | |||
| 3405 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 3406 | |||
| 3407 | ✗ | void PingReceiverComponentBase::LogText_out( | |
| 3408 | FwIndexType portNum, | ||
| 3409 | FwEventIdType id, | ||
| 3410 | Fw::Time& timeTag, | ||
| 3411 | const Fw::LogSeverity& severity, | ||
| 3412 | Fw::TextLogString& text | ||
| 3413 | ) const { | ||
| 3414 | ✗ | FW_ASSERT( | |
| 3415 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 3416 | static_cast<FwAssertArgType>(portNum), | ||
| 3417 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 3418 | ); | ||
| 3419 | ✗ | switch (portNum) { | |
| 3420 | ✗ | case 0: | |
| 3421 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 3422 | 0, | ||
| 3423 | id, | ||
| 3424 | timeTag, | ||
| 3425 | severity, | ||
| 3426 | text | ||
| 3427 | ); | ||
| 3428 | ✗ | break; | |
| 3429 | ✗ | default: | |
| 3430 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3431 | ✗ | break; | |
| 3432 | } | ||
| 3433 | ✗ | } | |
| 3434 | |||
| 3435 | #endif | ||
| 3436 | |||
| 3437 | 62 | void PingReceiverComponentBase::PingOut_out( | |
| 3438 | FwIndexType portNum, | ||
| 3439 | U32 key | ||
| 3440 | ) const { | ||
| 3441 | 62 | FW_ASSERT( | |
| 3442 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 3443 | static_cast<FwAssertArgType>(portNum), | ||
| 3444 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 3445 | ); | ||
| 3446 |
1/2✓ Branch 0 taken 62 times.
✗ Branch 1 not taken.
|
62 | switch (portNum) { |
| 3447 | 62 | case 0: | |
| 3448 | 62 | CdhCore::health.PingReturn_handlerBase( | |
| 3449 | 11, | ||
| 3450 | key | ||
| 3451 | ); | ||
| 3452 | 62 | break; | |
| 3453 | ✗ | default: | |
| 3454 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3455 | ✗ | break; | |
| 3456 | } | ||
| 3457 | 62 | } | |
| 3458 | |||
| 3459 | 62 | void PingReceiverComponentBase::Time_out( | |
| 3460 | FwIndexType portNum, | ||
| 3461 | Fw::Time& time | ||
| 3462 | ) const { | ||
| 3463 | 62 | FW_ASSERT( | |
| 3464 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 3465 | static_cast<FwAssertArgType>(portNum), | ||
| 3466 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 3467 | ); | ||
| 3468 |
1/2✓ Branch 0 taken 62 times.
✗ Branch 1 not taken.
|
62 | switch (portNum) { |
| 3469 | 62 | case 0: | |
| 3470 | 62 | Ref::posixTime.timeGetPort_handlerBase( | |
| 3471 | 0, | ||
| 3472 | time | ||
| 3473 | ); | ||
| 3474 | 62 | break; | |
| 3475 | ✗ | default: | |
| 3476 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3477 | ✗ | break; | |
| 3478 | } | ||
| 3479 | 62 | } | |
| 3480 | |||
| 3481 | 62 | void PingReceiverComponentBase::Tlm_out( | |
| 3482 | FwIndexType portNum, | ||
| 3483 | FwChanIdType id, | ||
| 3484 | Fw::Time& timeTag, | ||
| 3485 | Fw::TlmBuffer& val | ||
| 3486 | ) const { | ||
| 3487 | 62 | FW_ASSERT( | |
| 3488 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 3489 | static_cast<FwAssertArgType>(portNum), | ||
| 3490 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 3491 | ); | ||
| 3492 |
1/2✓ Branch 0 taken 62 times.
✗ Branch 1 not taken.
|
62 | switch (portNum) { |
| 3493 | 62 | case 0: | |
| 3494 | 62 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 3495 | 0, | ||
| 3496 | id, | ||
| 3497 | timeTag, | ||
| 3498 | val | ||
| 3499 | ); | ||
| 3500 | 62 | break; | |
| 3501 | ✗ | default: | |
| 3502 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3503 | ✗ | break; | |
| 3504 | } | ||
| 3505 | 62 | } | |
| 3506 | |||
| 3507 | } | ||
| 3508 | |||
| 3509 | namespace Ref { | ||
| 3510 | |||
| 3511 | 1 | bool RecvBuffComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const { | |
| 3512 | 1 | FW_ASSERT( | |
| 3513 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 3514 | static_cast<FwAssertArgType>(portNum), | ||
| 3515 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 3516 | ); | ||
| 3517 | 1 | bool result = false; | |
| 3518 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 3519 | 1 | case 0: | |
| 3520 | 1 | result = true; | |
| 3521 | 1 | break; | |
| 3522 | ✗ | default: | |
| 3523 | ✗ | break; | |
| 3524 | } | ||
| 3525 | 1 | return result; | |
| 3526 | } | ||
| 3527 | |||
| 3528 | 6 | bool RecvBuffComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const { | |
| 3529 | 6 | FW_ASSERT( | |
| 3530 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 3531 | static_cast<FwAssertArgType>(portNum), | ||
| 3532 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 3533 | ); | ||
| 3534 | 6 | bool result = false; | |
| 3535 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 3536 | 6 | case 0: | |
| 3537 | 6 | result = true; | |
| 3538 | 6 | break; | |
| 3539 | ✗ | default: | |
| 3540 | ✗ | break; | |
| 3541 | } | ||
| 3542 | 6 | return result; | |
| 3543 | } | ||
| 3544 | |||
| 3545 | 6 | bool RecvBuffComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 3546 | 6 | FW_ASSERT( | |
| 3547 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 3548 | static_cast<FwAssertArgType>(portNum), | ||
| 3549 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 3550 | ); | ||
| 3551 | 6 | bool result = false; | |
| 3552 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 3553 | 6 | case 0: | |
| 3554 | 6 | result = true; | |
| 3555 | 6 | break; | |
| 3556 | ✗ | default: | |
| 3557 | ✗ | break; | |
| 3558 | } | ||
| 3559 | 6 | return result; | |
| 3560 | } | ||
| 3561 | |||
| 3562 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 3563 | |||
| 3564 | 6 | bool RecvBuffComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 3565 | 6 | FW_ASSERT( | |
| 3566 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 3567 | static_cast<FwAssertArgType>(portNum), | ||
| 3568 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 3569 | ); | ||
| 3570 | 6 | bool result = false; | |
| 3571 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 3572 | 6 | case 0: | |
| 3573 | 6 | result = true; | |
| 3574 | 6 | break; | |
| 3575 | ✗ | default: | |
| 3576 | ✗ | break; | |
| 3577 | } | ||
| 3578 | 6 | return result; | |
| 3579 | } | ||
| 3580 | |||
| 3581 | #endif | ||
| 3582 | |||
| 3583 | 1 | bool RecvBuffComponentBase::isConnected_ParamGet_OutputPort(FwIndexType portNum) const { | |
| 3584 | 1 | FW_ASSERT( | |
| 3585 | (0 <= portNum) && (portNum < NUM_PARAMGET_OUTPUT_PORTS), | ||
| 3586 | static_cast<FwAssertArgType>(portNum), | ||
| 3587 | static_cast<FwAssertArgType>(NUM_PARAMGET_OUTPUT_PORTS) | ||
| 3588 | ); | ||
| 3589 | 1 | bool result = false; | |
| 3590 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 3591 | 1 | case 0: | |
| 3592 | 1 | result = true; | |
| 3593 | 1 | break; | |
| 3594 | ✗ | default: | |
| 3595 | ✗ | break; | |
| 3596 | } | ||
| 3597 | 1 | return result; | |
| 3598 | } | ||
| 3599 | |||
| 3600 | 2 | bool RecvBuffComponentBase::isConnected_ParamSet_OutputPort(FwIndexType portNum) const { | |
| 3601 | 2 | FW_ASSERT( | |
| 3602 | (0 <= portNum) && (portNum < NUM_PARAMSET_OUTPUT_PORTS), | ||
| 3603 | static_cast<FwAssertArgType>(portNum), | ||
| 3604 | static_cast<FwAssertArgType>(NUM_PARAMSET_OUTPUT_PORTS) | ||
| 3605 | ); | ||
| 3606 | 2 | bool result = false; | |
| 3607 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 3608 | 2 | case 0: | |
| 3609 | 2 | result = true; | |
| 3610 | 2 | break; | |
| 3611 | ✗ | default: | |
| 3612 | ✗ | break; | |
| 3613 | } | ||
| 3614 | 2 | return result; | |
| 3615 | } | ||
| 3616 | |||
| 3617 | 12 | bool RecvBuffComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 3618 | 12 | FW_ASSERT( | |
| 3619 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 3620 | static_cast<FwAssertArgType>(portNum), | ||
| 3621 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 3622 | ); | ||
| 3623 | 12 | bool result = false; | |
| 3624 |
1/2✓ Branch 0 taken 12 times.
✗ Branch 1 not taken.
|
12 | switch (portNum) { |
| 3625 | 12 | case 0: | |
| 3626 | 12 | result = true; | |
| 3627 | 12 | break; | |
| 3628 | ✗ | default: | |
| 3629 | ✗ | break; | |
| 3630 | } | ||
| 3631 | 12 | return result; | |
| 3632 | } | ||
| 3633 | |||
| 3634 | 12 | bool RecvBuffComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const { | |
| 3635 | 12 | FW_ASSERT( | |
| 3636 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 3637 | static_cast<FwAssertArgType>(portNum), | ||
| 3638 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 3639 | ); | ||
| 3640 | 12 | bool result = false; | |
| 3641 |
1/2✓ Branch 0 taken 12 times.
✗ Branch 1 not taken.
|
12 | switch (portNum) { |
| 3642 | 12 | case 0: | |
| 3643 | 12 | result = true; | |
| 3644 | 12 | break; | |
| 3645 | ✗ | default: | |
| 3646 | ✗ | break; | |
| 3647 | } | ||
| 3648 | 12 | return result; | |
| 3649 | } | ||
| 3650 | |||
| 3651 | 4 | void RecvBuffComponentBase::CmdReg_out( | |
| 3652 | FwIndexType portNum, | ||
| 3653 | FwOpcodeType opCode | ||
| 3654 | ) const { | ||
| 3655 | 4 | FW_ASSERT( | |
| 3656 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 3657 | static_cast<FwAssertArgType>(portNum), | ||
| 3658 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 3659 | ); | ||
| 3660 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 3661 | 4 | case 0: | |
| 3662 | 4 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 3663 | 20, | ||
| 3664 | opCode | ||
| 3665 | ); | ||
| 3666 | 4 | break; | |
| 3667 | ✗ | default: | |
| 3668 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3669 | ✗ | break; | |
| 3670 | } | ||
| 3671 | 4 | } | |
| 3672 | |||
| 3673 | 6 | void RecvBuffComponentBase::CmdStatus_out( | |
| 3674 | FwIndexType portNum, | ||
| 3675 | FwOpcodeType opCode, | ||
| 3676 | U32 cmdSeq, | ||
| 3677 | const Fw::CmdResponse& response | ||
| 3678 | ) const { | ||
| 3679 | 6 | FW_ASSERT( | |
| 3680 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 3681 | static_cast<FwAssertArgType>(portNum), | ||
| 3682 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 3683 | ); | ||
| 3684 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 3685 | 6 | case 0: | |
| 3686 | 6 | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 3687 | 0, | ||
| 3688 | opCode, | ||
| 3689 | cmdSeq, | ||
| 3690 | response | ||
| 3691 | ); | ||
| 3692 | 6 | break; | |
| 3693 | ✗ | default: | |
| 3694 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3695 | ✗ | break; | |
| 3696 | } | ||
| 3697 | 6 | } | |
| 3698 | |||
| 3699 | 6 | void RecvBuffComponentBase::Log_out( | |
| 3700 | FwIndexType portNum, | ||
| 3701 | FwEventIdType id, | ||
| 3702 | Fw::Time& timeTag, | ||
| 3703 | const Fw::LogSeverity& severity, | ||
| 3704 | Fw::LogBuffer& args | ||
| 3705 | ) const { | ||
| 3706 | 6 | FW_ASSERT( | |
| 3707 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 3708 | static_cast<FwAssertArgType>(portNum), | ||
| 3709 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 3710 | ); | ||
| 3711 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 3712 | 6 | case 0: | |
| 3713 | 6 | CdhCore::events.LogRecv_handlerBase( | |
| 3714 | 0, | ||
| 3715 | id, | ||
| 3716 | timeTag, | ||
| 3717 | severity, | ||
| 3718 | args | ||
| 3719 | ); | ||
| 3720 | 6 | break; | |
| 3721 | ✗ | default: | |
| 3722 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3723 | ✗ | break; | |
| 3724 | } | ||
| 3725 | 6 | } | |
| 3726 | |||
| 3727 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 3728 | |||
| 3729 | 6 | void RecvBuffComponentBase::LogText_out( | |
| 3730 | FwIndexType portNum, | ||
| 3731 | FwEventIdType id, | ||
| 3732 | Fw::Time& timeTag, | ||
| 3733 | const Fw::LogSeverity& severity, | ||
| 3734 | Fw::TextLogString& text | ||
| 3735 | ) const { | ||
| 3736 | 6 | FW_ASSERT( | |
| 3737 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 3738 | static_cast<FwAssertArgType>(portNum), | ||
| 3739 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 3740 | ); | ||
| 3741 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 3742 | 6 | case 0: | |
| 3743 | 6 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 3744 | 0, | ||
| 3745 | id, | ||
| 3746 | timeTag, | ||
| 3747 | severity, | ||
| 3748 | text | ||
| 3749 | ); | ||
| 3750 | 6 | break; | |
| 3751 | ✗ | default: | |
| 3752 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3753 | ✗ | break; | |
| 3754 | } | ||
| 3755 | 6 | } | |
| 3756 | |||
| 3757 | #endif | ||
| 3758 | |||
| 3759 | 2 | Fw::ParamValid RecvBuffComponentBase::ParamGet_out( | |
| 3760 | FwIndexType portNum, | ||
| 3761 | FwPrmIdType id, | ||
| 3762 | Fw::ParamBuffer& val | ||
| 3763 | ) const { | ||
| 3764 | 2 | FW_ASSERT( | |
| 3765 | (0 <= portNum) && (portNum < NUM_PARAMGET_OUTPUT_PORTS), | ||
| 3766 | static_cast<FwAssertArgType>(portNum), | ||
| 3767 | static_cast<FwAssertArgType>(NUM_PARAMGET_OUTPUT_PORTS) | ||
| 3768 | ); | ||
| 3769 | 2 | Fw::ParamValid _result = {}; | |
| 3770 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 3771 | 2 | case 0: | |
| 3772 |
1/1✓ Branch 1 taken 2 times.
|
4 | _result = FileHandling::prmDb.getPrm_handlerBase( |
| 3773 | 0, | ||
| 3774 | id, | ||
| 3775 | val | ||
| 3776 |
1/1✓ Branch 1 taken 2 times.
|
2 | ); |
| 3777 | 2 | break; | |
| 3778 | ✗ | default: | |
| 3779 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3780 | ✗ | break; | |
| 3781 | } | ||
| 3782 | 2 | return _result; | |
| 3783 | ✗ | } | |
| 3784 | |||
| 3785 | 2 | void RecvBuffComponentBase::ParamSet_out( | |
| 3786 | FwIndexType portNum, | ||
| 3787 | FwPrmIdType id, | ||
| 3788 | Fw::ParamBuffer& val | ||
| 3789 | ) const { | ||
| 3790 | 2 | FW_ASSERT( | |
| 3791 | (0 <= portNum) && (portNum < NUM_PARAMSET_OUTPUT_PORTS), | ||
| 3792 | static_cast<FwAssertArgType>(portNum), | ||
| 3793 | static_cast<FwAssertArgType>(NUM_PARAMSET_OUTPUT_PORTS) | ||
| 3794 | ); | ||
| 3795 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 3796 | 2 | case 0: | |
| 3797 | 2 | FileHandling::prmDb.setPrm_handlerBase( | |
| 3798 | 0, | ||
| 3799 | id, | ||
| 3800 | val | ||
| 3801 | ); | ||
| 3802 | 2 | break; | |
| 3803 | ✗ | default: | |
| 3804 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3805 | ✗ | break; | |
| 3806 | } | ||
| 3807 | 2 | } | |
| 3808 | |||
| 3809 | 12 | void RecvBuffComponentBase::Time_out( | |
| 3810 | FwIndexType portNum, | ||
| 3811 | Fw::Time& time | ||
| 3812 | ) const { | ||
| 3813 | 12 | FW_ASSERT( | |
| 3814 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 3815 | static_cast<FwAssertArgType>(portNum), | ||
| 3816 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 3817 | ); | ||
| 3818 |
1/2✓ Branch 0 taken 12 times.
✗ Branch 1 not taken.
|
12 | switch (portNum) { |
| 3819 | 12 | case 0: | |
| 3820 | 12 | Ref::posixTime.timeGetPort_handlerBase( | |
| 3821 | 0, | ||
| 3822 | time | ||
| 3823 | ); | ||
| 3824 | 12 | break; | |
| 3825 | ✗ | default: | |
| 3826 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3827 | ✗ | break; | |
| 3828 | } | ||
| 3829 | 12 | } | |
| 3830 | |||
| 3831 | 6 | void RecvBuffComponentBase::Tlm_out( | |
| 3832 | FwIndexType portNum, | ||
| 3833 | FwChanIdType id, | ||
| 3834 | Fw::Time& timeTag, | ||
| 3835 | Fw::TlmBuffer& val | ||
| 3836 | ) const { | ||
| 3837 | 6 | FW_ASSERT( | |
| 3838 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 3839 | static_cast<FwAssertArgType>(portNum), | ||
| 3840 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 3841 | ); | ||
| 3842 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 3843 | 6 | case 0: | |
| 3844 | 6 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 3845 | 0, | ||
| 3846 | id, | ||
| 3847 | timeTag, | ||
| 3848 | val | ||
| 3849 | ); | ||
| 3850 | 6 | break; | |
| 3851 | ✗ | default: | |
| 3852 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3853 | ✗ | break; | |
| 3854 | } | ||
| 3855 | 6 | } | |
| 3856 | |||
| 3857 | } | ||
| 3858 | |||
| 3859 | namespace Ref { | ||
| 3860 | |||
| 3861 | 1 | bool SendBuffComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const { | |
| 3862 | 1 | FW_ASSERT( | |
| 3863 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 3864 | static_cast<FwAssertArgType>(portNum), | ||
| 3865 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 3866 | ); | ||
| 3867 | 1 | bool result = false; | |
| 3868 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 3869 | 1 | case 0: | |
| 3870 | 1 | result = true; | |
| 3871 | 1 | break; | |
| 3872 | ✗ | default: | |
| 3873 | ✗ | break; | |
| 3874 | } | ||
| 3875 | 1 | return result; | |
| 3876 | } | ||
| 3877 | |||
| 3878 | 6 | bool SendBuffComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const { | |
| 3879 | 6 | FW_ASSERT( | |
| 3880 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 3881 | static_cast<FwAssertArgType>(portNum), | ||
| 3882 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 3883 | ); | ||
| 3884 | 6 | bool result = false; | |
| 3885 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 3886 | 6 | case 0: | |
| 3887 | 6 | result = true; | |
| 3888 | 6 | break; | |
| 3889 | ✗ | default: | |
| 3890 | ✗ | break; | |
| 3891 | } | ||
| 3892 | 6 | return result; | |
| 3893 | } | ||
| 3894 | |||
| 3895 | ✗ | bool SendBuffComponentBase::isConnected_Data_OutputPort(FwIndexType portNum) const { | |
| 3896 | ✗ | FW_ASSERT( | |
| 3897 | (0 <= portNum) && (portNum < NUM_DATA_OUTPUT_PORTS), | ||
| 3898 | static_cast<FwAssertArgType>(portNum), | ||
| 3899 | static_cast<FwAssertArgType>(NUM_DATA_OUTPUT_PORTS) | ||
| 3900 | ); | ||
| 3901 | ✗ | bool result = false; | |
| 3902 | ✗ | switch (portNum) { | |
| 3903 | ✗ | case 0: | |
| 3904 | ✗ | result = true; | |
| 3905 | ✗ | break; | |
| 3906 | ✗ | default: | |
| 3907 | ✗ | break; | |
| 3908 | } | ||
| 3909 | ✗ | return result; | |
| 3910 | } | ||
| 3911 | |||
| 3912 | 6 | bool SendBuffComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 3913 | 6 | FW_ASSERT( | |
| 3914 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 3915 | static_cast<FwAssertArgType>(portNum), | ||
| 3916 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 3917 | ); | ||
| 3918 | 6 | bool result = false; | |
| 3919 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 3920 | 6 | case 0: | |
| 3921 | 6 | result = true; | |
| 3922 | 6 | break; | |
| 3923 | ✗ | default: | |
| 3924 | ✗ | break; | |
| 3925 | } | ||
| 3926 | 6 | return result; | |
| 3927 | } | ||
| 3928 | |||
| 3929 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 3930 | |||
| 3931 | 6 | bool SendBuffComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 3932 | 6 | FW_ASSERT( | |
| 3933 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 3934 | static_cast<FwAssertArgType>(portNum), | ||
| 3935 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 3936 | ); | ||
| 3937 | 6 | bool result = false; | |
| 3938 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 3939 | 6 | case 0: | |
| 3940 | 6 | result = true; | |
| 3941 | 6 | break; | |
| 3942 | ✗ | default: | |
| 3943 | ✗ | break; | |
| 3944 | } | ||
| 3945 | 6 | return result; | |
| 3946 | } | ||
| 3947 | |||
| 3948 | #endif | ||
| 3949 | |||
| 3950 | 1 | bool SendBuffComponentBase::isConnected_ParamGet_OutputPort(FwIndexType portNum) const { | |
| 3951 | 1 | FW_ASSERT( | |
| 3952 | (0 <= portNum) && (portNum < NUM_PARAMGET_OUTPUT_PORTS), | ||
| 3953 | static_cast<FwAssertArgType>(portNum), | ||
| 3954 | static_cast<FwAssertArgType>(NUM_PARAMGET_OUTPUT_PORTS) | ||
| 3955 | ); | ||
| 3956 | 1 | bool result = false; | |
| 3957 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 3958 | 1 | case 0: | |
| 3959 | 1 | result = true; | |
| 3960 | 1 | break; | |
| 3961 | ✗ | default: | |
| 3962 | ✗ | break; | |
| 3963 | } | ||
| 3964 | 1 | return result; | |
| 3965 | } | ||
| 3966 | |||
| 3967 | 2 | bool SendBuffComponentBase::isConnected_ParamSet_OutputPort(FwIndexType portNum) const { | |
| 3968 | 2 | FW_ASSERT( | |
| 3969 | (0 <= portNum) && (portNum < NUM_PARAMSET_OUTPUT_PORTS), | ||
| 3970 | static_cast<FwAssertArgType>(portNum), | ||
| 3971 | static_cast<FwAssertArgType>(NUM_PARAMSET_OUTPUT_PORTS) | ||
| 3972 | ); | ||
| 3973 | 2 | bool result = false; | |
| 3974 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 3975 | 2 | case 0: | |
| 3976 | 2 | result = true; | |
| 3977 | 2 | break; | |
| 3978 | ✗ | default: | |
| 3979 | ✗ | break; | |
| 3980 | } | ||
| 3981 | 2 | return result; | |
| 3982 | } | ||
| 3983 | |||
| 3984 | 135 | bool SendBuffComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 3985 | 135 | FW_ASSERT( | |
| 3986 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 3987 | static_cast<FwAssertArgType>(portNum), | ||
| 3988 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 3989 | ); | ||
| 3990 | 135 | bool result = false; | |
| 3991 |
1/2✓ Branch 0 taken 135 times.
✗ Branch 1 not taken.
|
135 | switch (portNum) { |
| 3992 | 135 | case 0: | |
| 3993 | 135 | result = true; | |
| 3994 | 135 | break; | |
| 3995 | ✗ | default: | |
| 3996 | ✗ | break; | |
| 3997 | } | ||
| 3998 | 135 | return result; | |
| 3999 | } | ||
| 4000 | |||
| 4001 | 258 | bool SendBuffComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const { | |
| 4002 | 258 | FW_ASSERT( | |
| 4003 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 4004 | static_cast<FwAssertArgType>(portNum), | ||
| 4005 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 4006 | ); | ||
| 4007 | 258 | bool result = false; | |
| 4008 |
1/2✓ Branch 0 taken 258 times.
✗ Branch 1 not taken.
|
258 | switch (portNum) { |
| 4009 | 258 | case 0: | |
| 4010 | 258 | result = true; | |
| 4011 | 258 | break; | |
| 4012 | ✗ | default: | |
| 4013 | ✗ | break; | |
| 4014 | } | ||
| 4015 | 258 | return result; | |
| 4016 | } | ||
| 4017 | |||
| 4018 | 8 | void SendBuffComponentBase::CmdReg_out( | |
| 4019 | FwIndexType portNum, | ||
| 4020 | FwOpcodeType opCode | ||
| 4021 | ) const { | ||
| 4022 | 8 | FW_ASSERT( | |
| 4023 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 4024 | static_cast<FwAssertArgType>(portNum), | ||
| 4025 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 4026 | ); | ||
| 4027 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | switch (portNum) { |
| 4028 | 8 | case 0: | |
| 4029 | 8 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 4030 | 21, | ||
| 4031 | opCode | ||
| 4032 | ); | ||
| 4033 | 8 | break; | |
| 4034 | ✗ | default: | |
| 4035 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4036 | ✗ | break; | |
| 4037 | } | ||
| 4038 | 8 | } | |
| 4039 | |||
| 4040 | 6 | void SendBuffComponentBase::CmdStatus_out( | |
| 4041 | FwIndexType portNum, | ||
| 4042 | FwOpcodeType opCode, | ||
| 4043 | U32 cmdSeq, | ||
| 4044 | const Fw::CmdResponse& response | ||
| 4045 | ) const { | ||
| 4046 | 6 | FW_ASSERT( | |
| 4047 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 4048 | static_cast<FwAssertArgType>(portNum), | ||
| 4049 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 4050 | ); | ||
| 4051 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 4052 | 6 | case 0: | |
| 4053 | 6 | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 4054 | 0, | ||
| 4055 | opCode, | ||
| 4056 | cmdSeq, | ||
| 4057 | response | ||
| 4058 | ); | ||
| 4059 | 6 | break; | |
| 4060 | ✗ | default: | |
| 4061 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4062 | ✗ | break; | |
| 4063 | } | ||
| 4064 | 6 | } | |
| 4065 | |||
| 4066 | ✗ | void SendBuffComponentBase::Data_out( | |
| 4067 | FwIndexType portNum, | ||
| 4068 | Drv::DataBuffer& buff | ||
| 4069 | ) const { | ||
| 4070 | ✗ | FW_ASSERT( | |
| 4071 | (0 <= portNum) && (portNum < NUM_DATA_OUTPUT_PORTS), | ||
| 4072 | static_cast<FwAssertArgType>(portNum), | ||
| 4073 | static_cast<FwAssertArgType>(NUM_DATA_OUTPUT_PORTS) | ||
| 4074 | ); | ||
| 4075 | ✗ | switch (portNum) { | |
| 4076 | ✗ | case 0: | |
| 4077 | ✗ | Ref::blockDrv.BufferIn_handlerBase( | |
| 4078 | 0, | ||
| 4079 | buff | ||
| 4080 | ); | ||
| 4081 | ✗ | break; | |
| 4082 | ✗ | default: | |
| 4083 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4084 | ✗ | break; | |
| 4085 | } | ||
| 4086 | ✗ | } | |
| 4087 | |||
| 4088 | 6 | void SendBuffComponentBase::Log_out( | |
| 4089 | FwIndexType portNum, | ||
| 4090 | FwEventIdType id, | ||
| 4091 | Fw::Time& timeTag, | ||
| 4092 | const Fw::LogSeverity& severity, | ||
| 4093 | Fw::LogBuffer& args | ||
| 4094 | ) const { | ||
| 4095 | 6 | FW_ASSERT( | |
| 4096 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 4097 | static_cast<FwAssertArgType>(portNum), | ||
| 4098 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 4099 | ); | ||
| 4100 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 4101 | 6 | case 0: | |
| 4102 | 6 | CdhCore::events.LogRecv_handlerBase( | |
| 4103 | 0, | ||
| 4104 | id, | ||
| 4105 | timeTag, | ||
| 4106 | severity, | ||
| 4107 | args | ||
| 4108 | ); | ||
| 4109 | 6 | break; | |
| 4110 | ✗ | default: | |
| 4111 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4112 | ✗ | break; | |
| 4113 | } | ||
| 4114 | 6 | } | |
| 4115 | |||
| 4116 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 4117 | |||
| 4118 | 6 | void SendBuffComponentBase::LogText_out( | |
| 4119 | FwIndexType portNum, | ||
| 4120 | FwEventIdType id, | ||
| 4121 | Fw::Time& timeTag, | ||
| 4122 | const Fw::LogSeverity& severity, | ||
| 4123 | Fw::TextLogString& text | ||
| 4124 | ) const { | ||
| 4125 | 6 | FW_ASSERT( | |
| 4126 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 4127 | static_cast<FwAssertArgType>(portNum), | ||
| 4128 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 4129 | ); | ||
| 4130 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 4131 | 6 | case 0: | |
| 4132 | 6 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 4133 | 0, | ||
| 4134 | id, | ||
| 4135 | timeTag, | ||
| 4136 | severity, | ||
| 4137 | text | ||
| 4138 | ); | ||
| 4139 | 6 | break; | |
| 4140 | ✗ | default: | |
| 4141 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4142 | ✗ | break; | |
| 4143 | } | ||
| 4144 | 6 | } | |
| 4145 | |||
| 4146 | #endif | ||
| 4147 | |||
| 4148 | 2 | Fw::ParamValid SendBuffComponentBase::ParamGet_out( | |
| 4149 | FwIndexType portNum, | ||
| 4150 | FwPrmIdType id, | ||
| 4151 | Fw::ParamBuffer& val | ||
| 4152 | ) const { | ||
| 4153 | 2 | FW_ASSERT( | |
| 4154 | (0 <= portNum) && (portNum < NUM_PARAMGET_OUTPUT_PORTS), | ||
| 4155 | static_cast<FwAssertArgType>(portNum), | ||
| 4156 | static_cast<FwAssertArgType>(NUM_PARAMGET_OUTPUT_PORTS) | ||
| 4157 | ); | ||
| 4158 | 2 | Fw::ParamValid _result = {}; | |
| 4159 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 4160 | 2 | case 0: | |
| 4161 |
1/1✓ Branch 1 taken 2 times.
|
4 | _result = FileHandling::prmDb.getPrm_handlerBase( |
| 4162 | 0, | ||
| 4163 | id, | ||
| 4164 | val | ||
| 4165 |
1/1✓ Branch 1 taken 2 times.
|
2 | ); |
| 4166 | 2 | break; | |
| 4167 | ✗ | default: | |
| 4168 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4169 | ✗ | break; | |
| 4170 | } | ||
| 4171 | 2 | return _result; | |
| 4172 | ✗ | } | |
| 4173 | |||
| 4174 | 2 | void SendBuffComponentBase::ParamSet_out( | |
| 4175 | FwIndexType portNum, | ||
| 4176 | FwPrmIdType id, | ||
| 4177 | Fw::ParamBuffer& val | ||
| 4178 | ) const { | ||
| 4179 | 2 | FW_ASSERT( | |
| 4180 | (0 <= portNum) && (portNum < NUM_PARAMSET_OUTPUT_PORTS), | ||
| 4181 | static_cast<FwAssertArgType>(portNum), | ||
| 4182 | static_cast<FwAssertArgType>(NUM_PARAMSET_OUTPUT_PORTS) | ||
| 4183 | ); | ||
| 4184 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 4185 | 2 | case 0: | |
| 4186 | 2 | FileHandling::prmDb.setPrm_handlerBase( | |
| 4187 | 0, | ||
| 4188 | id, | ||
| 4189 | val | ||
| 4190 | ); | ||
| 4191 | 2 | break; | |
| 4192 | ✗ | default: | |
| 4193 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4194 | ✗ | break; | |
| 4195 | } | ||
| 4196 | 2 | } | |
| 4197 | |||
| 4198 | 135 | void SendBuffComponentBase::Time_out( | |
| 4199 | FwIndexType portNum, | ||
| 4200 | Fw::Time& time | ||
| 4201 | ) const { | ||
| 4202 | 135 | FW_ASSERT( | |
| 4203 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 4204 | static_cast<FwAssertArgType>(portNum), | ||
| 4205 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 4206 | ); | ||
| 4207 |
1/2✓ Branch 0 taken 135 times.
✗ Branch 1 not taken.
|
135 | switch (portNum) { |
| 4208 | 135 | case 0: | |
| 4209 | 135 | Ref::posixTime.timeGetPort_handlerBase( | |
| 4210 | 0, | ||
| 4211 | time | ||
| 4212 | ); | ||
| 4213 | 135 | break; | |
| 4214 | ✗ | default: | |
| 4215 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4216 | ✗ | break; | |
| 4217 | } | ||
| 4218 | 135 | } | |
| 4219 | |||
| 4220 | 129 | void SendBuffComponentBase::Tlm_out( | |
| 4221 | FwIndexType portNum, | ||
| 4222 | FwChanIdType id, | ||
| 4223 | Fw::Time& timeTag, | ||
| 4224 | Fw::TlmBuffer& val | ||
| 4225 | ) const { | ||
| 4226 | 129 | FW_ASSERT( | |
| 4227 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 4228 | static_cast<FwAssertArgType>(portNum), | ||
| 4229 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 4230 | ); | ||
| 4231 |
1/2✓ Branch 0 taken 129 times.
✗ Branch 1 not taken.
|
129 | switch (portNum) { |
| 4232 | 129 | case 0: | |
| 4233 | 129 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 4234 | 0, | ||
| 4235 | id, | ||
| 4236 | timeTag, | ||
| 4237 | val | ||
| 4238 | ); | ||
| 4239 | 129 | break; | |
| 4240 | ✗ | default: | |
| 4241 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4242 | ✗ | break; | |
| 4243 | } | ||
| 4244 | 129 | } | |
| 4245 | |||
| 4246 | } | ||
| 4247 | |||
| 4248 | namespace Ref { | ||
| 4249 | |||
| 4250 | 5 | bool SignalGenComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const { | |
| 4251 | 5 | FW_ASSERT( | |
| 4252 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 4253 | static_cast<FwAssertArgType>(portNum), | ||
| 4254 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 4255 | ); | ||
| 4256 | 5 | bool result = false; | |
| 4257 | 5 | const auto instance = this->getInstance(); | |
| 4258 |
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) { |
| 4259 | ✗ | default: | |
| 4260 | #ifdef FW_STRICT_ASSERTIONS | ||
| 4261 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 4262 | ✗ | break; | |
| 4263 | #else | ||
| 4264 | // Fall through | ||
| 4265 | #endif | ||
| 4266 | 1 | case ::Ref::InstanceIds::Ref_SG1: | |
| 4267 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 4268 | 1 | case 0: | |
| 4269 | 1 | result = true; | |
| 4270 | 1 | break; | |
| 4271 | ✗ | default: | |
| 4272 | ✗ | break; | |
| 4273 | } | ||
| 4274 | 1 | break; | |
| 4275 | 1 | case ::Ref::InstanceIds::Ref_SG2: | |
| 4276 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 4277 | 1 | case 0: | |
| 4278 | 1 | result = true; | |
| 4279 | 1 | break; | |
| 4280 | ✗ | default: | |
| 4281 | ✗ | break; | |
| 4282 | } | ||
| 4283 | 1 | break; | |
| 4284 | 1 | case ::Ref::InstanceIds::Ref_SG3: | |
| 4285 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 4286 | 1 | case 0: | |
| 4287 | 1 | result = true; | |
| 4288 | 1 | break; | |
| 4289 | ✗ | default: | |
| 4290 | ✗ | break; | |
| 4291 | } | ||
| 4292 | 1 | break; | |
| 4293 | 1 | case ::Ref::InstanceIds::Ref_SG4: | |
| 4294 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 4295 | 1 | case 0: | |
| 4296 | 1 | result = true; | |
| 4297 | 1 | break; | |
| 4298 | ✗ | default: | |
| 4299 | ✗ | break; | |
| 4300 | } | ||
| 4301 | 1 | break; | |
| 4302 | 1 | case ::Ref::InstanceIds::Ref_SG5: | |
| 4303 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 4304 | 1 | case 0: | |
| 4305 | 1 | result = true; | |
| 4306 | 1 | break; | |
| 4307 | ✗ | default: | |
| 4308 | ✗ | break; | |
| 4309 | } | ||
| 4310 | 1 | break; | |
| 4311 | } | ||
| 4312 | 5 | return result; | |
| 4313 | } | ||
| 4314 | |||
| 4315 | 3 | bool SignalGenComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const { | |
| 4316 | 3 | FW_ASSERT( | |
| 4317 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 4318 | static_cast<FwAssertArgType>(portNum), | ||
| 4319 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 4320 | ); | ||
| 4321 | 3 | bool result = false; | |
| 4322 | 3 | const auto instance = this->getInstance(); | |
| 4323 |
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) { |
| 4324 | ✗ | default: | |
| 4325 | #ifdef FW_STRICT_ASSERTIONS | ||
| 4326 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 4327 | ✗ | break; | |
| 4328 | #else | ||
| 4329 | // Fall through | ||
| 4330 | #endif | ||
| 4331 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 4332 | ✗ | switch (portNum) { | |
| 4333 | ✗ | case 0: | |
| 4334 | ✗ | result = true; | |
| 4335 | ✗ | break; | |
| 4336 | ✗ | default: | |
| 4337 | ✗ | break; | |
| 4338 | } | ||
| 4339 | ✗ | break; | |
| 4340 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 4341 | ✗ | switch (portNum) { | |
| 4342 | ✗ | case 0: | |
| 4343 | ✗ | result = true; | |
| 4344 | ✗ | break; | |
| 4345 | ✗ | default: | |
| 4346 | ✗ | break; | |
| 4347 | } | ||
| 4348 | ✗ | break; | |
| 4349 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 4350 | ✗ | switch (portNum) { | |
| 4351 | ✗ | case 0: | |
| 4352 | ✗ | result = true; | |
| 4353 | ✗ | break; | |
| 4354 | ✗ | default: | |
| 4355 | ✗ | break; | |
| 4356 | } | ||
| 4357 | ✗ | break; | |
| 4358 | 3 | case ::Ref::InstanceIds::Ref_SG4: | |
| 4359 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 4360 | 3 | case 0: | |
| 4361 | 3 | result = true; | |
| 4362 | 3 | break; | |
| 4363 | ✗ | default: | |
| 4364 | ✗ | break; | |
| 4365 | } | ||
| 4366 | 3 | break; | |
| 4367 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 4368 | ✗ | switch (portNum) { | |
| 4369 | ✗ | case 0: | |
| 4370 | ✗ | result = true; | |
| 4371 | ✗ | break; | |
| 4372 | ✗ | default: | |
| 4373 | ✗ | break; | |
| 4374 | } | ||
| 4375 | ✗ | break; | |
| 4376 | } | ||
| 4377 | 3 | return result; | |
| 4378 | } | ||
| 4379 | |||
| 4380 | 1 | bool SignalGenComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 4381 | 1 | FW_ASSERT( | |
| 4382 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 4383 | static_cast<FwAssertArgType>(portNum), | ||
| 4384 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 4385 | ); | ||
| 4386 | 1 | bool result = false; | |
| 4387 | 1 | const auto instance = this->getInstance(); | |
| 4388 |
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) { |
| 4389 | ✗ | default: | |
| 4390 | #ifdef FW_STRICT_ASSERTIONS | ||
| 4391 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 4392 | ✗ | break; | |
| 4393 | #else | ||
| 4394 | // Fall through | ||
| 4395 | #endif | ||
| 4396 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 4397 | ✗ | switch (portNum) { | |
| 4398 | ✗ | case 0: | |
| 4399 | ✗ | result = true; | |
| 4400 | ✗ | break; | |
| 4401 | ✗ | default: | |
| 4402 | ✗ | break; | |
| 4403 | } | ||
| 4404 | ✗ | break; | |
| 4405 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 4406 | ✗ | switch (portNum) { | |
| 4407 | ✗ | case 0: | |
| 4408 | ✗ | result = true; | |
| 4409 | ✗ | break; | |
| 4410 | ✗ | default: | |
| 4411 | ✗ | break; | |
| 4412 | } | ||
| 4413 | ✗ | break; | |
| 4414 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 4415 | ✗ | switch (portNum) { | |
| 4416 | ✗ | case 0: | |
| 4417 | ✗ | result = true; | |
| 4418 | ✗ | break; | |
| 4419 | ✗ | default: | |
| 4420 | ✗ | break; | |
| 4421 | } | ||
| 4422 | ✗ | break; | |
| 4423 | 1 | case ::Ref::InstanceIds::Ref_SG4: | |
| 4424 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 4425 | 1 | case 0: | |
| 4426 | 1 | result = true; | |
| 4427 | 1 | break; | |
| 4428 | ✗ | default: | |
| 4429 | ✗ | break; | |
| 4430 | } | ||
| 4431 | 1 | break; | |
| 4432 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 4433 | ✗ | switch (portNum) { | |
| 4434 | ✗ | case 0: | |
| 4435 | ✗ | result = true; | |
| 4436 | ✗ | break; | |
| 4437 | ✗ | default: | |
| 4438 | ✗ | break; | |
| 4439 | } | ||
| 4440 | ✗ | break; | |
| 4441 | } | ||
| 4442 | 1 | return result; | |
| 4443 | } | ||
| 4444 | |||
| 4445 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 4446 | |||
| 4447 | 1 | bool SignalGenComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 4448 | 1 | FW_ASSERT( | |
| 4449 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 4450 | static_cast<FwAssertArgType>(portNum), | ||
| 4451 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 4452 | ); | ||
| 4453 | 1 | bool result = false; | |
| 4454 | 1 | const auto instance = this->getInstance(); | |
| 4455 |
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) { |
| 4456 | ✗ | default: | |
| 4457 | #ifdef FW_STRICT_ASSERTIONS | ||
| 4458 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 4459 | ✗ | break; | |
| 4460 | #else | ||
| 4461 | // Fall through | ||
| 4462 | #endif | ||
| 4463 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 4464 | ✗ | switch (portNum) { | |
| 4465 | ✗ | case 0: | |
| 4466 | ✗ | result = true; | |
| 4467 | ✗ | break; | |
| 4468 | ✗ | default: | |
| 4469 | ✗ | break; | |
| 4470 | } | ||
| 4471 | ✗ | break; | |
| 4472 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 4473 | ✗ | switch (portNum) { | |
| 4474 | ✗ | case 0: | |
| 4475 | ✗ | result = true; | |
| 4476 | ✗ | break; | |
| 4477 | ✗ | default: | |
| 4478 | ✗ | break; | |
| 4479 | } | ||
| 4480 | ✗ | break; | |
| 4481 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 4482 | ✗ | switch (portNum) { | |
| 4483 | ✗ | case 0: | |
| 4484 | ✗ | result = true; | |
| 4485 | ✗ | break; | |
| 4486 | ✗ | default: | |
| 4487 | ✗ | break; | |
| 4488 | } | ||
| 4489 | ✗ | break; | |
| 4490 | 1 | case ::Ref::InstanceIds::Ref_SG4: | |
| 4491 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 4492 | 1 | case 0: | |
| 4493 | 1 | result = true; | |
| 4494 | 1 | break; | |
| 4495 | ✗ | default: | |
| 4496 | ✗ | break; | |
| 4497 | } | ||
| 4498 | 1 | break; | |
| 4499 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 4500 | ✗ | switch (portNum) { | |
| 4501 | ✗ | case 0: | |
| 4502 | ✗ | result = true; | |
| 4503 | ✗ | break; | |
| 4504 | ✗ | default: | |
| 4505 | ✗ | break; | |
| 4506 | } | ||
| 4507 | ✗ | break; | |
| 4508 | } | ||
| 4509 | 1 | return result; | |
| 4510 | } | ||
| 4511 | |||
| 4512 | #endif | ||
| 4513 | |||
| 4514 | ✗ | bool SignalGenComponentBase::isConnected_productGetOut_OutputPort(FwIndexType portNum) const { | |
| 4515 | ✗ | FW_ASSERT( | |
| 4516 | (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS), | ||
| 4517 | static_cast<FwAssertArgType>(portNum), | ||
| 4518 | static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS) | ||
| 4519 | ); | ||
| 4520 | ✗ | bool result = false; | |
| 4521 | ✗ | const auto instance = this->getInstance(); | |
| 4522 | ✗ | switch (instance) { | |
| 4523 | ✗ | default: | |
| 4524 | #ifdef FW_STRICT_ASSERTIONS | ||
| 4525 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 4526 | ✗ | break; | |
| 4527 | #else | ||
| 4528 | // Fall through | ||
| 4529 | #endif | ||
| 4530 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 4531 | ✗ | switch (portNum) { | |
| 4532 | ✗ | case 0: | |
| 4533 | ✗ | result = true; | |
| 4534 | ✗ | break; | |
| 4535 | ✗ | default: | |
| 4536 | ✗ | break; | |
| 4537 | } | ||
| 4538 | ✗ | break; | |
| 4539 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 4540 | ✗ | switch (portNum) { | |
| 4541 | default: | ||
| 4542 | ✗ | break; | |
| 4543 | } | ||
| 4544 | ✗ | break; | |
| 4545 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 4546 | ✗ | switch (portNum) { | |
| 4547 | default: | ||
| 4548 | ✗ | break; | |
| 4549 | } | ||
| 4550 | ✗ | break; | |
| 4551 | ✗ | case ::Ref::InstanceIds::Ref_SG4: | |
| 4552 | ✗ | switch (portNum) { | |
| 4553 | default: | ||
| 4554 | ✗ | break; | |
| 4555 | } | ||
| 4556 | ✗ | break; | |
| 4557 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 4558 | ✗ | switch (portNum) { | |
| 4559 | default: | ||
| 4560 | ✗ | break; | |
| 4561 | } | ||
| 4562 | ✗ | break; | |
| 4563 | } | ||
| 4564 | ✗ | return result; | |
| 4565 | } | ||
| 4566 | |||
| 4567 | ✗ | bool SignalGenComponentBase::isConnected_productRequestOut_OutputPort(FwIndexType portNum) const { | |
| 4568 | ✗ | FW_ASSERT( | |
| 4569 | (0 <= portNum) && (portNum < NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS), | ||
| 4570 | static_cast<FwAssertArgType>(portNum), | ||
| 4571 | static_cast<FwAssertArgType>(NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS) | ||
| 4572 | ); | ||
| 4573 | ✗ | bool result = false; | |
| 4574 | ✗ | const auto instance = this->getInstance(); | |
| 4575 | ✗ | switch (instance) { | |
| 4576 | ✗ | default: | |
| 4577 | #ifdef FW_STRICT_ASSERTIONS | ||
| 4578 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 4579 | ✗ | break; | |
| 4580 | #else | ||
| 4581 | // Fall through | ||
| 4582 | #endif | ||
| 4583 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 4584 | ✗ | switch (portNum) { | |
| 4585 | ✗ | case 0: | |
| 4586 | ✗ | result = true; | |
| 4587 | ✗ | break; | |
| 4588 | ✗ | default: | |
| 4589 | ✗ | break; | |
| 4590 | } | ||
| 4591 | ✗ | break; | |
| 4592 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 4593 | ✗ | switch (portNum) { | |
| 4594 | default: | ||
| 4595 | ✗ | break; | |
| 4596 | } | ||
| 4597 | ✗ | break; | |
| 4598 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 4599 | ✗ | switch (portNum) { | |
| 4600 | default: | ||
| 4601 | ✗ | break; | |
| 4602 | } | ||
| 4603 | ✗ | break; | |
| 4604 | ✗ | case ::Ref::InstanceIds::Ref_SG4: | |
| 4605 | ✗ | switch (portNum) { | |
| 4606 | default: | ||
| 4607 | ✗ | break; | |
| 4608 | } | ||
| 4609 | ✗ | break; | |
| 4610 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 4611 | ✗ | switch (portNum) { | |
| 4612 | default: | ||
| 4613 | ✗ | break; | |
| 4614 | } | ||
| 4615 | ✗ | break; | |
| 4616 | } | ||
| 4617 | ✗ | return result; | |
| 4618 | } | ||
| 4619 | |||
| 4620 | ✗ | bool SignalGenComponentBase::isConnected_productSendOut_OutputPort(FwIndexType portNum) const { | |
| 4621 | ✗ | FW_ASSERT( | |
| 4622 | (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS), | ||
| 4623 | static_cast<FwAssertArgType>(portNum), | ||
| 4624 | static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS) | ||
| 4625 | ); | ||
| 4626 | ✗ | bool result = false; | |
| 4627 | ✗ | const auto instance = this->getInstance(); | |
| 4628 | ✗ | switch (instance) { | |
| 4629 | ✗ | default: | |
| 4630 | #ifdef FW_STRICT_ASSERTIONS | ||
| 4631 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 4632 | ✗ | break; | |
| 4633 | #else | ||
| 4634 | // Fall through | ||
| 4635 | #endif | ||
| 4636 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 4637 | ✗ | switch (portNum) { | |
| 4638 | ✗ | case 0: | |
| 4639 | ✗ | result = true; | |
| 4640 | ✗ | break; | |
| 4641 | ✗ | default: | |
| 4642 | ✗ | break; | |
| 4643 | } | ||
| 4644 | ✗ | break; | |
| 4645 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 4646 | ✗ | switch (portNum) { | |
| 4647 | default: | ||
| 4648 | ✗ | break; | |
| 4649 | } | ||
| 4650 | ✗ | break; | |
| 4651 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 4652 | ✗ | switch (portNum) { | |
| 4653 | default: | ||
| 4654 | ✗ | break; | |
| 4655 | } | ||
| 4656 | ✗ | break; | |
| 4657 | ✗ | case ::Ref::InstanceIds::Ref_SG4: | |
| 4658 | ✗ | switch (portNum) { | |
| 4659 | default: | ||
| 4660 | ✗ | break; | |
| 4661 | } | ||
| 4662 | ✗ | break; | |
| 4663 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 4664 | ✗ | switch (portNum) { | |
| 4665 | default: | ||
| 4666 | ✗ | break; | |
| 4667 | } | ||
| 4668 | ✗ | break; | |
| 4669 | } | ||
| 4670 | ✗ | return result; | |
| 4671 | } | ||
| 4672 | |||
| 4673 | 8 | bool SignalGenComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 4674 | 8 | FW_ASSERT( | |
| 4675 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 4676 | static_cast<FwAssertArgType>(portNum), | ||
| 4677 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 4678 | ); | ||
| 4679 | 8 | bool result = false; | |
| 4680 | 8 | const auto instance = this->getInstance(); | |
| 4681 |
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) { |
| 4682 | ✗ | default: | |
| 4683 | #ifdef FW_STRICT_ASSERTIONS | ||
| 4684 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 4685 | ✗ | break; | |
| 4686 | #else | ||
| 4687 | // Fall through | ||
| 4688 | #endif | ||
| 4689 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 4690 | ✗ | switch (portNum) { | |
| 4691 | ✗ | case 0: | |
| 4692 | ✗ | result = true; | |
| 4693 | ✗ | break; | |
| 4694 | ✗ | default: | |
| 4695 | ✗ | break; | |
| 4696 | } | ||
| 4697 | ✗ | break; | |
| 4698 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 4699 | ✗ | switch (portNum) { | |
| 4700 | ✗ | case 0: | |
| 4701 | ✗ | result = true; | |
| 4702 | ✗ | break; | |
| 4703 | ✗ | default: | |
| 4704 | ✗ | break; | |
| 4705 | } | ||
| 4706 | ✗ | break; | |
| 4707 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 4708 | ✗ | switch (portNum) { | |
| 4709 | ✗ | case 0: | |
| 4710 | ✗ | result = true; | |
| 4711 | ✗ | break; | |
| 4712 | ✗ | default: | |
| 4713 | ✗ | break; | |
| 4714 | } | ||
| 4715 | ✗ | break; | |
| 4716 | 8 | case ::Ref::InstanceIds::Ref_SG4: | |
| 4717 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | switch (portNum) { |
| 4718 | 8 | case 0: | |
| 4719 | 8 | result = true; | |
| 4720 | 8 | break; | |
| 4721 | ✗ | default: | |
| 4722 | ✗ | break; | |
| 4723 | } | ||
| 4724 | 8 | break; | |
| 4725 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 4726 | ✗ | switch (portNum) { | |
| 4727 | ✗ | case 0: | |
| 4728 | ✗ | result = true; | |
| 4729 | ✗ | break; | |
| 4730 | ✗ | default: | |
| 4731 | ✗ | break; | |
| 4732 | } | ||
| 4733 | ✗ | break; | |
| 4734 | } | ||
| 4735 | 8 | return result; | |
| 4736 | } | ||
| 4737 | |||
| 4738 | 14 | bool SignalGenComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 4739 | 14 | FW_ASSERT( | |
| 4740 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 4741 | static_cast<FwAssertArgType>(portNum), | ||
| 4742 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 4743 | ); | ||
| 4744 | 14 | bool result = false; | |
| 4745 | 14 | const auto instance = this->getInstance(); | |
| 4746 |
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) { |
| 4747 | ✗ | default: | |
| 4748 | #ifdef FW_STRICT_ASSERTIONS | ||
| 4749 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 4750 | ✗ | break; | |
| 4751 | #else | ||
| 4752 | // Fall through | ||
| 4753 | #endif | ||
| 4754 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 4755 | ✗ | switch (portNum) { | |
| 4756 | ✗ | case 0: | |
| 4757 | ✗ | result = true; | |
| 4758 | ✗ | break; | |
| 4759 | ✗ | default: | |
| 4760 | ✗ | break; | |
| 4761 | } | ||
| 4762 | ✗ | break; | |
| 4763 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 4764 | ✗ | switch (portNum) { | |
| 4765 | ✗ | case 0: | |
| 4766 | ✗ | result = true; | |
| 4767 | ✗ | break; | |
| 4768 | ✗ | default: | |
| 4769 | ✗ | break; | |
| 4770 | } | ||
| 4771 | ✗ | break; | |
| 4772 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 4773 | ✗ | switch (portNum) { | |
| 4774 | ✗ | case 0: | |
| 4775 | ✗ | result = true; | |
| 4776 | ✗ | break; | |
| 4777 | ✗ | default: | |
| 4778 | ✗ | break; | |
| 4779 | } | ||
| 4780 | ✗ | break; | |
| 4781 | 14 | case ::Ref::InstanceIds::Ref_SG4: | |
| 4782 |
1/2✓ Branch 0 taken 14 times.
✗ Branch 1 not taken.
|
14 | switch (portNum) { |
| 4783 | 14 | case 0: | |
| 4784 | 14 | result = true; | |
| 4785 | 14 | break; | |
| 4786 | ✗ | default: | |
| 4787 | ✗ | break; | |
| 4788 | } | ||
| 4789 | 14 | break; | |
| 4790 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 4791 | ✗ | switch (portNum) { | |
| 4792 | ✗ | case 0: | |
| 4793 | ✗ | result = true; | |
| 4794 | ✗ | break; | |
| 4795 | ✗ | default: | |
| 4796 | ✗ | break; | |
| 4797 | } | ||
| 4798 | ✗ | break; | |
| 4799 | } | ||
| 4800 | 14 | return result; | |
| 4801 | } | ||
| 4802 | |||
| 4803 | 20 | void SignalGenComponentBase::cmdRegOut_out( | |
| 4804 | FwIndexType portNum, | ||
| 4805 | FwOpcodeType opCode | ||
| 4806 | ) const { | ||
| 4807 | 20 | FW_ASSERT( | |
| 4808 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 4809 | static_cast<FwAssertArgType>(portNum), | ||
| 4810 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 4811 | ); | ||
| 4812 | 20 | const auto instance = this->getInstance(); | |
| 4813 |
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) { |
| 4814 | ✗ | default: | |
| 4815 | #ifdef FW_STRICT_ASSERTIONS | ||
| 4816 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 4817 | ✗ | break; | |
| 4818 | #else | ||
| 4819 | // Fall through | ||
| 4820 | #endif | ||
| 4821 | 4 | case ::Ref::InstanceIds::Ref_SG1: | |
| 4822 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 4823 | 4 | case 0: | |
| 4824 | 4 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 4825 | 12, | ||
| 4826 | opCode | ||
| 4827 | ); | ||
| 4828 | 4 | break; | |
| 4829 | ✗ | default: | |
| 4830 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4831 | ✗ | break; | |
| 4832 | } | ||
| 4833 | 4 | break; | |
| 4834 | 4 | case ::Ref::InstanceIds::Ref_SG2: | |
| 4835 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 4836 | 4 | case 0: | |
| 4837 | 4 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 4838 | 13, | ||
| 4839 | opCode | ||
| 4840 | ); | ||
| 4841 | 4 | break; | |
| 4842 | ✗ | default: | |
| 4843 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4844 | ✗ | break; | |
| 4845 | } | ||
| 4846 | 4 | break; | |
| 4847 | 4 | case ::Ref::InstanceIds::Ref_SG3: | |
| 4848 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 4849 | 4 | case 0: | |
| 4850 | 4 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 4851 | 14, | ||
| 4852 | opCode | ||
| 4853 | ); | ||
| 4854 | 4 | break; | |
| 4855 | ✗ | default: | |
| 4856 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4857 | ✗ | break; | |
| 4858 | } | ||
| 4859 | 4 | break; | |
| 4860 | 4 | case ::Ref::InstanceIds::Ref_SG4: | |
| 4861 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 4862 | 4 | case 0: | |
| 4863 | 4 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 4864 | 15, | ||
| 4865 | opCode | ||
| 4866 | ); | ||
| 4867 | 4 | break; | |
| 4868 | ✗ | default: | |
| 4869 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4870 | ✗ | break; | |
| 4871 | } | ||
| 4872 | 4 | break; | |
| 4873 | 4 | case ::Ref::InstanceIds::Ref_SG5: | |
| 4874 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 4875 | 4 | case 0: | |
| 4876 | 4 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 4877 | 16, | ||
| 4878 | opCode | ||
| 4879 | ); | ||
| 4880 | 4 | break; | |
| 4881 | ✗ | default: | |
| 4882 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4883 | ✗ | break; | |
| 4884 | } | ||
| 4885 | 4 | break; | |
| 4886 | } | ||
| 4887 | 20 | } | |
| 4888 | |||
| 4889 | 3 | void SignalGenComponentBase::cmdResponseOut_out( | |
| 4890 | FwIndexType portNum, | ||
| 4891 | FwOpcodeType opCode, | ||
| 4892 | U32 cmdSeq, | ||
| 4893 | const Fw::CmdResponse& response | ||
| 4894 | ) const { | ||
| 4895 | 3 | FW_ASSERT( | |
| 4896 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 4897 | static_cast<FwAssertArgType>(portNum), | ||
| 4898 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 4899 | ); | ||
| 4900 | 3 | const auto instance = this->getInstance(); | |
| 4901 |
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) { |
| 4902 | ✗ | default: | |
| 4903 | #ifdef FW_STRICT_ASSERTIONS | ||
| 4904 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 4905 | ✗ | break; | |
| 4906 | #else | ||
| 4907 | // Fall through | ||
| 4908 | #endif | ||
| 4909 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 4910 | ✗ | switch (portNum) { | |
| 4911 | ✗ | case 0: | |
| 4912 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 4913 | 0, | ||
| 4914 | opCode, | ||
| 4915 | cmdSeq, | ||
| 4916 | response | ||
| 4917 | ); | ||
| 4918 | ✗ | break; | |
| 4919 | ✗ | default: | |
| 4920 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4921 | ✗ | break; | |
| 4922 | } | ||
| 4923 | ✗ | break; | |
| 4924 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 4925 | ✗ | switch (portNum) { | |
| 4926 | ✗ | case 0: | |
| 4927 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 4928 | 0, | ||
| 4929 | opCode, | ||
| 4930 | cmdSeq, | ||
| 4931 | response | ||
| 4932 | ); | ||
| 4933 | ✗ | break; | |
| 4934 | ✗ | default: | |
| 4935 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4936 | ✗ | break; | |
| 4937 | } | ||
| 4938 | ✗ | break; | |
| 4939 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 4940 | ✗ | switch (portNum) { | |
| 4941 | ✗ | case 0: | |
| 4942 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 4943 | 0, | ||
| 4944 | opCode, | ||
| 4945 | cmdSeq, | ||
| 4946 | response | ||
| 4947 | ); | ||
| 4948 | ✗ | break; | |
| 4949 | ✗ | default: | |
| 4950 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4951 | ✗ | break; | |
| 4952 | } | ||
| 4953 | ✗ | break; | |
| 4954 | 3 | case ::Ref::InstanceIds::Ref_SG4: | |
| 4955 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 4956 | 3 | case 0: | |
| 4957 | 3 | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 4958 | 0, | ||
| 4959 | opCode, | ||
| 4960 | cmdSeq, | ||
| 4961 | response | ||
| 4962 | ); | ||
| 4963 | 3 | break; | |
| 4964 | ✗ | default: | |
| 4965 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4966 | ✗ | break; | |
| 4967 | } | ||
| 4968 | 3 | break; | |
| 4969 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 4970 | ✗ | switch (portNum) { | |
| 4971 | ✗ | case 0: | |
| 4972 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 4973 | 0, | ||
| 4974 | opCode, | ||
| 4975 | cmdSeq, | ||
| 4976 | response | ||
| 4977 | ); | ||
| 4978 | ✗ | break; | |
| 4979 | ✗ | default: | |
| 4980 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4981 | ✗ | break; | |
| 4982 | } | ||
| 4983 | ✗ | break; | |
| 4984 | } | ||
| 4985 | 3 | } | |
| 4986 | |||
| 4987 | 1 | void SignalGenComponentBase::logOut_out( | |
| 4988 | FwIndexType portNum, | ||
| 4989 | FwEventIdType id, | ||
| 4990 | Fw::Time& timeTag, | ||
| 4991 | const Fw::LogSeverity& severity, | ||
| 4992 | Fw::LogBuffer& args | ||
| 4993 | ) const { | ||
| 4994 | 1 | FW_ASSERT( | |
| 4995 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 4996 | static_cast<FwAssertArgType>(portNum), | ||
| 4997 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 4998 | ); | ||
| 4999 | 1 | const auto instance = this->getInstance(); | |
| 5000 |
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) { |
| 5001 | ✗ | default: | |
| 5002 | #ifdef FW_STRICT_ASSERTIONS | ||
| 5003 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 5004 | ✗ | break; | |
| 5005 | #else | ||
| 5006 | // Fall through | ||
| 5007 | #endif | ||
| 5008 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 5009 | ✗ | switch (portNum) { | |
| 5010 | ✗ | case 0: | |
| 5011 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 5012 | 0, | ||
| 5013 | id, | ||
| 5014 | timeTag, | ||
| 5015 | severity, | ||
| 5016 | args | ||
| 5017 | ); | ||
| 5018 | ✗ | break; | |
| 5019 | ✗ | default: | |
| 5020 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5021 | ✗ | break; | |
| 5022 | } | ||
| 5023 | ✗ | break; | |
| 5024 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 5025 | ✗ | switch (portNum) { | |
| 5026 | ✗ | case 0: | |
| 5027 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 5028 | 0, | ||
| 5029 | id, | ||
| 5030 | timeTag, | ||
| 5031 | severity, | ||
| 5032 | args | ||
| 5033 | ); | ||
| 5034 | ✗ | break; | |
| 5035 | ✗ | default: | |
| 5036 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5037 | ✗ | break; | |
| 5038 | } | ||
| 5039 | ✗ | break; | |
| 5040 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 5041 | ✗ | switch (portNum) { | |
| 5042 | ✗ | case 0: | |
| 5043 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 5044 | 0, | ||
| 5045 | id, | ||
| 5046 | timeTag, | ||
| 5047 | severity, | ||
| 5048 | args | ||
| 5049 | ); | ||
| 5050 | ✗ | break; | |
| 5051 | ✗ | default: | |
| 5052 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5053 | ✗ | break; | |
| 5054 | } | ||
| 5055 | ✗ | break; | |
| 5056 | 1 | case ::Ref::InstanceIds::Ref_SG4: | |
| 5057 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 5058 | 1 | case 0: | |
| 5059 | 1 | CdhCore::events.LogRecv_handlerBase( | |
| 5060 | 0, | ||
| 5061 | id, | ||
| 5062 | timeTag, | ||
| 5063 | severity, | ||
| 5064 | args | ||
| 5065 | ); | ||
| 5066 | 1 | break; | |
| 5067 | ✗ | default: | |
| 5068 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5069 | ✗ | break; | |
| 5070 | } | ||
| 5071 | 1 | break; | |
| 5072 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 5073 | ✗ | switch (portNum) { | |
| 5074 | ✗ | case 0: | |
| 5075 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 5076 | 0, | ||
| 5077 | id, | ||
| 5078 | timeTag, | ||
| 5079 | severity, | ||
| 5080 | args | ||
| 5081 | ); | ||
| 5082 | ✗ | break; | |
| 5083 | ✗ | default: | |
| 5084 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5085 | ✗ | break; | |
| 5086 | } | ||
| 5087 | ✗ | break; | |
| 5088 | } | ||
| 5089 | 1 | } | |
| 5090 | |||
| 5091 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 5092 | |||
| 5093 | 1 | void SignalGenComponentBase::logTextOut_out( | |
| 5094 | FwIndexType portNum, | ||
| 5095 | FwEventIdType id, | ||
| 5096 | Fw::Time& timeTag, | ||
| 5097 | const Fw::LogSeverity& severity, | ||
| 5098 | Fw::TextLogString& text | ||
| 5099 | ) const { | ||
| 5100 | 1 | FW_ASSERT( | |
| 5101 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 5102 | static_cast<FwAssertArgType>(portNum), | ||
| 5103 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 5104 | ); | ||
| 5105 | 1 | const auto instance = this->getInstance(); | |
| 5106 |
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) { |
| 5107 | ✗ | default: | |
| 5108 | #ifdef FW_STRICT_ASSERTIONS | ||
| 5109 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 5110 | ✗ | break; | |
| 5111 | #else | ||
| 5112 | // Fall through | ||
| 5113 | #endif | ||
| 5114 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 5115 | ✗ | switch (portNum) { | |
| 5116 | ✗ | case 0: | |
| 5117 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 5118 | 0, | ||
| 5119 | id, | ||
| 5120 | timeTag, | ||
| 5121 | severity, | ||
| 5122 | text | ||
| 5123 | ); | ||
| 5124 | ✗ | break; | |
| 5125 | ✗ | default: | |
| 5126 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5127 | ✗ | break; | |
| 5128 | } | ||
| 5129 | ✗ | break; | |
| 5130 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 5131 | ✗ | switch (portNum) { | |
| 5132 | ✗ | case 0: | |
| 5133 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 5134 | 0, | ||
| 5135 | id, | ||
| 5136 | timeTag, | ||
| 5137 | severity, | ||
| 5138 | text | ||
| 5139 | ); | ||
| 5140 | ✗ | break; | |
| 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 | ✗ | case 0: | |
| 5149 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 5150 | 0, | ||
| 5151 | id, | ||
| 5152 | timeTag, | ||
| 5153 | severity, | ||
| 5154 | text | ||
| 5155 | ); | ||
| 5156 | ✗ | break; | |
| 5157 | ✗ | default: | |
| 5158 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5159 | ✗ | break; | |
| 5160 | } | ||
| 5161 | ✗ | break; | |
| 5162 | 1 | case ::Ref::InstanceIds::Ref_SG4: | |
| 5163 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 5164 | 1 | case 0: | |
| 5165 | 1 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 5166 | 0, | ||
| 5167 | id, | ||
| 5168 | timeTag, | ||
| 5169 | severity, | ||
| 5170 | text | ||
| 5171 | ); | ||
| 5172 | 1 | break; | |
| 5173 | ✗ | default: | |
| 5174 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5175 | ✗ | break; | |
| 5176 | } | ||
| 5177 | 1 | break; | |
| 5178 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 5179 | ✗ | switch (portNum) { | |
| 5180 | ✗ | case 0: | |
| 5181 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 5182 | 0, | ||
| 5183 | id, | ||
| 5184 | timeTag, | ||
| 5185 | severity, | ||
| 5186 | text | ||
| 5187 | ); | ||
| 5188 | ✗ | break; | |
| 5189 | ✗ | default: | |
| 5190 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5191 | ✗ | break; | |
| 5192 | } | ||
| 5193 | ✗ | break; | |
| 5194 | } | ||
| 5195 | 1 | } | |
| 5196 | |||
| 5197 | #endif | ||
| 5198 | |||
| 5199 | ✗ | Fw::Success SignalGenComponentBase::productGetOut_out( | |
| 5200 | FwIndexType portNum, | ||
| 5201 | FwDpIdType id, | ||
| 5202 | FwSizeType dataSize, | ||
| 5203 | Fw::Buffer& buffer | ||
| 5204 | ) const { | ||
| 5205 | ✗ | FW_ASSERT( | |
| 5206 | (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS), | ||
| 5207 | static_cast<FwAssertArgType>(portNum), | ||
| 5208 | static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS) | ||
| 5209 | ); | ||
| 5210 | ✗ | Fw::Success _result = {}; | |
| 5211 | ✗ | const auto instance = this->getInstance(); | |
| 5212 | ✗ | switch (instance) { | |
| 5213 | ✗ | default: | |
| 5214 | #ifdef FW_STRICT_ASSERTIONS | ||
| 5215 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 5216 | ✗ | break; | |
| 5217 | #else | ||
| 5218 | // Fall through | ||
| 5219 | #endif | ||
| 5220 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 5221 | ✗ | switch (portNum) { | |
| 5222 | ✗ | case 0: | |
| 5223 | ✗ | _result = DataProducts::dpMgr.productGetIn_handlerBase( | |
| 5224 | 0, | ||
| 5225 | id, | ||
| 5226 | dataSize, | ||
| 5227 | buffer | ||
| 5228 | ✗ | ); | |
| 5229 | ✗ | break; | |
| 5230 | ✗ | default: | |
| 5231 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5232 | ✗ | break; | |
| 5233 | } | ||
| 5234 | ✗ | break; | |
| 5235 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 5236 | ✗ | switch (portNum) { | |
| 5237 | default: | ||
| 5238 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5239 | ✗ | break; | |
| 5240 | } | ||
| 5241 | ✗ | break; | |
| 5242 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 5243 | ✗ | switch (portNum) { | |
| 5244 | default: | ||
| 5245 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5246 | ✗ | break; | |
| 5247 | } | ||
| 5248 | ✗ | break; | |
| 5249 | ✗ | case ::Ref::InstanceIds::Ref_SG4: | |
| 5250 | ✗ | switch (portNum) { | |
| 5251 | default: | ||
| 5252 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5253 | ✗ | break; | |
| 5254 | } | ||
| 5255 | ✗ | break; | |
| 5256 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 5257 | ✗ | switch (portNum) { | |
| 5258 | default: | ||
| 5259 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5260 | ✗ | break; | |
| 5261 | } | ||
| 5262 | ✗ | break; | |
| 5263 | } | ||
| 5264 | ✗ | return _result; | |
| 5265 | ✗ | } | |
| 5266 | |||
| 5267 | ✗ | void SignalGenComponentBase::productRequestOut_out( | |
| 5268 | FwIndexType portNum, | ||
| 5269 | FwDpIdType id, | ||
| 5270 | FwSizeType dataSize | ||
| 5271 | ) const { | ||
| 5272 | ✗ | FW_ASSERT( | |
| 5273 | (0 <= portNum) && (portNum < NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS), | ||
| 5274 | static_cast<FwAssertArgType>(portNum), | ||
| 5275 | static_cast<FwAssertArgType>(NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS) | ||
| 5276 | ); | ||
| 5277 | ✗ | const auto instance = this->getInstance(); | |
| 5278 | ✗ | switch (instance) { | |
| 5279 | ✗ | default: | |
| 5280 | #ifdef FW_STRICT_ASSERTIONS | ||
| 5281 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 5282 | ✗ | break; | |
| 5283 | #else | ||
| 5284 | // Fall through | ||
| 5285 | #endif | ||
| 5286 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 5287 | ✗ | switch (portNum) { | |
| 5288 | ✗ | case 0: | |
| 5289 | ✗ | DataProducts::dpMgr.productRequestIn_handlerBase( | |
| 5290 | 0, | ||
| 5291 | id, | ||
| 5292 | dataSize | ||
| 5293 | ); | ||
| 5294 | ✗ | break; | |
| 5295 | ✗ | default: | |
| 5296 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5297 | ✗ | break; | |
| 5298 | } | ||
| 5299 | ✗ | break; | |
| 5300 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 5301 | ✗ | switch (portNum) { | |
| 5302 | default: | ||
| 5303 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5304 | ✗ | break; | |
| 5305 | } | ||
| 5306 | ✗ | break; | |
| 5307 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 5308 | ✗ | switch (portNum) { | |
| 5309 | default: | ||
| 5310 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5311 | ✗ | break; | |
| 5312 | } | ||
| 5313 | ✗ | break; | |
| 5314 | ✗ | case ::Ref::InstanceIds::Ref_SG4: | |
| 5315 | ✗ | switch (portNum) { | |
| 5316 | default: | ||
| 5317 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5318 | ✗ | break; | |
| 5319 | } | ||
| 5320 | ✗ | break; | |
| 5321 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 5322 | ✗ | switch (portNum) { | |
| 5323 | default: | ||
| 5324 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5325 | ✗ | break; | |
| 5326 | } | ||
| 5327 | ✗ | break; | |
| 5328 | } | ||
| 5329 | ✗ | } | |
| 5330 | |||
| 5331 | ✗ | void SignalGenComponentBase::productSendOut_out( | |
| 5332 | FwIndexType portNum, | ||
| 5333 | FwDpIdType id, | ||
| 5334 | const Fw::Buffer& buffer | ||
| 5335 | ) const { | ||
| 5336 | ✗ | FW_ASSERT( | |
| 5337 | (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS), | ||
| 5338 | static_cast<FwAssertArgType>(portNum), | ||
| 5339 | static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS) | ||
| 5340 | ); | ||
| 5341 | ✗ | const auto instance = this->getInstance(); | |
| 5342 | ✗ | switch (instance) { | |
| 5343 | ✗ | default: | |
| 5344 | #ifdef FW_STRICT_ASSERTIONS | ||
| 5345 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 5346 | ✗ | break; | |
| 5347 | #else | ||
| 5348 | // Fall through | ||
| 5349 | #endif | ||
| 5350 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 5351 | ✗ | switch (portNum) { | |
| 5352 | ✗ | case 0: | |
| 5353 | ✗ | DataProducts::dpMgr.productSendIn_handlerBase( | |
| 5354 | 0, | ||
| 5355 | id, | ||
| 5356 | buffer | ||
| 5357 | ); | ||
| 5358 | ✗ | break; | |
| 5359 | ✗ | default: | |
| 5360 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5361 | ✗ | break; | |
| 5362 | } | ||
| 5363 | ✗ | break; | |
| 5364 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 5365 | ✗ | switch (portNum) { | |
| 5366 | default: | ||
| 5367 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5368 | ✗ | break; | |
| 5369 | } | ||
| 5370 | ✗ | break; | |
| 5371 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 5372 | ✗ | switch (portNum) { | |
| 5373 | default: | ||
| 5374 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5375 | ✗ | break; | |
| 5376 | } | ||
| 5377 | ✗ | break; | |
| 5378 | ✗ | case ::Ref::InstanceIds::Ref_SG4: | |
| 5379 | ✗ | switch (portNum) { | |
| 5380 | default: | ||
| 5381 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5382 | ✗ | break; | |
| 5383 | } | ||
| 5384 | ✗ | break; | |
| 5385 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 5386 | ✗ | switch (portNum) { | |
| 5387 | default: | ||
| 5388 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5389 | ✗ | break; | |
| 5390 | } | ||
| 5391 | ✗ | break; | |
| 5392 | } | ||
| 5393 | ✗ | } | |
| 5394 | |||
| 5395 | 8 | void SignalGenComponentBase::timeCaller_out( | |
| 5396 | FwIndexType portNum, | ||
| 5397 | Fw::Time& time | ||
| 5398 | ) const { | ||
| 5399 | 8 | FW_ASSERT( | |
| 5400 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 5401 | static_cast<FwAssertArgType>(portNum), | ||
| 5402 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 5403 | ); | ||
| 5404 | 8 | const auto instance = this->getInstance(); | |
| 5405 |
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) { |
| 5406 | ✗ | default: | |
| 5407 | #ifdef FW_STRICT_ASSERTIONS | ||
| 5408 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 5409 | ✗ | break; | |
| 5410 | #else | ||
| 5411 | // Fall through | ||
| 5412 | #endif | ||
| 5413 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 5414 | ✗ | switch (portNum) { | |
| 5415 | ✗ | case 0: | |
| 5416 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 5417 | 0, | ||
| 5418 | time | ||
| 5419 | ); | ||
| 5420 | ✗ | break; | |
| 5421 | ✗ | default: | |
| 5422 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5423 | ✗ | break; | |
| 5424 | } | ||
| 5425 | ✗ | break; | |
| 5426 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 5427 | ✗ | switch (portNum) { | |
| 5428 | ✗ | case 0: | |
| 5429 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 5430 | 0, | ||
| 5431 | time | ||
| 5432 | ); | ||
| 5433 | ✗ | break; | |
| 5434 | ✗ | default: | |
| 5435 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5436 | ✗ | break; | |
| 5437 | } | ||
| 5438 | ✗ | break; | |
| 5439 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 5440 | ✗ | switch (portNum) { | |
| 5441 | ✗ | case 0: | |
| 5442 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 5443 | 0, | ||
| 5444 | time | ||
| 5445 | ); | ||
| 5446 | ✗ | break; | |
| 5447 | ✗ | default: | |
| 5448 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5449 | ✗ | break; | |
| 5450 | } | ||
| 5451 | ✗ | break; | |
| 5452 | 8 | case ::Ref::InstanceIds::Ref_SG4: | |
| 5453 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | switch (portNum) { |
| 5454 | 8 | case 0: | |
| 5455 | 8 | Ref::posixTime.timeGetPort_handlerBase( | |
| 5456 | 0, | ||
| 5457 | time | ||
| 5458 | ); | ||
| 5459 | 8 | break; | |
| 5460 | ✗ | default: | |
| 5461 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5462 | ✗ | break; | |
| 5463 | } | ||
| 5464 | 8 | break; | |
| 5465 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 5466 | ✗ | switch (portNum) { | |
| 5467 | ✗ | case 0: | |
| 5468 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 5469 | 0, | ||
| 5470 | time | ||
| 5471 | ); | ||
| 5472 | ✗ | break; | |
| 5473 | ✗ | default: | |
| 5474 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5475 | ✗ | break; | |
| 5476 | } | ||
| 5477 | ✗ | break; | |
| 5478 | } | ||
| 5479 | 8 | } | |
| 5480 | |||
| 5481 | 7 | void SignalGenComponentBase::tlmOut_out( | |
| 5482 | FwIndexType portNum, | ||
| 5483 | FwChanIdType id, | ||
| 5484 | Fw::Time& timeTag, | ||
| 5485 | Fw::TlmBuffer& val | ||
| 5486 | ) const { | ||
| 5487 | 7 | FW_ASSERT( | |
| 5488 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 5489 | static_cast<FwAssertArgType>(portNum), | ||
| 5490 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 5491 | ); | ||
| 5492 | 7 | const auto instance = this->getInstance(); | |
| 5493 |
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) { |
| 5494 | ✗ | default: | |
| 5495 | #ifdef FW_STRICT_ASSERTIONS | ||
| 5496 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 5497 | ✗ | break; | |
| 5498 | #else | ||
| 5499 | // Fall through | ||
| 5500 | #endif | ||
| 5501 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 5502 | ✗ | switch (portNum) { | |
| 5503 | ✗ | case 0: | |
| 5504 | ✗ | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 5505 | 0, | ||
| 5506 | id, | ||
| 5507 | timeTag, | ||
| 5508 | val | ||
| 5509 | ); | ||
| 5510 | ✗ | break; | |
| 5511 | ✗ | default: | |
| 5512 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5513 | ✗ | break; | |
| 5514 | } | ||
| 5515 | ✗ | break; | |
| 5516 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 5517 | ✗ | switch (portNum) { | |
| 5518 | ✗ | case 0: | |
| 5519 | ✗ | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 5520 | 0, | ||
| 5521 | id, | ||
| 5522 | timeTag, | ||
| 5523 | val | ||
| 5524 | ); | ||
| 5525 | ✗ | break; | |
| 5526 | ✗ | default: | |
| 5527 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5528 | ✗ | break; | |
| 5529 | } | ||
| 5530 | ✗ | break; | |
| 5531 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 5532 | ✗ | switch (portNum) { | |
| 5533 | ✗ | case 0: | |
| 5534 | ✗ | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 5535 | 0, | ||
| 5536 | id, | ||
| 5537 | timeTag, | ||
| 5538 | val | ||
| 5539 | ); | ||
| 5540 | ✗ | break; | |
| 5541 | ✗ | default: | |
| 5542 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5543 | ✗ | break; | |
| 5544 | } | ||
| 5545 | ✗ | break; | |
| 5546 | 7 | case ::Ref::InstanceIds::Ref_SG4: | |
| 5547 |
1/2✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
|
7 | switch (portNum) { |
| 5548 | 7 | case 0: | |
| 5549 | 7 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 5550 | 0, | ||
| 5551 | id, | ||
| 5552 | timeTag, | ||
| 5553 | val | ||
| 5554 | ); | ||
| 5555 | 7 | break; | |
| 5556 | ✗ | default: | |
| 5557 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5558 | ✗ | break; | |
| 5559 | } | ||
| 5560 | 7 | break; | |
| 5561 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 5562 | ✗ | switch (portNum) { | |
| 5563 | ✗ | case 0: | |
| 5564 | ✗ | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 5565 | 0, | ||
| 5566 | id, | ||
| 5567 | timeTag, | ||
| 5568 | val | ||
| 5569 | ); | ||
| 5570 | ✗ | break; | |
| 5571 | ✗ | default: | |
| 5572 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5573 | ✗ | break; | |
| 5574 | } | ||
| 5575 | ✗ | break; | |
| 5576 | } | ||
| 5577 | 7 | } | |
| 5578 | |||
| 5579 | } | ||
| 5580 | |||
| 5581 | namespace Ref { | ||
| 5582 | |||
| 5583 | 1 | bool TypeDemoComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const { | |
| 5584 | 1 | FW_ASSERT( | |
| 5585 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 5586 | static_cast<FwAssertArgType>(portNum), | ||
| 5587 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 5588 | ); | ||
| 5589 | 1 | bool result = false; | |
| 5590 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 5591 | 1 | case 0: | |
| 5592 | 1 | result = true; | |
| 5593 | 1 | break; | |
| 5594 | ✗ | default: | |
| 5595 | ✗ | break; | |
| 5596 | } | ||
| 5597 | 1 | return result; | |
| 5598 | } | ||
| 5599 | |||
| 5600 | 3 | bool TypeDemoComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const { | |
| 5601 | 3 | FW_ASSERT( | |
| 5602 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 5603 | static_cast<FwAssertArgType>(portNum), | ||
| 5604 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 5605 | ); | ||
| 5606 | 3 | bool result = false; | |
| 5607 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 5608 | 3 | case 0: | |
| 5609 | 3 | result = true; | |
| 5610 | 3 | break; | |
| 5611 | ✗ | default: | |
| 5612 | ✗ | break; | |
| 5613 | } | ||
| 5614 | 3 | return result; | |
| 5615 | } | ||
| 5616 | |||
| 5617 | 3 | bool TypeDemoComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 5618 | 3 | FW_ASSERT( | |
| 5619 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 5620 | static_cast<FwAssertArgType>(portNum), | ||
| 5621 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 5622 | ); | ||
| 5623 | 3 | bool result = false; | |
| 5624 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 5625 | 3 | case 0: | |
| 5626 | 3 | result = true; | |
| 5627 | 3 | break; | |
| 5628 | ✗ | default: | |
| 5629 | ✗ | break; | |
| 5630 | } | ||
| 5631 | 3 | return result; | |
| 5632 | } | ||
| 5633 | |||
| 5634 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 5635 | |||
| 5636 | 3 | bool TypeDemoComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 5637 | 3 | FW_ASSERT( | |
| 5638 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 5639 | static_cast<FwAssertArgType>(portNum), | ||
| 5640 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 5641 | ); | ||
| 5642 | 3 | bool result = false; | |
| 5643 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 5644 | 3 | case 0: | |
| 5645 | 3 | result = true; | |
| 5646 | 3 | break; | |
| 5647 | ✗ | default: | |
| 5648 | ✗ | break; | |
| 5649 | } | ||
| 5650 | 3 | return result; | |
| 5651 | } | ||
| 5652 | |||
| 5653 | #endif | ||
| 5654 | |||
| 5655 | 1 | bool TypeDemoComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const { | |
| 5656 | 1 | FW_ASSERT( | |
| 5657 | (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS), | ||
| 5658 | static_cast<FwAssertArgType>(portNum), | ||
| 5659 | static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS) | ||
| 5660 | ); | ||
| 5661 | 1 | bool result = false; | |
| 5662 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 5663 | 1 | case 0: | |
| 5664 | 1 | result = true; | |
| 5665 | 1 | break; | |
| 5666 | ✗ | default: | |
| 5667 | ✗ | break; | |
| 5668 | } | ||
| 5669 | 1 | return result; | |
| 5670 | } | ||
| 5671 | |||
| 5672 | ✗ | bool TypeDemoComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const { | |
| 5673 | ✗ | FW_ASSERT( | |
| 5674 | (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS), | ||
| 5675 | static_cast<FwAssertArgType>(portNum), | ||
| 5676 | static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS) | ||
| 5677 | ); | ||
| 5678 | ✗ | bool result = false; | |
| 5679 | ✗ | switch (portNum) { | |
| 5680 | ✗ | case 0: | |
| 5681 | ✗ | result = true; | |
| 5682 | ✗ | break; | |
| 5683 | ✗ | default: | |
| 5684 | ✗ | break; | |
| 5685 | } | ||
| 5686 | ✗ | return result; | |
| 5687 | } | ||
| 5688 | |||
| 5689 | 6 | bool TypeDemoComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 5690 | 6 | FW_ASSERT( | |
| 5691 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 5692 | static_cast<FwAssertArgType>(portNum), | ||
| 5693 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 5694 | ); | ||
| 5695 | 6 | bool result = false; | |
| 5696 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 5697 | 6 | case 0: | |
| 5698 | 6 | result = true; | |
| 5699 | 6 | break; | |
| 5700 | ✗ | default: | |
| 5701 | ✗ | break; | |
| 5702 | } | ||
| 5703 | 6 | return result; | |
| 5704 | } | ||
| 5705 | |||
| 5706 | 6 | bool TypeDemoComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 5707 | 6 | FW_ASSERT( | |
| 5708 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 5709 | static_cast<FwAssertArgType>(portNum), | ||
| 5710 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 5711 | ); | ||
| 5712 | 6 | bool result = false; | |
| 5713 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 5714 | 6 | case 0: | |
| 5715 | 6 | result = true; | |
| 5716 | 6 | break; | |
| 5717 | ✗ | default: | |
| 5718 | ✗ | break; | |
| 5719 | } | ||
| 5720 | 6 | return result; | |
| 5721 | } | ||
| 5722 | |||
| 5723 | 22 | void TypeDemoComponentBase::cmdRegOut_out( | |
| 5724 | FwIndexType portNum, | ||
| 5725 | FwOpcodeType opCode | ||
| 5726 | ) const { | ||
| 5727 | 22 | FW_ASSERT( | |
| 5728 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 5729 | static_cast<FwAssertArgType>(portNum), | ||
| 5730 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 5731 | ); | ||
| 5732 |
1/2✓ Branch 0 taken 22 times.
✗ Branch 1 not taken.
|
22 | switch (portNum) { |
| 5733 | 22 | case 0: | |
| 5734 | 22 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 5735 | 23, | ||
| 5736 | opCode | ||
| 5737 | ); | ||
| 5738 | 22 | break; | |
| 5739 | ✗ | default: | |
| 5740 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5741 | ✗ | break; | |
| 5742 | } | ||
| 5743 | 22 | } | |
| 5744 | |||
| 5745 | 3 | void TypeDemoComponentBase::cmdResponseOut_out( | |
| 5746 | FwIndexType portNum, | ||
| 5747 | FwOpcodeType opCode, | ||
| 5748 | U32 cmdSeq, | ||
| 5749 | const Fw::CmdResponse& response | ||
| 5750 | ) const { | ||
| 5751 | 3 | FW_ASSERT( | |
| 5752 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 5753 | static_cast<FwAssertArgType>(portNum), | ||
| 5754 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 5755 | ); | ||
| 5756 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 5757 | 3 | case 0: | |
| 5758 | 3 | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 5759 | 0, | ||
| 5760 | opCode, | ||
| 5761 | cmdSeq, | ||
| 5762 | response | ||
| 5763 | ); | ||
| 5764 | 3 | break; | |
| 5765 | ✗ | default: | |
| 5766 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5767 | ✗ | break; | |
| 5768 | } | ||
| 5769 | 3 | } | |
| 5770 | |||
| 5771 | 3 | void TypeDemoComponentBase::logOut_out( | |
| 5772 | FwIndexType portNum, | ||
| 5773 | FwEventIdType id, | ||
| 5774 | Fw::Time& timeTag, | ||
| 5775 | const Fw::LogSeverity& severity, | ||
| 5776 | Fw::LogBuffer& args | ||
| 5777 | ) const { | ||
| 5778 | 3 | FW_ASSERT( | |
| 5779 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 5780 | static_cast<FwAssertArgType>(portNum), | ||
| 5781 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 5782 | ); | ||
| 5783 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 5784 | 3 | case 0: | |
| 5785 | 3 | CdhCore::events.LogRecv_handlerBase( | |
| 5786 | 0, | ||
| 5787 | id, | ||
| 5788 | timeTag, | ||
| 5789 | severity, | ||
| 5790 | args | ||
| 5791 | ); | ||
| 5792 | 3 | break; | |
| 5793 | ✗ | default: | |
| 5794 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5795 | ✗ | break; | |
| 5796 | } | ||
| 5797 | 3 | } | |
| 5798 | |||
| 5799 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 5800 | |||
| 5801 | 3 | void TypeDemoComponentBase::logTextOut_out( | |
| 5802 | FwIndexType portNum, | ||
| 5803 | FwEventIdType id, | ||
| 5804 | Fw::Time& timeTag, | ||
| 5805 | const Fw::LogSeverity& severity, | ||
| 5806 | Fw::TextLogString& text | ||
| 5807 | ) const { | ||
| 5808 | 3 | FW_ASSERT( | |
| 5809 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 5810 | static_cast<FwAssertArgType>(portNum), | ||
| 5811 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 5812 | ); | ||
| 5813 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 5814 | 3 | case 0: | |
| 5815 | 3 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 5816 | 0, | ||
| 5817 | id, | ||
| 5818 | timeTag, | ||
| 5819 | severity, | ||
| 5820 | text | ||
| 5821 | ); | ||
| 5822 | 3 | break; | |
| 5823 | ✗ | default: | |
| 5824 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5825 | ✗ | break; | |
| 5826 | } | ||
| 5827 | 3 | } | |
| 5828 | |||
| 5829 | #endif | ||
| 5830 | |||
| 5831 | 5 | Fw::ParamValid TypeDemoComponentBase::prmGetOut_out( | |
| 5832 | FwIndexType portNum, | ||
| 5833 | FwPrmIdType id, | ||
| 5834 | Fw::ParamBuffer& val | ||
| 5835 | ) const { | ||
| 5836 | 5 | FW_ASSERT( | |
| 5837 | (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS), | ||
| 5838 | static_cast<FwAssertArgType>(portNum), | ||
| 5839 | static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS) | ||
| 5840 | ); | ||
| 5841 | 5 | Fw::ParamValid _result = {}; | |
| 5842 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 5843 | 5 | case 0: | |
| 5844 |
1/1✓ Branch 1 taken 5 times.
|
10 | _result = FileHandling::prmDb.getPrm_handlerBase( |
| 5845 | 0, | ||
| 5846 | id, | ||
| 5847 | val | ||
| 5848 |
1/1✓ Branch 1 taken 5 times.
|
5 | ); |
| 5849 | 5 | break; | |
| 5850 | ✗ | default: | |
| 5851 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5852 | ✗ | break; | |
| 5853 | } | ||
| 5854 | 5 | return _result; | |
| 5855 | ✗ | } | |
| 5856 | |||
| 5857 | ✗ | void TypeDemoComponentBase::prmSetOut_out( | |
| 5858 | FwIndexType portNum, | ||
| 5859 | FwPrmIdType id, | ||
| 5860 | Fw::ParamBuffer& val | ||
| 5861 | ) const { | ||
| 5862 | ✗ | FW_ASSERT( | |
| 5863 | (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS), | ||
| 5864 | static_cast<FwAssertArgType>(portNum), | ||
| 5865 | static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS) | ||
| 5866 | ); | ||
| 5867 | ✗ | switch (portNum) { | |
| 5868 | ✗ | case 0: | |
| 5869 | ✗ | FileHandling::prmDb.setPrm_handlerBase( | |
| 5870 | 0, | ||
| 5871 | id, | ||
| 5872 | val | ||
| 5873 | ); | ||
| 5874 | ✗ | break; | |
| 5875 | ✗ | default: | |
| 5876 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5877 | ✗ | break; | |
| 5878 | } | ||
| 5879 | ✗ | } | |
| 5880 | |||
| 5881 | 6 | void TypeDemoComponentBase::timeCaller_out( | |
| 5882 | FwIndexType portNum, | ||
| 5883 | Fw::Time& time | ||
| 5884 | ) const { | ||
| 5885 | 6 | FW_ASSERT( | |
| 5886 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 5887 | static_cast<FwAssertArgType>(portNum), | ||
| 5888 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 5889 | ); | ||
| 5890 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 5891 | 6 | case 0: | |
| 5892 | 6 | Ref::posixTime.timeGetPort_handlerBase( | |
| 5893 | 0, | ||
| 5894 | time | ||
| 5895 | ); | ||
| 5896 | 6 | break; | |
| 5897 | ✗ | default: | |
| 5898 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5899 | ✗ | break; | |
| 5900 | } | ||
| 5901 | 6 | } | |
| 5902 | |||
| 5903 | 3 | void TypeDemoComponentBase::tlmOut_out( | |
| 5904 | FwIndexType portNum, | ||
| 5905 | FwChanIdType id, | ||
| 5906 | Fw::Time& timeTag, | ||
| 5907 | Fw::TlmBuffer& val | ||
| 5908 | ) const { | ||
| 5909 | 3 | FW_ASSERT( | |
| 5910 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 5911 | static_cast<FwAssertArgType>(portNum), | ||
| 5912 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 5913 | ); | ||
| 5914 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 5915 | 3 | case 0: | |
| 5916 | 3 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 5917 | 0, | ||
| 5918 | id, | ||
| 5919 | timeTag, | ||
| 5920 | val | ||
| 5921 | ); | ||
| 5922 | 3 | break; | |
| 5923 | ✗ | default: | |
| 5924 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5925 | ✗ | break; | |
| 5926 | } | ||
| 5927 | 3 | } | |
| 5928 | |||
| 5929 | } | ||
| 5930 | |||
| 5931 | namespace Svc { | ||
| 5932 | |||
| 5933 | 3 | bool ActiveRateGroupComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 5934 | 3 | FW_ASSERT( | |
| 5935 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 5936 | static_cast<FwAssertArgType>(portNum), | ||
| 5937 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 5938 | ); | ||
| 5939 | 3 | bool result = false; | |
| 5940 | 3 | const auto instance = this->getInstance(); | |
| 5941 |
3/4✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 1 times.
|
3 | switch (instance) { |
| 5942 | ✗ | default: | |
| 5943 | #ifdef FW_STRICT_ASSERTIONS | ||
| 5944 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 5945 | ✗ | break; | |
| 5946 | #else | ||
| 5947 | // Fall through | ||
| 5948 | #endif | ||
| 5949 | 1 | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 5950 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 5951 | 1 | case 0: | |
| 5952 | 1 | result = true; | |
| 5953 | 1 | break; | |
| 5954 | ✗ | default: | |
| 5955 | ✗ | break; | |
| 5956 | } | ||
| 5957 | 1 | break; | |
| 5958 | 1 | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 5959 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 5960 | 1 | case 0: | |
| 5961 | 1 | result = true; | |
| 5962 | 1 | break; | |
| 5963 | ✗ | default: | |
| 5964 | ✗ | break; | |
| 5965 | } | ||
| 5966 | 1 | break; | |
| 5967 | 1 | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 5968 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 5969 | 1 | case 0: | |
| 5970 | 1 | result = true; | |
| 5971 | 1 | break; | |
| 5972 | ✗ | default: | |
| 5973 | ✗ | break; | |
| 5974 | } | ||
| 5975 | 1 | break; | |
| 5976 | } | ||
| 5977 | 3 | return result; | |
| 5978 | } | ||
| 5979 | |||
| 5980 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 5981 | |||
| 5982 | 3 | bool ActiveRateGroupComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 5983 | 3 | FW_ASSERT( | |
| 5984 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 5985 | static_cast<FwAssertArgType>(portNum), | ||
| 5986 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 5987 | ); | ||
| 5988 | 3 | bool result = false; | |
| 5989 | 3 | const auto instance = this->getInstance(); | |
| 5990 |
3/4✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 1 times.
|
3 | 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 | 1 | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 5999 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 6000 | 1 | case 0: | |
| 6001 | 1 | result = true; | |
| 6002 | 1 | break; | |
| 6003 | ✗ | default: | |
| 6004 | ✗ | break; | |
| 6005 | } | ||
| 6006 | 1 | break; | |
| 6007 | 1 | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6008 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 6009 | 1 | case 0: | |
| 6010 | 1 | result = true; | |
| 6011 | 1 | break; | |
| 6012 | ✗ | default: | |
| 6013 | ✗ | break; | |
| 6014 | } | ||
| 6015 | 1 | break; | |
| 6016 | 1 | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6017 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 6018 | 1 | case 0: | |
| 6019 | 1 | result = true; | |
| 6020 | 1 | break; | |
| 6021 | ✗ | default: | |
| 6022 | ✗ | break; | |
| 6023 | } | ||
| 6024 | 1 | break; | |
| 6025 | } | ||
| 6026 | 3 | return result; | |
| 6027 | } | ||
| 6028 | |||
| 6029 | #endif | ||
| 6030 | |||
| 6031 | ✗ | bool ActiveRateGroupComponentBase::isConnected_PingOut_OutputPort(FwIndexType portNum) const { | |
| 6032 | ✗ | FW_ASSERT( | |
| 6033 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 6034 | static_cast<FwAssertArgType>(portNum), | ||
| 6035 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 6036 | ); | ||
| 6037 | ✗ | bool result = false; | |
| 6038 | ✗ | const auto instance = this->getInstance(); | |
| 6039 | ✗ | switch (instance) { | |
| 6040 | ✗ | default: | |
| 6041 | #ifdef FW_STRICT_ASSERTIONS | ||
| 6042 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 6043 | ✗ | break; | |
| 6044 | #else | ||
| 6045 | // Fall through | ||
| 6046 | #endif | ||
| 6047 | ✗ | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 6048 | ✗ | switch (portNum) { | |
| 6049 | ✗ | case 0: | |
| 6050 | ✗ | result = true; | |
| 6051 | ✗ | break; | |
| 6052 | ✗ | default: | |
| 6053 | ✗ | break; | |
| 6054 | } | ||
| 6055 | ✗ | break; | |
| 6056 | ✗ | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6057 | ✗ | switch (portNum) { | |
| 6058 | ✗ | case 0: | |
| 6059 | ✗ | result = true; | |
| 6060 | ✗ | break; | |
| 6061 | ✗ | default: | |
| 6062 | ✗ | break; | |
| 6063 | } | ||
| 6064 | ✗ | break; | |
| 6065 | ✗ | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6066 | ✗ | switch (portNum) { | |
| 6067 | ✗ | case 0: | |
| 6068 | ✗ | result = true; | |
| 6069 | ✗ | break; | |
| 6070 | ✗ | default: | |
| 6071 | ✗ | break; | |
| 6072 | } | ||
| 6073 | ✗ | break; | |
| 6074 | } | ||
| 6075 | ✗ | return result; | |
| 6076 | } | ||
| 6077 | |||
| 6078 | 4282 | bool ActiveRateGroupComponentBase::isConnected_RateGroupMemberOut_OutputPort(FwIndexType portNum) const { | |
| 6079 | 4282 | FW_ASSERT( | |
| 6080 | (0 <= portNum) && (portNum < NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS), | ||
| 6081 | static_cast<FwAssertArgType>(portNum), | ||
| 6082 | static_cast<FwAssertArgType>(NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS) | ||
| 6083 | ); | ||
| 6084 | 4306 | bool result = false; | |
| 6085 | 4306 | const auto instance = this->getInstance(); | |
| 6086 |
3/4✗ Branch 0 not taken.
✓ Branch 1 taken 2460 times.
✓ Branch 2 taken 1230 times.
✓ Branch 3 taken 620 times.
|
4300 | switch (instance) { |
| 6087 | ✗ | default: | |
| 6088 | #ifdef FW_STRICT_ASSERTIONS | ||
| 6089 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 6090 | ✗ | break; | |
| 6091 | #else | ||
| 6092 | // Fall through | ||
| 6093 | #endif | ||
| 6094 | 2460 | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 6095 |
9/9✓ Branch 0 taken 246 times.
✓ Branch 1 taken 246 times.
✓ Branch 2 taken 246 times.
✓ Branch 3 taken 246 times.
✓ Branch 4 taken 246 times.
✓ Branch 5 taken 246 times.
✓ Branch 6 taken 246 times.
✓ Branch 7 taken 246 times.
✓ Branch 8 taken 492 times.
|
2460 | switch (portNum) { |
| 6096 | 246 | case 0: | |
| 6097 | 246 | result = true; | |
| 6098 | 246 | break; | |
| 6099 | 246 | case 1: | |
| 6100 | 246 | result = true; | |
| 6101 | 246 | break; | |
| 6102 | 246 | case 2: | |
| 6103 | 246 | result = true; | |
| 6104 | 246 | break; | |
| 6105 | 246 | case 3: | |
| 6106 | 246 | result = true; | |
| 6107 | 246 | break; | |
| 6108 | 246 | case 4: | |
| 6109 | 246 | result = true; | |
| 6110 | 246 | break; | |
| 6111 | 246 | case 5: | |
| 6112 | 246 | result = true; | |
| 6113 | 246 | break; | |
| 6114 | 246 | case 6: | |
| 6115 | 246 | result = true; | |
| 6116 | 246 | break; | |
| 6117 | 246 | case 7: | |
| 6118 | 246 | result = true; | |
| 6119 | 246 | break; | |
| 6120 | 492 | default: | |
| 6121 | 492 | break; | |
| 6122 | } | ||
| 6123 | 2460 | break; | |
| 6124 | 1230 | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6125 |
9/9✓ Branch 0 taken 123 times.
✓ Branch 1 taken 123 times.
✓ Branch 2 taken 123 times.
✓ Branch 3 taken 123 times.
✓ Branch 4 taken 123 times.
✓ Branch 5 taken 123 times.
✓ Branch 6 taken 123 times.
✓ Branch 7 taken 123 times.
✓ Branch 8 taken 246 times.
|
1230 | switch (portNum) { |
| 6126 | 123 | case 0: | |
| 6127 | 123 | result = true; | |
| 6128 | 123 | break; | |
| 6129 | 123 | case 1: | |
| 6130 | 123 | result = true; | |
| 6131 | 123 | break; | |
| 6132 | 123 | case 2: | |
| 6133 | 123 | result = true; | |
| 6134 | 123 | break; | |
| 6135 | 123 | case 3: | |
| 6136 | 123 | result = true; | |
| 6137 | 123 | break; | |
| 6138 | 123 | case 4: | |
| 6139 | 123 | result = true; | |
| 6140 | 123 | break; | |
| 6141 | 123 | case 5: | |
| 6142 | 123 | result = true; | |
| 6143 | 123 | break; | |
| 6144 | 123 | case 6: | |
| 6145 | 123 | result = true; | |
| 6146 | 123 | break; | |
| 6147 | 123 | case 7: | |
| 6148 | 123 | result = true; | |
| 6149 | 123 | break; | |
| 6150 | 246 | default: | |
| 6151 | 246 | break; | |
| 6152 | } | ||
| 6153 | 1230 | break; | |
| 6154 | 620 | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6155 |
9/9✓ Branch 0 taken 62 times.
✓ Branch 1 taken 62 times.
✓ Branch 2 taken 62 times.
✓ Branch 3 taken 62 times.
✓ Branch 4 taken 62 times.
✓ Branch 5 taken 62 times.
✓ Branch 6 taken 62 times.
✓ Branch 7 taken 62 times.
✓ Branch 8 taken 124 times.
|
620 | switch (portNum) { |
| 6156 | 62 | case 0: | |
| 6157 | 62 | result = true; | |
| 6158 | 62 | break; | |
| 6159 | 62 | case 1: | |
| 6160 | 62 | result = true; | |
| 6161 | 62 | break; | |
| 6162 | 62 | case 2: | |
| 6163 | 62 | result = true; | |
| 6164 | 62 | break; | |
| 6165 | 62 | case 3: | |
| 6166 | 62 | result = true; | |
| 6167 | 62 | break; | |
| 6168 | 62 | case 4: | |
| 6169 | 62 | result = true; | |
| 6170 | 62 | break; | |
| 6171 | 62 | case 5: | |
| 6172 | 62 | result = true; | |
| 6173 | 62 | break; | |
| 6174 | 62 | case 6: | |
| 6175 | 62 | result = true; | |
| 6176 | 62 | break; | |
| 6177 | 62 | case 7: | |
| 6178 | 62 | result = true; | |
| 6179 | 62 | break; | |
| 6180 | 124 | default: | |
| 6181 | 124 | break; | |
| 6182 | } | ||
| 6183 | 620 | break; | |
| 6184 | } | ||
| 6185 | 4310 | return result; | |
| 6186 | } | ||
| 6187 | |||
| 6188 | 19 | bool ActiveRateGroupComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 6189 | 19 | FW_ASSERT( | |
| 6190 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 6191 | static_cast<FwAssertArgType>(portNum), | ||
| 6192 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 6193 | ); | ||
| 6194 | 19 | bool result = false; | |
| 6195 | 19 | const auto instance = this->getInstance(); | |
| 6196 |
3/4✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
✓ Branch 2 taken 4 times.
✓ Branch 3 taken 6 times.
|
19 | switch (instance) { |
| 6197 | ✗ | default: | |
| 6198 | #ifdef FW_STRICT_ASSERTIONS | ||
| 6199 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 6200 | ✗ | break; | |
| 6201 | #else | ||
| 6202 | // Fall through | ||
| 6203 | #endif | ||
| 6204 | 9 | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 6205 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | switch (portNum) { |
| 6206 | 9 | case 0: | |
| 6207 | 9 | result = true; | |
| 6208 | 9 | break; | |
| 6209 | ✗ | default: | |
| 6210 | ✗ | break; | |
| 6211 | } | ||
| 6212 | 9 | break; | |
| 6213 | 4 | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6214 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 6215 | 4 | case 0: | |
| 6216 | 4 | result = true; | |
| 6217 | 4 | break; | |
| 6218 | ✗ | default: | |
| 6219 | ✗ | break; | |
| 6220 | } | ||
| 6221 | 4 | break; | |
| 6222 | 6 | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6223 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 6224 | 6 | case 0: | |
| 6225 | 6 | result = true; | |
| 6226 | 6 | break; | |
| 6227 | ✗ | default: | |
| 6228 | ✗ | break; | |
| 6229 | } | ||
| 6230 | 6 | break; | |
| 6231 | } | ||
| 6232 | 19 | return result; | |
| 6233 | } | ||
| 6234 | |||
| 6235 | 32 | bool ActiveRateGroupComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const { | |
| 6236 | 32 | FW_ASSERT( | |
| 6237 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 6238 | static_cast<FwAssertArgType>(portNum), | ||
| 6239 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 6240 | ); | ||
| 6241 | 32 | bool result = false; | |
| 6242 | 32 | const auto instance = this->getInstance(); | |
| 6243 |
3/4✗ Branch 0 not taken.
✓ Branch 1 taken 16 times.
✓ Branch 2 taken 6 times.
✓ Branch 3 taken 10 times.
|
32 | switch (instance) { |
| 6244 | ✗ | default: | |
| 6245 | #ifdef FW_STRICT_ASSERTIONS | ||
| 6246 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 6247 | ✗ | break; | |
| 6248 | #else | ||
| 6249 | // Fall through | ||
| 6250 | #endif | ||
| 6251 | 16 | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 6252 |
1/2✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
|
16 | switch (portNum) { |
| 6253 | 16 | case 0: | |
| 6254 | 16 | result = true; | |
| 6255 | 16 | break; | |
| 6256 | ✗ | default: | |
| 6257 | ✗ | break; | |
| 6258 | } | ||
| 6259 | 16 | break; | |
| 6260 | 6 | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6261 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 6262 | 6 | case 0: | |
| 6263 | 6 | result = true; | |
| 6264 | 6 | break; | |
| 6265 | ✗ | default: | |
| 6266 | ✗ | break; | |
| 6267 | } | ||
| 6268 | 6 | break; | |
| 6269 | 10 | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6270 |
1/2✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
|
10 | switch (portNum) { |
| 6271 | 10 | case 0: | |
| 6272 | 10 | result = true; | |
| 6273 | 10 | break; | |
| 6274 | ✗ | default: | |
| 6275 | ✗ | break; | |
| 6276 | } | ||
| 6277 | 10 | break; | |
| 6278 | } | ||
| 6279 | 32 | return result; | |
| 6280 | } | ||
| 6281 | |||
| 6282 | 3 | void ActiveRateGroupComponentBase::Log_out( | |
| 6283 | FwIndexType portNum, | ||
| 6284 | FwEventIdType id, | ||
| 6285 | Fw::Time& timeTag, | ||
| 6286 | const Fw::LogSeverity& severity, | ||
| 6287 | Fw::LogBuffer& args | ||
| 6288 | ) const { | ||
| 6289 | 3 | FW_ASSERT( | |
| 6290 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 6291 | static_cast<FwAssertArgType>(portNum), | ||
| 6292 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 6293 | ); | ||
| 6294 | 3 | const auto instance = this->getInstance(); | |
| 6295 |
3/4✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 1 times.
|
3 | switch (instance) { |
| 6296 | ✗ | default: | |
| 6297 | #ifdef FW_STRICT_ASSERTIONS | ||
| 6298 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 6299 | ✗ | break; | |
| 6300 | #else | ||
| 6301 | // Fall through | ||
| 6302 | #endif | ||
| 6303 | 1 | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 6304 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 6305 | 1 | case 0: | |
| 6306 | 1 | CdhCore::events.LogRecv_handlerBase( | |
| 6307 | 0, | ||
| 6308 | id, | ||
| 6309 | timeTag, | ||
| 6310 | severity, | ||
| 6311 | args | ||
| 6312 | ); | ||
| 6313 | 1 | break; | |
| 6314 | ✗ | default: | |
| 6315 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6316 | ✗ | break; | |
| 6317 | } | ||
| 6318 | 1 | break; | |
| 6319 | 1 | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6320 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 6321 | 1 | case 0: | |
| 6322 | 1 | CdhCore::events.LogRecv_handlerBase( | |
| 6323 | 0, | ||
| 6324 | id, | ||
| 6325 | timeTag, | ||
| 6326 | severity, | ||
| 6327 | args | ||
| 6328 | ); | ||
| 6329 | 1 | break; | |
| 6330 | ✗ | default: | |
| 6331 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6332 | ✗ | break; | |
| 6333 | } | ||
| 6334 | 1 | break; | |
| 6335 | 1 | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6336 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 6337 | 1 | case 0: | |
| 6338 | 1 | CdhCore::events.LogRecv_handlerBase( | |
| 6339 | 0, | ||
| 6340 | id, | ||
| 6341 | timeTag, | ||
| 6342 | severity, | ||
| 6343 | args | ||
| 6344 | ); | ||
| 6345 | 1 | break; | |
| 6346 | ✗ | default: | |
| 6347 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6348 | ✗ | break; | |
| 6349 | } | ||
| 6350 | 1 | break; | |
| 6351 | } | ||
| 6352 | 3 | } | |
| 6353 | |||
| 6354 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 6355 | |||
| 6356 | 3 | void ActiveRateGroupComponentBase::LogText_out( | |
| 6357 | FwIndexType portNum, | ||
| 6358 | FwEventIdType id, | ||
| 6359 | Fw::Time& timeTag, | ||
| 6360 | const Fw::LogSeverity& severity, | ||
| 6361 | Fw::TextLogString& text | ||
| 6362 | ) const { | ||
| 6363 | 3 | FW_ASSERT( | |
| 6364 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 6365 | static_cast<FwAssertArgType>(portNum), | ||
| 6366 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 6367 | ); | ||
| 6368 | 3 | const auto instance = this->getInstance(); | |
| 6369 |
3/4✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 1 times.
|
3 | switch (instance) { |
| 6370 | ✗ | default: | |
| 6371 | #ifdef FW_STRICT_ASSERTIONS | ||
| 6372 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 6373 | ✗ | break; | |
| 6374 | #else | ||
| 6375 | // Fall through | ||
| 6376 | #endif | ||
| 6377 | 1 | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 6378 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 6379 | 1 | case 0: | |
| 6380 | 1 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 6381 | 0, | ||
| 6382 | id, | ||
| 6383 | timeTag, | ||
| 6384 | severity, | ||
| 6385 | text | ||
| 6386 | ); | ||
| 6387 | 1 | break; | |
| 6388 | ✗ | default: | |
| 6389 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6390 | ✗ | break; | |
| 6391 | } | ||
| 6392 | 1 | break; | |
| 6393 | 1 | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6394 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 6395 | 1 | case 0: | |
| 6396 | 1 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 6397 | 0, | ||
| 6398 | id, | ||
| 6399 | timeTag, | ||
| 6400 | severity, | ||
| 6401 | text | ||
| 6402 | ); | ||
| 6403 | 1 | break; | |
| 6404 | ✗ | default: | |
| 6405 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6406 | ✗ | break; | |
| 6407 | } | ||
| 6408 | 1 | break; | |
| 6409 | 1 | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6410 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 6411 | 1 | case 0: | |
| 6412 | 1 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 6413 | 0, | ||
| 6414 | id, | ||
| 6415 | timeTag, | ||
| 6416 | severity, | ||
| 6417 | text | ||
| 6418 | ); | ||
| 6419 | 1 | break; | |
| 6420 | ✗ | default: | |
| 6421 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6422 | ✗ | break; | |
| 6423 | } | ||
| 6424 | 1 | break; | |
| 6425 | } | ||
| 6426 | 3 | } | |
| 6427 | |||
| 6428 | #endif | ||
| 6429 | |||
| 6430 | 186 | void ActiveRateGroupComponentBase::PingOut_out( | |
| 6431 | FwIndexType portNum, | ||
| 6432 | U32 key | ||
| 6433 | ) const { | ||
| 6434 | 186 | FW_ASSERT( | |
| 6435 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 6436 | static_cast<FwAssertArgType>(portNum), | ||
| 6437 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 6438 | ); | ||
| 6439 | 186 | const auto instance = this->getInstance(); | |
| 6440 |
3/4✗ Branch 0 not taken.
✓ Branch 1 taken 62 times.
✓ Branch 2 taken 62 times.
✓ Branch 3 taken 62 times.
|
186 | switch (instance) { |
| 6441 | ✗ | default: | |
| 6442 | #ifdef FW_STRICT_ASSERTIONS | ||
| 6443 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 6444 | ✗ | break; | |
| 6445 | #else | ||
| 6446 | // Fall through | ||
| 6447 | #endif | ||
| 6448 | 62 | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 6449 |
1/2✓ Branch 0 taken 62 times.
✗ Branch 1 not taken.
|
62 | switch (portNum) { |
| 6450 | 62 | case 0: | |
| 6451 | 62 | CdhCore::health.PingReturn_handlerBase( | |
| 6452 | 12, | ||
| 6453 | key | ||
| 6454 | ); | ||
| 6455 | 62 | break; | |
| 6456 | ✗ | default: | |
| 6457 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6458 | ✗ | break; | |
| 6459 | } | ||
| 6460 | 62 | break; | |
| 6461 | 62 | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6462 |
1/2✓ Branch 0 taken 62 times.
✗ Branch 1 not taken.
|
62 | switch (portNum) { |
| 6463 | 62 | case 0: | |
| 6464 | 62 | CdhCore::health.PingReturn_handlerBase( | |
| 6465 | 13, | ||
| 6466 | key | ||
| 6467 | ); | ||
| 6468 | 62 | break; | |
| 6469 | ✗ | default: | |
| 6470 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6471 | ✗ | break; | |
| 6472 | } | ||
| 6473 | 62 | break; | |
| 6474 | 62 | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6475 |
1/2✓ Branch 0 taken 62 times.
✗ Branch 1 not taken.
|
62 | switch (portNum) { |
| 6476 | 62 | case 0: | |
| 6477 | 62 | CdhCore::health.PingReturn_handlerBase( | |
| 6478 | 14, | ||
| 6479 | key | ||
| 6480 | ); | ||
| 6481 | 62 | break; | |
| 6482 | ✗ | default: | |
| 6483 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6484 | ✗ | break; | |
| 6485 | } | ||
| 6486 | 62 | break; | |
| 6487 | } | ||
| 6488 | 186 | } | |
| 6489 | |||
| 6490 | 3434 | void ActiveRateGroupComponentBase::RateGroupMemberOut_out( | |
| 6491 | FwIndexType portNum, | ||
| 6492 | U32 context | ||
| 6493 | ) const { | ||
| 6494 | 3434 | FW_ASSERT( | |
| 6495 | (0 <= portNum) && (portNum < NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS), | ||
| 6496 | static_cast<FwAssertArgType>(portNum), | ||
| 6497 | static_cast<FwAssertArgType>(NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS) | ||
| 6498 | ); | ||
| 6499 | 3442 | const auto instance = this->getInstance(); | |
| 6500 |
3/4✗ Branch 0 not taken.
✓ Branch 1 taken 1968 times.
✓ Branch 2 taken 984 times.
✓ Branch 3 taken 496 times.
|
3438 | switch (instance) { |
| 6501 | ✗ | default: | |
| 6502 | #ifdef FW_STRICT_ASSERTIONS | ||
| 6503 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 6504 | ✗ | break; | |
| 6505 | #else | ||
| 6506 | // Fall through | ||
| 6507 | #endif | ||
| 6508 | 1968 | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 6509 |
8/9✓ Branch 0 taken 246 times.
✓ Branch 1 taken 246 times.
✓ Branch 2 taken 246 times.
✓ Branch 3 taken 246 times.
✓ Branch 4 taken 246 times.
✓ Branch 5 taken 246 times.
✓ Branch 6 taken 246 times.
✓ Branch 7 taken 246 times.
✗ Branch 8 not taken.
|
1968 | switch (portNum) { |
| 6510 | 246 | case 0: | |
| 6511 | 246 | Ref::SG1.schedIn_handlerBase( | |
| 6512 | 0, | ||
| 6513 | context | ||
| 6514 | ); | ||
| 6515 | 246 | break; | |
| 6516 | 246 | case 1: | |
| 6517 | 246 | Ref::SG2.schedIn_handlerBase( | |
| 6518 | 0, | ||
| 6519 | context | ||
| 6520 | ); | ||
| 6521 | 246 | break; | |
| 6522 | 246 | case 2: | |
| 6523 | 246 | CdhCore::tlmSend.Run_handlerBase( | |
| 6524 | 0, | ||
| 6525 | context | ||
| 6526 | ); | ||
| 6527 | 246 | break; | |
| 6528 | 246 | case 3: | |
| 6529 | 246 | FileHandling::fileDownlink.Run_handlerBase( | |
| 6530 | 0, | ||
| 6531 | context | ||
| 6532 | ); | ||
| 6533 | 246 | break; | |
| 6534 | 246 | case 4: | |
| 6535 | 246 | Ref::systemResources.run_handlerBase( | |
| 6536 | 0, | ||
| 6537 | context | ||
| 6538 | ); | ||
| 6539 | 246 | break; | |
| 6540 | 246 | case 5: | |
| 6541 | 246 | ComCcsds::comQueue.run_handlerBase( | |
| 6542 | 0, | ||
| 6543 | context | ||
| 6544 | ); | ||
| 6545 | 246 | break; | |
| 6546 | 246 | case 6: | |
| 6547 | 246 | CdhCore::cmdDisp.run_handlerBase( | |
| 6548 | 0, | ||
| 6549 | context | ||
| 6550 | ); | ||
| 6551 | 246 | break; | |
| 6552 | 246 | case 7: | |
| 6553 | 246 | ComCcsds::aggregator.timeout_handlerBase( | |
| 6554 | 0, | ||
| 6555 | context | ||
| 6556 | ); | ||
| 6557 | 246 | break; | |
| 6558 | ✗ | default: | |
| 6559 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6560 | ✗ | break; | |
| 6561 | } | ||
| 6562 | 1968 | break; | |
| 6563 | 984 | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6564 |
8/9✓ Branch 0 taken 123 times.
✓ Branch 1 taken 123 times.
✓ Branch 2 taken 123 times.
✓ Branch 3 taken 123 times.
✓ Branch 4 taken 123 times.
✓ Branch 5 taken 123 times.
✓ Branch 6 taken 123 times.
✓ Branch 7 taken 123 times.
✗ Branch 8 not taken.
|
984 | switch (portNum) { |
| 6565 | 123 | case 0: | |
| 6566 | 123 | Ref::cmdSeq.schedIn_handlerBase( | |
| 6567 | 0, | ||
| 6568 | context | ||
| 6569 | ); | ||
| 6570 | 123 | break; | |
| 6571 | 123 | case 1: | |
| 6572 | 123 | Ref::sendBuffComp.SchedIn_handlerBase( | |
| 6573 | 0, | ||
| 6574 | context | ||
| 6575 | ); | ||
| 6576 | 123 | break; | |
| 6577 | 123 | case 2: | |
| 6578 | 123 | Ref::SG3.schedIn_handlerBase( | |
| 6579 | 0, | ||
| 6580 | context | ||
| 6581 | ); | ||
| 6582 | 123 | break; | |
| 6583 | 123 | case 3: | |
| 6584 | 123 | Ref::SG4.schedIn_handlerBase( | |
| 6585 | 0, | ||
| 6586 | context | ||
| 6587 | ); | ||
| 6588 | 123 | break; | |
| 6589 | 123 | case 4: | |
| 6590 | 123 | Ref::dpDemo.run_handlerBase( | |
| 6591 | 0, | ||
| 6592 | context | ||
| 6593 | ); | ||
| 6594 | 123 | break; | |
| 6595 | 123 | case 5: | |
| 6596 | 123 | FileHandling::fileManager.schedIn_handlerBase( | |
| 6597 | 0, | ||
| 6598 | context | ||
| 6599 | ); | ||
| 6600 | 123 | break; | |
| 6601 | 123 | case 6: | |
| 6602 | 123 | Ref::wasmSeq.checkTimers_handlerBase( | |
| 6603 | 0, | ||
| 6604 | context | ||
| 6605 | ); | ||
| 6606 | 123 | break; | |
| 6607 | 123 | case 7: | |
| 6608 | 123 | Ref::wasmSeq.writeTelemetry_handlerBase( | |
| 6609 | 0, | ||
| 6610 | context | ||
| 6611 | ); | ||
| 6612 | 123 | break; | |
| 6613 | ✗ | default: | |
| 6614 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6615 | ✗ | break; | |
| 6616 | } | ||
| 6617 | 984 | break; | |
| 6618 | 496 | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6619 |
8/9✓ Branch 0 taken 62 times.
✓ Branch 1 taken 62 times.
✓ Branch 2 taken 62 times.
✓ Branch 3 taken 62 times.
✓ Branch 4 taken 62 times.
✓ Branch 5 taken 62 times.
✓ Branch 6 taken 62 times.
✓ Branch 7 taken 62 times.
✗ Branch 8 not taken.
|
496 | switch (portNum) { |
| 6620 | 62 | case 0: | |
| 6621 | 62 | CdhCore::health.Run_handlerBase( | |
| 6622 | 0, | ||
| 6623 | context | ||
| 6624 | ); | ||
| 6625 | 62 | break; | |
| 6626 | 62 | case 1: | |
| 6627 | 62 | Ref::SG5.schedIn_handlerBase( | |
| 6628 | 0, | ||
| 6629 | context | ||
| 6630 | ); | ||
| 6631 | 62 | break; | |
| 6632 | 62 | case 2: | |
| 6633 | 62 | Ref::blockDrv.Sched_handlerBase( | |
| 6634 | 0, | ||
| 6635 | context | ||
| 6636 | ); | ||
| 6637 | 62 | break; | |
| 6638 | 62 | case 3: | |
| 6639 | 62 | ComCcsds::commsBufferManager.schedIn_handlerBase( | |
| 6640 | 0, | ||
| 6641 | context | ||
| 6642 | ); | ||
| 6643 | 62 | break; | |
| 6644 | 62 | case 4: | |
| 6645 | 62 | DataProducts::dpBufferManager.schedIn_handlerBase( | |
| 6646 | 0, | ||
| 6647 | context | ||
| 6648 | ); | ||
| 6649 | 62 | break; | |
| 6650 | 62 | case 5: | |
| 6651 | 62 | DataProducts::dpWriter.schedIn_handlerBase( | |
| 6652 | 0, | ||
| 6653 | context | ||
| 6654 | ); | ||
| 6655 | 62 | break; | |
| 6656 | 62 | case 6: | |
| 6657 | 62 | DataProducts::dpMgr.schedIn_handlerBase( | |
| 6658 | 0, | ||
| 6659 | context | ||
| 6660 | ); | ||
| 6661 | 62 | break; | |
| 6662 | 62 | case 7: | |
| 6663 | 62 | CdhCore::events.run_handlerBase( | |
| 6664 | 0, | ||
| 6665 | context | ||
| 6666 | ); | ||
| 6667 | 62 | break; | |
| 6668 | ✗ | default: | |
| 6669 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6670 | ✗ | break; | |
| 6671 | } | ||
| 6672 | 496 | break; | |
| 6673 | } | ||
| 6674 | 3448 | } | |
| 6675 | |||
| 6676 | 19 | void ActiveRateGroupComponentBase::Time_out( | |
| 6677 | FwIndexType portNum, | ||
| 6678 | Fw::Time& time | ||
| 6679 | ) const { | ||
| 6680 | 19 | FW_ASSERT( | |
| 6681 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 6682 | static_cast<FwAssertArgType>(portNum), | ||
| 6683 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 6684 | ); | ||
| 6685 | 19 | const auto instance = this->getInstance(); | |
| 6686 |
3/4✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
✓ Branch 2 taken 4 times.
✓ Branch 3 taken 6 times.
|
19 | switch (instance) { |
| 6687 | ✗ | default: | |
| 6688 | #ifdef FW_STRICT_ASSERTIONS | ||
| 6689 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 6690 | ✗ | break; | |
| 6691 | #else | ||
| 6692 | // Fall through | ||
| 6693 | #endif | ||
| 6694 | 9 | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 6695 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | switch (portNum) { |
| 6696 | 9 | case 0: | |
| 6697 | 9 | Ref::posixTime.timeGetPort_handlerBase( | |
| 6698 | 0, | ||
| 6699 | time | ||
| 6700 | ); | ||
| 6701 | 9 | break; | |
| 6702 | ✗ | default: | |
| 6703 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6704 | ✗ | break; | |
| 6705 | } | ||
| 6706 | 9 | break; | |
| 6707 | 4 | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6708 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 6709 | 4 | case 0: | |
| 6710 | 4 | Ref::posixTime.timeGetPort_handlerBase( | |
| 6711 | 0, | ||
| 6712 | time | ||
| 6713 | ); | ||
| 6714 | 4 | break; | |
| 6715 | ✗ | default: | |
| 6716 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6717 | ✗ | break; | |
| 6718 | } | ||
| 6719 | 4 | break; | |
| 6720 | 6 | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6721 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 6722 | 6 | case 0: | |
| 6723 | 6 | Ref::posixTime.timeGetPort_handlerBase( | |
| 6724 | 0, | ||
| 6725 | time | ||
| 6726 | ); | ||
| 6727 | 6 | break; | |
| 6728 | ✗ | default: | |
| 6729 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6730 | ✗ | break; | |
| 6731 | } | ||
| 6732 | 6 | break; | |
| 6733 | } | ||
| 6734 | 19 | } | |
| 6735 | |||
| 6736 | 16 | void ActiveRateGroupComponentBase::Tlm_out( | |
| 6737 | FwIndexType portNum, | ||
| 6738 | FwChanIdType id, | ||
| 6739 | Fw::Time& timeTag, | ||
| 6740 | Fw::TlmBuffer& val | ||
| 6741 | ) const { | ||
| 6742 | 16 | FW_ASSERT( | |
| 6743 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 6744 | static_cast<FwAssertArgType>(portNum), | ||
| 6745 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 6746 | ); | ||
| 6747 | 16 | const auto instance = this->getInstance(); | |
| 6748 |
3/4✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
✓ Branch 2 taken 3 times.
✓ Branch 3 taken 5 times.
|
16 | switch (instance) { |
| 6749 | ✗ | default: | |
| 6750 | #ifdef FW_STRICT_ASSERTIONS | ||
| 6751 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 6752 | ✗ | break; | |
| 6753 | #else | ||
| 6754 | // Fall through | ||
| 6755 | #endif | ||
| 6756 | 8 | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 6757 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | switch (portNum) { |
| 6758 | 8 | case 0: | |
| 6759 | 8 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 6760 | 0, | ||
| 6761 | id, | ||
| 6762 | timeTag, | ||
| 6763 | val | ||
| 6764 | ); | ||
| 6765 | 8 | break; | |
| 6766 | ✗ | default: | |
| 6767 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6768 | ✗ | break; | |
| 6769 | } | ||
| 6770 | 8 | break; | |
| 6771 | 3 | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6772 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 6773 | 3 | case 0: | |
| 6774 | 3 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 6775 | 0, | ||
| 6776 | id, | ||
| 6777 | timeTag, | ||
| 6778 | val | ||
| 6779 | ); | ||
| 6780 | 3 | break; | |
| 6781 | ✗ | default: | |
| 6782 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6783 | ✗ | break; | |
| 6784 | } | ||
| 6785 | 3 | break; | |
| 6786 | 5 | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6787 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 6788 | 5 | case 0: | |
| 6789 | 5 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 6790 | 0, | ||
| 6791 | id, | ||
| 6792 | timeTag, | ||
| 6793 | val | ||
| 6794 | ); | ||
| 6795 | 5 | break; | |
| 6796 | ✗ | default: | |
| 6797 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6798 | ✗ | break; | |
| 6799 | } | ||
| 6800 | 5 | break; | |
| 6801 | } | ||
| 6802 | 16 | } | |
| 6803 | |||
| 6804 | } | ||
| 6805 | |||
| 6806 | namespace Svc { | ||
| 6807 | |||
| 6808 | ✗ | bool AssertFatalAdapterComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 6809 | ✗ | FW_ASSERT( | |
| 6810 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 6811 | static_cast<FwAssertArgType>(portNum), | ||
| 6812 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 6813 | ); | ||
| 6814 | ✗ | bool result = false; | |
| 6815 | ✗ | switch (portNum) { | |
| 6816 | ✗ | case 0: | |
| 6817 | ✗ | result = true; | |
| 6818 | ✗ | break; | |
| 6819 | ✗ | default: | |
| 6820 | ✗ | break; | |
| 6821 | } | ||
| 6822 | ✗ | return result; | |
| 6823 | } | ||
| 6824 | |||
| 6825 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 6826 | |||
| 6827 | ✗ | bool AssertFatalAdapterComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 6828 | ✗ | FW_ASSERT( | |
| 6829 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 6830 | static_cast<FwAssertArgType>(portNum), | ||
| 6831 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 6832 | ); | ||
| 6833 | ✗ | bool result = false; | |
| 6834 | ✗ | switch (portNum) { | |
| 6835 | ✗ | case 0: | |
| 6836 | ✗ | result = true; | |
| 6837 | ✗ | break; | |
| 6838 | ✗ | default: | |
| 6839 | ✗ | break; | |
| 6840 | } | ||
| 6841 | ✗ | return result; | |
| 6842 | } | ||
| 6843 | |||
| 6844 | #endif | ||
| 6845 | |||
| 6846 | ✗ | bool AssertFatalAdapterComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 6847 | ✗ | FW_ASSERT( | |
| 6848 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 6849 | static_cast<FwAssertArgType>(portNum), | ||
| 6850 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 6851 | ); | ||
| 6852 | ✗ | bool result = false; | |
| 6853 | ✗ | switch (portNum) { | |
| 6854 | ✗ | case 0: | |
| 6855 | ✗ | result = true; | |
| 6856 | ✗ | break; | |
| 6857 | ✗ | default: | |
| 6858 | ✗ | break; | |
| 6859 | } | ||
| 6860 | ✗ | return result; | |
| 6861 | } | ||
| 6862 | |||
| 6863 | ✗ | void AssertFatalAdapterComponentBase::Log_out( | |
| 6864 | FwIndexType portNum, | ||
| 6865 | FwEventIdType id, | ||
| 6866 | Fw::Time& timeTag, | ||
| 6867 | const Fw::LogSeverity& severity, | ||
| 6868 | Fw::LogBuffer& args | ||
| 6869 | ) const { | ||
| 6870 | ✗ | FW_ASSERT( | |
| 6871 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 6872 | static_cast<FwAssertArgType>(portNum), | ||
| 6873 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 6874 | ); | ||
| 6875 | ✗ | switch (portNum) { | |
| 6876 | ✗ | case 0: | |
| 6877 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 6878 | 0, | ||
| 6879 | id, | ||
| 6880 | timeTag, | ||
| 6881 | severity, | ||
| 6882 | args | ||
| 6883 | ); | ||
| 6884 | ✗ | break; | |
| 6885 | ✗ | default: | |
| 6886 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6887 | ✗ | break; | |
| 6888 | } | ||
| 6889 | ✗ | } | |
| 6890 | |||
| 6891 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 6892 | |||
| 6893 | ✗ | void AssertFatalAdapterComponentBase::LogText_out( | |
| 6894 | FwIndexType portNum, | ||
| 6895 | FwEventIdType id, | ||
| 6896 | Fw::Time& timeTag, | ||
| 6897 | const Fw::LogSeverity& severity, | ||
| 6898 | Fw::TextLogString& text | ||
| 6899 | ) const { | ||
| 6900 | ✗ | FW_ASSERT( | |
| 6901 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 6902 | static_cast<FwAssertArgType>(portNum), | ||
| 6903 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 6904 | ); | ||
| 6905 | ✗ | switch (portNum) { | |
| 6906 | ✗ | case 0: | |
| 6907 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 6908 | 0, | ||
| 6909 | id, | ||
| 6910 | timeTag, | ||
| 6911 | severity, | ||
| 6912 | text | ||
| 6913 | ); | ||
| 6914 | ✗ | break; | |
| 6915 | ✗ | default: | |
| 6916 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6917 | ✗ | break; | |
| 6918 | } | ||
| 6919 | ✗ | } | |
| 6920 | |||
| 6921 | #endif | ||
| 6922 | |||
| 6923 | ✗ | void AssertFatalAdapterComponentBase::Time_out( | |
| 6924 | FwIndexType portNum, | ||
| 6925 | Fw::Time& time | ||
| 6926 | ) const { | ||
| 6927 | ✗ | FW_ASSERT( | |
| 6928 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 6929 | static_cast<FwAssertArgType>(portNum), | ||
| 6930 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 6931 | ); | ||
| 6932 | ✗ | switch (portNum) { | |
| 6933 | ✗ | case 0: | |
| 6934 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 6935 | 0, | ||
| 6936 | time | ||
| 6937 | ); | ||
| 6938 | ✗ | break; | |
| 6939 | ✗ | default: | |
| 6940 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6941 | ✗ | break; | |
| 6942 | } | ||
| 6943 | ✗ | } | |
| 6944 | |||
| 6945 | } | ||
| 6946 | |||
| 6947 | namespace Svc { | ||
| 6948 | |||
| 6949 | ✗ | bool BufferAccumulatorComponentBase::isConnected_bufferSendOutDrain_OutputPort(FwIndexType portNum) const { | |
| 6950 | ✗ | FW_ASSERT( | |
| 6951 | (0 <= portNum) && (portNum < NUM_BUFFERSENDOUTDRAIN_OUTPUT_PORTS), | ||
| 6952 | static_cast<FwAssertArgType>(portNum), | ||
| 6953 | static_cast<FwAssertArgType>(NUM_BUFFERSENDOUTDRAIN_OUTPUT_PORTS) | ||
| 6954 | ); | ||
| 6955 | ✗ | bool result = false; | |
| 6956 | ✗ | switch (portNum) { | |
| 6957 | ✗ | case 0: | |
| 6958 | ✗ | result = true; | |
| 6959 | ✗ | break; | |
| 6960 | ✗ | default: | |
| 6961 | ✗ | break; | |
| 6962 | } | ||
| 6963 | ✗ | return result; | |
| 6964 | } | ||
| 6965 | |||
| 6966 | ✗ | bool BufferAccumulatorComponentBase::isConnected_bufferSendOutReturn_OutputPort(FwIndexType portNum) const { | |
| 6967 | ✗ | FW_ASSERT( | |
| 6968 | (0 <= portNum) && (portNum < NUM_BUFFERSENDOUTRETURN_OUTPUT_PORTS), | ||
| 6969 | static_cast<FwAssertArgType>(portNum), | ||
| 6970 | static_cast<FwAssertArgType>(NUM_BUFFERSENDOUTRETURN_OUTPUT_PORTS) | ||
| 6971 | ); | ||
| 6972 | ✗ | bool result = false; | |
| 6973 | ✗ | switch (portNum) { | |
| 6974 | ✗ | case 0: | |
| 6975 | ✗ | result = true; | |
| 6976 | ✗ | break; | |
| 6977 | ✗ | default: | |
| 6978 | ✗ | break; | |
| 6979 | } | ||
| 6980 | ✗ | return result; | |
| 6981 | } | ||
| 6982 | |||
| 6983 | 1 | bool BufferAccumulatorComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const { | |
| 6984 | 1 | FW_ASSERT( | |
| 6985 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 6986 | static_cast<FwAssertArgType>(portNum), | ||
| 6987 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 6988 | ); | ||
| 6989 | 1 | bool result = false; | |
| 6990 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 6991 | 1 | case 0: | |
| 6992 | 1 | result = true; | |
| 6993 | 1 | break; | |
| 6994 | ✗ | default: | |
| 6995 | ✗ | break; | |
| 6996 | } | ||
| 6997 | 1 | return result; | |
| 6998 | } | ||
| 6999 | |||
| 7000 | ✗ | bool BufferAccumulatorComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const { | |
| 7001 | ✗ | FW_ASSERT( | |
| 7002 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 7003 | static_cast<FwAssertArgType>(portNum), | ||
| 7004 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 7005 | ); | ||
| 7006 | ✗ | bool result = false; | |
| 7007 | ✗ | switch (portNum) { | |
| 7008 | ✗ | case 0: | |
| 7009 | ✗ | result = true; | |
| 7010 | ✗ | break; | |
| 7011 | ✗ | default: | |
| 7012 | ✗ | break; | |
| 7013 | } | ||
| 7014 | ✗ | return result; | |
| 7015 | } | ||
| 7016 | |||
| 7017 | ✗ | bool BufferAccumulatorComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const { | |
| 7018 | ✗ | FW_ASSERT( | |
| 7019 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 7020 | static_cast<FwAssertArgType>(portNum), | ||
| 7021 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 7022 | ); | ||
| 7023 | ✗ | bool result = false; | |
| 7024 | ✗ | switch (portNum) { | |
| 7025 | ✗ | case 0: | |
| 7026 | ✗ | result = true; | |
| 7027 | ✗ | break; | |
| 7028 | ✗ | default: | |
| 7029 | ✗ | break; | |
| 7030 | } | ||
| 7031 | ✗ | return result; | |
| 7032 | } | ||
| 7033 | |||
| 7034 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 7035 | |||
| 7036 | ✗ | bool BufferAccumulatorComponentBase::isConnected_eventOutText_OutputPort(FwIndexType portNum) const { | |
| 7037 | ✗ | FW_ASSERT( | |
| 7038 | (0 <= portNum) && (portNum < NUM_EVENTOUTTEXT_OUTPUT_PORTS), | ||
| 7039 | static_cast<FwAssertArgType>(portNum), | ||
| 7040 | static_cast<FwAssertArgType>(NUM_EVENTOUTTEXT_OUTPUT_PORTS) | ||
| 7041 | ); | ||
| 7042 | ✗ | bool result = false; | |
| 7043 | ✗ | switch (portNum) { | |
| 7044 | ✗ | case 0: | |
| 7045 | ✗ | result = true; | |
| 7046 | ✗ | break; | |
| 7047 | ✗ | default: | |
| 7048 | ✗ | break; | |
| 7049 | } | ||
| 7050 | ✗ | return result; | |
| 7051 | } | ||
| 7052 | |||
| 7053 | #endif | ||
| 7054 | |||
| 7055 | ✗ | bool BufferAccumulatorComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const { | |
| 7056 | ✗ | FW_ASSERT( | |
| 7057 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 7058 | static_cast<FwAssertArgType>(portNum), | ||
| 7059 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 7060 | ); | ||
| 7061 | ✗ | bool result = false; | |
| 7062 | ✗ | switch (portNum) { | |
| 7063 | ✗ | case 0: | |
| 7064 | ✗ | result = true; | |
| 7065 | ✗ | break; | |
| 7066 | ✗ | default: | |
| 7067 | ✗ | break; | |
| 7068 | } | ||
| 7069 | ✗ | return result; | |
| 7070 | } | ||
| 7071 | |||
| 7072 | 6 | bool BufferAccumulatorComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 7073 | 6 | FW_ASSERT( | |
| 7074 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 7075 | static_cast<FwAssertArgType>(portNum), | ||
| 7076 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 7077 | ); | ||
| 7078 | 6 | bool result = false; | |
| 7079 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 7080 | 6 | case 0: | |
| 7081 | 6 | result = true; | |
| 7082 | 6 | break; | |
| 7083 | ✗ | default: | |
| 7084 | ✗ | break; | |
| 7085 | } | ||
| 7086 | 6 | return result; | |
| 7087 | } | ||
| 7088 | |||
| 7089 | 12 | bool BufferAccumulatorComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 7090 | 12 | FW_ASSERT( | |
| 7091 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 7092 | static_cast<FwAssertArgType>(portNum), | ||
| 7093 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 7094 | ); | ||
| 7095 | 12 | bool result = false; | |
| 7096 |
1/2✓ Branch 0 taken 12 times.
✗ Branch 1 not taken.
|
12 | switch (portNum) { |
| 7097 | 12 | case 0: | |
| 7098 | 12 | result = true; | |
| 7099 | 12 | break; | |
| 7100 | ✗ | default: | |
| 7101 | ✗ | break; | |
| 7102 | } | ||
| 7103 | 12 | return result; | |
| 7104 | } | ||
| 7105 | |||
| 7106 | 2 | void BufferAccumulatorComponentBase::bufferSendOutDrain_out( | |
| 7107 | FwIndexType portNum, | ||
| 7108 | Fw::Buffer& fwBuffer | ||
| 7109 | ) const { | ||
| 7110 | 2 | FW_ASSERT( | |
| 7111 | (0 <= portNum) && (portNum < NUM_BUFFERSENDOUTDRAIN_OUTPUT_PORTS), | ||
| 7112 | static_cast<FwAssertArgType>(portNum), | ||
| 7113 | static_cast<FwAssertArgType>(NUM_BUFFERSENDOUTDRAIN_OUTPUT_PORTS) | ||
| 7114 | ); | ||
| 7115 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 7116 | 2 | case 0: | |
| 7117 | 2 | DataProducts::dpWriter.bufferSendIn_handlerBase( | |
| 7118 | 0, | ||
| 7119 | fwBuffer | ||
| 7120 | ); | ||
| 7121 | 2 | break; | |
| 7122 | ✗ | default: | |
| 7123 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7124 | ✗ | break; | |
| 7125 | } | ||
| 7126 | 2 | } | |
| 7127 | |||
| 7128 | 2 | void BufferAccumulatorComponentBase::bufferSendOutReturn_out( | |
| 7129 | FwIndexType portNum, | ||
| 7130 | Fw::Buffer& fwBuffer | ||
| 7131 | ) const { | ||
| 7132 | 2 | FW_ASSERT( | |
| 7133 | (0 <= portNum) && (portNum < NUM_BUFFERSENDOUTRETURN_OUTPUT_PORTS), | ||
| 7134 | static_cast<FwAssertArgType>(portNum), | ||
| 7135 | static_cast<FwAssertArgType>(NUM_BUFFERSENDOUTRETURN_OUTPUT_PORTS) | ||
| 7136 | ); | ||
| 7137 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 7138 | 2 | case 0: | |
| 7139 | 2 | DataProducts::dpBufferManager.bufferSendIn_handlerBase( | |
| 7140 | 0, | ||
| 7141 | fwBuffer | ||
| 7142 | ); | ||
| 7143 | 2 | break; | |
| 7144 | ✗ | default: | |
| 7145 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7146 | ✗ | break; | |
| 7147 | } | ||
| 7148 | 2 | } | |
| 7149 | |||
| 7150 | 2 | void BufferAccumulatorComponentBase::cmdRegOut_out( | |
| 7151 | FwIndexType portNum, | ||
| 7152 | FwOpcodeType opCode | ||
| 7153 | ) const { | ||
| 7154 | 2 | FW_ASSERT( | |
| 7155 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 7156 | static_cast<FwAssertArgType>(portNum), | ||
| 7157 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 7158 | ); | ||
| 7159 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 7160 | 2 | case 0: | |
| 7161 | 2 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 7162 | 5, | ||
| 7163 | opCode | ||
| 7164 | ); | ||
| 7165 | 2 | break; | |
| 7166 | ✗ | default: | |
| 7167 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7168 | ✗ | break; | |
| 7169 | } | ||
| 7170 | 2 | } | |
| 7171 | |||
| 7172 | ✗ | void BufferAccumulatorComponentBase::cmdResponseOut_out( | |
| 7173 | FwIndexType portNum, | ||
| 7174 | FwOpcodeType opCode, | ||
| 7175 | U32 cmdSeq, | ||
| 7176 | const Fw::CmdResponse& response | ||
| 7177 | ) const { | ||
| 7178 | ✗ | FW_ASSERT( | |
| 7179 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 7180 | static_cast<FwAssertArgType>(portNum), | ||
| 7181 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 7182 | ); | ||
| 7183 | ✗ | switch (portNum) { | |
| 7184 | ✗ | case 0: | |
| 7185 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 7186 | 0, | ||
| 7187 | opCode, | ||
| 7188 | cmdSeq, | ||
| 7189 | response | ||
| 7190 | ); | ||
| 7191 | ✗ | break; | |
| 7192 | ✗ | default: | |
| 7193 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7194 | ✗ | break; | |
| 7195 | } | ||
| 7196 | ✗ | } | |
| 7197 | |||
| 7198 | ✗ | void BufferAccumulatorComponentBase::eventOut_out( | |
| 7199 | FwIndexType portNum, | ||
| 7200 | FwEventIdType id, | ||
| 7201 | Fw::Time& timeTag, | ||
| 7202 | const Fw::LogSeverity& severity, | ||
| 7203 | Fw::LogBuffer& args | ||
| 7204 | ) const { | ||
| 7205 | ✗ | FW_ASSERT( | |
| 7206 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 7207 | static_cast<FwAssertArgType>(portNum), | ||
| 7208 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 7209 | ); | ||
| 7210 | ✗ | switch (portNum) { | |
| 7211 | ✗ | case 0: | |
| 7212 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 7213 | 0, | ||
| 7214 | id, | ||
| 7215 | timeTag, | ||
| 7216 | severity, | ||
| 7217 | args | ||
| 7218 | ); | ||
| 7219 | ✗ | break; | |
| 7220 | ✗ | default: | |
| 7221 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7222 | ✗ | break; | |
| 7223 | } | ||
| 7224 | ✗ | } | |
| 7225 | |||
| 7226 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 7227 | |||
| 7228 | ✗ | void BufferAccumulatorComponentBase::eventOutText_out( | |
| 7229 | FwIndexType portNum, | ||
| 7230 | FwEventIdType id, | ||
| 7231 | Fw::Time& timeTag, | ||
| 7232 | const Fw::LogSeverity& severity, | ||
| 7233 | Fw::TextLogString& text | ||
| 7234 | ) const { | ||
| 7235 | ✗ | FW_ASSERT( | |
| 7236 | (0 <= portNum) && (portNum < NUM_EVENTOUTTEXT_OUTPUT_PORTS), | ||
| 7237 | static_cast<FwAssertArgType>(portNum), | ||
| 7238 | static_cast<FwAssertArgType>(NUM_EVENTOUTTEXT_OUTPUT_PORTS) | ||
| 7239 | ); | ||
| 7240 | ✗ | switch (portNum) { | |
| 7241 | ✗ | case 0: | |
| 7242 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 7243 | 0, | ||
| 7244 | id, | ||
| 7245 | timeTag, | ||
| 7246 | severity, | ||
| 7247 | text | ||
| 7248 | ); | ||
| 7249 | ✗ | break; | |
| 7250 | ✗ | default: | |
| 7251 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7252 | ✗ | break; | |
| 7253 | } | ||
| 7254 | ✗ | } | |
| 7255 | |||
| 7256 | #endif | ||
| 7257 | |||
| 7258 | 62 | void BufferAccumulatorComponentBase::pingOut_out( | |
| 7259 | FwIndexType portNum, | ||
| 7260 | U32 key | ||
| 7261 | ) const { | ||
| 7262 | 62 | FW_ASSERT( | |
| 7263 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 7264 | static_cast<FwAssertArgType>(portNum), | ||
| 7265 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 7266 | ); | ||
| 7267 |
1/2✓ Branch 0 taken 62 times.
✗ Branch 1 not taken.
|
62 | switch (portNum) { |
| 7268 | 62 | case 0: | |
| 7269 | 62 | CdhCore::health.PingReturn_handlerBase( | |
| 7270 | 3, | ||
| 7271 | key | ||
| 7272 | ); | ||
| 7273 | 62 | break; | |
| 7274 | ✗ | default: | |
| 7275 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7276 | ✗ | break; | |
| 7277 | } | ||
| 7278 | 62 | } | |
| 7279 | |||
| 7280 | 6 | void BufferAccumulatorComponentBase::timeCaller_out( | |
| 7281 | FwIndexType portNum, | ||
| 7282 | Fw::Time& time | ||
| 7283 | ) const { | ||
| 7284 | 6 | FW_ASSERT( | |
| 7285 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 7286 | static_cast<FwAssertArgType>(portNum), | ||
| 7287 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 7288 | ); | ||
| 7289 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 7290 | 6 | case 0: | |
| 7291 | 6 | Ref::posixTime.timeGetPort_handlerBase( | |
| 7292 | 0, | ||
| 7293 | time | ||
| 7294 | ); | ||
| 7295 | 6 | break; | |
| 7296 | ✗ | default: | |
| 7297 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7298 | ✗ | break; | |
| 7299 | } | ||
| 7300 | 6 | } | |
| 7301 | |||
| 7302 | 6 | void BufferAccumulatorComponentBase::tlmOut_out( | |
| 7303 | FwIndexType portNum, | ||
| 7304 | FwChanIdType id, | ||
| 7305 | Fw::Time& timeTag, | ||
| 7306 | Fw::TlmBuffer& val | ||
| 7307 | ) const { | ||
| 7308 | 6 | FW_ASSERT( | |
| 7309 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 7310 | static_cast<FwAssertArgType>(portNum), | ||
| 7311 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 7312 | ); | ||
| 7313 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 7314 | 6 | case 0: | |
| 7315 | 6 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 7316 | 0, | ||
| 7317 | id, | ||
| 7318 | timeTag, | ||
| 7319 | val | ||
| 7320 | ); | ||
| 7321 | 6 | break; | |
| 7322 | ✗ | default: | |
| 7323 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7324 | ✗ | break; | |
| 7325 | } | ||
| 7326 | 6 | } | |
| 7327 | |||
| 7328 | } | ||
| 7329 | |||
| 7330 | namespace Svc { | ||
| 7331 | |||
| 7332 | ✗ | bool BufferManagerComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const { | |
| 7333 | ✗ | FW_ASSERT( | |
| 7334 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 7335 | static_cast<FwAssertArgType>(portNum), | ||
| 7336 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 7337 | ); | ||
| 7338 | ✗ | bool result = false; | |
| 7339 | ✗ | const auto instance = this->getInstance(); | |
| 7340 | ✗ | switch (instance) { | |
| 7341 | ✗ | default: | |
| 7342 | #ifdef FW_STRICT_ASSERTIONS | ||
| 7343 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 7344 | ✗ | break; | |
| 7345 | #else | ||
| 7346 | // Fall through | ||
| 7347 | #endif | ||
| 7348 | ✗ | case ::Ref::InstanceIds::ComCcsds_commsBufferManager: | |
| 7349 | ✗ | switch (portNum) { | |
| 7350 | ✗ | case 0: | |
| 7351 | ✗ | result = true; | |
| 7352 | ✗ | break; | |
| 7353 | ✗ | default: | |
| 7354 | ✗ | break; | |
| 7355 | } | ||
| 7356 | ✗ | break; | |
| 7357 | ✗ | case ::Ref::InstanceIds::DataProducts_dpBufferManager: | |
| 7358 | ✗ | switch (portNum) { | |
| 7359 | ✗ | case 0: | |
| 7360 | ✗ | result = true; | |
| 7361 | ✗ | break; | |
| 7362 | ✗ | default: | |
| 7363 | ✗ | break; | |
| 7364 | } | ||
| 7365 | ✗ | break; | |
| 7366 | } | ||
| 7367 | ✗ | return result; | |
| 7368 | } | ||
| 7369 | |||
| 7370 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 7371 | |||
| 7372 | ✗ | bool BufferManagerComponentBase::isConnected_textEventOut_OutputPort(FwIndexType portNum) const { | |
| 7373 | ✗ | FW_ASSERT( | |
| 7374 | (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS), | ||
| 7375 | static_cast<FwAssertArgType>(portNum), | ||
| 7376 | static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS) | ||
| 7377 | ); | ||
| 7378 | ✗ | bool result = false; | |
| 7379 | ✗ | const auto instance = this->getInstance(); | |
| 7380 | ✗ | switch (instance) { | |
| 7381 | ✗ | default: | |
| 7382 | #ifdef FW_STRICT_ASSERTIONS | ||
| 7383 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 7384 | ✗ | break; | |
| 7385 | #else | ||
| 7386 | // Fall through | ||
| 7387 | #endif | ||
| 7388 | ✗ | case ::Ref::InstanceIds::ComCcsds_commsBufferManager: | |
| 7389 | ✗ | switch (portNum) { | |
| 7390 | ✗ | case 0: | |
| 7391 | ✗ | result = true; | |
| 7392 | ✗ | break; | |
| 7393 | ✗ | default: | |
| 7394 | ✗ | break; | |
| 7395 | } | ||
| 7396 | ✗ | break; | |
| 7397 | ✗ | case ::Ref::InstanceIds::DataProducts_dpBufferManager: | |
| 7398 | ✗ | switch (portNum) { | |
| 7399 | ✗ | case 0: | |
| 7400 | ✗ | result = true; | |
| 7401 | ✗ | break; | |
| 7402 | ✗ | default: | |
| 7403 | ✗ | break; | |
| 7404 | } | ||
| 7405 | ✗ | break; | |
| 7406 | } | ||
| 7407 | ✗ | return result; | |
| 7408 | } | ||
| 7409 | |||
| 7410 | #endif | ||
| 7411 | |||
| 7412 | 36 | bool BufferManagerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 7413 | 36 | FW_ASSERT( | |
| 7414 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 7415 | static_cast<FwAssertArgType>(portNum), | ||
| 7416 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 7417 | ); | ||
| 7418 | 36 | bool result = false; | |
| 7419 | 36 | const auto instance = this->getInstance(); | |
| 7420 |
2/3✗ Branch 0 not taken.
✓ Branch 1 taken 28 times.
✓ Branch 2 taken 8 times.
|
36 | switch (instance) { |
| 7421 | ✗ | default: | |
| 7422 | #ifdef FW_STRICT_ASSERTIONS | ||
| 7423 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 7424 | ✗ | break; | |
| 7425 | #else | ||
| 7426 | // Fall through | ||
| 7427 | #endif | ||
| 7428 | 28 | case ::Ref::InstanceIds::ComCcsds_commsBufferManager: | |
| 7429 |
1/2✓ Branch 0 taken 28 times.
✗ Branch 1 not taken.
|
28 | switch (portNum) { |
| 7430 | 28 | case 0: | |
| 7431 | 28 | result = true; | |
| 7432 | 28 | break; | |
| 7433 | ✗ | default: | |
| 7434 | ✗ | break; | |
| 7435 | } | ||
| 7436 | 28 | break; | |
| 7437 | 8 | case ::Ref::InstanceIds::DataProducts_dpBufferManager: | |
| 7438 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | switch (portNum) { |
| 7439 | 8 | case 0: | |
| 7440 | 8 | result = true; | |
| 7441 | 8 | break; | |
| 7442 | ✗ | default: | |
| 7443 | ✗ | break; | |
| 7444 | } | ||
| 7445 | 8 | break; | |
| 7446 | } | ||
| 7447 | 36 | return result; | |
| 7448 | } | ||
| 7449 | |||
| 7450 | 72 | bool BufferManagerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 7451 | 72 | FW_ASSERT( | |
| 7452 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 7453 | static_cast<FwAssertArgType>(portNum), | ||
| 7454 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 7455 | ); | ||
| 7456 | 72 | bool result = false; | |
| 7457 | 72 | const auto instance = this->getInstance(); | |
| 7458 |
2/3✗ Branch 0 not taken.
✓ Branch 1 taken 56 times.
✓ Branch 2 taken 16 times.
|
72 | switch (instance) { |
| 7459 | ✗ | default: | |
| 7460 | #ifdef FW_STRICT_ASSERTIONS | ||
| 7461 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 7462 | ✗ | break; | |
| 7463 | #else | ||
| 7464 | // Fall through | ||
| 7465 | #endif | ||
| 7466 | 56 | case ::Ref::InstanceIds::ComCcsds_commsBufferManager: | |
| 7467 |
1/2✓ Branch 0 taken 56 times.
✗ Branch 1 not taken.
|
56 | switch (portNum) { |
| 7468 | 56 | case 0: | |
| 7469 | 56 | result = true; | |
| 7470 | 56 | break; | |
| 7471 | ✗ | default: | |
| 7472 | ✗ | break; | |
| 7473 | } | ||
| 7474 | 56 | break; | |
| 7475 | 16 | case ::Ref::InstanceIds::DataProducts_dpBufferManager: | |
| 7476 |
1/2✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
|
16 | switch (portNum) { |
| 7477 | 16 | case 0: | |
| 7478 | 16 | result = true; | |
| 7479 | 16 | break; | |
| 7480 | ✗ | default: | |
| 7481 | ✗ | break; | |
| 7482 | } | ||
| 7483 | 16 | break; | |
| 7484 | } | ||
| 7485 | 72 | return result; | |
| 7486 | } | ||
| 7487 | |||
| 7488 | ✗ | void BufferManagerComponentBase::eventOut_out( | |
| 7489 | FwIndexType portNum, | ||
| 7490 | FwEventIdType id, | ||
| 7491 | Fw::Time& timeTag, | ||
| 7492 | const Fw::LogSeverity& severity, | ||
| 7493 | Fw::LogBuffer& args | ||
| 7494 | ) const { | ||
| 7495 | ✗ | FW_ASSERT( | |
| 7496 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 7497 | static_cast<FwAssertArgType>(portNum), | ||
| 7498 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 7499 | ); | ||
| 7500 | ✗ | const auto instance = this->getInstance(); | |
| 7501 | ✗ | switch (instance) { | |
| 7502 | ✗ | default: | |
| 7503 | #ifdef FW_STRICT_ASSERTIONS | ||
| 7504 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 7505 | ✗ | break; | |
| 7506 | #else | ||
| 7507 | // Fall through | ||
| 7508 | #endif | ||
| 7509 | ✗ | case ::Ref::InstanceIds::ComCcsds_commsBufferManager: | |
| 7510 | ✗ | switch (portNum) { | |
| 7511 | ✗ | case 0: | |
| 7512 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 7513 | 0, | ||
| 7514 | id, | ||
| 7515 | timeTag, | ||
| 7516 | severity, | ||
| 7517 | args | ||
| 7518 | ); | ||
| 7519 | ✗ | break; | |
| 7520 | ✗ | default: | |
| 7521 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7522 | ✗ | break; | |
| 7523 | } | ||
| 7524 | ✗ | break; | |
| 7525 | ✗ | case ::Ref::InstanceIds::DataProducts_dpBufferManager: | |
| 7526 | ✗ | switch (portNum) { | |
| 7527 | ✗ | case 0: | |
| 7528 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 7529 | 0, | ||
| 7530 | id, | ||
| 7531 | timeTag, | ||
| 7532 | severity, | ||
| 7533 | args | ||
| 7534 | ); | ||
| 7535 | ✗ | break; | |
| 7536 | ✗ | default: | |
| 7537 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7538 | ✗ | break; | |
| 7539 | } | ||
| 7540 | ✗ | break; | |
| 7541 | } | ||
| 7542 | ✗ | } | |
| 7543 | |||
| 7544 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 7545 | |||
| 7546 | ✗ | void BufferManagerComponentBase::textEventOut_out( | |
| 7547 | FwIndexType portNum, | ||
| 7548 | FwEventIdType id, | ||
| 7549 | Fw::Time& timeTag, | ||
| 7550 | const Fw::LogSeverity& severity, | ||
| 7551 | Fw::TextLogString& text | ||
| 7552 | ) const { | ||
| 7553 | ✗ | FW_ASSERT( | |
| 7554 | (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS), | ||
| 7555 | static_cast<FwAssertArgType>(portNum), | ||
| 7556 | static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS) | ||
| 7557 | ); | ||
| 7558 | ✗ | const auto instance = this->getInstance(); | |
| 7559 | ✗ | switch (instance) { | |
| 7560 | ✗ | default: | |
| 7561 | #ifdef FW_STRICT_ASSERTIONS | ||
| 7562 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 7563 | ✗ | break; | |
| 7564 | #else | ||
| 7565 | // Fall through | ||
| 7566 | #endif | ||
| 7567 | ✗ | case ::Ref::InstanceIds::ComCcsds_commsBufferManager: | |
| 7568 | ✗ | switch (portNum) { | |
| 7569 | ✗ | case 0: | |
| 7570 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 7571 | 0, | ||
| 7572 | id, | ||
| 7573 | timeTag, | ||
| 7574 | severity, | ||
| 7575 | text | ||
| 7576 | ); | ||
| 7577 | ✗ | break; | |
| 7578 | ✗ | default: | |
| 7579 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7580 | ✗ | break; | |
| 7581 | } | ||
| 7582 | ✗ | break; | |
| 7583 | ✗ | case ::Ref::InstanceIds::DataProducts_dpBufferManager: | |
| 7584 | ✗ | switch (portNum) { | |
| 7585 | ✗ | case 0: | |
| 7586 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 7587 | 0, | ||
| 7588 | id, | ||
| 7589 | timeTag, | ||
| 7590 | severity, | ||
| 7591 | text | ||
| 7592 | ); | ||
| 7593 | ✗ | break; | |
| 7594 | ✗ | default: | |
| 7595 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7596 | ✗ | break; | |
| 7597 | } | ||
| 7598 | ✗ | break; | |
| 7599 | } | ||
| 7600 | ✗ | } | |
| 7601 | |||
| 7602 | #endif | ||
| 7603 | |||
| 7604 | 36 | void BufferManagerComponentBase::timeCaller_out( | |
| 7605 | FwIndexType portNum, | ||
| 7606 | Fw::Time& time | ||
| 7607 | ) const { | ||
| 7608 | 36 | FW_ASSERT( | |
| 7609 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 7610 | static_cast<FwAssertArgType>(portNum), | ||
| 7611 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 7612 | ); | ||
| 7613 | 36 | const auto instance = this->getInstance(); | |
| 7614 |
2/3✗ Branch 0 not taken.
✓ Branch 1 taken 28 times.
✓ Branch 2 taken 8 times.
|
36 | switch (instance) { |
| 7615 | ✗ | default: | |
| 7616 | #ifdef FW_STRICT_ASSERTIONS | ||
| 7617 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 7618 | ✗ | break; | |
| 7619 | #else | ||
| 7620 | // Fall through | ||
| 7621 | #endif | ||
| 7622 | 28 | case ::Ref::InstanceIds::ComCcsds_commsBufferManager: | |
| 7623 |
1/2✓ Branch 0 taken 28 times.
✗ Branch 1 not taken.
|
28 | switch (portNum) { |
| 7624 | 28 | case 0: | |
| 7625 | 28 | Ref::posixTime.timeGetPort_handlerBase( | |
| 7626 | 0, | ||
| 7627 | time | ||
| 7628 | ); | ||
| 7629 | 28 | break; | |
| 7630 | ✗ | default: | |
| 7631 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7632 | ✗ | break; | |
| 7633 | } | ||
| 7634 | 28 | break; | |
| 7635 | 8 | case ::Ref::InstanceIds::DataProducts_dpBufferManager: | |
| 7636 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | switch (portNum) { |
| 7637 | 8 | case 0: | |
| 7638 | 8 | Ref::posixTime.timeGetPort_handlerBase( | |
| 7639 | 0, | ||
| 7640 | time | ||
| 7641 | ); | ||
| 7642 | 8 | break; | |
| 7643 | ✗ | default: | |
| 7644 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7645 | ✗ | break; | |
| 7646 | } | ||
| 7647 | 8 | break; | |
| 7648 | } | ||
| 7649 | 36 | } | |
| 7650 | |||
| 7651 | 36 | void BufferManagerComponentBase::tlmOut_out( | |
| 7652 | FwIndexType portNum, | ||
| 7653 | FwChanIdType id, | ||
| 7654 | Fw::Time& timeTag, | ||
| 7655 | Fw::TlmBuffer& val | ||
| 7656 | ) const { | ||
| 7657 | 36 | FW_ASSERT( | |
| 7658 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 7659 | static_cast<FwAssertArgType>(portNum), | ||
| 7660 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 7661 | ); | ||
| 7662 | 36 | const auto instance = this->getInstance(); | |
| 7663 |
2/3✗ Branch 0 not taken.
✓ Branch 1 taken 28 times.
✓ Branch 2 taken 8 times.
|
36 | switch (instance) { |
| 7664 | ✗ | default: | |
| 7665 | #ifdef FW_STRICT_ASSERTIONS | ||
| 7666 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 7667 | ✗ | break; | |
| 7668 | #else | ||
| 7669 | // Fall through | ||
| 7670 | #endif | ||
| 7671 | 28 | case ::Ref::InstanceIds::ComCcsds_commsBufferManager: | |
| 7672 |
1/2✓ Branch 0 taken 28 times.
✗ Branch 1 not taken.
|
28 | switch (portNum) { |
| 7673 | 28 | case 0: | |
| 7674 | 28 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 7675 | 0, | ||
| 7676 | id, | ||
| 7677 | timeTag, | ||
| 7678 | val | ||
| 7679 | ); | ||
| 7680 | 28 | break; | |
| 7681 | ✗ | default: | |
| 7682 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7683 | ✗ | break; | |
| 7684 | } | ||
| 7685 | 28 | break; | |
| 7686 | 8 | case ::Ref::InstanceIds::DataProducts_dpBufferManager: | |
| 7687 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | switch (portNum) { |
| 7688 | 8 | case 0: | |
| 7689 | 8 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 7690 | 0, | ||
| 7691 | id, | ||
| 7692 | timeTag, | ||
| 7693 | val | ||
| 7694 | ); | ||
| 7695 | 8 | break; | |
| 7696 | ✗ | default: | |
| 7697 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7698 | ✗ | break; | |
| 7699 | } | ||
| 7700 | 8 | break; | |
| 7701 | } | ||
| 7702 | 36 | } | |
| 7703 | |||
| 7704 | } | ||
| 7705 | |||
| 7706 | namespace Svc { | ||
| 7707 | namespace Ccsds { | ||
| 7708 | |||
| 7709 | ✗ | bool ApidManagerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 7710 | ✗ | FW_ASSERT( | |
| 7711 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 7712 | static_cast<FwAssertArgType>(portNum), | ||
| 7713 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 7714 | ); | ||
| 7715 | ✗ | bool result = false; | |
| 7716 | ✗ | switch (portNum) { | |
| 7717 | ✗ | case 0: | |
| 7718 | ✗ | result = true; | |
| 7719 | ✗ | break; | |
| 7720 | ✗ | default: | |
| 7721 | ✗ | break; | |
| 7722 | } | ||
| 7723 | ✗ | return result; | |
| 7724 | } | ||
| 7725 | |||
| 7726 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 7727 | |||
| 7728 | ✗ | bool ApidManagerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 7729 | ✗ | FW_ASSERT( | |
| 7730 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 7731 | static_cast<FwAssertArgType>(portNum), | ||
| 7732 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 7733 | ); | ||
| 7734 | ✗ | bool result = false; | |
| 7735 | ✗ | switch (portNum) { | |
| 7736 | ✗ | case 0: | |
| 7737 | ✗ | result = true; | |
| 7738 | ✗ | break; | |
| 7739 | ✗ | default: | |
| 7740 | ✗ | break; | |
| 7741 | } | ||
| 7742 | ✗ | return result; | |
| 7743 | } | ||
| 7744 | |||
| 7745 | #endif | ||
| 7746 | |||
| 7747 | ✗ | bool ApidManagerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 7748 | ✗ | FW_ASSERT( | |
| 7749 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 7750 | static_cast<FwAssertArgType>(portNum), | ||
| 7751 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 7752 | ); | ||
| 7753 | ✗ | bool result = false; | |
| 7754 | ✗ | switch (portNum) { | |
| 7755 | ✗ | case 0: | |
| 7756 | ✗ | result = true; | |
| 7757 | ✗ | break; | |
| 7758 | ✗ | default: | |
| 7759 | ✗ | break; | |
| 7760 | } | ||
| 7761 | ✗ | return result; | |
| 7762 | } | ||
| 7763 | |||
| 7764 | ✗ | void ApidManagerComponentBase::logOut_out( | |
| 7765 | FwIndexType portNum, | ||
| 7766 | FwEventIdType id, | ||
| 7767 | Fw::Time& timeTag, | ||
| 7768 | const Fw::LogSeverity& severity, | ||
| 7769 | Fw::LogBuffer& args | ||
| 7770 | ) const { | ||
| 7771 | ✗ | FW_ASSERT( | |
| 7772 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 7773 | static_cast<FwAssertArgType>(portNum), | ||
| 7774 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 7775 | ); | ||
| 7776 | ✗ | switch (portNum) { | |
| 7777 | ✗ | case 0: | |
| 7778 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 7779 | 0, | ||
| 7780 | id, | ||
| 7781 | timeTag, | ||
| 7782 | severity, | ||
| 7783 | args | ||
| 7784 | ); | ||
| 7785 | ✗ | break; | |
| 7786 | ✗ | default: | |
| 7787 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7788 | ✗ | break; | |
| 7789 | } | ||
| 7790 | ✗ | } | |
| 7791 | |||
| 7792 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 7793 | |||
| 7794 | ✗ | void ApidManagerComponentBase::logTextOut_out( | |
| 7795 | FwIndexType portNum, | ||
| 7796 | FwEventIdType id, | ||
| 7797 | Fw::Time& timeTag, | ||
| 7798 | const Fw::LogSeverity& severity, | ||
| 7799 | Fw::TextLogString& text | ||
| 7800 | ) const { | ||
| 7801 | ✗ | FW_ASSERT( | |
| 7802 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 7803 | static_cast<FwAssertArgType>(portNum), | ||
| 7804 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 7805 | ); | ||
| 7806 | ✗ | switch (portNum) { | |
| 7807 | ✗ | case 0: | |
| 7808 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 7809 | 0, | ||
| 7810 | id, | ||
| 7811 | timeTag, | ||
| 7812 | severity, | ||
| 7813 | text | ||
| 7814 | ); | ||
| 7815 | ✗ | break; | |
| 7816 | ✗ | default: | |
| 7817 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7818 | ✗ | break; | |
| 7819 | } | ||
| 7820 | ✗ | } | |
| 7821 | |||
| 7822 | #endif | ||
| 7823 | |||
| 7824 | ✗ | void ApidManagerComponentBase::timeCaller_out( | |
| 7825 | FwIndexType portNum, | ||
| 7826 | Fw::Time& time | ||
| 7827 | ) const { | ||
| 7828 | ✗ | FW_ASSERT( | |
| 7829 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 7830 | static_cast<FwAssertArgType>(portNum), | ||
| 7831 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 7832 | ); | ||
| 7833 | ✗ | switch (portNum) { | |
| 7834 | ✗ | case 0: | |
| 7835 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 7836 | 0, | ||
| 7837 | time | ||
| 7838 | ); | ||
| 7839 | ✗ | break; | |
| 7840 | ✗ | default: | |
| 7841 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7842 | ✗ | break; | |
| 7843 | } | ||
| 7844 | ✗ | } | |
| 7845 | |||
| 7846 | } | ||
| 7847 | } | ||
| 7848 | |||
| 7849 | namespace Svc { | ||
| 7850 | namespace Ccsds { | ||
| 7851 | |||
| 7852 | ✗ | bool SpacePacketDeframerComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const { | |
| 7853 | ✗ | FW_ASSERT( | |
| 7854 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 7855 | static_cast<FwAssertArgType>(portNum), | ||
| 7856 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 7857 | ); | ||
| 7858 | ✗ | bool result = false; | |
| 7859 | ✗ | switch (portNum) { | |
| 7860 | ✗ | case 0: | |
| 7861 | ✗ | result = true; | |
| 7862 | ✗ | break; | |
| 7863 | ✗ | default: | |
| 7864 | ✗ | break; | |
| 7865 | } | ||
| 7866 | ✗ | return result; | |
| 7867 | } | ||
| 7868 | |||
| 7869 | ✗ | bool SpacePacketDeframerComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const { | |
| 7870 | ✗ | FW_ASSERT( | |
| 7871 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 7872 | static_cast<FwAssertArgType>(portNum), | ||
| 7873 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 7874 | ); | ||
| 7875 | ✗ | bool result = false; | |
| 7876 | ✗ | switch (portNum) { | |
| 7877 | ✗ | case 0: | |
| 7878 | ✗ | result = true; | |
| 7879 | ✗ | break; | |
| 7880 | ✗ | default: | |
| 7881 | ✗ | break; | |
| 7882 | } | ||
| 7883 | ✗ | return result; | |
| 7884 | } | ||
| 7885 | |||
| 7886 | ✗ | bool SpacePacketDeframerComponentBase::isConnected_errorNotify_OutputPort(FwIndexType portNum) const { | |
| 7887 | ✗ | FW_ASSERT( | |
| 7888 | (0 <= portNum) && (portNum < NUM_ERRORNOTIFY_OUTPUT_PORTS), | ||
| 7889 | static_cast<FwAssertArgType>(portNum), | ||
| 7890 | static_cast<FwAssertArgType>(NUM_ERRORNOTIFY_OUTPUT_PORTS) | ||
| 7891 | ); | ||
| 7892 | ✗ | bool result = false; | |
| 7893 | ✗ | switch (portNum) { | |
| 7894 | default: | ||
| 7895 | ✗ | break; | |
| 7896 | } | ||
| 7897 | ✗ | return result; | |
| 7898 | } | ||
| 7899 | |||
| 7900 | ✗ | bool SpacePacketDeframerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 7901 | ✗ | FW_ASSERT( | |
| 7902 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 7903 | static_cast<FwAssertArgType>(portNum), | ||
| 7904 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 7905 | ); | ||
| 7906 | ✗ | bool result = false; | |
| 7907 | ✗ | switch (portNum) { | |
| 7908 | ✗ | case 0: | |
| 7909 | ✗ | result = true; | |
| 7910 | ✗ | break; | |
| 7911 | ✗ | default: | |
| 7912 | ✗ | break; | |
| 7913 | } | ||
| 7914 | ✗ | return result; | |
| 7915 | } | ||
| 7916 | |||
| 7917 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 7918 | |||
| 7919 | ✗ | bool SpacePacketDeframerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 7920 | ✗ | FW_ASSERT( | |
| 7921 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 7922 | static_cast<FwAssertArgType>(portNum), | ||
| 7923 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 7924 | ); | ||
| 7925 | ✗ | bool result = false; | |
| 7926 | ✗ | switch (portNum) { | |
| 7927 | ✗ | case 0: | |
| 7928 | ✗ | result = true; | |
| 7929 | ✗ | break; | |
| 7930 | ✗ | default: | |
| 7931 | ✗ | break; | |
| 7932 | } | ||
| 7933 | ✗ | return result; | |
| 7934 | } | ||
| 7935 | |||
| 7936 | #endif | ||
| 7937 | |||
| 7938 | ✗ | bool SpacePacketDeframerComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const { | |
| 7939 | ✗ | FW_ASSERT( | |
| 7940 | (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS), | ||
| 7941 | static_cast<FwAssertArgType>(portNum), | ||
| 7942 | static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS) | ||
| 7943 | ); | ||
| 7944 | ✗ | bool result = false; | |
| 7945 | ✗ | switch (portNum) { | |
| 7946 | ✗ | case 0: | |
| 7947 | ✗ | result = true; | |
| 7948 | ✗ | break; | |
| 7949 | ✗ | default: | |
| 7950 | ✗ | break; | |
| 7951 | } | ||
| 7952 | ✗ | return result; | |
| 7953 | } | ||
| 7954 | |||
| 7955 | ✗ | bool SpacePacketDeframerComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const { | |
| 7956 | ✗ | FW_ASSERT( | |
| 7957 | (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS), | ||
| 7958 | static_cast<FwAssertArgType>(portNum), | ||
| 7959 | static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS) | ||
| 7960 | ); | ||
| 7961 | ✗ | bool result = false; | |
| 7962 | ✗ | switch (portNum) { | |
| 7963 | ✗ | case 0: | |
| 7964 | ✗ | result = true; | |
| 7965 | ✗ | break; | |
| 7966 | ✗ | default: | |
| 7967 | ✗ | break; | |
| 7968 | } | ||
| 7969 | ✗ | return result; | |
| 7970 | } | ||
| 7971 | |||
| 7972 | ✗ | bool SpacePacketDeframerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 7973 | ✗ | FW_ASSERT( | |
| 7974 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 7975 | static_cast<FwAssertArgType>(portNum), | ||
| 7976 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 7977 | ); | ||
| 7978 | ✗ | bool result = false; | |
| 7979 | ✗ | switch (portNum) { | |
| 7980 | ✗ | case 0: | |
| 7981 | ✗ | result = true; | |
| 7982 | ✗ | break; | |
| 7983 | ✗ | default: | |
| 7984 | ✗ | break; | |
| 7985 | } | ||
| 7986 | ✗ | return result; | |
| 7987 | } | ||
| 7988 | |||
| 7989 | ✗ | bool SpacePacketDeframerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 7990 | ✗ | FW_ASSERT( | |
| 7991 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 7992 | static_cast<FwAssertArgType>(portNum), | ||
| 7993 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 7994 | ); | ||
| 7995 | ✗ | bool result = false; | |
| 7996 | ✗ | switch (portNum) { | |
| 7997 | ✗ | case 0: | |
| 7998 | ✗ | result = true; | |
| 7999 | ✗ | break; | |
| 8000 | ✗ | default: | |
| 8001 | ✗ | break; | |
| 8002 | } | ||
| 8003 | ✗ | return result; | |
| 8004 | } | ||
| 8005 | |||
| 8006 | ✗ | bool SpacePacketDeframerComponentBase::isConnected_validateApidSeqCount_OutputPort(FwIndexType portNum) const { | |
| 8007 | ✗ | FW_ASSERT( | |
| 8008 | (0 <= portNum) && (portNum < NUM_VALIDATEAPIDSEQCOUNT_OUTPUT_PORTS), | ||
| 8009 | static_cast<FwAssertArgType>(portNum), | ||
| 8010 | static_cast<FwAssertArgType>(NUM_VALIDATEAPIDSEQCOUNT_OUTPUT_PORTS) | ||
| 8011 | ); | ||
| 8012 | ✗ | bool result = false; | |
| 8013 | ✗ | switch (portNum) { | |
| 8014 | ✗ | case 0: | |
| 8015 | ✗ | result = true; | |
| 8016 | ✗ | break; | |
| 8017 | ✗ | default: | |
| 8018 | ✗ | break; | |
| 8019 | } | ||
| 8020 | ✗ | return result; | |
| 8021 | } | ||
| 8022 | |||
| 8023 | 151 | void SpacePacketDeframerComponentBase::dataOut_out( | |
| 8024 | FwIndexType portNum, | ||
| 8025 | Fw::Buffer& data, | ||
| 8026 | const ComCfg::FrameContext& context | ||
| 8027 | ) const { | ||
| 8028 | 151 | FW_ASSERT( | |
| 8029 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 8030 | static_cast<FwAssertArgType>(portNum), | ||
| 8031 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 8032 | ); | ||
| 8033 |
1/2✓ Branch 0 taken 151 times.
✗ Branch 1 not taken.
|
151 | switch (portNum) { |
| 8034 | 151 | case 0: | |
| 8035 | 151 | ComCcsds::fprimeRouter.dataIn_handlerBase( | |
| 8036 | 0, | ||
| 8037 | data, | ||
| 8038 | context | ||
| 8039 | ); | ||
| 8040 | 151 | break; | |
| 8041 | ✗ | default: | |
| 8042 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8043 | ✗ | break; | |
| 8044 | } | ||
| 8045 | 151 | } | |
| 8046 | |||
| 8047 | 151 | void SpacePacketDeframerComponentBase::dataReturnOut_out( | |
| 8048 | FwIndexType portNum, | ||
| 8049 | Fw::Buffer& data, | ||
| 8050 | const ComCfg::FrameContext& context | ||
| 8051 | ) const { | ||
| 8052 | 151 | FW_ASSERT( | |
| 8053 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 8054 | static_cast<FwAssertArgType>(portNum), | ||
| 8055 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 8056 | ); | ||
| 8057 |
1/2✓ Branch 0 taken 151 times.
✗ Branch 1 not taken.
|
151 | switch (portNum) { |
| 8058 | 151 | case 0: | |
| 8059 | 151 | ComCcsds::tcDeframer.dataReturnIn_handlerBase( | |
| 8060 | 0, | ||
| 8061 | data, | ||
| 8062 | context | ||
| 8063 | ); | ||
| 8064 | 151 | break; | |
| 8065 | ✗ | default: | |
| 8066 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8067 | ✗ | break; | |
| 8068 | } | ||
| 8069 | 151 | } | |
| 8070 | |||
| 8071 | ✗ | void SpacePacketDeframerComponentBase::errorNotify_out( | |
| 8072 | FwIndexType portNum, | ||
| 8073 | const Svc::Ccsds::FrameError& errorCode | ||
| 8074 | ) const { | ||
| 8075 | ✗ | FW_ASSERT( | |
| 8076 | (0 <= portNum) && (portNum < NUM_ERRORNOTIFY_OUTPUT_PORTS), | ||
| 8077 | static_cast<FwAssertArgType>(portNum), | ||
| 8078 | static_cast<FwAssertArgType>(NUM_ERRORNOTIFY_OUTPUT_PORTS) | ||
| 8079 | ); | ||
| 8080 | ✗ | switch (portNum) { | |
| 8081 | default: | ||
| 8082 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8083 | ✗ | break; | |
| 8084 | } | ||
| 8085 | ✗ | } | |
| 8086 | |||
| 8087 | ✗ | void SpacePacketDeframerComponentBase::logOut_out( | |
| 8088 | FwIndexType portNum, | ||
| 8089 | FwEventIdType id, | ||
| 8090 | Fw::Time& timeTag, | ||
| 8091 | const Fw::LogSeverity& severity, | ||
| 8092 | Fw::LogBuffer& args | ||
| 8093 | ) const { | ||
| 8094 | ✗ | FW_ASSERT( | |
| 8095 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 8096 | static_cast<FwAssertArgType>(portNum), | ||
| 8097 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 8098 | ); | ||
| 8099 | ✗ | switch (portNum) { | |
| 8100 | ✗ | case 0: | |
| 8101 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 8102 | 0, | ||
| 8103 | id, | ||
| 8104 | timeTag, | ||
| 8105 | severity, | ||
| 8106 | args | ||
| 8107 | ); | ||
| 8108 | ✗ | break; | |
| 8109 | ✗ | default: | |
| 8110 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8111 | ✗ | break; | |
| 8112 | } | ||
| 8113 | ✗ | } | |
| 8114 | |||
| 8115 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 8116 | |||
| 8117 | ✗ | void SpacePacketDeframerComponentBase::logTextOut_out( | |
| 8118 | FwIndexType portNum, | ||
| 8119 | FwEventIdType id, | ||
| 8120 | Fw::Time& timeTag, | ||
| 8121 | const Fw::LogSeverity& severity, | ||
| 8122 | Fw::TextLogString& text | ||
| 8123 | ) const { | ||
| 8124 | ✗ | FW_ASSERT( | |
| 8125 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 8126 | static_cast<FwAssertArgType>(portNum), | ||
| 8127 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 8128 | ); | ||
| 8129 | ✗ | switch (portNum) { | |
| 8130 | ✗ | case 0: | |
| 8131 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 8132 | 0, | ||
| 8133 | id, | ||
| 8134 | timeTag, | ||
| 8135 | severity, | ||
| 8136 | text | ||
| 8137 | ); | ||
| 8138 | ✗ | break; | |
| 8139 | ✗ | default: | |
| 8140 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8141 | ✗ | break; | |
| 8142 | } | ||
| 8143 | ✗ | } | |
| 8144 | |||
| 8145 | #endif | ||
| 8146 | |||
| 8147 | ✗ | void SpacePacketDeframerComponentBase::timeCaller_out( | |
| 8148 | FwIndexType portNum, | ||
| 8149 | Fw::Time& time | ||
| 8150 | ) const { | ||
| 8151 | ✗ | FW_ASSERT( | |
| 8152 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 8153 | static_cast<FwAssertArgType>(portNum), | ||
| 8154 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 8155 | ); | ||
| 8156 | ✗ | switch (portNum) { | |
| 8157 | ✗ | case 0: | |
| 8158 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 8159 | 0, | ||
| 8160 | time | ||
| 8161 | ); | ||
| 8162 | ✗ | break; | |
| 8163 | ✗ | default: | |
| 8164 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8165 | ✗ | break; | |
| 8166 | } | ||
| 8167 | ✗ | } | |
| 8168 | |||
| 8169 | 151 | U16 SpacePacketDeframerComponentBase::validateApidSeqCount_out( | |
| 8170 | FwIndexType portNum, | ||
| 8171 | const ComCfg::Apid& apid, | ||
| 8172 | U16 sequenceCount | ||
| 8173 | ) const { | ||
| 8174 | 151 | FW_ASSERT( | |
| 8175 | (0 <= portNum) && (portNum < NUM_VALIDATEAPIDSEQCOUNT_OUTPUT_PORTS), | ||
| 8176 | static_cast<FwAssertArgType>(portNum), | ||
| 8177 | static_cast<FwAssertArgType>(NUM_VALIDATEAPIDSEQCOUNT_OUTPUT_PORTS) | ||
| 8178 | ); | ||
| 8179 | 151 | U16 _result = {}; | |
| 8180 |
1/2✓ Branch 0 taken 151 times.
✗ Branch 1 not taken.
|
151 | switch (portNum) { |
| 8181 | 151 | case 0: | |
| 8182 | 151 | _result = ComCcsds::apidManager.validateApidSeqCountIn_handlerBase( | |
| 8183 | 0, | ||
| 8184 | apid, | ||
| 8185 | sequenceCount | ||
| 8186 | ); | ||
| 8187 | 151 | break; | |
| 8188 | ✗ | default: | |
| 8189 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8190 | ✗ | break; | |
| 8191 | } | ||
| 8192 | 151 | return _result; | |
| 8193 | } | ||
| 8194 | |||
| 8195 | } | ||
| 8196 | } | ||
| 8197 | |||
| 8198 | namespace Svc { | ||
| 8199 | namespace Ccsds { | ||
| 8200 | |||
| 8201 | ✗ | bool SpacePacketFramerComponentBase::isConnected_bufferAllocate_OutputPort(FwIndexType portNum) const { | |
| 8202 | ✗ | FW_ASSERT( | |
| 8203 | (0 <= portNum) && (portNum < NUM_BUFFERALLOCATE_OUTPUT_PORTS), | ||
| 8204 | static_cast<FwAssertArgType>(portNum), | ||
| 8205 | static_cast<FwAssertArgType>(NUM_BUFFERALLOCATE_OUTPUT_PORTS) | ||
| 8206 | ); | ||
| 8207 | ✗ | bool result = false; | |
| 8208 | ✗ | switch (portNum) { | |
| 8209 | ✗ | case 0: | |
| 8210 | ✗ | result = true; | |
| 8211 | ✗ | break; | |
| 8212 | ✗ | default: | |
| 8213 | ✗ | break; | |
| 8214 | } | ||
| 8215 | ✗ | return result; | |
| 8216 | } | ||
| 8217 | |||
| 8218 | ✗ | bool SpacePacketFramerComponentBase::isConnected_bufferDeallocate_OutputPort(FwIndexType portNum) const { | |
| 8219 | ✗ | FW_ASSERT( | |
| 8220 | (0 <= portNum) && (portNum < NUM_BUFFERDEALLOCATE_OUTPUT_PORTS), | ||
| 8221 | static_cast<FwAssertArgType>(portNum), | ||
| 8222 | static_cast<FwAssertArgType>(NUM_BUFFERDEALLOCATE_OUTPUT_PORTS) | ||
| 8223 | ); | ||
| 8224 | ✗ | bool result = false; | |
| 8225 | ✗ | switch (portNum) { | |
| 8226 | ✗ | case 0: | |
| 8227 | ✗ | result = true; | |
| 8228 | ✗ | break; | |
| 8229 | ✗ | default: | |
| 8230 | ✗ | break; | |
| 8231 | } | ||
| 8232 | ✗ | return result; | |
| 8233 | } | ||
| 8234 | |||
| 8235 | 706 | bool SpacePacketFramerComponentBase::isConnected_comStatusOut_OutputPort(FwIndexType portNum) const { | |
| 8236 | 706 | FW_ASSERT( | |
| 8237 | (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS), | ||
| 8238 | static_cast<FwAssertArgType>(portNum), | ||
| 8239 | static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS) | ||
| 8240 | ); | ||
| 8241 | 706 | bool result = false; | |
| 8242 |
1/2✓ Branch 0 taken 706 times.
✗ Branch 1 not taken.
|
706 | switch (portNum) { |
| 8243 | 706 | case 0: | |
| 8244 | 706 | result = true; | |
| 8245 | 706 | break; | |
| 8246 | ✗ | default: | |
| 8247 | ✗ | break; | |
| 8248 | } | ||
| 8249 | 706 | return result; | |
| 8250 | } | ||
| 8251 | |||
| 8252 | ✗ | bool SpacePacketFramerComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const { | |
| 8253 | ✗ | FW_ASSERT( | |
| 8254 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 8255 | static_cast<FwAssertArgType>(portNum), | ||
| 8256 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 8257 | ); | ||
| 8258 | ✗ | bool result = false; | |
| 8259 | ✗ | switch (portNum) { | |
| 8260 | ✗ | case 0: | |
| 8261 | ✗ | result = true; | |
| 8262 | ✗ | break; | |
| 8263 | ✗ | default: | |
| 8264 | ✗ | break; | |
| 8265 | } | ||
| 8266 | ✗ | return result; | |
| 8267 | } | ||
| 8268 | |||
| 8269 | ✗ | bool SpacePacketFramerComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const { | |
| 8270 | ✗ | FW_ASSERT( | |
| 8271 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 8272 | static_cast<FwAssertArgType>(portNum), | ||
| 8273 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 8274 | ); | ||
| 8275 | ✗ | bool result = false; | |
| 8276 | ✗ | switch (portNum) { | |
| 8277 | ✗ | case 0: | |
| 8278 | ✗ | result = true; | |
| 8279 | ✗ | break; | |
| 8280 | ✗ | default: | |
| 8281 | ✗ | break; | |
| 8282 | } | ||
| 8283 | ✗ | return result; | |
| 8284 | } | ||
| 8285 | |||
| 8286 | ✗ | bool SpacePacketFramerComponentBase::isConnected_getApidSeqCount_OutputPort(FwIndexType portNum) const { | |
| 8287 | ✗ | FW_ASSERT( | |
| 8288 | (0 <= portNum) && (portNum < NUM_GETAPIDSEQCOUNT_OUTPUT_PORTS), | ||
| 8289 | static_cast<FwAssertArgType>(portNum), | ||
| 8290 | static_cast<FwAssertArgType>(NUM_GETAPIDSEQCOUNT_OUTPUT_PORTS) | ||
| 8291 | ); | ||
| 8292 | ✗ | bool result = false; | |
| 8293 | ✗ | switch (portNum) { | |
| 8294 | ✗ | case 0: | |
| 8295 | ✗ | result = true; | |
| 8296 | ✗ | break; | |
| 8297 | ✗ | default: | |
| 8298 | ✗ | break; | |
| 8299 | } | ||
| 8300 | ✗ | return result; | |
| 8301 | } | ||
| 8302 | |||
| 8303 | ✗ | bool SpacePacketFramerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 8304 | ✗ | FW_ASSERT( | |
| 8305 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 8306 | static_cast<FwAssertArgType>(portNum), | ||
| 8307 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 8308 | ); | ||
| 8309 | ✗ | bool result = false; | |
| 8310 | ✗ | switch (portNum) { | |
| 8311 | ✗ | case 0: | |
| 8312 | ✗ | result = true; | |
| 8313 | ✗ | break; | |
| 8314 | ✗ | default: | |
| 8315 | ✗ | break; | |
| 8316 | } | ||
| 8317 | ✗ | return result; | |
| 8318 | } | ||
| 8319 | |||
| 8320 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 8321 | |||
| 8322 | ✗ | bool SpacePacketFramerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 8323 | ✗ | FW_ASSERT( | |
| 8324 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 8325 | static_cast<FwAssertArgType>(portNum), | ||
| 8326 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 8327 | ); | ||
| 8328 | ✗ | bool result = false; | |
| 8329 | ✗ | switch (portNum) { | |
| 8330 | ✗ | case 0: | |
| 8331 | ✗ | result = true; | |
| 8332 | ✗ | break; | |
| 8333 | ✗ | default: | |
| 8334 | ✗ | break; | |
| 8335 | } | ||
| 8336 | ✗ | return result; | |
| 8337 | } | ||
| 8338 | |||
| 8339 | #endif | ||
| 8340 | |||
| 8341 | ✗ | bool SpacePacketFramerComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const { | |
| 8342 | ✗ | FW_ASSERT( | |
| 8343 | (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS), | ||
| 8344 | static_cast<FwAssertArgType>(portNum), | ||
| 8345 | static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS) | ||
| 8346 | ); | ||
| 8347 | ✗ | bool result = false; | |
| 8348 | ✗ | switch (portNum) { | |
| 8349 | ✗ | case 0: | |
| 8350 | ✗ | result = true; | |
| 8351 | ✗ | break; | |
| 8352 | ✗ | default: | |
| 8353 | ✗ | break; | |
| 8354 | } | ||
| 8355 | ✗ | return result; | |
| 8356 | } | ||
| 8357 | |||
| 8358 | ✗ | bool SpacePacketFramerComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const { | |
| 8359 | ✗ | FW_ASSERT( | |
| 8360 | (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS), | ||
| 8361 | static_cast<FwAssertArgType>(portNum), | ||
| 8362 | static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS) | ||
| 8363 | ); | ||
| 8364 | ✗ | bool result = false; | |
| 8365 | ✗ | switch (portNum) { | |
| 8366 | ✗ | case 0: | |
| 8367 | ✗ | result = true; | |
| 8368 | ✗ | break; | |
| 8369 | ✗ | default: | |
| 8370 | ✗ | break; | |
| 8371 | } | ||
| 8372 | ✗ | return result; | |
| 8373 | } | ||
| 8374 | |||
| 8375 | ✗ | bool SpacePacketFramerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 8376 | ✗ | FW_ASSERT( | |
| 8377 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 8378 | static_cast<FwAssertArgType>(portNum), | ||
| 8379 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 8380 | ); | ||
| 8381 | ✗ | bool result = false; | |
| 8382 | ✗ | switch (portNum) { | |
| 8383 | ✗ | case 0: | |
| 8384 | ✗ | result = true; | |
| 8385 | ✗ | break; | |
| 8386 | ✗ | default: | |
| 8387 | ✗ | break; | |
| 8388 | } | ||
| 8389 | ✗ | return result; | |
| 8390 | } | ||
| 8391 | |||
| 8392 | ✗ | bool SpacePacketFramerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 8393 | ✗ | FW_ASSERT( | |
| 8394 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 8395 | static_cast<FwAssertArgType>(portNum), | ||
| 8396 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 8397 | ); | ||
| 8398 | ✗ | bool result = false; | |
| 8399 | ✗ | switch (portNum) { | |
| 8400 | ✗ | case 0: | |
| 8401 | ✗ | result = true; | |
| 8402 | ✗ | break; | |
| 8403 | ✗ | default: | |
| 8404 | ✗ | break; | |
| 8405 | } | ||
| 8406 | ✗ | return result; | |
| 8407 | } | ||
| 8408 | |||
| 8409 | 705 | Fw::Buffer SpacePacketFramerComponentBase::bufferAllocate_out( | |
| 8410 | FwIndexType portNum, | ||
| 8411 | FwSizeType size | ||
| 8412 | ) const { | ||
| 8413 | 705 | FW_ASSERT( | |
| 8414 | (0 <= portNum) && (portNum < NUM_BUFFERALLOCATE_OUTPUT_PORTS), | ||
| 8415 | static_cast<FwAssertArgType>(portNum), | ||
| 8416 | static_cast<FwAssertArgType>(NUM_BUFFERALLOCATE_OUTPUT_PORTS) | ||
| 8417 | ); | ||
| 8418 | 705 | Fw::Buffer _result = {}; | |
| 8419 |
1/2✓ Branch 0 taken 705 times.
✗ Branch 1 not taken.
|
705 | switch (portNum) { |
| 8420 | 705 | case 0: | |
| 8421 |
1/1✓ Branch 1 taken 705 times.
|
1410 | _result = ComCcsds::commsBufferManager.bufferGetCallee_handlerBase( |
| 8422 | 0, | ||
| 8423 | size | ||
| 8424 |
1/1✓ Branch 1 taken 705 times.
|
705 | ); |
| 8425 | 705 | break; | |
| 8426 | ✗ | default: | |
| 8427 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8428 | ✗ | break; | |
| 8429 | } | ||
| 8430 | 705 | return _result; | |
| 8431 | ✗ | } | |
| 8432 | |||
| 8433 | 705 | void SpacePacketFramerComponentBase::bufferDeallocate_out( | |
| 8434 | FwIndexType portNum, | ||
| 8435 | Fw::Buffer& fwBuffer | ||
| 8436 | ) const { | ||
| 8437 | 705 | FW_ASSERT( | |
| 8438 | (0 <= portNum) && (portNum < NUM_BUFFERDEALLOCATE_OUTPUT_PORTS), | ||
| 8439 | static_cast<FwAssertArgType>(portNum), | ||
| 8440 | static_cast<FwAssertArgType>(NUM_BUFFERDEALLOCATE_OUTPUT_PORTS) | ||
| 8441 | ); | ||
| 8442 |
1/2✓ Branch 0 taken 705 times.
✗ Branch 1 not taken.
|
705 | switch (portNum) { |
| 8443 | 705 | case 0: | |
| 8444 | 705 | ComCcsds::commsBufferManager.bufferSendIn_handlerBase( | |
| 8445 | 0, | ||
| 8446 | fwBuffer | ||
| 8447 | ); | ||
| 8448 | 705 | break; | |
| 8449 | ✗ | default: | |
| 8450 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8451 | ✗ | break; | |
| 8452 | } | ||
| 8453 | 705 | } | |
| 8454 | |||
| 8455 | 706 | void SpacePacketFramerComponentBase::comStatusOut_out( | |
| 8456 | FwIndexType portNum, | ||
| 8457 | Fw::Success& condition | ||
| 8458 | ) const { | ||
| 8459 | 706 | FW_ASSERT( | |
| 8460 | (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS), | ||
| 8461 | static_cast<FwAssertArgType>(portNum), | ||
| 8462 | static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS) | ||
| 8463 | ); | ||
| 8464 |
1/2✓ Branch 0 taken 706 times.
✗ Branch 1 not taken.
|
706 | switch (portNum) { |
| 8465 | 706 | case 0: | |
| 8466 | 706 | ComCcsds::comQueue.comStatusIn_handlerBase( | |
| 8467 | 0, | ||
| 8468 | condition | ||
| 8469 | ); | ||
| 8470 | 706 | break; | |
| 8471 | ✗ | default: | |
| 8472 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8473 | ✗ | break; | |
| 8474 | } | ||
| 8475 | 706 | } | |
| 8476 | |||
| 8477 | 705 | void SpacePacketFramerComponentBase::dataOut_out( | |
| 8478 | FwIndexType portNum, | ||
| 8479 | Fw::Buffer& data, | ||
| 8480 | const ComCfg::FrameContext& context | ||
| 8481 | ) const { | ||
| 8482 | 705 | FW_ASSERT( | |
| 8483 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 8484 | static_cast<FwAssertArgType>(portNum), | ||
| 8485 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 8486 | ); | ||
| 8487 |
1/2✓ Branch 0 taken 705 times.
✗ Branch 1 not taken.
|
705 | switch (portNum) { |
| 8488 | 705 | case 0: | |
| 8489 | 705 | ComCcsds::aggregator.dataIn_handlerBase( | |
| 8490 | 0, | ||
| 8491 | data, | ||
| 8492 | context | ||
| 8493 | ); | ||
| 8494 | 705 | break; | |
| 8495 | ✗ | default: | |
| 8496 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8497 | ✗ | break; | |
| 8498 | } | ||
| 8499 | 705 | } | |
| 8500 | |||
| 8501 | 705 | void SpacePacketFramerComponentBase::dataReturnOut_out( | |
| 8502 | FwIndexType portNum, | ||
| 8503 | Fw::Buffer& data, | ||
| 8504 | const ComCfg::FrameContext& context | ||
| 8505 | ) const { | ||
| 8506 | 705 | FW_ASSERT( | |
| 8507 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 8508 | static_cast<FwAssertArgType>(portNum), | ||
| 8509 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 8510 | ); | ||
| 8511 |
1/2✓ Branch 0 taken 705 times.
✗ Branch 1 not taken.
|
705 | switch (portNum) { |
| 8512 | 705 | case 0: | |
| 8513 | 705 | ComCcsds::comQueue.dataReturnIn_handlerBase( | |
| 8514 | 0, | ||
| 8515 | data, | ||
| 8516 | context | ||
| 8517 | ); | ||
| 8518 | 705 | break; | |
| 8519 | ✗ | default: | |
| 8520 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8521 | ✗ | break; | |
| 8522 | } | ||
| 8523 | 705 | } | |
| 8524 | |||
| 8525 | 705 | U16 SpacePacketFramerComponentBase::getApidSeqCount_out( | |
| 8526 | FwIndexType portNum, | ||
| 8527 | const ComCfg::Apid& apid, | ||
| 8528 | U16 sequenceCount | ||
| 8529 | ) const { | ||
| 8530 | 705 | FW_ASSERT( | |
| 8531 | (0 <= portNum) && (portNum < NUM_GETAPIDSEQCOUNT_OUTPUT_PORTS), | ||
| 8532 | static_cast<FwAssertArgType>(portNum), | ||
| 8533 | static_cast<FwAssertArgType>(NUM_GETAPIDSEQCOUNT_OUTPUT_PORTS) | ||
| 8534 | ); | ||
| 8535 | 705 | U16 _result = {}; | |
| 8536 |
1/2✓ Branch 0 taken 705 times.
✗ Branch 1 not taken.
|
705 | switch (portNum) { |
| 8537 | 705 | case 0: | |
| 8538 | 705 | _result = ComCcsds::apidManager.getApidSeqCountIn_handlerBase( | |
| 8539 | 0, | ||
| 8540 | apid, | ||
| 8541 | sequenceCount | ||
| 8542 | ); | ||
| 8543 | 705 | break; | |
| 8544 | ✗ | default: | |
| 8545 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8546 | ✗ | break; | |
| 8547 | } | ||
| 8548 | 705 | return _result; | |
| 8549 | } | ||
| 8550 | |||
| 8551 | ✗ | void SpacePacketFramerComponentBase::logOut_out( | |
| 8552 | FwIndexType portNum, | ||
| 8553 | FwEventIdType id, | ||
| 8554 | Fw::Time& timeTag, | ||
| 8555 | const Fw::LogSeverity& severity, | ||
| 8556 | Fw::LogBuffer& args | ||
| 8557 | ) const { | ||
| 8558 | ✗ | FW_ASSERT( | |
| 8559 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 8560 | static_cast<FwAssertArgType>(portNum), | ||
| 8561 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 8562 | ); | ||
| 8563 | ✗ | switch (portNum) { | |
| 8564 | ✗ | case 0: | |
| 8565 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 8566 | 0, | ||
| 8567 | id, | ||
| 8568 | timeTag, | ||
| 8569 | severity, | ||
| 8570 | args | ||
| 8571 | ); | ||
| 8572 | ✗ | break; | |
| 8573 | ✗ | default: | |
| 8574 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8575 | ✗ | break; | |
| 8576 | } | ||
| 8577 | ✗ | } | |
| 8578 | |||
| 8579 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 8580 | |||
| 8581 | ✗ | void SpacePacketFramerComponentBase::logTextOut_out( | |
| 8582 | FwIndexType portNum, | ||
| 8583 | FwEventIdType id, | ||
| 8584 | Fw::Time& timeTag, | ||
| 8585 | const Fw::LogSeverity& severity, | ||
| 8586 | Fw::TextLogString& text | ||
| 8587 | ) const { | ||
| 8588 | ✗ | FW_ASSERT( | |
| 8589 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 8590 | static_cast<FwAssertArgType>(portNum), | ||
| 8591 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 8592 | ); | ||
| 8593 | ✗ | switch (portNum) { | |
| 8594 | ✗ | case 0: | |
| 8595 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 8596 | 0, | ||
| 8597 | id, | ||
| 8598 | timeTag, | ||
| 8599 | severity, | ||
| 8600 | text | ||
| 8601 | ); | ||
| 8602 | ✗ | break; | |
| 8603 | ✗ | default: | |
| 8604 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8605 | ✗ | break; | |
| 8606 | } | ||
| 8607 | ✗ | } | |
| 8608 | |||
| 8609 | #endif | ||
| 8610 | |||
| 8611 | ✗ | void SpacePacketFramerComponentBase::timeCaller_out( | |
| 8612 | FwIndexType portNum, | ||
| 8613 | Fw::Time& time | ||
| 8614 | ) const { | ||
| 8615 | ✗ | FW_ASSERT( | |
| 8616 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 8617 | static_cast<FwAssertArgType>(portNum), | ||
| 8618 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 8619 | ); | ||
| 8620 | ✗ | switch (portNum) { | |
| 8621 | ✗ | case 0: | |
| 8622 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 8623 | 0, | ||
| 8624 | time | ||
| 8625 | ); | ||
| 8626 | ✗ | break; | |
| 8627 | ✗ | default: | |
| 8628 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8629 | ✗ | break; | |
| 8630 | } | ||
| 8631 | ✗ | } | |
| 8632 | |||
| 8633 | } | ||
| 8634 | } | ||
| 8635 | |||
| 8636 | namespace Svc { | ||
| 8637 | namespace Ccsds { | ||
| 8638 | |||
| 8639 | ✗ | bool TcDeframerComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const { | |
| 8640 | ✗ | FW_ASSERT( | |
| 8641 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 8642 | static_cast<FwAssertArgType>(portNum), | ||
| 8643 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 8644 | ); | ||
| 8645 | ✗ | bool result = false; | |
| 8646 | ✗ | switch (portNum) { | |
| 8647 | ✗ | case 0: | |
| 8648 | ✗ | result = true; | |
| 8649 | ✗ | break; | |
| 8650 | ✗ | default: | |
| 8651 | ✗ | break; | |
| 8652 | } | ||
| 8653 | ✗ | return result; | |
| 8654 | } | ||
| 8655 | |||
| 8656 | ✗ | bool TcDeframerComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const { | |
| 8657 | ✗ | FW_ASSERT( | |
| 8658 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 8659 | static_cast<FwAssertArgType>(portNum), | ||
| 8660 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 8661 | ); | ||
| 8662 | ✗ | bool result = false; | |
| 8663 | ✗ | switch (portNum) { | |
| 8664 | ✗ | case 0: | |
| 8665 | ✗ | result = true; | |
| 8666 | ✗ | break; | |
| 8667 | ✗ | default: | |
| 8668 | ✗ | break; | |
| 8669 | } | ||
| 8670 | ✗ | return result; | |
| 8671 | } | ||
| 8672 | |||
| 8673 | ✗ | bool TcDeframerComponentBase::isConnected_errorNotify_OutputPort(FwIndexType portNum) const { | |
| 8674 | ✗ | FW_ASSERT( | |
| 8675 | (0 <= portNum) && (portNum < NUM_ERRORNOTIFY_OUTPUT_PORTS), | ||
| 8676 | static_cast<FwAssertArgType>(portNum), | ||
| 8677 | static_cast<FwAssertArgType>(NUM_ERRORNOTIFY_OUTPUT_PORTS) | ||
| 8678 | ); | ||
| 8679 | ✗ | bool result = false; | |
| 8680 | ✗ | switch (portNum) { | |
| 8681 | default: | ||
| 8682 | ✗ | break; | |
| 8683 | } | ||
| 8684 | ✗ | return result; | |
| 8685 | } | ||
| 8686 | |||
| 8687 | ✗ | bool TcDeframerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 8688 | ✗ | FW_ASSERT( | |
| 8689 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 8690 | static_cast<FwAssertArgType>(portNum), | ||
| 8691 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 8692 | ); | ||
| 8693 | ✗ | bool result = false; | |
| 8694 | ✗ | switch (portNum) { | |
| 8695 | ✗ | case 0: | |
| 8696 | ✗ | result = true; | |
| 8697 | ✗ | break; | |
| 8698 | ✗ | default: | |
| 8699 | ✗ | break; | |
| 8700 | } | ||
| 8701 | ✗ | return result; | |
| 8702 | } | ||
| 8703 | |||
| 8704 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 8705 | |||
| 8706 | ✗ | bool TcDeframerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 8707 | ✗ | FW_ASSERT( | |
| 8708 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 8709 | static_cast<FwAssertArgType>(portNum), | ||
| 8710 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 8711 | ); | ||
| 8712 | ✗ | bool result = false; | |
| 8713 | ✗ | switch (portNum) { | |
| 8714 | ✗ | case 0: | |
| 8715 | ✗ | result = true; | |
| 8716 | ✗ | break; | |
| 8717 | ✗ | default: | |
| 8718 | ✗ | break; | |
| 8719 | } | ||
| 8720 | ✗ | return result; | |
| 8721 | } | ||
| 8722 | |||
| 8723 | #endif | ||
| 8724 | |||
| 8725 | ✗ | bool TcDeframerComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const { | |
| 8726 | ✗ | FW_ASSERT( | |
| 8727 | (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS), | ||
| 8728 | static_cast<FwAssertArgType>(portNum), | ||
| 8729 | static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS) | ||
| 8730 | ); | ||
| 8731 | ✗ | bool result = false; | |
| 8732 | ✗ | switch (portNum) { | |
| 8733 | ✗ | case 0: | |
| 8734 | ✗ | result = true; | |
| 8735 | ✗ | break; | |
| 8736 | ✗ | default: | |
| 8737 | ✗ | break; | |
| 8738 | } | ||
| 8739 | ✗ | return result; | |
| 8740 | } | ||
| 8741 | |||
| 8742 | ✗ | bool TcDeframerComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const { | |
| 8743 | ✗ | FW_ASSERT( | |
| 8744 | (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS), | ||
| 8745 | static_cast<FwAssertArgType>(portNum), | ||
| 8746 | static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS) | ||
| 8747 | ); | ||
| 8748 | ✗ | bool result = false; | |
| 8749 | ✗ | switch (portNum) { | |
| 8750 | ✗ | case 0: | |
| 8751 | ✗ | result = true; | |
| 8752 | ✗ | break; | |
| 8753 | ✗ | default: | |
| 8754 | ✗ | break; | |
| 8755 | } | ||
| 8756 | ✗ | return result; | |
| 8757 | } | ||
| 8758 | |||
| 8759 | ✗ | bool TcDeframerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 8760 | ✗ | FW_ASSERT( | |
| 8761 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 8762 | static_cast<FwAssertArgType>(portNum), | ||
| 8763 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 8764 | ); | ||
| 8765 | ✗ | bool result = false; | |
| 8766 | ✗ | switch (portNum) { | |
| 8767 | ✗ | case 0: | |
| 8768 | ✗ | result = true; | |
| 8769 | ✗ | break; | |
| 8770 | ✗ | default: | |
| 8771 | ✗ | break; | |
| 8772 | } | ||
| 8773 | ✗ | return result; | |
| 8774 | } | ||
| 8775 | |||
| 8776 | ✗ | bool TcDeframerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 8777 | ✗ | FW_ASSERT( | |
| 8778 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 8779 | static_cast<FwAssertArgType>(portNum), | ||
| 8780 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 8781 | ); | ||
| 8782 | ✗ | bool result = false; | |
| 8783 | ✗ | switch (portNum) { | |
| 8784 | ✗ | case 0: | |
| 8785 | ✗ | result = true; | |
| 8786 | ✗ | break; | |
| 8787 | ✗ | default: | |
| 8788 | ✗ | break; | |
| 8789 | } | ||
| 8790 | ✗ | return result; | |
| 8791 | } | ||
| 8792 | |||
| 8793 | 151 | void TcDeframerComponentBase::dataOut_out( | |
| 8794 | FwIndexType portNum, | ||
| 8795 | Fw::Buffer& data, | ||
| 8796 | const ComCfg::FrameContext& context | ||
| 8797 | ) const { | ||
| 8798 | 151 | FW_ASSERT( | |
| 8799 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 8800 | static_cast<FwAssertArgType>(portNum), | ||
| 8801 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 8802 | ); | ||
| 8803 |
1/2✓ Branch 0 taken 151 times.
✗ Branch 1 not taken.
|
151 | switch (portNum) { |
| 8804 | 151 | case 0: | |
| 8805 | 151 | ComCcsds::spacePacketDeframer.dataIn_handlerBase( | |
| 8806 | 0, | ||
| 8807 | data, | ||
| 8808 | context | ||
| 8809 | ); | ||
| 8810 | 151 | break; | |
| 8811 | ✗ | default: | |
| 8812 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8813 | ✗ | break; | |
| 8814 | } | ||
| 8815 | 151 | } | |
| 8816 | |||
| 8817 | 151 | void TcDeframerComponentBase::dataReturnOut_out( | |
| 8818 | FwIndexType portNum, | ||
| 8819 | Fw::Buffer& data, | ||
| 8820 | const ComCfg::FrameContext& context | ||
| 8821 | ) const { | ||
| 8822 | 151 | FW_ASSERT( | |
| 8823 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 8824 | static_cast<FwAssertArgType>(portNum), | ||
| 8825 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 8826 | ); | ||
| 8827 |
1/2✓ Branch 0 taken 151 times.
✗ Branch 1 not taken.
|
151 | switch (portNum) { |
| 8828 | 151 | case 0: | |
| 8829 | 151 | ComCcsds::frameAccumulator.dataReturnIn_handlerBase( | |
| 8830 | 0, | ||
| 8831 | data, | ||
| 8832 | context | ||
| 8833 | ); | ||
| 8834 | 151 | break; | |
| 8835 | ✗ | default: | |
| 8836 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8837 | ✗ | break; | |
| 8838 | } | ||
| 8839 | 151 | } | |
| 8840 | |||
| 8841 | ✗ | void TcDeframerComponentBase::errorNotify_out( | |
| 8842 | FwIndexType portNum, | ||
| 8843 | const Svc::Ccsds::FrameError& errorCode | ||
| 8844 | ) const { | ||
| 8845 | ✗ | FW_ASSERT( | |
| 8846 | (0 <= portNum) && (portNum < NUM_ERRORNOTIFY_OUTPUT_PORTS), | ||
| 8847 | static_cast<FwAssertArgType>(portNum), | ||
| 8848 | static_cast<FwAssertArgType>(NUM_ERRORNOTIFY_OUTPUT_PORTS) | ||
| 8849 | ); | ||
| 8850 | ✗ | switch (portNum) { | |
| 8851 | default: | ||
| 8852 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8853 | ✗ | break; | |
| 8854 | } | ||
| 8855 | ✗ | } | |
| 8856 | |||
| 8857 | ✗ | void TcDeframerComponentBase::logOut_out( | |
| 8858 | FwIndexType portNum, | ||
| 8859 | FwEventIdType id, | ||
| 8860 | Fw::Time& timeTag, | ||
| 8861 | const Fw::LogSeverity& severity, | ||
| 8862 | Fw::LogBuffer& args | ||
| 8863 | ) const { | ||
| 8864 | ✗ | FW_ASSERT( | |
| 8865 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 8866 | static_cast<FwAssertArgType>(portNum), | ||
| 8867 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 8868 | ); | ||
| 8869 | ✗ | switch (portNum) { | |
| 8870 | ✗ | case 0: | |
| 8871 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 8872 | 0, | ||
| 8873 | id, | ||
| 8874 | timeTag, | ||
| 8875 | severity, | ||
| 8876 | args | ||
| 8877 | ); | ||
| 8878 | ✗ | break; | |
| 8879 | ✗ | default: | |
| 8880 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8881 | ✗ | break; | |
| 8882 | } | ||
| 8883 | ✗ | } | |
| 8884 | |||
| 8885 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 8886 | |||
| 8887 | ✗ | void TcDeframerComponentBase::logTextOut_out( | |
| 8888 | FwIndexType portNum, | ||
| 8889 | FwEventIdType id, | ||
| 8890 | Fw::Time& timeTag, | ||
| 8891 | const Fw::LogSeverity& severity, | ||
| 8892 | Fw::TextLogString& text | ||
| 8893 | ) const { | ||
| 8894 | ✗ | FW_ASSERT( | |
| 8895 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 8896 | static_cast<FwAssertArgType>(portNum), | ||
| 8897 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 8898 | ); | ||
| 8899 | ✗ | switch (portNum) { | |
| 8900 | ✗ | case 0: | |
| 8901 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 8902 | 0, | ||
| 8903 | id, | ||
| 8904 | timeTag, | ||
| 8905 | severity, | ||
| 8906 | text | ||
| 8907 | ); | ||
| 8908 | ✗ | break; | |
| 8909 | ✗ | default: | |
| 8910 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8911 | ✗ | break; | |
| 8912 | } | ||
| 8913 | ✗ | } | |
| 8914 | |||
| 8915 | #endif | ||
| 8916 | |||
| 8917 | ✗ | void TcDeframerComponentBase::timeCaller_out( | |
| 8918 | FwIndexType portNum, | ||
| 8919 | Fw::Time& time | ||
| 8920 | ) const { | ||
| 8921 | ✗ | FW_ASSERT( | |
| 8922 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 8923 | static_cast<FwAssertArgType>(portNum), | ||
| 8924 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 8925 | ); | ||
| 8926 | ✗ | switch (portNum) { | |
| 8927 | ✗ | case 0: | |
| 8928 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 8929 | 0, | ||
| 8930 | time | ||
| 8931 | ); | ||
| 8932 | ✗ | break; | |
| 8933 | ✗ | default: | |
| 8934 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8935 | ✗ | break; | |
| 8936 | } | ||
| 8937 | ✗ | } | |
| 8938 | |||
| 8939 | } | ||
| 8940 | } | ||
| 8941 | |||
| 8942 | namespace Svc { | ||
| 8943 | namespace Ccsds { | ||
| 8944 | |||
| 8945 | 232 | bool TmFramerComponentBase::isConnected_comStatusOut_OutputPort(FwIndexType portNum) const { | |
| 8946 | 232 | FW_ASSERT( | |
| 8947 | (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS), | ||
| 8948 | static_cast<FwAssertArgType>(portNum), | ||
| 8949 | static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS) | ||
| 8950 | ); | ||
| 8951 | 232 | bool result = false; | |
| 8952 |
1/2✓ Branch 0 taken 232 times.
✗ Branch 1 not taken.
|
232 | switch (portNum) { |
| 8953 | 232 | case 0: | |
| 8954 | 232 | result = true; | |
| 8955 | 232 | break; | |
| 8956 | ✗ | default: | |
| 8957 | ✗ | break; | |
| 8958 | } | ||
| 8959 | 232 | return result; | |
| 8960 | } | ||
| 8961 | |||
| 8962 | ✗ | bool TmFramerComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const { | |
| 8963 | ✗ | FW_ASSERT( | |
| 8964 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 8965 | static_cast<FwAssertArgType>(portNum), | ||
| 8966 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 8967 | ); | ||
| 8968 | ✗ | bool result = false; | |
| 8969 | ✗ | switch (portNum) { | |
| 8970 | ✗ | case 0: | |
| 8971 | ✗ | result = true; | |
| 8972 | ✗ | break; | |
| 8973 | ✗ | default: | |
| 8974 | ✗ | break; | |
| 8975 | } | ||
| 8976 | ✗ | return result; | |
| 8977 | } | ||
| 8978 | |||
| 8979 | ✗ | bool TmFramerComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const { | |
| 8980 | ✗ | FW_ASSERT( | |
| 8981 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 8982 | static_cast<FwAssertArgType>(portNum), | ||
| 8983 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 8984 | ); | ||
| 8985 | ✗ | bool result = false; | |
| 8986 | ✗ | switch (portNum) { | |
| 8987 | ✗ | case 0: | |
| 8988 | ✗ | result = true; | |
| 8989 | ✗ | break; | |
| 8990 | ✗ | default: | |
| 8991 | ✗ | break; | |
| 8992 | } | ||
| 8993 | ✗ | return result; | |
| 8994 | } | ||
| 8995 | |||
| 8996 | ✗ | bool TmFramerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 8997 | ✗ | FW_ASSERT( | |
| 8998 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 8999 | static_cast<FwAssertArgType>(portNum), | ||
| 9000 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 9001 | ); | ||
| 9002 | ✗ | bool result = false; | |
| 9003 | ✗ | switch (portNum) { | |
| 9004 | ✗ | case 0: | |
| 9005 | ✗ | result = true; | |
| 9006 | ✗ | break; | |
| 9007 | ✗ | default: | |
| 9008 | ✗ | break; | |
| 9009 | } | ||
| 9010 | ✗ | return result; | |
| 9011 | } | ||
| 9012 | |||
| 9013 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 9014 | |||
| 9015 | ✗ | bool TmFramerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 9016 | ✗ | FW_ASSERT( | |
| 9017 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 9018 | static_cast<FwAssertArgType>(portNum), | ||
| 9019 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 9020 | ); | ||
| 9021 | ✗ | bool result = false; | |
| 9022 | ✗ | switch (portNum) { | |
| 9023 | ✗ | case 0: | |
| 9024 | ✗ | result = true; | |
| 9025 | ✗ | break; | |
| 9026 | ✗ | default: | |
| 9027 | ✗ | break; | |
| 9028 | } | ||
| 9029 | ✗ | return result; | |
| 9030 | } | ||
| 9031 | |||
| 9032 | #endif | ||
| 9033 | |||
| 9034 | ✗ | bool TmFramerComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const { | |
| 9035 | ✗ | FW_ASSERT( | |
| 9036 | (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS), | ||
| 9037 | static_cast<FwAssertArgType>(portNum), | ||
| 9038 | static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS) | ||
| 9039 | ); | ||
| 9040 | ✗ | bool result = false; | |
| 9041 | ✗ | switch (portNum) { | |
| 9042 | ✗ | case 0: | |
| 9043 | ✗ | result = true; | |
| 9044 | ✗ | break; | |
| 9045 | ✗ | default: | |
| 9046 | ✗ | break; | |
| 9047 | } | ||
| 9048 | ✗ | return result; | |
| 9049 | } | ||
| 9050 | |||
| 9051 | ✗ | bool TmFramerComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const { | |
| 9052 | ✗ | FW_ASSERT( | |
| 9053 | (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS), | ||
| 9054 | static_cast<FwAssertArgType>(portNum), | ||
| 9055 | static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS) | ||
| 9056 | ); | ||
| 9057 | ✗ | bool result = false; | |
| 9058 | ✗ | switch (portNum) { | |
| 9059 | ✗ | case 0: | |
| 9060 | ✗ | result = true; | |
| 9061 | ✗ | break; | |
| 9062 | ✗ | default: | |
| 9063 | ✗ | break; | |
| 9064 | } | ||
| 9065 | ✗ | return result; | |
| 9066 | } | ||
| 9067 | |||
| 9068 | ✗ | bool TmFramerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 9069 | ✗ | FW_ASSERT( | |
| 9070 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 9071 | static_cast<FwAssertArgType>(portNum), | ||
| 9072 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 9073 | ); | ||
| 9074 | ✗ | bool result = false; | |
| 9075 | ✗ | switch (portNum) { | |
| 9076 | ✗ | case 0: | |
| 9077 | ✗ | result = true; | |
| 9078 | ✗ | break; | |
| 9079 | ✗ | default: | |
| 9080 | ✗ | break; | |
| 9081 | } | ||
| 9082 | ✗ | return result; | |
| 9083 | } | ||
| 9084 | |||
| 9085 | ✗ | bool TmFramerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 9086 | ✗ | FW_ASSERT( | |
| 9087 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 9088 | static_cast<FwAssertArgType>(portNum), | ||
| 9089 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 9090 | ); | ||
| 9091 | ✗ | bool result = false; | |
| 9092 | ✗ | switch (portNum) { | |
| 9093 | ✗ | case 0: | |
| 9094 | ✗ | result = true; | |
| 9095 | ✗ | break; | |
| 9096 | ✗ | default: | |
| 9097 | ✗ | break; | |
| 9098 | } | ||
| 9099 | ✗ | return result; | |
| 9100 | } | ||
| 9101 | |||
| 9102 | 232 | void TmFramerComponentBase::comStatusOut_out( | |
| 9103 | FwIndexType portNum, | ||
| 9104 | Fw::Success& condition | ||
| 9105 | ) const { | ||
| 9106 | 232 | FW_ASSERT( | |
| 9107 | (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS), | ||
| 9108 | static_cast<FwAssertArgType>(portNum), | ||
| 9109 | static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS) | ||
| 9110 | ); | ||
| 9111 |
1/2✓ Branch 0 taken 232 times.
✗ Branch 1 not taken.
|
232 | switch (portNum) { |
| 9112 | 232 | case 0: | |
| 9113 | 232 | ComCcsds::aggregator.comStatusIn_handlerBase( | |
| 9114 | 0, | ||
| 9115 | condition | ||
| 9116 | ); | ||
| 9117 | 232 | break; | |
| 9118 | ✗ | default: | |
| 9119 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9120 | ✗ | break; | |
| 9121 | } | ||
| 9122 | 232 | } | |
| 9123 | |||
| 9124 | 231 | void TmFramerComponentBase::dataOut_out( | |
| 9125 | FwIndexType portNum, | ||
| 9126 | Fw::Buffer& data, | ||
| 9127 | const ComCfg::FrameContext& context | ||
| 9128 | ) const { | ||
| 9129 | 231 | FW_ASSERT( | |
| 9130 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 9131 | static_cast<FwAssertArgType>(portNum), | ||
| 9132 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 9133 | ); | ||
| 9134 |
1/2✓ Branch 0 taken 231 times.
✗ Branch 1 not taken.
|
231 | switch (portNum) { |
| 9135 | 231 | case 0: | |
| 9136 | 231 | ComCcsds::comStub.dataIn_handlerBase( | |
| 9137 | 0, | ||
| 9138 | data, | ||
| 9139 | context | ||
| 9140 | ); | ||
| 9141 | 231 | break; | |
| 9142 | ✗ | default: | |
| 9143 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9144 | ✗ | break; | |
| 9145 | } | ||
| 9146 | 231 | } | |
| 9147 | |||
| 9148 | 231 | void TmFramerComponentBase::dataReturnOut_out( | |
| 9149 | FwIndexType portNum, | ||
| 9150 | Fw::Buffer& data, | ||
| 9151 | const ComCfg::FrameContext& context | ||
| 9152 | ) const { | ||
| 9153 | 231 | FW_ASSERT( | |
| 9154 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 9155 | static_cast<FwAssertArgType>(portNum), | ||
| 9156 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 9157 | ); | ||
| 9158 |
1/2✓ Branch 0 taken 231 times.
✗ Branch 1 not taken.
|
231 | switch (portNum) { |
| 9159 | 231 | case 0: | |
| 9160 | 231 | ComCcsds::aggregator.dataReturnIn_handlerBase( | |
| 9161 | 0, | ||
| 9162 | data, | ||
| 9163 | context | ||
| 9164 | ); | ||
| 9165 | 231 | break; | |
| 9166 | ✗ | default: | |
| 9167 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9168 | ✗ | break; | |
| 9169 | } | ||
| 9170 | 231 | } | |
| 9171 | |||
| 9172 | ✗ | void TmFramerComponentBase::timeCaller_out( | |
| 9173 | FwIndexType portNum, | ||
| 9174 | Fw::Time& time | ||
| 9175 | ) const { | ||
| 9176 | ✗ | FW_ASSERT( | |
| 9177 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 9178 | static_cast<FwAssertArgType>(portNum), | ||
| 9179 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 9180 | ); | ||
| 9181 | ✗ | switch (portNum) { | |
| 9182 | ✗ | case 0: | |
| 9183 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 9184 | 0, | ||
| 9185 | time | ||
| 9186 | ); | ||
| 9187 | ✗ | break; | |
| 9188 | ✗ | default: | |
| 9189 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9190 | ✗ | break; | |
| 9191 | } | ||
| 9192 | ✗ | } | |
| 9193 | |||
| 9194 | } | ||
| 9195 | } | ||
| 9196 | |||
| 9197 | namespace Svc { | ||
| 9198 | |||
| 9199 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 9200 | |||
| 9201 | 9 | bool CmdSequencerComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 9202 | 9 | FW_ASSERT( | |
| 9203 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 9204 | static_cast<FwAssertArgType>(portNum), | ||
| 9205 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 9206 | ); | ||
| 9207 | 9 | bool result = false; | |
| 9208 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | switch (portNum) { |
| 9209 | 9 | case 0: | |
| 9210 | 9 | result = true; | |
| 9211 | 9 | break; | |
| 9212 | ✗ | default: | |
| 9213 | ✗ | break; | |
| 9214 | } | ||
| 9215 | 9 | return result; | |
| 9216 | } | ||
| 9217 | |||
| 9218 | #endif | ||
| 9219 | |||
| 9220 | 1 | bool CmdSequencerComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const { | |
| 9221 | 1 | FW_ASSERT( | |
| 9222 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 9223 | static_cast<FwAssertArgType>(portNum), | ||
| 9224 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 9225 | ); | ||
| 9226 | 1 | bool result = false; | |
| 9227 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 9228 | 1 | case 0: | |
| 9229 | 1 | result = true; | |
| 9230 | 1 | break; | |
| 9231 | ✗ | default: | |
| 9232 | ✗ | break; | |
| 9233 | } | ||
| 9234 | 1 | return result; | |
| 9235 | } | ||
| 9236 | |||
| 9237 | 2 | bool CmdSequencerComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const { | |
| 9238 | 2 | FW_ASSERT( | |
| 9239 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 9240 | static_cast<FwAssertArgType>(portNum), | ||
| 9241 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 9242 | ); | ||
| 9243 | 2 | bool result = false; | |
| 9244 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 9245 | 2 | case 0: | |
| 9246 | 2 | result = true; | |
| 9247 | 2 | break; | |
| 9248 | ✗ | default: | |
| 9249 | ✗ | break; | |
| 9250 | } | ||
| 9251 | 2 | return result; | |
| 9252 | } | ||
| 9253 | |||
| 9254 | ✗ | bool CmdSequencerComponentBase::isConnected_comCmdOut_OutputPort(FwIndexType portNum) const { | |
| 9255 | ✗ | FW_ASSERT( | |
| 9256 | (0 <= portNum) && (portNum < NUM_COMCMDOUT_OUTPUT_PORTS), | ||
| 9257 | static_cast<FwAssertArgType>(portNum), | ||
| 9258 | static_cast<FwAssertArgType>(NUM_COMCMDOUT_OUTPUT_PORTS) | ||
| 9259 | ); | ||
| 9260 | ✗ | bool result = false; | |
| 9261 | ✗ | switch (portNum) { | |
| 9262 | ✗ | case 0: | |
| 9263 | ✗ | result = true; | |
| 9264 | ✗ | break; | |
| 9265 | ✗ | default: | |
| 9266 | ✗ | break; | |
| 9267 | } | ||
| 9268 | ✗ | return result; | |
| 9269 | } | ||
| 9270 | |||
| 9271 | 9 | bool CmdSequencerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 9272 | 9 | FW_ASSERT( | |
| 9273 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 9274 | static_cast<FwAssertArgType>(portNum), | ||
| 9275 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 9276 | ); | ||
| 9277 | 9 | bool result = false; | |
| 9278 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | switch (portNum) { |
| 9279 | 9 | case 0: | |
| 9280 | 9 | result = true; | |
| 9281 | 9 | break; | |
| 9282 | ✗ | default: | |
| 9283 | ✗ | break; | |
| 9284 | } | ||
| 9285 | 9 | return result; | |
| 9286 | } | ||
| 9287 | |||
| 9288 | ✗ | bool CmdSequencerComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const { | |
| 9289 | ✗ | FW_ASSERT( | |
| 9290 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 9291 | static_cast<FwAssertArgType>(portNum), | ||
| 9292 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 9293 | ); | ||
| 9294 | ✗ | bool result = false; | |
| 9295 | ✗ | switch (portNum) { | |
| 9296 | ✗ | case 0: | |
| 9297 | ✗ | result = true; | |
| 9298 | ✗ | break; | |
| 9299 | ✗ | default: | |
| 9300 | ✗ | break; | |
| 9301 | } | ||
| 9302 | ✗ | return result; | |
| 9303 | } | ||
| 9304 | |||
| 9305 | 2 | bool CmdSequencerComponentBase::isConnected_seqDone_OutputPort(FwIndexType portNum) const { | |
| 9306 | 2 | FW_ASSERT( | |
| 9307 | (0 <= portNum) && (portNum < NUM_SEQDONE_OUTPUT_PORTS), | ||
| 9308 | static_cast<FwAssertArgType>(portNum), | ||
| 9309 | static_cast<FwAssertArgType>(NUM_SEQDONE_OUTPUT_PORTS) | ||
| 9310 | ); | ||
| 9311 | 2 | bool result = false; | |
| 9312 | 2 | switch (portNum) { | |
| 9313 | default: | ||
| 9314 | 2 | break; | |
| 9315 | } | ||
| 9316 | 2 | return result; | |
| 9317 | } | ||
| 9318 | |||
| 9319 | 2 | bool CmdSequencerComponentBase::isConnected_seqStartOut_OutputPort(FwIndexType portNum) const { | |
| 9320 | 2 | FW_ASSERT( | |
| 9321 | (0 <= portNum) && (portNum < NUM_SEQSTARTOUT_OUTPUT_PORTS), | ||
| 9322 | static_cast<FwAssertArgType>(portNum), | ||
| 9323 | static_cast<FwAssertArgType>(NUM_SEQSTARTOUT_OUTPUT_PORTS) | ||
| 9324 | ); | ||
| 9325 | 2 | bool result = false; | |
| 9326 | 2 | switch (portNum) { | |
| 9327 | default: | ||
| 9328 | 2 | break; | |
| 9329 | } | ||
| 9330 | 2 | return result; | |
| 9331 | } | ||
| 9332 | |||
| 9333 | 274 | bool CmdSequencerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 9334 | 274 | FW_ASSERT( | |
| 9335 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 9336 | static_cast<FwAssertArgType>(portNum), | ||
| 9337 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 9338 | ); | ||
| 9339 | 274 | bool result = false; | |
| 9340 |
1/2✓ Branch 0 taken 274 times.
✗ Branch 1 not taken.
|
274 | switch (portNum) { |
| 9341 | 274 | case 0: | |
| 9342 | 274 | result = true; | |
| 9343 | 274 | break; | |
| 9344 | ✗ | default: | |
| 9345 | ✗ | break; | |
| 9346 | } | ||
| 9347 | 274 | return result; | |
| 9348 | } | ||
| 9349 | |||
| 9350 | 26 | bool CmdSequencerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 9351 | 26 | FW_ASSERT( | |
| 9352 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 9353 | static_cast<FwAssertArgType>(portNum), | ||
| 9354 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 9355 | ); | ||
| 9356 | 26 | bool result = false; | |
| 9357 |
1/2✓ Branch 0 taken 26 times.
✗ Branch 1 not taken.
|
26 | switch (portNum) { |
| 9358 | 26 | case 0: | |
| 9359 | 26 | result = true; | |
| 9360 | 26 | break; | |
| 9361 | ✗ | default: | |
| 9362 | ✗ | break; | |
| 9363 | } | ||
| 9364 | 26 | return result; | |
| 9365 | } | ||
| 9366 | |||
| 9367 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 9368 | |||
| 9369 | 9 | void CmdSequencerComponentBase::LogText_out( | |
| 9370 | FwIndexType portNum, | ||
| 9371 | FwEventIdType id, | ||
| 9372 | Fw::Time& timeTag, | ||
| 9373 | const Fw::LogSeverity& severity, | ||
| 9374 | Fw::TextLogString& text | ||
| 9375 | ) const { | ||
| 9376 | 9 | FW_ASSERT( | |
| 9377 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 9378 | static_cast<FwAssertArgType>(portNum), | ||
| 9379 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 9380 | ); | ||
| 9381 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | switch (portNum) { |
| 9382 | 9 | case 0: | |
| 9383 | 9 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 9384 | 0, | ||
| 9385 | id, | ||
| 9386 | timeTag, | ||
| 9387 | severity, | ||
| 9388 | text | ||
| 9389 | ); | ||
| 9390 | 9 | break; | |
| 9391 | ✗ | default: | |
| 9392 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9393 | ✗ | break; | |
| 9394 | } | ||
| 9395 | 9 | } | |
| 9396 | |||
| 9397 | #endif | ||
| 9398 | |||
| 9399 | 8 | void CmdSequencerComponentBase::cmdRegOut_out( | |
| 9400 | FwIndexType portNum, | ||
| 9401 | FwOpcodeType opCode | ||
| 9402 | ) const { | ||
| 9403 | 8 | FW_ASSERT( | |
| 9404 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 9405 | static_cast<FwAssertArgType>(portNum), | ||
| 9406 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 9407 | ); | ||
| 9408 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | switch (portNum) { |
| 9409 | 8 | case 0: | |
| 9410 | 8 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 9411 | 17, | ||
| 9412 | opCode | ||
| 9413 | ); | ||
| 9414 | 8 | break; | |
| 9415 | ✗ | default: | |
| 9416 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9417 | ✗ | break; | |
| 9418 | } | ||
| 9419 | 8 | } | |
| 9420 | |||
| 9421 | 2 | void CmdSequencerComponentBase::cmdResponseOut_out( | |
| 9422 | FwIndexType portNum, | ||
| 9423 | FwOpcodeType opCode, | ||
| 9424 | U32 cmdSeq, | ||
| 9425 | const Fw::CmdResponse& response | ||
| 9426 | ) const { | ||
| 9427 | 2 | FW_ASSERT( | |
| 9428 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 9429 | static_cast<FwAssertArgType>(portNum), | ||
| 9430 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 9431 | ); | ||
| 9432 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 9433 | 2 | case 0: | |
| 9434 | 2 | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 9435 | 0, | ||
| 9436 | opCode, | ||
| 9437 | cmdSeq, | ||
| 9438 | response | ||
| 9439 | ); | ||
| 9440 | 2 | break; | |
| 9441 | ✗ | default: | |
| 9442 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9443 | ✗ | break; | |
| 9444 | } | ||
| 9445 | 2 | } | |
| 9446 | |||
| 9447 | 5 | void CmdSequencerComponentBase::comCmdOut_out( | |
| 9448 | FwIndexType portNum, | ||
| 9449 | Fw::ComBuffer& data, | ||
| 9450 | U32 context | ||
| 9451 | ) const { | ||
| 9452 | 5 | FW_ASSERT( | |
| 9453 | (0 <= portNum) && (portNum < NUM_COMCMDOUT_OUTPUT_PORTS), | ||
| 9454 | static_cast<FwAssertArgType>(portNum), | ||
| 9455 | static_cast<FwAssertArgType>(NUM_COMCMDOUT_OUTPUT_PORTS) | ||
| 9456 | ); | ||
| 9457 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 9458 | 5 | case 0: | |
| 9459 | 5 | CdhCore::cmdDisp.seqCmdBuff_handlerBase( | |
| 9460 | 1, | ||
| 9461 | data, | ||
| 9462 | context | ||
| 9463 | ); | ||
| 9464 | 5 | break; | |
| 9465 | ✗ | default: | |
| 9466 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9467 | ✗ | break; | |
| 9468 | } | ||
| 9469 | 5 | } | |
| 9470 | |||
| 9471 | 9 | void CmdSequencerComponentBase::logOut_out( | |
| 9472 | FwIndexType portNum, | ||
| 9473 | FwEventIdType id, | ||
| 9474 | Fw::Time& timeTag, | ||
| 9475 | const Fw::LogSeverity& severity, | ||
| 9476 | Fw::LogBuffer& args | ||
| 9477 | ) const { | ||
| 9478 | 9 | FW_ASSERT( | |
| 9479 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 9480 | static_cast<FwAssertArgType>(portNum), | ||
| 9481 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 9482 | ); | ||
| 9483 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | switch (portNum) { |
| 9484 | 9 | case 0: | |
| 9485 | 9 | CdhCore::events.LogRecv_handlerBase( | |
| 9486 | 0, | ||
| 9487 | id, | ||
| 9488 | timeTag, | ||
| 9489 | severity, | ||
| 9490 | args | ||
| 9491 | ); | ||
| 9492 | 9 | break; | |
| 9493 | ✗ | default: | |
| 9494 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9495 | ✗ | break; | |
| 9496 | } | ||
| 9497 | 9 | } | |
| 9498 | |||
| 9499 | 62 | void CmdSequencerComponentBase::pingOut_out( | |
| 9500 | FwIndexType portNum, | ||
| 9501 | U32 key | ||
| 9502 | ) const { | ||
| 9503 | 62 | FW_ASSERT( | |
| 9504 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 9505 | static_cast<FwAssertArgType>(portNum), | ||
| 9506 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 9507 | ); | ||
| 9508 |
1/2✓ Branch 0 taken 62 times.
✗ Branch 1 not taken.
|
62 | switch (portNum) { |
| 9509 | 62 | case 0: | |
| 9510 | 62 | CdhCore::health.PingReturn_handlerBase( | |
| 9511 | 10, | ||
| 9512 | key | ||
| 9513 | ); | ||
| 9514 | 62 | break; | |
| 9515 | ✗ | default: | |
| 9516 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9517 | ✗ | break; | |
| 9518 | } | ||
| 9519 | 62 | } | |
| 9520 | |||
| 9521 | ✗ | void CmdSequencerComponentBase::seqDone_out( | |
| 9522 | FwIndexType portNum, | ||
| 9523 | FwOpcodeType opCode, | ||
| 9524 | U32 cmdSeq, | ||
| 9525 | const Fw::CmdResponse& response | ||
| 9526 | ) const { | ||
| 9527 | ✗ | FW_ASSERT( | |
| 9528 | (0 <= portNum) && (portNum < NUM_SEQDONE_OUTPUT_PORTS), | ||
| 9529 | static_cast<FwAssertArgType>(portNum), | ||
| 9530 | static_cast<FwAssertArgType>(NUM_SEQDONE_OUTPUT_PORTS) | ||
| 9531 | ); | ||
| 9532 | ✗ | switch (portNum) { | |
| 9533 | default: | ||
| 9534 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9535 | ✗ | break; | |
| 9536 | } | ||
| 9537 | ✗ | } | |
| 9538 | |||
| 9539 | ✗ | void CmdSequencerComponentBase::seqStartOut_out( | |
| 9540 | FwIndexType portNum, | ||
| 9541 | const Fw::StringBase& filename, | ||
| 9542 | const Svc::SeqArgs& args | ||
| 9543 | ) const { | ||
| 9544 | ✗ | FW_ASSERT( | |
| 9545 | (0 <= portNum) && (portNum < NUM_SEQSTARTOUT_OUTPUT_PORTS), | ||
| 9546 | static_cast<FwAssertArgType>(portNum), | ||
| 9547 | static_cast<FwAssertArgType>(NUM_SEQSTARTOUT_OUTPUT_PORTS) | ||
| 9548 | ); | ||
| 9549 | ✗ | switch (portNum) { | |
| 9550 | default: | ||
| 9551 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9552 | ✗ | break; | |
| 9553 | } | ||
| 9554 | ✗ | } | |
| 9555 | |||
| 9556 | 274 | void CmdSequencerComponentBase::timeCaller_out( | |
| 9557 | FwIndexType portNum, | ||
| 9558 | Fw::Time& time | ||
| 9559 | ) const { | ||
| 9560 | 274 | FW_ASSERT( | |
| 9561 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 9562 | static_cast<FwAssertArgType>(portNum), | ||
| 9563 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 9564 | ); | ||
| 9565 |
1/2✓ Branch 0 taken 274 times.
✗ Branch 1 not taken.
|
274 | switch (portNum) { |
| 9566 | 274 | case 0: | |
| 9567 | 274 | Ref::posixTime.timeGetPort_handlerBase( | |
| 9568 | 0, | ||
| 9569 | time | ||
| 9570 | ); | ||
| 9571 | 274 | break; | |
| 9572 | ✗ | default: | |
| 9573 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9574 | ✗ | break; | |
| 9575 | } | ||
| 9576 | 274 | } | |
| 9577 | |||
| 9578 | 13 | void CmdSequencerComponentBase::tlmOut_out( | |
| 9579 | FwIndexType portNum, | ||
| 9580 | FwChanIdType id, | ||
| 9581 | Fw::Time& timeTag, | ||
| 9582 | Fw::TlmBuffer& val | ||
| 9583 | ) const { | ||
| 9584 | 13 | FW_ASSERT( | |
| 9585 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 9586 | static_cast<FwAssertArgType>(portNum), | ||
| 9587 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 9588 | ); | ||
| 9589 |
1/2✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
|
13 | switch (portNum) { |
| 9590 | 13 | case 0: | |
| 9591 | 13 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 9592 | 0, | ||
| 9593 | id, | ||
| 9594 | timeTag, | ||
| 9595 | val | ||
| 9596 | ); | ||
| 9597 | 13 | break; | |
| 9598 | ✗ | default: | |
| 9599 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9600 | ✗ | break; | |
| 9601 | } | ||
| 9602 | 13 | } | |
| 9603 | |||
| 9604 | } | ||
| 9605 | |||
| 9606 | namespace Svc { | ||
| 9607 | |||
| 9608 | ✗ | bool ComAggregatorComponentBase::isConnected_comStatusOut_OutputPort(FwIndexType portNum) const { | |
| 9609 | ✗ | FW_ASSERT( | |
| 9610 | (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS), | ||
| 9611 | static_cast<FwAssertArgType>(portNum), | ||
| 9612 | static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS) | ||
| 9613 | ); | ||
| 9614 | ✗ | bool result = false; | |
| 9615 | ✗ | switch (portNum) { | |
| 9616 | ✗ | case 0: | |
| 9617 | ✗ | result = true; | |
| 9618 | ✗ | break; | |
| 9619 | ✗ | default: | |
| 9620 | ✗ | break; | |
| 9621 | } | ||
| 9622 | ✗ | return result; | |
| 9623 | } | ||
| 9624 | |||
| 9625 | ✗ | bool ComAggregatorComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const { | |
| 9626 | ✗ | FW_ASSERT( | |
| 9627 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 9628 | static_cast<FwAssertArgType>(portNum), | ||
| 9629 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 9630 | ); | ||
| 9631 | ✗ | bool result = false; | |
| 9632 | ✗ | switch (portNum) { | |
| 9633 | ✗ | case 0: | |
| 9634 | ✗ | result = true; | |
| 9635 | ✗ | break; | |
| 9636 | ✗ | default: | |
| 9637 | ✗ | break; | |
| 9638 | } | ||
| 9639 | ✗ | return result; | |
| 9640 | } | ||
| 9641 | |||
| 9642 | ✗ | bool ComAggregatorComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const { | |
| 9643 | ✗ | FW_ASSERT( | |
| 9644 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 9645 | static_cast<FwAssertArgType>(portNum), | ||
| 9646 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 9647 | ); | ||
| 9648 | ✗ | bool result = false; | |
| 9649 | ✗ | switch (portNum) { | |
| 9650 | ✗ | case 0: | |
| 9651 | ✗ | result = true; | |
| 9652 | ✗ | break; | |
| 9653 | ✗ | default: | |
| 9654 | ✗ | break; | |
| 9655 | } | ||
| 9656 | ✗ | return result; | |
| 9657 | } | ||
| 9658 | |||
| 9659 | 706 | void ComAggregatorComponentBase::comStatusOut_out( | |
| 9660 | FwIndexType portNum, | ||
| 9661 | Fw::Success& condition | ||
| 9662 | ) const { | ||
| 9663 | 706 | FW_ASSERT( | |
| 9664 | (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS), | ||
| 9665 | static_cast<FwAssertArgType>(portNum), | ||
| 9666 | static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS) | ||
| 9667 | ); | ||
| 9668 |
1/2✓ Branch 0 taken 706 times.
✗ Branch 1 not taken.
|
706 | switch (portNum) { |
| 9669 | 706 | case 0: | |
| 9670 | 706 | ComCcsds::spacePacketFramer.comStatusIn_handlerBase( | |
| 9671 | 0, | ||
| 9672 | condition | ||
| 9673 | ); | ||
| 9674 | 706 | break; | |
| 9675 | ✗ | default: | |
| 9676 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9677 | ✗ | break; | |
| 9678 | } | ||
| 9679 | 706 | } | |
| 9680 | |||
| 9681 | 231 | void ComAggregatorComponentBase::dataOut_out( | |
| 9682 | FwIndexType portNum, | ||
| 9683 | Fw::Buffer& data, | ||
| 9684 | const ComCfg::FrameContext& context | ||
| 9685 | ) const { | ||
| 9686 | 231 | FW_ASSERT( | |
| 9687 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 9688 | static_cast<FwAssertArgType>(portNum), | ||
| 9689 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 9690 | ); | ||
| 9691 |
1/2✓ Branch 0 taken 231 times.
✗ Branch 1 not taken.
|
231 | switch (portNum) { |
| 9692 | 231 | case 0: | |
| 9693 | 231 | ComCcsds::framer.dataIn_handlerBase( | |
| 9694 | 0, | ||
| 9695 | data, | ||
| 9696 | context | ||
| 9697 | ); | ||
| 9698 | 231 | break; | |
| 9699 | ✗ | default: | |
| 9700 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9701 | ✗ | break; | |
| 9702 | } | ||
| 9703 | 231 | } | |
| 9704 | |||
| 9705 | 705 | void ComAggregatorComponentBase::dataReturnOut_out( | |
| 9706 | FwIndexType portNum, | ||
| 9707 | Fw::Buffer& data, | ||
| 9708 | const ComCfg::FrameContext& context | ||
| 9709 | ) const { | ||
| 9710 | 705 | FW_ASSERT( | |
| 9711 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 9712 | static_cast<FwAssertArgType>(portNum), | ||
| 9713 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 9714 | ); | ||
| 9715 |
1/2✓ Branch 0 taken 705 times.
✗ Branch 1 not taken.
|
705 | switch (portNum) { |
| 9716 | 705 | case 0: | |
| 9717 | 705 | ComCcsds::spacePacketFramer.dataReturnIn_handlerBase( | |
| 9718 | 0, | ||
| 9719 | data, | ||
| 9720 | context | ||
| 9721 | ); | ||
| 9722 | 705 | break; | |
| 9723 | ✗ | default: | |
| 9724 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9725 | ✗ | break; | |
| 9726 | } | ||
| 9727 | 705 | } | |
| 9728 | |||
| 9729 | } | ||
| 9730 | |||
| 9731 | namespace Svc { | ||
| 9732 | |||
| 9733 | 1 | bool ComQueueComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const { | |
| 9734 | 1 | FW_ASSERT( | |
| 9735 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 9736 | static_cast<FwAssertArgType>(portNum), | ||
| 9737 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 9738 | ); | ||
| 9739 | 1 | bool result = false; | |
| 9740 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 9741 | 1 | case 0: | |
| 9742 | 1 | result = true; | |
| 9743 | 1 | break; | |
| 9744 | ✗ | default: | |
| 9745 | ✗ | break; | |
| 9746 | } | ||
| 9747 | 1 | return result; | |
| 9748 | } | ||
| 9749 | |||
| 9750 | ✗ | bool ComQueueComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const { | |
| 9751 | ✗ | FW_ASSERT( | |
| 9752 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 9753 | static_cast<FwAssertArgType>(portNum), | ||
| 9754 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 9755 | ); | ||
| 9756 | ✗ | bool result = false; | |
| 9757 | ✗ | switch (portNum) { | |
| 9758 | ✗ | case 0: | |
| 9759 | ✗ | result = true; | |
| 9760 | ✗ | break; | |
| 9761 | ✗ | default: | |
| 9762 | ✗ | break; | |
| 9763 | } | ||
| 9764 | ✗ | return result; | |
| 9765 | } | ||
| 9766 | |||
| 9767 | ✗ | bool ComQueueComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 9768 | ✗ | FW_ASSERT( | |
| 9769 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 9770 | static_cast<FwAssertArgType>(portNum), | ||
| 9771 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 9772 | ); | ||
| 9773 | ✗ | bool result = false; | |
| 9774 | ✗ | switch (portNum) { | |
| 9775 | ✗ | case 0: | |
| 9776 | ✗ | result = true; | |
| 9777 | ✗ | break; | |
| 9778 | ✗ | default: | |
| 9779 | ✗ | break; | |
| 9780 | } | ||
| 9781 | ✗ | return result; | |
| 9782 | } | ||
| 9783 | |||
| 9784 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 9785 | |||
| 9786 | ✗ | bool ComQueueComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 9787 | ✗ | FW_ASSERT( | |
| 9788 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 9789 | static_cast<FwAssertArgType>(portNum), | ||
| 9790 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 9791 | ); | ||
| 9792 | ✗ | bool result = false; | |
| 9793 | ✗ | switch (portNum) { | |
| 9794 | ✗ | case 0: | |
| 9795 | ✗ | result = true; | |
| 9796 | ✗ | break; | |
| 9797 | ✗ | default: | |
| 9798 | ✗ | break; | |
| 9799 | } | ||
| 9800 | ✗ | return result; | |
| 9801 | } | ||
| 9802 | |||
| 9803 | #endif | ||
| 9804 | |||
| 9805 | 492 | bool ComQueueComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 9806 | 492 | FW_ASSERT( | |
| 9807 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 9808 | static_cast<FwAssertArgType>(portNum), | ||
| 9809 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 9810 | ); | ||
| 9811 | 492 | bool result = false; | |
| 9812 |
1/2✓ Branch 0 taken 492 times.
✗ Branch 1 not taken.
|
492 | switch (portNum) { |
| 9813 | 492 | case 0: | |
| 9814 | 492 | result = true; | |
| 9815 | 492 | break; | |
| 9816 | ✗ | default: | |
| 9817 | ✗ | break; | |
| 9818 | } | ||
| 9819 | 492 | return result; | |
| 9820 | } | ||
| 9821 | |||
| 9822 | 984 | bool ComQueueComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const { | |
| 9823 | 984 | FW_ASSERT( | |
| 9824 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 9825 | static_cast<FwAssertArgType>(portNum), | ||
| 9826 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 9827 | ); | ||
| 9828 | 984 | bool result = false; | |
| 9829 |
1/2✓ Branch 0 taken 984 times.
✗ Branch 1 not taken.
|
984 | switch (portNum) { |
| 9830 | 984 | case 0: | |
| 9831 | 984 | result = true; | |
| 9832 | 984 | break; | |
| 9833 | ✗ | default: | |
| 9834 | ✗ | break; | |
| 9835 | } | ||
| 9836 | 984 | return result; | |
| 9837 | } | ||
| 9838 | |||
| 9839 | ✗ | bool ComQueueComponentBase::isConnected_bufferReturnOut_OutputPort(FwIndexType portNum) const { | |
| 9840 | ✗ | FW_ASSERT( | |
| 9841 | (0 <= portNum) && (portNum < NUM_BUFFERRETURNOUT_OUTPUT_PORTS), | ||
| 9842 | static_cast<FwAssertArgType>(portNum), | ||
| 9843 | static_cast<FwAssertArgType>(NUM_BUFFERRETURNOUT_OUTPUT_PORTS) | ||
| 9844 | ); | ||
| 9845 | ✗ | bool result = false; | |
| 9846 | ✗ | switch (portNum) { | |
| 9847 | ✗ | case 0: | |
| 9848 | ✗ | result = true; | |
| 9849 | ✗ | break; | |
| 9850 | ✗ | default: | |
| 9851 | ✗ | break; | |
| 9852 | } | ||
| 9853 | ✗ | return result; | |
| 9854 | } | ||
| 9855 | |||
| 9856 | ✗ | bool ComQueueComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const { | |
| 9857 | ✗ | FW_ASSERT( | |
| 9858 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 9859 | static_cast<FwAssertArgType>(portNum), | ||
| 9860 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 9861 | ); | ||
| 9862 | ✗ | bool result = false; | |
| 9863 | ✗ | switch (portNum) { | |
| 9864 | ✗ | case 0: | |
| 9865 | ✗ | result = true; | |
| 9866 | ✗ | break; | |
| 9867 | ✗ | default: | |
| 9868 | ✗ | break; | |
| 9869 | } | ||
| 9870 | ✗ | return result; | |
| 9871 | } | ||
| 9872 | |||
| 9873 | 3 | void ComQueueComponentBase::CmdReg_out( | |
| 9874 | FwIndexType portNum, | ||
| 9875 | FwOpcodeType opCode | ||
| 9876 | ) const { | ||
| 9877 | 3 | FW_ASSERT( | |
| 9878 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 9879 | static_cast<FwAssertArgType>(portNum), | ||
| 9880 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 9881 | ); | ||
| 9882 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 9883 | 3 | case 0: | |
| 9884 | 3 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 9885 | 4, | ||
| 9886 | opCode | ||
| 9887 | ); | ||
| 9888 | 3 | break; | |
| 9889 | ✗ | default: | |
| 9890 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9891 | ✗ | break; | |
| 9892 | } | ||
| 9893 | 3 | } | |
| 9894 | |||
| 9895 | ✗ | void ComQueueComponentBase::CmdStatus_out( | |
| 9896 | FwIndexType portNum, | ||
| 9897 | FwOpcodeType opCode, | ||
| 9898 | U32 cmdSeq, | ||
| 9899 | const Fw::CmdResponse& response | ||
| 9900 | ) const { | ||
| 9901 | ✗ | FW_ASSERT( | |
| 9902 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 9903 | static_cast<FwAssertArgType>(portNum), | ||
| 9904 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 9905 | ); | ||
| 9906 | ✗ | switch (portNum) { | |
| 9907 | ✗ | case 0: | |
| 9908 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 9909 | 0, | ||
| 9910 | opCode, | ||
| 9911 | cmdSeq, | ||
| 9912 | response | ||
| 9913 | ); | ||
| 9914 | ✗ | break; | |
| 9915 | ✗ | default: | |
| 9916 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9917 | ✗ | break; | |
| 9918 | } | ||
| 9919 | ✗ | } | |
| 9920 | |||
| 9921 | ✗ | void ComQueueComponentBase::Log_out( | |
| 9922 | FwIndexType portNum, | ||
| 9923 | FwEventIdType id, | ||
| 9924 | Fw::Time& timeTag, | ||
| 9925 | const Fw::LogSeverity& severity, | ||
| 9926 | Fw::LogBuffer& args | ||
| 9927 | ) const { | ||
| 9928 | ✗ | FW_ASSERT( | |
| 9929 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 9930 | static_cast<FwAssertArgType>(portNum), | ||
| 9931 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 9932 | ); | ||
| 9933 | ✗ | switch (portNum) { | |
| 9934 | ✗ | case 0: | |
| 9935 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 9936 | 0, | ||
| 9937 | id, | ||
| 9938 | timeTag, | ||
| 9939 | severity, | ||
| 9940 | args | ||
| 9941 | ); | ||
| 9942 | ✗ | break; | |
| 9943 | ✗ | default: | |
| 9944 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9945 | ✗ | break; | |
| 9946 | } | ||
| 9947 | ✗ | } | |
| 9948 | |||
| 9949 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 9950 | |||
| 9951 | ✗ | void ComQueueComponentBase::LogText_out( | |
| 9952 | FwIndexType portNum, | ||
| 9953 | FwEventIdType id, | ||
| 9954 | Fw::Time& timeTag, | ||
| 9955 | const Fw::LogSeverity& severity, | ||
| 9956 | Fw::TextLogString& text | ||
| 9957 | ) const { | ||
| 9958 | ✗ | FW_ASSERT( | |
| 9959 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 9960 | static_cast<FwAssertArgType>(portNum), | ||
| 9961 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 9962 | ); | ||
| 9963 | ✗ | switch (portNum) { | |
| 9964 | ✗ | case 0: | |
| 9965 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 9966 | 0, | ||
| 9967 | id, | ||
| 9968 | timeTag, | ||
| 9969 | severity, | ||
| 9970 | text | ||
| 9971 | ); | ||
| 9972 | ✗ | break; | |
| 9973 | ✗ | default: | |
| 9974 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9975 | ✗ | break; | |
| 9976 | } | ||
| 9977 | ✗ | } | |
| 9978 | |||
| 9979 | #endif | ||
| 9980 | |||
| 9981 | 492 | void ComQueueComponentBase::Time_out( | |
| 9982 | FwIndexType portNum, | ||
| 9983 | Fw::Time& time | ||
| 9984 | ) const { | ||
| 9985 | 492 | FW_ASSERT( | |
| 9986 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 9987 | static_cast<FwAssertArgType>(portNum), | ||
| 9988 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 9989 | ); | ||
| 9990 |
1/2✓ Branch 0 taken 492 times.
✗ Branch 1 not taken.
|
492 | switch (portNum) { |
| 9991 | 492 | case 0: | |
| 9992 | 492 | Ref::posixTime.timeGetPort_handlerBase( | |
| 9993 | 0, | ||
| 9994 | time | ||
| 9995 | ); | ||
| 9996 | 492 | break; | |
| 9997 | ✗ | default: | |
| 9998 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9999 | ✗ | break; | |
| 10000 | } | ||
| 10001 | 492 | } | |
| 10002 | |||
| 10003 | 492 | void ComQueueComponentBase::Tlm_out( | |
| 10004 | FwIndexType portNum, | ||
| 10005 | FwChanIdType id, | ||
| 10006 | Fw::Time& timeTag, | ||
| 10007 | Fw::TlmBuffer& val | ||
| 10008 | ) const { | ||
| 10009 | 492 | FW_ASSERT( | |
| 10010 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 10011 | static_cast<FwAssertArgType>(portNum), | ||
| 10012 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 10013 | ); | ||
| 10014 |
1/2✓ Branch 0 taken 492 times.
✗ Branch 1 not taken.
|
492 | switch (portNum) { |
| 10015 | 492 | case 0: | |
| 10016 | 492 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 10017 | 0, | ||
| 10018 | id, | ||
| 10019 | timeTag, | ||
| 10020 | val | ||
| 10021 | ); | ||
| 10022 | 492 | break; | |
| 10023 | ✗ | default: | |
| 10024 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10025 | ✗ | break; | |
| 10026 | } | ||
| 10027 | 492 | } | |
| 10028 | |||
| 10029 | ✗ | void ComQueueComponentBase::bufferReturnOut_out( | |
| 10030 | FwIndexType portNum, | ||
| 10031 | Fw::Buffer& fwBuffer | ||
| 10032 | ) const { | ||
| 10033 | ✗ | FW_ASSERT( | |
| 10034 | (0 <= portNum) && (portNum < NUM_BUFFERRETURNOUT_OUTPUT_PORTS), | ||
| 10035 | static_cast<FwAssertArgType>(portNum), | ||
| 10036 | static_cast<FwAssertArgType>(NUM_BUFFERRETURNOUT_OUTPUT_PORTS) | ||
| 10037 | ); | ||
| 10038 | ✗ | switch (portNum) { | |
| 10039 | ✗ | case 0: | |
| 10040 | ✗ | FileHandling::fileDownlink.bufferReturn_handlerBase( | |
| 10041 | 0, | ||
| 10042 | fwBuffer | ||
| 10043 | ); | ||
| 10044 | ✗ | break; | |
| 10045 | ✗ | default: | |
| 10046 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10047 | ✗ | break; | |
| 10048 | } | ||
| 10049 | ✗ | } | |
| 10050 | |||
| 10051 | 705 | void ComQueueComponentBase::dataOut_out( | |
| 10052 | FwIndexType portNum, | ||
| 10053 | Fw::Buffer& data, | ||
| 10054 | const ComCfg::FrameContext& context | ||
| 10055 | ) const { | ||
| 10056 | 705 | FW_ASSERT( | |
| 10057 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 10058 | static_cast<FwAssertArgType>(portNum), | ||
| 10059 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 10060 | ); | ||
| 10061 |
1/2✓ Branch 0 taken 705 times.
✗ Branch 1 not taken.
|
705 | switch (portNum) { |
| 10062 | 705 | case 0: | |
| 10063 | 705 | ComCcsds::spacePacketFramer.dataIn_handlerBase( | |
| 10064 | 0, | ||
| 10065 | data, | ||
| 10066 | context | ||
| 10067 | ); | ||
| 10068 | 705 | break; | |
| 10069 | ✗ | default: | |
| 10070 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10071 | ✗ | break; | |
| 10072 | } | ||
| 10073 | 705 | } | |
| 10074 | |||
| 10075 | } | ||
| 10076 | |||
| 10077 | namespace Svc { | ||
| 10078 | |||
| 10079 | 1 | bool ComStubComponentBase::isConnected_comStatusOut_OutputPort(FwIndexType portNum) const { | |
| 10080 | 1 | FW_ASSERT( | |
| 10081 | (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS), | ||
| 10082 | static_cast<FwAssertArgType>(portNum), | ||
| 10083 | static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS) | ||
| 10084 | ); | ||
| 10085 | 1 | bool result = false; | |
| 10086 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 10087 | 1 | case 0: | |
| 10088 | 1 | result = true; | |
| 10089 | 1 | break; | |
| 10090 | ✗ | default: | |
| 10091 | ✗ | break; | |
| 10092 | } | ||
| 10093 | 1 | return result; | |
| 10094 | } | ||
| 10095 | |||
| 10096 | ✗ | bool ComStubComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const { | |
| 10097 | ✗ | FW_ASSERT( | |
| 10098 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 10099 | static_cast<FwAssertArgType>(portNum), | ||
| 10100 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 10101 | ); | ||
| 10102 | ✗ | bool result = false; | |
| 10103 | ✗ | switch (portNum) { | |
| 10104 | ✗ | case 0: | |
| 10105 | ✗ | result = true; | |
| 10106 | ✗ | break; | |
| 10107 | ✗ | default: | |
| 10108 | ✗ | break; | |
| 10109 | } | ||
| 10110 | ✗ | return result; | |
| 10111 | } | ||
| 10112 | |||
| 10113 | ✗ | bool ComStubComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const { | |
| 10114 | ✗ | FW_ASSERT( | |
| 10115 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 10116 | static_cast<FwAssertArgType>(portNum), | ||
| 10117 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 10118 | ); | ||
| 10119 | ✗ | bool result = false; | |
| 10120 | ✗ | switch (portNum) { | |
| 10121 | ✗ | case 0: | |
| 10122 | ✗ | result = true; | |
| 10123 | ✗ | break; | |
| 10124 | ✗ | default: | |
| 10125 | ✗ | break; | |
| 10126 | } | ||
| 10127 | ✗ | return result; | |
| 10128 | } | ||
| 10129 | |||
| 10130 | ✗ | bool ComStubComponentBase::isConnected_drvAsyncSendOut_OutputPort(FwIndexType portNum) const { | |
| 10131 | ✗ | FW_ASSERT( | |
| 10132 | (0 <= portNum) && (portNum < NUM_DRVASYNCSENDOUT_OUTPUT_PORTS), | ||
| 10133 | static_cast<FwAssertArgType>(portNum), | ||
| 10134 | static_cast<FwAssertArgType>(NUM_DRVASYNCSENDOUT_OUTPUT_PORTS) | ||
| 10135 | ); | ||
| 10136 | ✗ | bool result = false; | |
| 10137 | ✗ | switch (portNum) { | |
| 10138 | default: | ||
| 10139 | ✗ | break; | |
| 10140 | } | ||
| 10141 | ✗ | return result; | |
| 10142 | } | ||
| 10143 | |||
| 10144 | ✗ | bool ComStubComponentBase::isConnected_drvReceiveReturnOut_OutputPort(FwIndexType portNum) const { | |
| 10145 | ✗ | FW_ASSERT( | |
| 10146 | (0 <= portNum) && (portNum < NUM_DRVRECEIVERETURNOUT_OUTPUT_PORTS), | ||
| 10147 | static_cast<FwAssertArgType>(portNum), | ||
| 10148 | static_cast<FwAssertArgType>(NUM_DRVRECEIVERETURNOUT_OUTPUT_PORTS) | ||
| 10149 | ); | ||
| 10150 | ✗ | bool result = false; | |
| 10151 | ✗ | switch (portNum) { | |
| 10152 | ✗ | case 0: | |
| 10153 | ✗ | result = true; | |
| 10154 | ✗ | break; | |
| 10155 | ✗ | default: | |
| 10156 | ✗ | break; | |
| 10157 | } | ||
| 10158 | ✗ | return result; | |
| 10159 | } | ||
| 10160 | |||
| 10161 | 231 | bool ComStubComponentBase::isConnected_drvSendOut_OutputPort(FwIndexType portNum) const { | |
| 10162 | 231 | FW_ASSERT( | |
| 10163 | (0 <= portNum) && (portNum < NUM_DRVSENDOUT_OUTPUT_PORTS), | ||
| 10164 | static_cast<FwAssertArgType>(portNum), | ||
| 10165 | static_cast<FwAssertArgType>(NUM_DRVSENDOUT_OUTPUT_PORTS) | ||
| 10166 | ); | ||
| 10167 | 231 | bool result = false; | |
| 10168 |
1/2✓ Branch 0 taken 231 times.
✗ Branch 1 not taken.
|
231 | switch (portNum) { |
| 10169 | 231 | case 0: | |
| 10170 | 231 | result = true; | |
| 10171 | 231 | break; | |
| 10172 | ✗ | default: | |
| 10173 | ✗ | break; | |
| 10174 | } | ||
| 10175 | 231 | return result; | |
| 10176 | } | ||
| 10177 | |||
| 10178 | 232 | void ComStubComponentBase::comStatusOut_out( | |
| 10179 | FwIndexType portNum, | ||
| 10180 | Fw::Success& condition | ||
| 10181 | ) const { | ||
| 10182 | 232 | FW_ASSERT( | |
| 10183 | (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS), | ||
| 10184 | static_cast<FwAssertArgType>(portNum), | ||
| 10185 | static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS) | ||
| 10186 | ); | ||
| 10187 |
1/2✓ Branch 0 taken 232 times.
✗ Branch 1 not taken.
|
232 | switch (portNum) { |
| 10188 | 232 | case 0: | |
| 10189 | 232 | ComCcsds::framer.comStatusIn_handlerBase( | |
| 10190 | 0, | ||
| 10191 | condition | ||
| 10192 | ); | ||
| 10193 | 232 | break; | |
| 10194 | ✗ | default: | |
| 10195 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10196 | ✗ | break; | |
| 10197 | } | ||
| 10198 | 232 | } | |
| 10199 | |||
| 10200 | 635 | void ComStubComponentBase::dataOut_out( | |
| 10201 | FwIndexType portNum, | ||
| 10202 | Fw::Buffer& data, | ||
| 10203 | const ComCfg::FrameContext& context | ||
| 10204 | ) const { | ||
| 10205 | 635 | FW_ASSERT( | |
| 10206 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 10207 | static_cast<FwAssertArgType>(portNum), | ||
| 10208 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 10209 | ); | ||
| 10210 |
1/2✓ Branch 0 taken 635 times.
✗ Branch 1 not taken.
|
635 | switch (portNum) { |
| 10211 | 635 | case 0: | |
| 10212 | 635 | ComCcsds::frameAccumulator.dataIn_handlerBase( | |
| 10213 | 0, | ||
| 10214 | data, | ||
| 10215 | context | ||
| 10216 | ); | ||
| 10217 | 635 | break; | |
| 10218 | ✗ | default: | |
| 10219 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10220 | ✗ | break; | |
| 10221 | } | ||
| 10222 | 635 | } | |
| 10223 | |||
| 10224 | 231 | void ComStubComponentBase::dataReturnOut_out( | |
| 10225 | FwIndexType portNum, | ||
| 10226 | Fw::Buffer& data, | ||
| 10227 | const ComCfg::FrameContext& context | ||
| 10228 | ) const { | ||
| 10229 | 231 | FW_ASSERT( | |
| 10230 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 10231 | static_cast<FwAssertArgType>(portNum), | ||
| 10232 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 10233 | ); | ||
| 10234 |
1/2✓ Branch 0 taken 231 times.
✗ Branch 1 not taken.
|
231 | switch (portNum) { |
| 10235 | 231 | case 0: | |
| 10236 | 231 | ComCcsds::framer.dataReturnIn_handlerBase( | |
| 10237 | 0, | ||
| 10238 | data, | ||
| 10239 | context | ||
| 10240 | ); | ||
| 10241 | 231 | break; | |
| 10242 | ✗ | default: | |
| 10243 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10244 | ✗ | break; | |
| 10245 | } | ||
| 10246 | 231 | } | |
| 10247 | |||
| 10248 | ✗ | void ComStubComponentBase::drvAsyncSendOut_out( | |
| 10249 | FwIndexType portNum, | ||
| 10250 | Fw::Buffer& fwBuffer | ||
| 10251 | ) const { | ||
| 10252 | ✗ | FW_ASSERT( | |
| 10253 | (0 <= portNum) && (portNum < NUM_DRVASYNCSENDOUT_OUTPUT_PORTS), | ||
| 10254 | static_cast<FwAssertArgType>(portNum), | ||
| 10255 | static_cast<FwAssertArgType>(NUM_DRVASYNCSENDOUT_OUTPUT_PORTS) | ||
| 10256 | ); | ||
| 10257 | ✗ | switch (portNum) { | |
| 10258 | default: | ||
| 10259 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10260 | ✗ | break; | |
| 10261 | } | ||
| 10262 | ✗ | } | |
| 10263 | |||
| 10264 | 636 | void ComStubComponentBase::drvReceiveReturnOut_out( | |
| 10265 | FwIndexType portNum, | ||
| 10266 | Fw::Buffer& fwBuffer | ||
| 10267 | ) const { | ||
| 10268 | 636 | FW_ASSERT( | |
| 10269 | (0 <= portNum) && (portNum < NUM_DRVRECEIVERETURNOUT_OUTPUT_PORTS), | ||
| 10270 | static_cast<FwAssertArgType>(portNum), | ||
| 10271 | static_cast<FwAssertArgType>(NUM_DRVRECEIVERETURNOUT_OUTPUT_PORTS) | ||
| 10272 | ); | ||
| 10273 |
1/2✓ Branch 0 taken 636 times.
✗ Branch 1 not taken.
|
636 | switch (portNum) { |
| 10274 | 636 | case 0: | |
| 10275 | 636 | Ref::comDriver.recvReturnIn_handlerBase( | |
| 10276 | 0, | ||
| 10277 | fwBuffer | ||
| 10278 | ); | ||
| 10279 | 636 | break; | |
| 10280 | ✗ | default: | |
| 10281 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10282 | ✗ | break; | |
| 10283 | } | ||
| 10284 | 636 | } | |
| 10285 | |||
| 10286 | 231 | Drv::ByteStreamStatus ComStubComponentBase::drvSendOut_out( | |
| 10287 | FwIndexType portNum, | ||
| 10288 | Fw::Buffer& sendBuffer | ||
| 10289 | ) const { | ||
| 10290 | 231 | FW_ASSERT( | |
| 10291 | (0 <= portNum) && (portNum < NUM_DRVSENDOUT_OUTPUT_PORTS), | ||
| 10292 | static_cast<FwAssertArgType>(portNum), | ||
| 10293 | static_cast<FwAssertArgType>(NUM_DRVSENDOUT_OUTPUT_PORTS) | ||
| 10294 | ); | ||
| 10295 | 231 | Drv::ByteStreamStatus _result = {}; | |
| 10296 |
1/2✓ Branch 0 taken 231 times.
✗ Branch 1 not taken.
|
231 | switch (portNum) { |
| 10297 | 231 | case 0: | |
| 10298 |
1/1✓ Branch 1 taken 231 times.
|
462 | _result = Ref::comDriver.send_handlerBase( |
| 10299 | 0, | ||
| 10300 | sendBuffer | ||
| 10301 |
1/1✓ Branch 1 taken 231 times.
|
231 | ); |
| 10302 | 231 | break; | |
| 10303 | ✗ | default: | |
| 10304 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10305 | ✗ | break; | |
| 10306 | } | ||
| 10307 | 231 | return _result; | |
| 10308 | ✗ | } | |
| 10309 | |||
| 10310 | } | ||
| 10311 | |||
| 10312 | namespace Svc { | ||
| 10313 | |||
| 10314 | 1 | bool CommandDispatcherComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const { | |
| 10315 | 1 | FW_ASSERT( | |
| 10316 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 10317 | static_cast<FwAssertArgType>(portNum), | ||
| 10318 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 10319 | ); | ||
| 10320 | 1 | bool result = false; | |
| 10321 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 10322 | 1 | case 0: | |
| 10323 | 1 | result = true; | |
| 10324 | 1 | break; | |
| 10325 | ✗ | default: | |
| 10326 | ✗ | break; | |
| 10327 | } | ||
| 10328 | 1 | return result; | |
| 10329 | } | ||
| 10330 | |||
| 10331 | 110 | bool CommandDispatcherComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const { | |
| 10332 | 110 | FW_ASSERT( | |
| 10333 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 10334 | static_cast<FwAssertArgType>(portNum), | ||
| 10335 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 10336 | ); | ||
| 10337 | 110 | bool result = false; | |
| 10338 |
1/2✓ Branch 0 taken 110 times.
✗ Branch 1 not taken.
|
110 | switch (portNum) { |
| 10339 | 110 | case 0: | |
| 10340 | 110 | result = true; | |
| 10341 | 110 | break; | |
| 10342 | ✗ | default: | |
| 10343 | ✗ | break; | |
| 10344 | } | ||
| 10345 | 110 | return result; | |
| 10346 | } | ||
| 10347 | |||
| 10348 | 532 | bool CommandDispatcherComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 10349 | 532 | FW_ASSERT( | |
| 10350 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 10351 | static_cast<FwAssertArgType>(portNum), | ||
| 10352 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 10353 | ); | ||
| 10354 | 532 | bool result = false; | |
| 10355 |
1/2✓ Branch 0 taken 532 times.
✗ Branch 1 not taken.
|
532 | switch (portNum) { |
| 10356 | 532 | case 0: | |
| 10357 | 532 | result = true; | |
| 10358 | 532 | break; | |
| 10359 | ✗ | default: | |
| 10360 | ✗ | break; | |
| 10361 | } | ||
| 10362 | 532 | return result; | |
| 10363 | } | ||
| 10364 | |||
| 10365 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 10366 | |||
| 10367 | 532 | bool CommandDispatcherComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 10368 | 532 | FW_ASSERT( | |
| 10369 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 10370 | static_cast<FwAssertArgType>(portNum), | ||
| 10371 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 10372 | ); | ||
| 10373 | 532 | bool result = false; | |
| 10374 |
1/2✓ Branch 0 taken 532 times.
✗ Branch 1 not taken.
|
532 | switch (portNum) { |
| 10375 | 532 | case 0: | |
| 10376 | 532 | result = true; | |
| 10377 | 532 | break; | |
| 10378 | ✗ | default: | |
| 10379 | ✗ | break; | |
| 10380 | } | ||
| 10381 | 532 | return result; | |
| 10382 | } | ||
| 10383 | |||
| 10384 | #endif | ||
| 10385 | |||
| 10386 | 670 | bool CommandDispatcherComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 10387 | 670 | FW_ASSERT( | |
| 10388 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 10389 | static_cast<FwAssertArgType>(portNum), | ||
| 10390 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 10391 | ); | ||
| 10392 | 670 | bool result = false; | |
| 10393 |
1/2✓ Branch 0 taken 670 times.
✗ Branch 1 not taken.
|
670 | switch (portNum) { |
| 10394 | 670 | case 0: | |
| 10395 | 670 | result = true; | |
| 10396 | 670 | break; | |
| 10397 | ✗ | default: | |
| 10398 | ✗ | break; | |
| 10399 | } | ||
| 10400 | 670 | return result; | |
| 10401 | } | ||
| 10402 | |||
| 10403 | 276 | bool CommandDispatcherComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const { | |
| 10404 | 276 | FW_ASSERT( | |
| 10405 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 10406 | static_cast<FwAssertArgType>(portNum), | ||
| 10407 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 10408 | ); | ||
| 10409 | 276 | bool result = false; | |
| 10410 |
1/2✓ Branch 0 taken 276 times.
✗ Branch 1 not taken.
|
276 | switch (portNum) { |
| 10411 | 276 | case 0: | |
| 10412 | 276 | result = true; | |
| 10413 | 276 | break; | |
| 10414 | ✗ | default: | |
| 10415 | ✗ | break; | |
| 10416 | } | ||
| 10417 | 276 | return result; | |
| 10418 | } | ||
| 10419 | |||
| 10420 | 150 | bool CommandDispatcherComponentBase::isConnected_compCmdSend_OutputPort(FwIndexType portNum) const { | |
| 10421 | 150 | FW_ASSERT( | |
| 10422 | (0 <= portNum) && (portNum < NUM_COMPCMDSEND_OUTPUT_PORTS), | ||
| 10423 | static_cast<FwAssertArgType>(portNum), | ||
| 10424 | static_cast<FwAssertArgType>(NUM_COMPCMDSEND_OUTPUT_PORTS) | ||
| 10425 | ); | ||
| 10426 | 150 | bool result = false; | |
| 10427 |
10/26✓ Branch 0 taken 110 times.
✓ Branch 1 taken 13 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 1 times.
✓ Branch 11 taken 4 times.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✓ Branch 15 taken 3 times.
✗ Branch 16 not taken.
✓ Branch 17 taken 2 times.
✓ Branch 18 taken 2 times.
✗ Branch 19 not taken.
✓ Branch 20 taken 6 times.
✓ Branch 21 taken 6 times.
✗ Branch 22 not taken.
✓ Branch 23 taken 3 times.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
|
150 | switch (portNum) { |
| 10428 | 110 | case 0: | |
| 10429 | 110 | result = true; | |
| 10430 | 110 | break; | |
| 10431 | 13 | case 1: | |
| 10432 | 13 | result = true; | |
| 10433 | 13 | break; | |
| 10434 | ✗ | case 2: | |
| 10435 | ✗ | result = true; | |
| 10436 | ✗ | break; | |
| 10437 | ✗ | case 3: | |
| 10438 | ✗ | result = true; | |
| 10439 | ✗ | break; | |
| 10440 | ✗ | case 4: | |
| 10441 | ✗ | result = true; | |
| 10442 | ✗ | break; | |
| 10443 | ✗ | case 5: | |
| 10444 | ✗ | result = true; | |
| 10445 | ✗ | break; | |
| 10446 | ✗ | case 6: | |
| 10447 | ✗ | result = true; | |
| 10448 | ✗ | break; | |
| 10449 | ✗ | case 7: | |
| 10450 | ✗ | result = true; | |
| 10451 | ✗ | break; | |
| 10452 | ✗ | case 8: | |
| 10453 | ✗ | result = true; | |
| 10454 | ✗ | break; | |
| 10455 | ✗ | case 9: | |
| 10456 | ✗ | result = true; | |
| 10457 | ✗ | break; | |
| 10458 | 1 | case 10: | |
| 10459 | 1 | result = true; | |
| 10460 | 1 | break; | |
| 10461 | 4 | case 11: | |
| 10462 | 4 | result = true; | |
| 10463 | 4 | break; | |
| 10464 | ✗ | case 12: | |
| 10465 | ✗ | result = true; | |
| 10466 | ✗ | break; | |
| 10467 | ✗ | case 13: | |
| 10468 | ✗ | result = true; | |
| 10469 | ✗ | break; | |
| 10470 | ✗ | case 14: | |
| 10471 | ✗ | result = true; | |
| 10472 | ✗ | break; | |
| 10473 | 3 | case 15: | |
| 10474 | 3 | result = true; | |
| 10475 | 3 | break; | |
| 10476 | ✗ | case 16: | |
| 10477 | ✗ | result = true; | |
| 10478 | ✗ | break; | |
| 10479 | 2 | case 17: | |
| 10480 | 2 | result = true; | |
| 10481 | 2 | break; | |
| 10482 | 2 | case 18: | |
| 10483 | 2 | result = true; | |
| 10484 | 2 | break; | |
| 10485 | ✗ | case 19: | |
| 10486 | ✗ | result = true; | |
| 10487 | ✗ | break; | |
| 10488 | 6 | case 20: | |
| 10489 | 6 | result = true; | |
| 10490 | 6 | break; | |
| 10491 | 6 | case 21: | |
| 10492 | 6 | result = true; | |
| 10493 | 6 | break; | |
| 10494 | ✗ | case 22: | |
| 10495 | ✗ | result = true; | |
| 10496 | ✗ | break; | |
| 10497 | 3 | case 23: | |
| 10498 | 3 | result = true; | |
| 10499 | 3 | break; | |
| 10500 | ✗ | case 24: | |
| 10501 | ✗ | result = true; | |
| 10502 | ✗ | break; | |
| 10503 | ✗ | default: | |
| 10504 | ✗ | break; | |
| 10505 | } | ||
| 10506 | 150 | return result; | |
| 10507 | } | ||
| 10508 | |||
| 10509 | ✗ | bool CommandDispatcherComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const { | |
| 10510 | ✗ | FW_ASSERT( | |
| 10511 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 10512 | static_cast<FwAssertArgType>(portNum), | ||
| 10513 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 10514 | ); | ||
| 10515 | ✗ | bool result = false; | |
| 10516 | ✗ | switch (portNum) { | |
| 10517 | ✗ | case 0: | |
| 10518 | ✗ | result = true; | |
| 10519 | ✗ | break; | |
| 10520 | ✗ | default: | |
| 10521 | ✗ | break; | |
| 10522 | } | ||
| 10523 | ✗ | return result; | |
| 10524 | } | ||
| 10525 | |||
| 10526 | 300 | bool CommandDispatcherComponentBase::isConnected_seqCmdStatus_OutputPort(FwIndexType portNum) const { | |
| 10527 | 300 | FW_ASSERT( | |
| 10528 | (0 <= portNum) && (portNum < NUM_SEQCMDSTATUS_OUTPUT_PORTS), | ||
| 10529 | static_cast<FwAssertArgType>(portNum), | ||
| 10530 | static_cast<FwAssertArgType>(NUM_SEQCMDSTATUS_OUTPUT_PORTS) | ||
| 10531 | ); | ||
| 10532 | 300 | bool result = false; | |
| 10533 |
2/4✓ Branch 0 taken 290 times.
✓ Branch 1 taken 10 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
|
300 | switch (portNum) { |
| 10534 | 290 | case 0: | |
| 10535 | 290 | result = true; | |
| 10536 | 290 | break; | |
| 10537 | 10 | case 1: | |
| 10538 | 10 | result = true; | |
| 10539 | 10 | break; | |
| 10540 | ✗ | case 2: | |
| 10541 | ✗ | result = true; | |
| 10542 | ✗ | break; | |
| 10543 | ✗ | default: | |
| 10544 | ✗ | break; | |
| 10545 | } | ||
| 10546 | 300 | return result; | |
| 10547 | } | ||
| 10548 | |||
| 10549 | 4 | void CommandDispatcherComponentBase::CmdReg_out( | |
| 10550 | FwIndexType portNum, | ||
| 10551 | FwOpcodeType opCode | ||
| 10552 | ) const { | ||
| 10553 | 4 | FW_ASSERT( | |
| 10554 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 10555 | static_cast<FwAssertArgType>(portNum), | ||
| 10556 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 10557 | ); | ||
| 10558 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 10559 | 4 | case 0: | |
| 10560 | 4 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 10561 | 0, | ||
| 10562 | opCode | ||
| 10563 | ); | ||
| 10564 | 4 | break; | |
| 10565 | ✗ | default: | |
| 10566 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10567 | ✗ | break; | |
| 10568 | } | ||
| 10569 | 4 | } | |
| 10570 | |||
| 10571 | 110 | void CommandDispatcherComponentBase::CmdStatus_out( | |
| 10572 | FwIndexType portNum, | ||
| 10573 | FwOpcodeType opCode, | ||
| 10574 | U32 cmdSeq, | ||
| 10575 | const Fw::CmdResponse& response | ||
| 10576 | ) const { | ||
| 10577 | 110 | FW_ASSERT( | |
| 10578 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 10579 | static_cast<FwAssertArgType>(portNum), | ||
| 10580 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 10581 | ); | ||
| 10582 |
1/2✓ Branch 0 taken 110 times.
✗ Branch 1 not taken.
|
110 | switch (portNum) { |
| 10583 | 110 | case 0: | |
| 10584 | 110 | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 10585 | 0, | ||
| 10586 | opCode, | ||
| 10587 | cmdSeq, | ||
| 10588 | response | ||
| 10589 | ); | ||
| 10590 | 110 | break; | |
| 10591 | ✗ | default: | |
| 10592 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10593 | ✗ | break; | |
| 10594 | } | ||
| 10595 | 110 | } | |
| 10596 | |||
| 10597 | 532 | void CommandDispatcherComponentBase::Log_out( | |
| 10598 | FwIndexType portNum, | ||
| 10599 | FwEventIdType id, | ||
| 10600 | Fw::Time& timeTag, | ||
| 10601 | const Fw::LogSeverity& severity, | ||
| 10602 | Fw::LogBuffer& args | ||
| 10603 | ) const { | ||
| 10604 | 532 | FW_ASSERT( | |
| 10605 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 10606 | static_cast<FwAssertArgType>(portNum), | ||
| 10607 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 10608 | ); | ||
| 10609 |
1/2✓ Branch 0 taken 532 times.
✗ Branch 1 not taken.
|
532 | switch (portNum) { |
| 10610 | 532 | case 0: | |
| 10611 | 532 | CdhCore::events.LogRecv_handlerBase( | |
| 10612 | 0, | ||
| 10613 | id, | ||
| 10614 | timeTag, | ||
| 10615 | severity, | ||
| 10616 | args | ||
| 10617 | ); | ||
| 10618 | 532 | break; | |
| 10619 | ✗ | default: | |
| 10620 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10621 | ✗ | break; | |
| 10622 | } | ||
| 10623 | 532 | } | |
| 10624 | |||
| 10625 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 10626 | |||
| 10627 | 532 | void CommandDispatcherComponentBase::LogText_out( | |
| 10628 | FwIndexType portNum, | ||
| 10629 | FwEventIdType id, | ||
| 10630 | Fw::Time& timeTag, | ||
| 10631 | const Fw::LogSeverity& severity, | ||
| 10632 | Fw::TextLogString& text | ||
| 10633 | ) const { | ||
| 10634 | 532 | FW_ASSERT( | |
| 10635 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 10636 | static_cast<FwAssertArgType>(portNum), | ||
| 10637 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 10638 | ); | ||
| 10639 |
1/2✓ Branch 0 taken 532 times.
✗ Branch 1 not taken.
|
532 | switch (portNum) { |
| 10640 | 532 | case 0: | |
| 10641 | 532 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 10642 | 0, | ||
| 10643 | id, | ||
| 10644 | timeTag, | ||
| 10645 | severity, | ||
| 10646 | text | ||
| 10647 | ); | ||
| 10648 | 532 | break; | |
| 10649 | ✗ | default: | |
| 10650 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10651 | ✗ | break; | |
| 10652 | } | ||
| 10653 | 532 | } | |
| 10654 | |||
| 10655 | #endif | ||
| 10656 | |||
| 10657 | 670 | void CommandDispatcherComponentBase::Time_out( | |
| 10658 | FwIndexType portNum, | ||
| 10659 | Fw::Time& time | ||
| 10660 | ) const { | ||
| 10661 | 670 | FW_ASSERT( | |
| 10662 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 10663 | static_cast<FwAssertArgType>(portNum), | ||
| 10664 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 10665 | ); | ||
| 10666 |
1/2✓ Branch 0 taken 670 times.
✗ Branch 1 not taken.
|
670 | switch (portNum) { |
| 10667 | 670 | case 0: | |
| 10668 | 670 | Ref::posixTime.timeGetPort_handlerBase( | |
| 10669 | 0, | ||
| 10670 | time | ||
| 10671 | ); | ||
| 10672 | 670 | break; | |
| 10673 | ✗ | default: | |
| 10674 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10675 | ✗ | break; | |
| 10676 | } | ||
| 10677 | 670 | } | |
| 10678 | |||
| 10679 | 138 | void CommandDispatcherComponentBase::Tlm_out( | |
| 10680 | FwIndexType portNum, | ||
| 10681 | FwChanIdType id, | ||
| 10682 | Fw::Time& timeTag, | ||
| 10683 | Fw::TlmBuffer& val | ||
| 10684 | ) const { | ||
| 10685 | 138 | FW_ASSERT( | |
| 10686 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 10687 | static_cast<FwAssertArgType>(portNum), | ||
| 10688 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 10689 | ); | ||
| 10690 |
1/2✓ Branch 0 taken 138 times.
✗ Branch 1 not taken.
|
138 | switch (portNum) { |
| 10691 | 138 | case 0: | |
| 10692 | 138 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 10693 | 0, | ||
| 10694 | id, | ||
| 10695 | timeTag, | ||
| 10696 | val | ||
| 10697 | ); | ||
| 10698 | 138 | break; | |
| 10699 | ✗ | default: | |
| 10700 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10701 | ✗ | break; | |
| 10702 | } | ||
| 10703 | 138 | } | |
| 10704 | |||
| 10705 | 150 | void CommandDispatcherComponentBase::compCmdSend_out( | |
| 10706 | FwIndexType portNum, | ||
| 10707 | FwOpcodeType opCode, | ||
| 10708 | U32 cmdSeq, | ||
| 10709 | Fw::CmdArgBuffer& args | ||
| 10710 | ) const { | ||
| 10711 | 150 | FW_ASSERT( | |
| 10712 | (0 <= portNum) && (portNum < NUM_COMPCMDSEND_OUTPUT_PORTS), | ||
| 10713 | static_cast<FwAssertArgType>(portNum), | ||
| 10714 | static_cast<FwAssertArgType>(NUM_COMPCMDSEND_OUTPUT_PORTS) | ||
| 10715 | ); | ||
| 10716 |
10/26✓ Branch 0 taken 110 times.
✓ Branch 1 taken 13 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✓ Branch 10 taken 1 times.
✓ Branch 11 taken 4 times.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✓ Branch 15 taken 3 times.
✗ Branch 16 not taken.
✓ Branch 17 taken 2 times.
✓ Branch 18 taken 2 times.
✗ Branch 19 not taken.
✓ Branch 20 taken 6 times.
✓ Branch 21 taken 6 times.
✗ Branch 22 not taken.
✓ Branch 23 taken 3 times.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
|
150 | switch (portNum) { |
| 10717 | 110 | case 0: | |
| 10718 | 110 | CdhCore::cmdDisp.CmdDisp_handlerBase( | |
| 10719 | 0, | ||
| 10720 | opCode, | ||
| 10721 | cmdSeq, | ||
| 10722 | args | ||
| 10723 | ); | ||
| 10724 | 110 | break; | |
| 10725 | 13 | case 1: | |
| 10726 | 13 | CdhCore::events.CmdDisp_handlerBase( | |
| 10727 | 0, | ||
| 10728 | opCode, | ||
| 10729 | cmdSeq, | ||
| 10730 | args | ||
| 10731 | ); | ||
| 10732 | 13 | break; | |
| 10733 | ✗ | case 2: | |
| 10734 | ✗ | CdhCore::health.CmdDisp_handlerBase( | |
| 10735 | 0, | ||
| 10736 | opCode, | ||
| 10737 | cmdSeq, | ||
| 10738 | args | ||
| 10739 | ); | ||
| 10740 | ✗ | break; | |
| 10741 | ✗ | case 3: | |
| 10742 | ✗ | CdhCore::version.cmdIn_handlerBase( | |
| 10743 | 0, | ||
| 10744 | opCode, | ||
| 10745 | cmdSeq, | ||
| 10746 | args | ||
| 10747 | ); | ||
| 10748 | ✗ | break; | |
| 10749 | ✗ | case 4: | |
| 10750 | ✗ | ComCcsds::comQueue.CmdDisp_handlerBase( | |
| 10751 | 0, | ||
| 10752 | opCode, | ||
| 10753 | cmdSeq, | ||
| 10754 | args | ||
| 10755 | ); | ||
| 10756 | ✗ | break; | |
| 10757 | ✗ | case 5: | |
| 10758 | ✗ | DataProducts::dpBufferAccumulator.cmdIn_handlerBase( | |
| 10759 | 0, | ||
| 10760 | opCode, | ||
| 10761 | cmdSeq, | ||
| 10762 | args | ||
| 10763 | ); | ||
| 10764 | ✗ | break; | |
| 10765 | ✗ | case 6: | |
| 10766 | ✗ | DataProducts::dpCat.CmdDisp_handlerBase( | |
| 10767 | 0, | ||
| 10768 | opCode, | ||
| 10769 | cmdSeq, | ||
| 10770 | args | ||
| 10771 | ); | ||
| 10772 | ✗ | break; | |
| 10773 | ✗ | case 7: | |
| 10774 | ✗ | DataProducts::dpMgr.cmdIn_handlerBase( | |
| 10775 | 0, | ||
| 10776 | opCode, | ||
| 10777 | cmdSeq, | ||
| 10778 | args | ||
| 10779 | ); | ||
| 10780 | ✗ | break; | |
| 10781 | ✗ | case 8: | |
| 10782 | ✗ | DataProducts::dpWriter.cmdIn_handlerBase( | |
| 10783 | 0, | ||
| 10784 | opCode, | ||
| 10785 | cmdSeq, | ||
| 10786 | args | ||
| 10787 | ); | ||
| 10788 | ✗ | break; | |
| 10789 | ✗ | case 9: | |
| 10790 | ✗ | FileHandling::fileDownlink.cmdIn_handlerBase( | |
| 10791 | 0, | ||
| 10792 | opCode, | ||
| 10793 | cmdSeq, | ||
| 10794 | args | ||
| 10795 | ); | ||
| 10796 | ✗ | break; | |
| 10797 | 1 | case 10: | |
| 10798 | 1 | FileHandling::fileManager.cmdIn_handlerBase( | |
| 10799 | 0, | ||
| 10800 | opCode, | ||
| 10801 | cmdSeq, | ||
| 10802 | args | ||
| 10803 | ); | ||
| 10804 | 1 | break; | |
| 10805 | 4 | case 11: | |
| 10806 | 4 | FileHandling::prmDb.CmdDisp_handlerBase( | |
| 10807 | 0, | ||
| 10808 | opCode, | ||
| 10809 | cmdSeq, | ||
| 10810 | args | ||
| 10811 | ); | ||
| 10812 | 4 | break; | |
| 10813 | ✗ | case 12: | |
| 10814 | ✗ | Ref::SG1.cmdIn_handlerBase( | |
| 10815 | 0, | ||
| 10816 | opCode, | ||
| 10817 | cmdSeq, | ||
| 10818 | args | ||
| 10819 | ); | ||
| 10820 | ✗ | break; | |
| 10821 | ✗ | case 13: | |
| 10822 | ✗ | Ref::SG2.cmdIn_handlerBase( | |
| 10823 | 0, | ||
| 10824 | opCode, | ||
| 10825 | cmdSeq, | ||
| 10826 | args | ||
| 10827 | ); | ||
| 10828 | ✗ | break; | |
| 10829 | ✗ | case 14: | |
| 10830 | ✗ | Ref::SG3.cmdIn_handlerBase( | |
| 10831 | 0, | ||
| 10832 | opCode, | ||
| 10833 | cmdSeq, | ||
| 10834 | args | ||
| 10835 | ); | ||
| 10836 | ✗ | break; | |
| 10837 | 3 | case 15: | |
| 10838 | 3 | Ref::SG4.cmdIn_handlerBase( | |
| 10839 | 0, | ||
| 10840 | opCode, | ||
| 10841 | cmdSeq, | ||
| 10842 | args | ||
| 10843 | ); | ||
| 10844 | 3 | break; | |
| 10845 | ✗ | case 16: | |
| 10846 | ✗ | Ref::SG5.cmdIn_handlerBase( | |
| 10847 | 0, | ||
| 10848 | opCode, | ||
| 10849 | cmdSeq, | ||
| 10850 | args | ||
| 10851 | ); | ||
| 10852 | ✗ | break; | |
| 10853 | 2 | case 17: | |
| 10854 | 2 | Ref::cmdSeq.cmdIn_handlerBase( | |
| 10855 | 0, | ||
| 10856 | opCode, | ||
| 10857 | cmdSeq, | ||
| 10858 | args | ||
| 10859 | ); | ||
| 10860 | 2 | break; | |
| 10861 | 2 | case 18: | |
| 10862 | 2 | Ref::dpDemo.cmdIn_handlerBase( | |
| 10863 | 0, | ||
| 10864 | opCode, | ||
| 10865 | cmdSeq, | ||
| 10866 | args | ||
| 10867 | ); | ||
| 10868 | 2 | break; | |
| 10869 | ✗ | case 19: | |
| 10870 | ✗ | Ref::pingRcvr.CmdDisp_handlerBase( | |
| 10871 | 0, | ||
| 10872 | opCode, | ||
| 10873 | cmdSeq, | ||
| 10874 | args | ||
| 10875 | ); | ||
| 10876 | ✗ | break; | |
| 10877 | 6 | case 20: | |
| 10878 | 6 | Ref::recvBuffComp.CmdDisp_handlerBase( | |
| 10879 | 0, | ||
| 10880 | opCode, | ||
| 10881 | cmdSeq, | ||
| 10882 | args | ||
| 10883 | ); | ||
| 10884 | 6 | break; | |
| 10885 | 6 | case 21: | |
| 10886 | 6 | Ref::sendBuffComp.CmdDisp_handlerBase( | |
| 10887 | 0, | ||
| 10888 | opCode, | ||
| 10889 | cmdSeq, | ||
| 10890 | args | ||
| 10891 | ); | ||
| 10892 | 6 | break; | |
| 10893 | ✗ | case 22: | |
| 10894 | ✗ | Ref::systemResources.CmdDisp_handlerBase( | |
| 10895 | 0, | ||
| 10896 | opCode, | ||
| 10897 | cmdSeq, | ||
| 10898 | args | ||
| 10899 | ); | ||
| 10900 | ✗ | break; | |
| 10901 | 3 | case 23: | |
| 10902 | 3 | Ref::typeDemo.cmdIn_handlerBase( | |
| 10903 | 0, | ||
| 10904 | opCode, | ||
| 10905 | cmdSeq, | ||
| 10906 | args | ||
| 10907 | ); | ||
| 10908 | 3 | break; | |
| 10909 | ✗ | case 24: | |
| 10910 | ✗ | Ref::wasmSeq.cmdIn_handlerBase( | |
| 10911 | 0, | ||
| 10912 | opCode, | ||
| 10913 | cmdSeq, | ||
| 10914 | args | ||
| 10915 | ); | ||
| 10916 | ✗ | break; | |
| 10917 | ✗ | default: | |
| 10918 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10919 | ✗ | break; | |
| 10920 | } | ||
| 10921 | 150 | } | |
| 10922 | |||
| 10923 | 62 | void CommandDispatcherComponentBase::pingOut_out( | |
| 10924 | FwIndexType portNum, | ||
| 10925 | U32 key | ||
| 10926 | ) const { | ||
| 10927 | 62 | FW_ASSERT( | |
| 10928 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 10929 | static_cast<FwAssertArgType>(portNum), | ||
| 10930 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 10931 | ); | ||
| 10932 |
1/2✓ Branch 0 taken 62 times.
✗ Branch 1 not taken.
|
62 | switch (portNum) { |
| 10933 | 62 | case 0: | |
| 10934 | 62 | CdhCore::health.PingReturn_handlerBase( | |
| 10935 | 0, | ||
| 10936 | key | ||
| 10937 | ); | ||
| 10938 | 62 | break; | |
| 10939 | ✗ | default: | |
| 10940 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10941 | ✗ | break; | |
| 10942 | } | ||
| 10943 | 62 | } | |
| 10944 | |||
| 10945 | 150 | void CommandDispatcherComponentBase::seqCmdStatus_out( | |
| 10946 | FwIndexType portNum, | ||
| 10947 | FwOpcodeType opCode, | ||
| 10948 | U32 cmdSeq, | ||
| 10949 | const Fw::CmdResponse& response | ||
| 10950 | ) const { | ||
| 10951 | 150 | FW_ASSERT( | |
| 10952 | (0 <= portNum) && (portNum < NUM_SEQCMDSTATUS_OUTPUT_PORTS), | ||
| 10953 | static_cast<FwAssertArgType>(portNum), | ||
| 10954 | static_cast<FwAssertArgType>(NUM_SEQCMDSTATUS_OUTPUT_PORTS) | ||
| 10955 | ); | ||
| 10956 |
2/4✓ Branch 0 taken 145 times.
✓ Branch 1 taken 5 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
|
150 | switch (portNum) { |
| 10957 | 145 | case 0: | |
| 10958 | 145 | ComCcsds::fprimeRouter.cmdResponseIn_handlerBase( | |
| 10959 | 0, | ||
| 10960 | opCode, | ||
| 10961 | cmdSeq, | ||
| 10962 | response | ||
| 10963 | ); | ||
| 10964 | 145 | break; | |
| 10965 | 5 | case 1: | |
| 10966 | 5 | Ref::cmdSeq.cmdResponseIn_handlerBase( | |
| 10967 | 0, | ||
| 10968 | opCode, | ||
| 10969 | cmdSeq, | ||
| 10970 | response | ||
| 10971 | ); | ||
| 10972 | 5 | break; | |
| 10973 | ✗ | case 2: | |
| 10974 | ✗ | Ref::wasmSeq.cmdResponseIn_handlerBase( | |
| 10975 | 0, | ||
| 10976 | opCode, | ||
| 10977 | cmdSeq, | ||
| 10978 | response | ||
| 10979 | ); | ||
| 10980 | ✗ | break; | |
| 10981 | ✗ | default: | |
| 10982 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10983 | ✗ | break; | |
| 10984 | } | ||
| 10985 | 150 | } | |
| 10986 | |||
| 10987 | } | ||
| 10988 | |||
| 10989 | namespace Svc { | ||
| 10990 | |||
| 10991 | 1 | bool DpCatalogComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const { | |
| 10992 | 1 | FW_ASSERT( | |
| 10993 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 10994 | static_cast<FwAssertArgType>(portNum), | ||
| 10995 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 10996 | ); | ||
| 10997 | 1 | bool result = false; | |
| 10998 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 10999 | 1 | case 0: | |
| 11000 | 1 | result = true; | |
| 11001 | 1 | break; | |
| 11002 | ✗ | default: | |
| 11003 | ✗ | break; | |
| 11004 | } | ||
| 11005 | 1 | return result; | |
| 11006 | } | ||
| 11007 | |||
| 11008 | ✗ | bool DpCatalogComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const { | |
| 11009 | ✗ | FW_ASSERT( | |
| 11010 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 11011 | static_cast<FwAssertArgType>(portNum), | ||
| 11012 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 11013 | ); | ||
| 11014 | ✗ | bool result = false; | |
| 11015 | ✗ | switch (portNum) { | |
| 11016 | ✗ | case 0: | |
| 11017 | ✗ | result = true; | |
| 11018 | ✗ | break; | |
| 11019 | ✗ | default: | |
| 11020 | ✗ | break; | |
| 11021 | } | ||
| 11022 | ✗ | return result; | |
| 11023 | } | ||
| 11024 | |||
| 11025 | 2 | bool DpCatalogComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 11026 | 2 | FW_ASSERT( | |
| 11027 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 11028 | static_cast<FwAssertArgType>(portNum), | ||
| 11029 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 11030 | ); | ||
| 11031 | 2 | bool result = false; | |
| 11032 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 11033 | 2 | case 0: | |
| 11034 | 2 | result = true; | |
| 11035 | 2 | break; | |
| 11036 | ✗ | default: | |
| 11037 | ✗ | break; | |
| 11038 | } | ||
| 11039 | 2 | return result; | |
| 11040 | } | ||
| 11041 | |||
| 11042 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 11043 | |||
| 11044 | 2 | bool DpCatalogComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 11045 | 2 | FW_ASSERT( | |
| 11046 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 11047 | static_cast<FwAssertArgType>(portNum), | ||
| 11048 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 11049 | ); | ||
| 11050 | 2 | bool result = false; | |
| 11051 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 11052 | 2 | case 0: | |
| 11053 | 2 | result = true; | |
| 11054 | 2 | break; | |
| 11055 | ✗ | default: | |
| 11056 | ✗ | break; | |
| 11057 | } | ||
| 11058 | 2 | return result; | |
| 11059 | } | ||
| 11060 | |||
| 11061 | #endif | ||
| 11062 | |||
| 11063 | 2 | bool DpCatalogComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 11064 | 2 | FW_ASSERT( | |
| 11065 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 11066 | static_cast<FwAssertArgType>(portNum), | ||
| 11067 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 11068 | ); | ||
| 11069 | 2 | bool result = false; | |
| 11070 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 11071 | 2 | case 0: | |
| 11072 | 2 | result = true; | |
| 11073 | 2 | break; | |
| 11074 | ✗ | default: | |
| 11075 | ✗ | break; | |
| 11076 | } | ||
| 11077 | 2 | return result; | |
| 11078 | } | ||
| 11079 | |||
| 11080 | ✗ | bool DpCatalogComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const { | |
| 11081 | ✗ | FW_ASSERT( | |
| 11082 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 11083 | static_cast<FwAssertArgType>(portNum), | ||
| 11084 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 11085 | ); | ||
| 11086 | ✗ | bool result = false; | |
| 11087 | ✗ | switch (portNum) { | |
| 11088 | ✗ | case 0: | |
| 11089 | ✗ | result = true; | |
| 11090 | ✗ | break; | |
| 11091 | ✗ | default: | |
| 11092 | ✗ | break; | |
| 11093 | } | ||
| 11094 | ✗ | return result; | |
| 11095 | } | ||
| 11096 | |||
| 11097 | ✗ | bool DpCatalogComponentBase::isConnected_fileOut_OutputPort(FwIndexType portNum) const { | |
| 11098 | ✗ | FW_ASSERT( | |
| 11099 | (0 <= portNum) && (portNum < NUM_FILEOUT_OUTPUT_PORTS), | ||
| 11100 | static_cast<FwAssertArgType>(portNum), | ||
| 11101 | static_cast<FwAssertArgType>(NUM_FILEOUT_OUTPUT_PORTS) | ||
| 11102 | ); | ||
| 11103 | ✗ | bool result = false; | |
| 11104 | ✗ | switch (portNum) { | |
| 11105 | ✗ | case 0: | |
| 11106 | ✗ | result = true; | |
| 11107 | ✗ | break; | |
| 11108 | ✗ | default: | |
| 11109 | ✗ | break; | |
| 11110 | } | ||
| 11111 | ✗ | return result; | |
| 11112 | } | ||
| 11113 | |||
| 11114 | ✗ | bool DpCatalogComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const { | |
| 11115 | ✗ | FW_ASSERT( | |
| 11116 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 11117 | static_cast<FwAssertArgType>(portNum), | ||
| 11118 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 11119 | ); | ||
| 11120 | ✗ | bool result = false; | |
| 11121 | ✗ | switch (portNum) { | |
| 11122 | ✗ | case 0: | |
| 11123 | ✗ | result = true; | |
| 11124 | ✗ | break; | |
| 11125 | ✗ | default: | |
| 11126 | ✗ | break; | |
| 11127 | } | ||
| 11128 | ✗ | return result; | |
| 11129 | } | ||
| 11130 | |||
| 11131 | 4 | void DpCatalogComponentBase::CmdReg_out( | |
| 11132 | FwIndexType portNum, | ||
| 11133 | FwOpcodeType opCode | ||
| 11134 | ) const { | ||
| 11135 | 4 | FW_ASSERT( | |
| 11136 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 11137 | static_cast<FwAssertArgType>(portNum), | ||
| 11138 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 11139 | ); | ||
| 11140 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 11141 | 4 | case 0: | |
| 11142 | 4 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 11143 | 6, | ||
| 11144 | opCode | ||
| 11145 | ); | ||
| 11146 | 4 | break; | |
| 11147 | ✗ | default: | |
| 11148 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11149 | ✗ | break; | |
| 11150 | } | ||
| 11151 | 4 | } | |
| 11152 | |||
| 11153 | ✗ | void DpCatalogComponentBase::CmdStatus_out( | |
| 11154 | FwIndexType portNum, | ||
| 11155 | FwOpcodeType opCode, | ||
| 11156 | U32 cmdSeq, | ||
| 11157 | const Fw::CmdResponse& response | ||
| 11158 | ) const { | ||
| 11159 | ✗ | FW_ASSERT( | |
| 11160 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 11161 | static_cast<FwAssertArgType>(portNum), | ||
| 11162 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 11163 | ); | ||
| 11164 | ✗ | switch (portNum) { | |
| 11165 | ✗ | case 0: | |
| 11166 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 11167 | 0, | ||
| 11168 | opCode, | ||
| 11169 | cmdSeq, | ||
| 11170 | response | ||
| 11171 | ); | ||
| 11172 | ✗ | break; | |
| 11173 | ✗ | default: | |
| 11174 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11175 | ✗ | break; | |
| 11176 | } | ||
| 11177 | ✗ | } | |
| 11178 | |||
| 11179 | 2 | void DpCatalogComponentBase::Log_out( | |
| 11180 | FwIndexType portNum, | ||
| 11181 | FwEventIdType id, | ||
| 11182 | Fw::Time& timeTag, | ||
| 11183 | const Fw::LogSeverity& severity, | ||
| 11184 | Fw::LogBuffer& args | ||
| 11185 | ) const { | ||
| 11186 | 2 | FW_ASSERT( | |
| 11187 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 11188 | static_cast<FwAssertArgType>(portNum), | ||
| 11189 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 11190 | ); | ||
| 11191 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 11192 | 2 | case 0: | |
| 11193 | 2 | CdhCore::events.LogRecv_handlerBase( | |
| 11194 | 0, | ||
| 11195 | id, | ||
| 11196 | timeTag, | ||
| 11197 | severity, | ||
| 11198 | args | ||
| 11199 | ); | ||
| 11200 | 2 | break; | |
| 11201 | ✗ | default: | |
| 11202 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11203 | ✗ | break; | |
| 11204 | } | ||
| 11205 | 2 | } | |
| 11206 | |||
| 11207 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 11208 | |||
| 11209 | 2 | void DpCatalogComponentBase::LogText_out( | |
| 11210 | FwIndexType portNum, | ||
| 11211 | FwEventIdType id, | ||
| 11212 | Fw::Time& timeTag, | ||
| 11213 | const Fw::LogSeverity& severity, | ||
| 11214 | Fw::TextLogString& text | ||
| 11215 | ) const { | ||
| 11216 | 2 | FW_ASSERT( | |
| 11217 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 11218 | static_cast<FwAssertArgType>(portNum), | ||
| 11219 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 11220 | ); | ||
| 11221 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 11222 | 2 | case 0: | |
| 11223 | 2 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 11224 | 0, | ||
| 11225 | id, | ||
| 11226 | timeTag, | ||
| 11227 | severity, | ||
| 11228 | text | ||
| 11229 | ); | ||
| 11230 | 2 | break; | |
| 11231 | ✗ | default: | |
| 11232 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11233 | ✗ | break; | |
| 11234 | } | ||
| 11235 | 2 | } | |
| 11236 | |||
| 11237 | #endif | ||
| 11238 | |||
| 11239 | 2 | void DpCatalogComponentBase::Time_out( | |
| 11240 | FwIndexType portNum, | ||
| 11241 | Fw::Time& time | ||
| 11242 | ) const { | ||
| 11243 | 2 | FW_ASSERT( | |
| 11244 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 11245 | static_cast<FwAssertArgType>(portNum), | ||
| 11246 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 11247 | ); | ||
| 11248 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 11249 | 2 | case 0: | |
| 11250 | 2 | Ref::posixTime.timeGetPort_handlerBase( | |
| 11251 | 0, | ||
| 11252 | time | ||
| 11253 | ); | ||
| 11254 | 2 | break; | |
| 11255 | ✗ | default: | |
| 11256 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11257 | ✗ | break; | |
| 11258 | } | ||
| 11259 | 2 | } | |
| 11260 | |||
| 11261 | ✗ | void DpCatalogComponentBase::Tlm_out( | |
| 11262 | FwIndexType portNum, | ||
| 11263 | FwChanIdType id, | ||
| 11264 | Fw::Time& timeTag, | ||
| 11265 | Fw::TlmBuffer& val | ||
| 11266 | ) const { | ||
| 11267 | ✗ | FW_ASSERT( | |
| 11268 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 11269 | static_cast<FwAssertArgType>(portNum), | ||
| 11270 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 11271 | ); | ||
| 11272 | ✗ | switch (portNum) { | |
| 11273 | ✗ | case 0: | |
| 11274 | ✗ | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 11275 | 0, | ||
| 11276 | id, | ||
| 11277 | timeTag, | ||
| 11278 | val | ||
| 11279 | ); | ||
| 11280 | ✗ | break; | |
| 11281 | ✗ | default: | |
| 11282 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11283 | ✗ | break; | |
| 11284 | } | ||
| 11285 | ✗ | } | |
| 11286 | |||
| 11287 | ✗ | Svc::SendFileResponse DpCatalogComponentBase::fileOut_out( | |
| 11288 | FwIndexType portNum, | ||
| 11289 | const Fw::StringBase& sourceFileName, | ||
| 11290 | const Fw::StringBase& destFileName, | ||
| 11291 | U32 offset, | ||
| 11292 | U32 length | ||
| 11293 | ) const { | ||
| 11294 | ✗ | FW_ASSERT( | |
| 11295 | (0 <= portNum) && (portNum < NUM_FILEOUT_OUTPUT_PORTS), | ||
| 11296 | static_cast<FwAssertArgType>(portNum), | ||
| 11297 | static_cast<FwAssertArgType>(NUM_FILEOUT_OUTPUT_PORTS) | ||
| 11298 | ); | ||
| 11299 | ✗ | Svc::SendFileResponse _result = {}; | |
| 11300 | ✗ | switch (portNum) { | |
| 11301 | ✗ | case 0: | |
| 11302 | ✗ | _result = FileHandling::fileDownlink.SendFile_handlerBase( | |
| 11303 | 0, | ||
| 11304 | sourceFileName, | ||
| 11305 | destFileName, | ||
| 11306 | offset, | ||
| 11307 | length | ||
| 11308 | ✗ | ); | |
| 11309 | ✗ | break; | |
| 11310 | ✗ | default: | |
| 11311 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11312 | ✗ | break; | |
| 11313 | } | ||
| 11314 | ✗ | return _result; | |
| 11315 | ✗ | } | |
| 11316 | |||
| 11317 | 62 | void DpCatalogComponentBase::pingOut_out( | |
| 11318 | FwIndexType portNum, | ||
| 11319 | U32 key | ||
| 11320 | ) const { | ||
| 11321 | 62 | FW_ASSERT( | |
| 11322 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 11323 | static_cast<FwAssertArgType>(portNum), | ||
| 11324 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 11325 | ); | ||
| 11326 |
1/2✓ Branch 0 taken 62 times.
✗ Branch 1 not taken.
|
62 | switch (portNum) { |
| 11327 | 62 | case 0: | |
| 11328 | 62 | CdhCore::health.PingReturn_handlerBase( | |
| 11329 | 4, | ||
| 11330 | key | ||
| 11331 | ); | ||
| 11332 | 62 | break; | |
| 11333 | ✗ | default: | |
| 11334 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11335 | ✗ | break; | |
| 11336 | } | ||
| 11337 | 62 | } | |
| 11338 | |||
| 11339 | } | ||
| 11340 | |||
| 11341 | namespace Svc { | ||
| 11342 | |||
| 11343 | ✗ | bool DpManagerComponentBase::isConnected_bufferGetOut_OutputPort(FwIndexType portNum) const { | |
| 11344 | ✗ | FW_ASSERT( | |
| 11345 | (0 <= portNum) && (portNum < NUM_BUFFERGETOUT_OUTPUT_PORTS), | ||
| 11346 | static_cast<FwAssertArgType>(portNum), | ||
| 11347 | static_cast<FwAssertArgType>(NUM_BUFFERGETOUT_OUTPUT_PORTS) | ||
| 11348 | ); | ||
| 11349 | ✗ | bool result = false; | |
| 11350 | ✗ | switch (portNum) { | |
| 11351 | ✗ | case 0: | |
| 11352 | ✗ | result = true; | |
| 11353 | ✗ | break; | |
| 11354 | ✗ | default: | |
| 11355 | ✗ | break; | |
| 11356 | } | ||
| 11357 | ✗ | return result; | |
| 11358 | } | ||
| 11359 | |||
| 11360 | 1 | bool DpManagerComponentBase::isConnected_cmdRegIn_OutputPort(FwIndexType portNum) const { | |
| 11361 | 1 | FW_ASSERT( | |
| 11362 | (0 <= portNum) && (portNum < NUM_CMDREGIN_OUTPUT_PORTS), | ||
| 11363 | static_cast<FwAssertArgType>(portNum), | ||
| 11364 | static_cast<FwAssertArgType>(NUM_CMDREGIN_OUTPUT_PORTS) | ||
| 11365 | ); | ||
| 11366 | 1 | bool result = false; | |
| 11367 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 11368 | 1 | case 0: | |
| 11369 | 1 | result = true; | |
| 11370 | 1 | break; | |
| 11371 | ✗ | default: | |
| 11372 | ✗ | break; | |
| 11373 | } | ||
| 11374 | 1 | return result; | |
| 11375 | } | ||
| 11376 | |||
| 11377 | ✗ | bool DpManagerComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const { | |
| 11378 | ✗ | FW_ASSERT( | |
| 11379 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 11380 | static_cast<FwAssertArgType>(portNum), | ||
| 11381 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 11382 | ); | ||
| 11383 | ✗ | bool result = false; | |
| 11384 | ✗ | switch (portNum) { | |
| 11385 | ✗ | case 0: | |
| 11386 | ✗ | result = true; | |
| 11387 | ✗ | break; | |
| 11388 | ✗ | default: | |
| 11389 | ✗ | break; | |
| 11390 | } | ||
| 11391 | ✗ | return result; | |
| 11392 | } | ||
| 11393 | |||
| 11394 | ✗ | bool DpManagerComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const { | |
| 11395 | ✗ | FW_ASSERT( | |
| 11396 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 11397 | static_cast<FwAssertArgType>(portNum), | ||
| 11398 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 11399 | ); | ||
| 11400 | ✗ | bool result = false; | |
| 11401 | ✗ | switch (portNum) { | |
| 11402 | ✗ | case 0: | |
| 11403 | ✗ | result = true; | |
| 11404 | ✗ | break; | |
| 11405 | ✗ | default: | |
| 11406 | ✗ | break; | |
| 11407 | } | ||
| 11408 | ✗ | return result; | |
| 11409 | } | ||
| 11410 | |||
| 11411 | ✗ | bool DpManagerComponentBase::isConnected_productResponseOut_OutputPort(FwIndexType portNum) const { | |
| 11412 | ✗ | FW_ASSERT( | |
| 11413 | (0 <= portNum) && (portNum < NUM_PRODUCTRESPONSEOUT_OUTPUT_PORTS), | ||
| 11414 | static_cast<FwAssertArgType>(portNum), | ||
| 11415 | static_cast<FwAssertArgType>(NUM_PRODUCTRESPONSEOUT_OUTPUT_PORTS) | ||
| 11416 | ); | ||
| 11417 | ✗ | bool result = false; | |
| 11418 | ✗ | switch (portNum) { | |
| 11419 | ✗ | case 0: | |
| 11420 | ✗ | result = true; | |
| 11421 | ✗ | break; | |
| 11422 | ✗ | case 1: | |
| 11423 | ✗ | result = true; | |
| 11424 | ✗ | break; | |
| 11425 | ✗ | default: | |
| 11426 | ✗ | break; | |
| 11427 | } | ||
| 11428 | ✗ | return result; | |
| 11429 | } | ||
| 11430 | |||
| 11431 | ✗ | bool DpManagerComponentBase::isConnected_productSendOut_OutputPort(FwIndexType portNum) const { | |
| 11432 | ✗ | FW_ASSERT( | |
| 11433 | (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS), | ||
| 11434 | static_cast<FwAssertArgType>(portNum), | ||
| 11435 | static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS) | ||
| 11436 | ); | ||
| 11437 | ✗ | bool result = false; | |
| 11438 | ✗ | switch (portNum) { | |
| 11439 | ✗ | case 0: | |
| 11440 | ✗ | result = true; | |
| 11441 | ✗ | break; | |
| 11442 | ✗ | default: | |
| 11443 | ✗ | break; | |
| 11444 | } | ||
| 11445 | ✗ | return result; | |
| 11446 | } | ||
| 11447 | |||
| 11448 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 11449 | |||
| 11450 | ✗ | bool DpManagerComponentBase::isConnected_textEventOut_OutputPort(FwIndexType portNum) const { | |
| 11451 | ✗ | FW_ASSERT( | |
| 11452 | (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS), | ||
| 11453 | static_cast<FwAssertArgType>(portNum), | ||
| 11454 | static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS) | ||
| 11455 | ); | ||
| 11456 | ✗ | bool result = false; | |
| 11457 | ✗ | switch (portNum) { | |
| 11458 | ✗ | case 0: | |
| 11459 | ✗ | result = true; | |
| 11460 | ✗ | break; | |
| 11461 | ✗ | default: | |
| 11462 | ✗ | break; | |
| 11463 | } | ||
| 11464 | ✗ | return result; | |
| 11465 | } | ||
| 11466 | |||
| 11467 | #endif | ||
| 11468 | |||
| 11469 | 7 | bool DpManagerComponentBase::isConnected_timeGetOut_OutputPort(FwIndexType portNum) const { | |
| 11470 | 7 | FW_ASSERT( | |
| 11471 | (0 <= portNum) && (portNum < NUM_TIMEGETOUT_OUTPUT_PORTS), | ||
| 11472 | static_cast<FwAssertArgType>(portNum), | ||
| 11473 | static_cast<FwAssertArgType>(NUM_TIMEGETOUT_OUTPUT_PORTS) | ||
| 11474 | ); | ||
| 11475 | 7 | bool result = false; | |
| 11476 |
1/2✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
|
7 | switch (portNum) { |
| 11477 | 7 | case 0: | |
| 11478 | 7 | result = true; | |
| 11479 | 7 | break; | |
| 11480 | ✗ | default: | |
| 11481 | ✗ | break; | |
| 11482 | } | ||
| 11483 | 7 | return result; | |
| 11484 | } | ||
| 11485 | |||
| 11486 | 14 | bool DpManagerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 11487 | 14 | FW_ASSERT( | |
| 11488 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 11489 | static_cast<FwAssertArgType>(portNum), | ||
| 11490 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 11491 | ); | ||
| 11492 | 14 | bool result = false; | |
| 11493 |
1/2✓ Branch 0 taken 14 times.
✗ Branch 1 not taken.
|
14 | switch (portNum) { |
| 11494 | 14 | case 0: | |
| 11495 | 14 | result = true; | |
| 11496 | 14 | break; | |
| 11497 | ✗ | default: | |
| 11498 | ✗ | break; | |
| 11499 | } | ||
| 11500 | 14 | return result; | |
| 11501 | } | ||
| 11502 | |||
| 11503 | 2 | Fw::Buffer DpManagerComponentBase::bufferGetOut_out( | |
| 11504 | FwIndexType portNum, | ||
| 11505 | FwSizeType size | ||
| 11506 | ) const { | ||
| 11507 | 2 | FW_ASSERT( | |
| 11508 | (0 <= portNum) && (portNum < NUM_BUFFERGETOUT_OUTPUT_PORTS), | ||
| 11509 | static_cast<FwAssertArgType>(portNum), | ||
| 11510 | static_cast<FwAssertArgType>(NUM_BUFFERGETOUT_OUTPUT_PORTS) | ||
| 11511 | ); | ||
| 11512 | 2 | Fw::Buffer _result = {}; | |
| 11513 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 11514 | 2 | case 0: | |
| 11515 |
1/1✓ Branch 1 taken 2 times.
|
4 | _result = DataProducts::dpBufferManager.bufferGetCallee_handlerBase( |
| 11516 | 0, | ||
| 11517 | size | ||
| 11518 |
1/1✓ Branch 1 taken 2 times.
|
2 | ); |
| 11519 | 2 | break; | |
| 11520 | ✗ | default: | |
| 11521 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11522 | ✗ | break; | |
| 11523 | } | ||
| 11524 | 2 | return _result; | |
| 11525 | ✗ | } | |
| 11526 | |||
| 11527 | 1 | void DpManagerComponentBase::cmdRegIn_out( | |
| 11528 | FwIndexType portNum, | ||
| 11529 | FwOpcodeType opCode | ||
| 11530 | ) const { | ||
| 11531 | 1 | FW_ASSERT( | |
| 11532 | (0 <= portNum) && (portNum < NUM_CMDREGIN_OUTPUT_PORTS), | ||
| 11533 | static_cast<FwAssertArgType>(portNum), | ||
| 11534 | static_cast<FwAssertArgType>(NUM_CMDREGIN_OUTPUT_PORTS) | ||
| 11535 | ); | ||
| 11536 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 11537 | 1 | case 0: | |
| 11538 | 1 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 11539 | 7, | ||
| 11540 | opCode | ||
| 11541 | ); | ||
| 11542 | 1 | break; | |
| 11543 | ✗ | default: | |
| 11544 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11545 | ✗ | break; | |
| 11546 | } | ||
| 11547 | 1 | } | |
| 11548 | |||
| 11549 | ✗ | void DpManagerComponentBase::cmdResponseOut_out( | |
| 11550 | FwIndexType portNum, | ||
| 11551 | FwOpcodeType opCode, | ||
| 11552 | U32 cmdSeq, | ||
| 11553 | const Fw::CmdResponse& response | ||
| 11554 | ) const { | ||
| 11555 | ✗ | FW_ASSERT( | |
| 11556 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 11557 | static_cast<FwAssertArgType>(portNum), | ||
| 11558 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 11559 | ); | ||
| 11560 | ✗ | switch (portNum) { | |
| 11561 | ✗ | case 0: | |
| 11562 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 11563 | 0, | ||
| 11564 | opCode, | ||
| 11565 | cmdSeq, | ||
| 11566 | response | ||
| 11567 | ); | ||
| 11568 | ✗ | break; | |
| 11569 | ✗ | default: | |
| 11570 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11571 | ✗ | break; | |
| 11572 | } | ||
| 11573 | ✗ | } | |
| 11574 | |||
| 11575 | ✗ | void DpManagerComponentBase::eventOut_out( | |
| 11576 | FwIndexType portNum, | ||
| 11577 | FwEventIdType id, | ||
| 11578 | Fw::Time& timeTag, | ||
| 11579 | const Fw::LogSeverity& severity, | ||
| 11580 | Fw::LogBuffer& args | ||
| 11581 | ) const { | ||
| 11582 | ✗ | FW_ASSERT( | |
| 11583 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 11584 | static_cast<FwAssertArgType>(portNum), | ||
| 11585 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 11586 | ); | ||
| 11587 | ✗ | switch (portNum) { | |
| 11588 | ✗ | case 0: | |
| 11589 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 11590 | 0, | ||
| 11591 | id, | ||
| 11592 | timeTag, | ||
| 11593 | severity, | ||
| 11594 | args | ||
| 11595 | ); | ||
| 11596 | ✗ | break; | |
| 11597 | ✗ | default: | |
| 11598 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11599 | ✗ | break; | |
| 11600 | } | ||
| 11601 | ✗ | } | |
| 11602 | |||
| 11603 | ✗ | void DpManagerComponentBase::productResponseOut_out( | |
| 11604 | FwIndexType portNum, | ||
| 11605 | FwDpIdType id, | ||
| 11606 | const Fw::Buffer& buffer, | ||
| 11607 | const Fw::Success& status | ||
| 11608 | ) const { | ||
| 11609 | ✗ | FW_ASSERT( | |
| 11610 | (0 <= portNum) && (portNum < NUM_PRODUCTRESPONSEOUT_OUTPUT_PORTS), | ||
| 11611 | static_cast<FwAssertArgType>(portNum), | ||
| 11612 | static_cast<FwAssertArgType>(NUM_PRODUCTRESPONSEOUT_OUTPUT_PORTS) | ||
| 11613 | ); | ||
| 11614 | ✗ | switch (portNum) { | |
| 11615 | ✗ | case 0: | |
| 11616 | ✗ | Ref::SG1.productRecvIn_handlerBase( | |
| 11617 | 0, | ||
| 11618 | id, | ||
| 11619 | buffer, | ||
| 11620 | status | ||
| 11621 | ); | ||
| 11622 | ✗ | break; | |
| 11623 | ✗ | case 1: | |
| 11624 | ✗ | Ref::dpDemo.productRecvIn_handlerBase( | |
| 11625 | 0, | ||
| 11626 | id, | ||
| 11627 | buffer, | ||
| 11628 | status | ||
| 11629 | ); | ||
| 11630 | ✗ | break; | |
| 11631 | ✗ | default: | |
| 11632 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11633 | ✗ | break; | |
| 11634 | } | ||
| 11635 | ✗ | } | |
| 11636 | |||
| 11637 | 2 | void DpManagerComponentBase::productSendOut_out( | |
| 11638 | FwIndexType portNum, | ||
| 11639 | Fw::Buffer& fwBuffer | ||
| 11640 | ) const { | ||
| 11641 | 2 | FW_ASSERT( | |
| 11642 | (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS), | ||
| 11643 | static_cast<FwAssertArgType>(portNum), | ||
| 11644 | static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS) | ||
| 11645 | ); | ||
| 11646 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 11647 | 2 | case 0: | |
| 11648 | 2 | DataProducts::dpBufferAccumulator.bufferSendInFill_handlerBase( | |
| 11649 | 0, | ||
| 11650 | fwBuffer | ||
| 11651 | ); | ||
| 11652 | 2 | break; | |
| 11653 | ✗ | default: | |
| 11654 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11655 | ✗ | break; | |
| 11656 | } | ||
| 11657 | 2 | } | |
| 11658 | |||
| 11659 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 11660 | |||
| 11661 | ✗ | void DpManagerComponentBase::textEventOut_out( | |
| 11662 | FwIndexType portNum, | ||
| 11663 | FwEventIdType id, | ||
| 11664 | Fw::Time& timeTag, | ||
| 11665 | const Fw::LogSeverity& severity, | ||
| 11666 | Fw::TextLogString& text | ||
| 11667 | ) const { | ||
| 11668 | ✗ | FW_ASSERT( | |
| 11669 | (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS), | ||
| 11670 | static_cast<FwAssertArgType>(portNum), | ||
| 11671 | static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS) | ||
| 11672 | ); | ||
| 11673 | ✗ | switch (portNum) { | |
| 11674 | ✗ | case 0: | |
| 11675 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 11676 | 0, | ||
| 11677 | id, | ||
| 11678 | timeTag, | ||
| 11679 | severity, | ||
| 11680 | text | ||
| 11681 | ); | ||
| 11682 | ✗ | break; | |
| 11683 | ✗ | default: | |
| 11684 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11685 | ✗ | break; | |
| 11686 | } | ||
| 11687 | ✗ | } | |
| 11688 | |||
| 11689 | #endif | ||
| 11690 | |||
| 11691 | 7 | void DpManagerComponentBase::timeGetOut_out( | |
| 11692 | FwIndexType portNum, | ||
| 11693 | Fw::Time& time | ||
| 11694 | ) const { | ||
| 11695 | 7 | FW_ASSERT( | |
| 11696 | (0 <= portNum) && (portNum < NUM_TIMEGETOUT_OUTPUT_PORTS), | ||
| 11697 | static_cast<FwAssertArgType>(portNum), | ||
| 11698 | static_cast<FwAssertArgType>(NUM_TIMEGETOUT_OUTPUT_PORTS) | ||
| 11699 | ); | ||
| 11700 |
1/2✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
|
7 | switch (portNum) { |
| 11701 | 7 | case 0: | |
| 11702 | 7 | Ref::posixTime.timeGetPort_handlerBase( | |
| 11703 | 0, | ||
| 11704 | time | ||
| 11705 | ); | ||
| 11706 | 7 | break; | |
| 11707 | ✗ | default: | |
| 11708 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11709 | ✗ | break; | |
| 11710 | } | ||
| 11711 | 7 | } | |
| 11712 | |||
| 11713 | 7 | void DpManagerComponentBase::tlmOut_out( | |
| 11714 | FwIndexType portNum, | ||
| 11715 | FwChanIdType id, | ||
| 11716 | Fw::Time& timeTag, | ||
| 11717 | Fw::TlmBuffer& val | ||
| 11718 | ) const { | ||
| 11719 | 7 | FW_ASSERT( | |
| 11720 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 11721 | static_cast<FwAssertArgType>(portNum), | ||
| 11722 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 11723 | ); | ||
| 11724 |
1/2✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
|
7 | switch (portNum) { |
| 11725 | 7 | case 0: | |
| 11726 | 7 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 11727 | 0, | ||
| 11728 | id, | ||
| 11729 | timeTag, | ||
| 11730 | val | ||
| 11731 | ); | ||
| 11732 | 7 | break; | |
| 11733 | ✗ | default: | |
| 11734 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11735 | ✗ | break; | |
| 11736 | } | ||
| 11737 | 7 | } | |
| 11738 | |||
| 11739 | } | ||
| 11740 | |||
| 11741 | namespace Svc { | ||
| 11742 | |||
| 11743 | 1 | bool DpWriterComponentBase::isConnected_cmdRegIn_OutputPort(FwIndexType portNum) const { | |
| 11744 | 1 | FW_ASSERT( | |
| 11745 | (0 <= portNum) && (portNum < NUM_CMDREGIN_OUTPUT_PORTS), | ||
| 11746 | static_cast<FwAssertArgType>(portNum), | ||
| 11747 | static_cast<FwAssertArgType>(NUM_CMDREGIN_OUTPUT_PORTS) | ||
| 11748 | ); | ||
| 11749 | 1 | bool result = false; | |
| 11750 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 11751 | 1 | case 0: | |
| 11752 | 1 | result = true; | |
| 11753 | 1 | break; | |
| 11754 | ✗ | default: | |
| 11755 | ✗ | break; | |
| 11756 | } | ||
| 11757 | 1 | return result; | |
| 11758 | } | ||
| 11759 | |||
| 11760 | ✗ | bool DpWriterComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const { | |
| 11761 | ✗ | FW_ASSERT( | |
| 11762 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 11763 | static_cast<FwAssertArgType>(portNum), | ||
| 11764 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 11765 | ); | ||
| 11766 | ✗ | bool result = false; | |
| 11767 | ✗ | switch (portNum) { | |
| 11768 | ✗ | case 0: | |
| 11769 | ✗ | result = true; | |
| 11770 | ✗ | break; | |
| 11771 | ✗ | default: | |
| 11772 | ✗ | break; | |
| 11773 | } | ||
| 11774 | ✗ | return result; | |
| 11775 | } | ||
| 11776 | |||
| 11777 | ✗ | bool DpWriterComponentBase::isConnected_deallocBufferSendOut_OutputPort(FwIndexType portNum) const { | |
| 11778 | ✗ | FW_ASSERT( | |
| 11779 | (0 <= portNum) && (portNum < NUM_DEALLOCBUFFERSENDOUT_OUTPUT_PORTS), | ||
| 11780 | static_cast<FwAssertArgType>(portNum), | ||
| 11781 | static_cast<FwAssertArgType>(NUM_DEALLOCBUFFERSENDOUT_OUTPUT_PORTS) | ||
| 11782 | ); | ||
| 11783 | ✗ | bool result = false; | |
| 11784 | ✗ | switch (portNum) { | |
| 11785 | ✗ | case 0: | |
| 11786 | ✗ | result = true; | |
| 11787 | ✗ | break; | |
| 11788 | ✗ | default: | |
| 11789 | ✗ | break; | |
| 11790 | } | ||
| 11791 | ✗ | return result; | |
| 11792 | } | ||
| 11793 | |||
| 11794 | 2 | bool DpWriterComponentBase::isConnected_dpWrittenOut_OutputPort(FwIndexType portNum) const { | |
| 11795 | 2 | FW_ASSERT( | |
| 11796 | (0 <= portNum) && (portNum < NUM_DPWRITTENOUT_OUTPUT_PORTS), | ||
| 11797 | static_cast<FwAssertArgType>(portNum), | ||
| 11798 | static_cast<FwAssertArgType>(NUM_DPWRITTENOUT_OUTPUT_PORTS) | ||
| 11799 | ); | ||
| 11800 | 2 | bool result = false; | |
| 11801 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 11802 | 2 | case 0: | |
| 11803 | 2 | result = true; | |
| 11804 | 2 | break; | |
| 11805 | ✗ | default: | |
| 11806 | ✗ | break; | |
| 11807 | } | ||
| 11808 | 2 | return result; | |
| 11809 | } | ||
| 11810 | |||
| 11811 | 2 | bool DpWriterComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const { | |
| 11812 | 2 | FW_ASSERT( | |
| 11813 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 11814 | static_cast<FwAssertArgType>(portNum), | ||
| 11815 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 11816 | ); | ||
| 11817 | 2 | bool result = false; | |
| 11818 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 11819 | 2 | case 0: | |
| 11820 | 2 | result = true; | |
| 11821 | 2 | break; | |
| 11822 | ✗ | default: | |
| 11823 | ✗ | break; | |
| 11824 | } | ||
| 11825 | 2 | return result; | |
| 11826 | } | ||
| 11827 | |||
| 11828 | ✗ | bool DpWriterComponentBase::isConnected_procBufferSendOut_OutputPort(FwIndexType portNum) const { | |
| 11829 | ✗ | FW_ASSERT( | |
| 11830 | (0 <= portNum) && (portNum < NUM_PROCBUFFERSENDOUT_OUTPUT_PORTS), | ||
| 11831 | static_cast<FwAssertArgType>(portNum), | ||
| 11832 | static_cast<FwAssertArgType>(NUM_PROCBUFFERSENDOUT_OUTPUT_PORTS) | ||
| 11833 | ); | ||
| 11834 | ✗ | bool result = false; | |
| 11835 | ✗ | switch (portNum) { | |
| 11836 | default: | ||
| 11837 | ✗ | break; | |
| 11838 | } | ||
| 11839 | ✗ | return result; | |
| 11840 | } | ||
| 11841 | |||
| 11842 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 11843 | |||
| 11844 | 2 | bool DpWriterComponentBase::isConnected_textEventOut_OutputPort(FwIndexType portNum) const { | |
| 11845 | 2 | FW_ASSERT( | |
| 11846 | (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS), | ||
| 11847 | static_cast<FwAssertArgType>(portNum), | ||
| 11848 | static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS) | ||
| 11849 | ); | ||
| 11850 | 2 | bool result = false; | |
| 11851 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 11852 | 2 | case 0: | |
| 11853 | 2 | result = true; | |
| 11854 | 2 | break; | |
| 11855 | ✗ | default: | |
| 11856 | ✗ | break; | |
| 11857 | } | ||
| 11858 | 2 | return result; | |
| 11859 | } | ||
| 11860 | |||
| 11861 | #endif | ||
| 11862 | |||
| 11863 | 10 | bool DpWriterComponentBase::isConnected_timeGetOut_OutputPort(FwIndexType portNum) const { | |
| 11864 | 10 | FW_ASSERT( | |
| 11865 | (0 <= portNum) && (portNum < NUM_TIMEGETOUT_OUTPUT_PORTS), | ||
| 11866 | static_cast<FwAssertArgType>(portNum), | ||
| 11867 | static_cast<FwAssertArgType>(NUM_TIMEGETOUT_OUTPUT_PORTS) | ||
| 11868 | ); | ||
| 11869 | 10 | bool result = false; | |
| 11870 |
1/2✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
|
10 | switch (portNum) { |
| 11871 | 10 | case 0: | |
| 11872 | 10 | result = true; | |
| 11873 | 10 | break; | |
| 11874 | ✗ | default: | |
| 11875 | ✗ | break; | |
| 11876 | } | ||
| 11877 | 10 | return result; | |
| 11878 | } | ||
| 11879 | |||
| 11880 | 16 | bool DpWriterComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 11881 | 16 | FW_ASSERT( | |
| 11882 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 11883 | static_cast<FwAssertArgType>(portNum), | ||
| 11884 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 11885 | ); | ||
| 11886 | 16 | bool result = false; | |
| 11887 |
1/2✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
|
16 | switch (portNum) { |
| 11888 | 16 | case 0: | |
| 11889 | 16 | result = true; | |
| 11890 | 16 | break; | |
| 11891 | ✗ | default: | |
| 11892 | ✗ | break; | |
| 11893 | } | ||
| 11894 | 16 | return result; | |
| 11895 | } | ||
| 11896 | |||
| 11897 | 1 | void DpWriterComponentBase::cmdRegIn_out( | |
| 11898 | FwIndexType portNum, | ||
| 11899 | FwOpcodeType opCode | ||
| 11900 | ) const { | ||
| 11901 | 1 | FW_ASSERT( | |
| 11902 | (0 <= portNum) && (portNum < NUM_CMDREGIN_OUTPUT_PORTS), | ||
| 11903 | static_cast<FwAssertArgType>(portNum), | ||
| 11904 | static_cast<FwAssertArgType>(NUM_CMDREGIN_OUTPUT_PORTS) | ||
| 11905 | ); | ||
| 11906 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 11907 | 1 | case 0: | |
| 11908 | 1 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 11909 | 8, | ||
| 11910 | opCode | ||
| 11911 | ); | ||
| 11912 | 1 | break; | |
| 11913 | ✗ | default: | |
| 11914 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11915 | ✗ | break; | |
| 11916 | } | ||
| 11917 | 1 | } | |
| 11918 | |||
| 11919 | ✗ | void DpWriterComponentBase::cmdResponseOut_out( | |
| 11920 | FwIndexType portNum, | ||
| 11921 | FwOpcodeType opCode, | ||
| 11922 | U32 cmdSeq, | ||
| 11923 | const Fw::CmdResponse& response | ||
| 11924 | ) const { | ||
| 11925 | ✗ | FW_ASSERT( | |
| 11926 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 11927 | static_cast<FwAssertArgType>(portNum), | ||
| 11928 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 11929 | ); | ||
| 11930 | ✗ | switch (portNum) { | |
| 11931 | ✗ | case 0: | |
| 11932 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 11933 | 0, | ||
| 11934 | opCode, | ||
| 11935 | cmdSeq, | ||
| 11936 | response | ||
| 11937 | ); | ||
| 11938 | ✗ | break; | |
| 11939 | ✗ | default: | |
| 11940 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11941 | ✗ | break; | |
| 11942 | } | ||
| 11943 | ✗ | } | |
| 11944 | |||
| 11945 | 2 | void DpWriterComponentBase::deallocBufferSendOut_out( | |
| 11946 | FwIndexType portNum, | ||
| 11947 | Fw::Buffer& fwBuffer | ||
| 11948 | ) const { | ||
| 11949 | 2 | FW_ASSERT( | |
| 11950 | (0 <= portNum) && (portNum < NUM_DEALLOCBUFFERSENDOUT_OUTPUT_PORTS), | ||
| 11951 | static_cast<FwAssertArgType>(portNum), | ||
| 11952 | static_cast<FwAssertArgType>(NUM_DEALLOCBUFFERSENDOUT_OUTPUT_PORTS) | ||
| 11953 | ); | ||
| 11954 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 11955 | 2 | case 0: | |
| 11956 | 2 | DataProducts::dpBufferAccumulator.bufferSendInReturn_handlerBase( | |
| 11957 | 0, | ||
| 11958 | fwBuffer | ||
| 11959 | ); | ||
| 11960 | 2 | break; | |
| 11961 | ✗ | default: | |
| 11962 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11963 | ✗ | break; | |
| 11964 | } | ||
| 11965 | 2 | } | |
| 11966 | |||
| 11967 | 2 | void DpWriterComponentBase::dpWrittenOut_out( | |
| 11968 | FwIndexType portNum, | ||
| 11969 | const Fw::StringBase& fileName, | ||
| 11970 | FwDpPriorityType priority, | ||
| 11971 | FwSizeType size | ||
| 11972 | ) const { | ||
| 11973 | 2 | FW_ASSERT( | |
| 11974 | (0 <= portNum) && (portNum < NUM_DPWRITTENOUT_OUTPUT_PORTS), | ||
| 11975 | static_cast<FwAssertArgType>(portNum), | ||
| 11976 | static_cast<FwAssertArgType>(NUM_DPWRITTENOUT_OUTPUT_PORTS) | ||
| 11977 | ); | ||
| 11978 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 11979 | 2 | case 0: | |
| 11980 | 2 | DataProducts::dpCat.addToCat_handlerBase( | |
| 11981 | 0, | ||
| 11982 | fileName, | ||
| 11983 | priority, | ||
| 11984 | size | ||
| 11985 | ); | ||
| 11986 | 2 | break; | |
| 11987 | ✗ | default: | |
| 11988 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11989 | ✗ | break; | |
| 11990 | } | ||
| 11991 | 2 | } | |
| 11992 | |||
| 11993 | 2 | void DpWriterComponentBase::eventOut_out( | |
| 11994 | FwIndexType portNum, | ||
| 11995 | FwEventIdType id, | ||
| 11996 | Fw::Time& timeTag, | ||
| 11997 | const Fw::LogSeverity& severity, | ||
| 11998 | Fw::LogBuffer& args | ||
| 11999 | ) const { | ||
| 12000 | 2 | FW_ASSERT( | |
| 12001 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 12002 | static_cast<FwAssertArgType>(portNum), | ||
| 12003 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 12004 | ); | ||
| 12005 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 12006 | 2 | case 0: | |
| 12007 | 2 | CdhCore::events.LogRecv_handlerBase( | |
| 12008 | 0, | ||
| 12009 | id, | ||
| 12010 | timeTag, | ||
| 12011 | severity, | ||
| 12012 | args | ||
| 12013 | ); | ||
| 12014 | 2 | break; | |
| 12015 | ✗ | default: | |
| 12016 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12017 | ✗ | break; | |
| 12018 | } | ||
| 12019 | 2 | } | |
| 12020 | |||
| 12021 | ✗ | void DpWriterComponentBase::procBufferSendOut_out( | |
| 12022 | FwIndexType portNum, | ||
| 12023 | Fw::Buffer& fwBuffer | ||
| 12024 | ) const { | ||
| 12025 | ✗ | FW_ASSERT( | |
| 12026 | (0 <= portNum) && (portNum < NUM_PROCBUFFERSENDOUT_OUTPUT_PORTS), | ||
| 12027 | static_cast<FwAssertArgType>(portNum), | ||
| 12028 | static_cast<FwAssertArgType>(NUM_PROCBUFFERSENDOUT_OUTPUT_PORTS) | ||
| 12029 | ); | ||
| 12030 | ✗ | switch (portNum) { | |
| 12031 | default: | ||
| 12032 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12033 | ✗ | break; | |
| 12034 | } | ||
| 12035 | ✗ | } | |
| 12036 | |||
| 12037 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 12038 | |||
| 12039 | 2 | void DpWriterComponentBase::textEventOut_out( | |
| 12040 | FwIndexType portNum, | ||
| 12041 | FwEventIdType id, | ||
| 12042 | Fw::Time& timeTag, | ||
| 12043 | const Fw::LogSeverity& severity, | ||
| 12044 | Fw::TextLogString& text | ||
| 12045 | ) const { | ||
| 12046 | 2 | FW_ASSERT( | |
| 12047 | (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS), | ||
| 12048 | static_cast<FwAssertArgType>(portNum), | ||
| 12049 | static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS) | ||
| 12050 | ); | ||
| 12051 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 12052 | 2 | case 0: | |
| 12053 | 2 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 12054 | 0, | ||
| 12055 | id, | ||
| 12056 | timeTag, | ||
| 12057 | severity, | ||
| 12058 | text | ||
| 12059 | ); | ||
| 12060 | 2 | break; | |
| 12061 | ✗ | default: | |
| 12062 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12063 | ✗ | break; | |
| 12064 | } | ||
| 12065 | 2 | } | |
| 12066 | |||
| 12067 | #endif | ||
| 12068 | |||
| 12069 | 10 | void DpWriterComponentBase::timeGetOut_out( | |
| 12070 | FwIndexType portNum, | ||
| 12071 | Fw::Time& time | ||
| 12072 | ) const { | ||
| 12073 | 10 | FW_ASSERT( | |
| 12074 | (0 <= portNum) && (portNum < NUM_TIMEGETOUT_OUTPUT_PORTS), | ||
| 12075 | static_cast<FwAssertArgType>(portNum), | ||
| 12076 | static_cast<FwAssertArgType>(NUM_TIMEGETOUT_OUTPUT_PORTS) | ||
| 12077 | ); | ||
| 12078 |
1/2✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
|
10 | switch (portNum) { |
| 12079 | 10 | case 0: | |
| 12080 | 10 | Ref::posixTime.timeGetPort_handlerBase( | |
| 12081 | 0, | ||
| 12082 | time | ||
| 12083 | ); | ||
| 12084 | 10 | break; | |
| 12085 | ✗ | default: | |
| 12086 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12087 | ✗ | break; | |
| 12088 | } | ||
| 12089 | 10 | } | |
| 12090 | |||
| 12091 | 8 | void DpWriterComponentBase::tlmOut_out( | |
| 12092 | FwIndexType portNum, | ||
| 12093 | FwChanIdType id, | ||
| 12094 | Fw::Time& timeTag, | ||
| 12095 | Fw::TlmBuffer& val | ||
| 12096 | ) const { | ||
| 12097 | 8 | FW_ASSERT( | |
| 12098 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 12099 | static_cast<FwAssertArgType>(portNum), | ||
| 12100 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 12101 | ); | ||
| 12102 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | switch (portNum) { |
| 12103 | 8 | case 0: | |
| 12104 | 8 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 12105 | 0, | ||
| 12106 | id, | ||
| 12107 | timeTag, | ||
| 12108 | val | ||
| 12109 | ); | ||
| 12110 | 8 | break; | |
| 12111 | ✗ | default: | |
| 12112 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12113 | ✗ | break; | |
| 12114 | } | ||
| 12115 | 8 | } | |
| 12116 | |||
| 12117 | } | ||
| 12118 | |||
| 12119 | namespace Svc { | ||
| 12120 | |||
| 12121 | 1 | bool EventManagerComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const { | |
| 12122 | 1 | FW_ASSERT( | |
| 12123 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 12124 | static_cast<FwAssertArgType>(portNum), | ||
| 12125 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 12126 | ); | ||
| 12127 | 1 | bool result = false; | |
| 12128 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 12129 | 1 | case 0: | |
| 12130 | 1 | result = true; | |
| 12131 | 1 | break; | |
| 12132 | ✗ | default: | |
| 12133 | ✗ | break; | |
| 12134 | } | ||
| 12135 | 1 | return result; | |
| 12136 | } | ||
| 12137 | |||
| 12138 | 13 | bool EventManagerComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const { | |
| 12139 | 13 | FW_ASSERT( | |
| 12140 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 12141 | static_cast<FwAssertArgType>(portNum), | ||
| 12142 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 12143 | ); | ||
| 12144 | 13 | bool result = false; | |
| 12145 |
1/2✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
|
13 | switch (portNum) { |
| 12146 | 13 | case 0: | |
| 12147 | 13 | result = true; | |
| 12148 | 13 | break; | |
| 12149 | ✗ | default: | |
| 12150 | ✗ | break; | |
| 12151 | } | ||
| 12152 | 13 | return result; | |
| 12153 | } | ||
| 12154 | |||
| 12155 | ✗ | bool EventManagerComponentBase::isConnected_FatalAnnounce_OutputPort(FwIndexType portNum) const { | |
| 12156 | ✗ | FW_ASSERT( | |
| 12157 | (0 <= portNum) && (portNum < NUM_FATALANNOUNCE_OUTPUT_PORTS), | ||
| 12158 | static_cast<FwAssertArgType>(portNum), | ||
| 12159 | static_cast<FwAssertArgType>(NUM_FATALANNOUNCE_OUTPUT_PORTS) | ||
| 12160 | ); | ||
| 12161 | ✗ | bool result = false; | |
| 12162 | ✗ | switch (portNum) { | |
| 12163 | ✗ | case 0: | |
| 12164 | ✗ | result = true; | |
| 12165 | ✗ | break; | |
| 12166 | ✗ | default: | |
| 12167 | ✗ | break; | |
| 12168 | } | ||
| 12169 | ✗ | return result; | |
| 12170 | } | ||
| 12171 | |||
| 12172 | ✗ | bool EventManagerComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 12173 | ✗ | FW_ASSERT( | |
| 12174 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 12175 | static_cast<FwAssertArgType>(portNum), | ||
| 12176 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 12177 | ); | ||
| 12178 | ✗ | bool result = false; | |
| 12179 | ✗ | switch (portNum) { | |
| 12180 | ✗ | case 0: | |
| 12181 | ✗ | result = true; | |
| 12182 | ✗ | break; | |
| 12183 | ✗ | default: | |
| 12184 | ✗ | break; | |
| 12185 | } | ||
| 12186 | ✗ | return result; | |
| 12187 | } | ||
| 12188 | |||
| 12189 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 12190 | |||
| 12191 | ✗ | bool EventManagerComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 12192 | ✗ | FW_ASSERT( | |
| 12193 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 12194 | static_cast<FwAssertArgType>(portNum), | ||
| 12195 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 12196 | ); | ||
| 12197 | ✗ | bool result = false; | |
| 12198 | ✗ | switch (portNum) { | |
| 12199 | ✗ | case 0: | |
| 12200 | ✗ | result = true; | |
| 12201 | ✗ | break; | |
| 12202 | ✗ | default: | |
| 12203 | ✗ | break; | |
| 12204 | } | ||
| 12205 | ✗ | return result; | |
| 12206 | } | ||
| 12207 | |||
| 12208 | #endif | ||
| 12209 | |||
| 12210 | 464 | bool EventManagerComponentBase::isConnected_PktSend_OutputPort(FwIndexType portNum) const { | |
| 12211 | 464 | FW_ASSERT( | |
| 12212 | (0 <= portNum) && (portNum < NUM_PKTSEND_OUTPUT_PORTS), | ||
| 12213 | static_cast<FwAssertArgType>(portNum), | ||
| 12214 | static_cast<FwAssertArgType>(NUM_PKTSEND_OUTPUT_PORTS) | ||
| 12215 | ); | ||
| 12216 | 464 | bool result = false; | |
| 12217 |
1/2✓ Branch 0 taken 464 times.
✗ Branch 1 not taken.
|
464 | switch (portNum) { |
| 12218 | 464 | case 0: | |
| 12219 | 464 | result = true; | |
| 12220 | 464 | break; | |
| 12221 | ✗ | default: | |
| 12222 | ✗ | break; | |
| 12223 | } | ||
| 12224 | 464 | return result; | |
| 12225 | } | ||
| 12226 | |||
| 12227 | 1 | bool EventManagerComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 12228 | 1 | FW_ASSERT( | |
| 12229 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 12230 | static_cast<FwAssertArgType>(portNum), | ||
| 12231 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 12232 | ); | ||
| 12233 | 1 | bool result = false; | |
| 12234 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 12235 | 1 | case 0: | |
| 12236 | 1 | result = true; | |
| 12237 | 1 | break; | |
| 12238 | ✗ | default: | |
| 12239 | ✗ | break; | |
| 12240 | } | ||
| 12241 | 1 | return result; | |
| 12242 | } | ||
| 12243 | |||
| 12244 | 2 | bool EventManagerComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const { | |
| 12245 | 2 | FW_ASSERT( | |
| 12246 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 12247 | static_cast<FwAssertArgType>(portNum), | ||
| 12248 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 12249 | ); | ||
| 12250 | 2 | bool result = false; | |
| 12251 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 12252 | 2 | case 0: | |
| 12253 | 2 | result = true; | |
| 12254 | 2 | break; | |
| 12255 | ✗ | default: | |
| 12256 | ✗ | break; | |
| 12257 | } | ||
| 12258 | 2 | return result; | |
| 12259 | } | ||
| 12260 | |||
| 12261 | ✗ | bool EventManagerComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const { | |
| 12262 | ✗ | FW_ASSERT( | |
| 12263 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 12264 | static_cast<FwAssertArgType>(portNum), | ||
| 12265 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 12266 | ); | ||
| 12267 | ✗ | bool result = false; | |
| 12268 | ✗ | switch (portNum) { | |
| 12269 | ✗ | case 0: | |
| 12270 | ✗ | result = true; | |
| 12271 | ✗ | break; | |
| 12272 | ✗ | default: | |
| 12273 | ✗ | break; | |
| 12274 | } | ||
| 12275 | ✗ | return result; | |
| 12276 | } | ||
| 12277 | |||
| 12278 | 3 | void EventManagerComponentBase::CmdReg_out( | |
| 12279 | FwIndexType portNum, | ||
| 12280 | FwOpcodeType opCode | ||
| 12281 | ) const { | ||
| 12282 | 3 | FW_ASSERT( | |
| 12283 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 12284 | static_cast<FwAssertArgType>(portNum), | ||
| 12285 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 12286 | ); | ||
| 12287 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 12288 | 3 | case 0: | |
| 12289 | 3 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 12290 | 1, | ||
| 12291 | opCode | ||
| 12292 | ); | ||
| 12293 | 3 | break; | |
| 12294 | ✗ | default: | |
| 12295 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12296 | ✗ | break; | |
| 12297 | } | ||
| 12298 | 3 | } | |
| 12299 | |||
| 12300 | 13 | void EventManagerComponentBase::CmdStatus_out( | |
| 12301 | FwIndexType portNum, | ||
| 12302 | FwOpcodeType opCode, | ||
| 12303 | U32 cmdSeq, | ||
| 12304 | const Fw::CmdResponse& response | ||
| 12305 | ) const { | ||
| 12306 | 13 | FW_ASSERT( | |
| 12307 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 12308 | static_cast<FwAssertArgType>(portNum), | ||
| 12309 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 12310 | ); | ||
| 12311 |
1/2✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
|
13 | switch (portNum) { |
| 12312 | 13 | case 0: | |
| 12313 | 13 | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 12314 | 0, | ||
| 12315 | opCode, | ||
| 12316 | cmdSeq, | ||
| 12317 | response | ||
| 12318 | ); | ||
| 12319 | 13 | break; | |
| 12320 | ✗ | default: | |
| 12321 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12322 | ✗ | break; | |
| 12323 | } | ||
| 12324 | 13 | } | |
| 12325 | |||
| 12326 | ✗ | void EventManagerComponentBase::FatalAnnounce_out( | |
| 12327 | FwIndexType portNum, | ||
| 12328 | FwEventIdType Id | ||
| 12329 | ) const { | ||
| 12330 | ✗ | FW_ASSERT( | |
| 12331 | (0 <= portNum) && (portNum < NUM_FATALANNOUNCE_OUTPUT_PORTS), | ||
| 12332 | static_cast<FwAssertArgType>(portNum), | ||
| 12333 | static_cast<FwAssertArgType>(NUM_FATALANNOUNCE_OUTPUT_PORTS) | ||
| 12334 | ); | ||
| 12335 | ✗ | switch (portNum) { | |
| 12336 | ✗ | case 0: | |
| 12337 | ✗ | CdhCore::fatalHandler.FatalReceive_handlerBase( | |
| 12338 | 0, | ||
| 12339 | Id | ||
| 12340 | ); | ||
| 12341 | ✗ | break; | |
| 12342 | ✗ | default: | |
| 12343 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12344 | ✗ | break; | |
| 12345 | } | ||
| 12346 | ✗ | } | |
| 12347 | |||
| 12348 | ✗ | void EventManagerComponentBase::Log_out( | |
| 12349 | FwIndexType portNum, | ||
| 12350 | FwEventIdType id, | ||
| 12351 | Fw::Time& timeTag, | ||
| 12352 | const Fw::LogSeverity& severity, | ||
| 12353 | Fw::LogBuffer& args | ||
| 12354 | ) const { | ||
| 12355 | ✗ | FW_ASSERT( | |
| 12356 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 12357 | static_cast<FwAssertArgType>(portNum), | ||
| 12358 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 12359 | ); | ||
| 12360 | ✗ | switch (portNum) { | |
| 12361 | ✗ | case 0: | |
| 12362 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 12363 | 0, | ||
| 12364 | id, | ||
| 12365 | timeTag, | ||
| 12366 | severity, | ||
| 12367 | args | ||
| 12368 | ); | ||
| 12369 | ✗ | break; | |
| 12370 | ✗ | default: | |
| 12371 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12372 | ✗ | break; | |
| 12373 | } | ||
| 12374 | ✗ | } | |
| 12375 | |||
| 12376 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 12377 | |||
| 12378 | ✗ | void EventManagerComponentBase::LogText_out( | |
| 12379 | FwIndexType portNum, | ||
| 12380 | FwEventIdType id, | ||
| 12381 | Fw::Time& timeTag, | ||
| 12382 | const Fw::LogSeverity& severity, | ||
| 12383 | Fw::TextLogString& text | ||
| 12384 | ) const { | ||
| 12385 | ✗ | FW_ASSERT( | |
| 12386 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 12387 | static_cast<FwAssertArgType>(portNum), | ||
| 12388 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 12389 | ); | ||
| 12390 | ✗ | switch (portNum) { | |
| 12391 | ✗ | case 0: | |
| 12392 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 12393 | 0, | ||
| 12394 | id, | ||
| 12395 | timeTag, | ||
| 12396 | severity, | ||
| 12397 | text | ||
| 12398 | ); | ||
| 12399 | ✗ | break; | |
| 12400 | ✗ | default: | |
| 12401 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12402 | ✗ | break; | |
| 12403 | } | ||
| 12404 | ✗ | } | |
| 12405 | |||
| 12406 | #endif | ||
| 12407 | |||
| 12408 | 464 | void EventManagerComponentBase::PktSend_out( | |
| 12409 | FwIndexType portNum, | ||
| 12410 | Fw::ComBuffer& data, | ||
| 12411 | U32 context | ||
| 12412 | ) const { | ||
| 12413 | 464 | FW_ASSERT( | |
| 12414 | (0 <= portNum) && (portNum < NUM_PKTSEND_OUTPUT_PORTS), | ||
| 12415 | static_cast<FwAssertArgType>(portNum), | ||
| 12416 | static_cast<FwAssertArgType>(NUM_PKTSEND_OUTPUT_PORTS) | ||
| 12417 | ); | ||
| 12418 |
1/2✓ Branch 0 taken 464 times.
✗ Branch 1 not taken.
|
464 | switch (portNum) { |
| 12419 | 464 | case 0: | |
| 12420 | 464 | ComCcsds::comQueue.comPacketQueueIn_handlerBase( | |
| 12421 | 0, | ||
| 12422 | data, | ||
| 12423 | context | ||
| 12424 | ); | ||
| 12425 | 464 | break; | |
| 12426 | ✗ | default: | |
| 12427 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12428 | ✗ | break; | |
| 12429 | } | ||
| 12430 | 464 | } | |
| 12431 | |||
| 12432 | 1 | void EventManagerComponentBase::Time_out( | |
| 12433 | FwIndexType portNum, | ||
| 12434 | Fw::Time& time | ||
| 12435 | ) const { | ||
| 12436 | 1 | FW_ASSERT( | |
| 12437 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 12438 | static_cast<FwAssertArgType>(portNum), | ||
| 12439 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 12440 | ); | ||
| 12441 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 12442 | 1 | case 0: | |
| 12443 | 1 | Ref::posixTime.timeGetPort_handlerBase( | |
| 12444 | 0, | ||
| 12445 | time | ||
| 12446 | ); | ||
| 12447 | 1 | break; | |
| 12448 | ✗ | default: | |
| 12449 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12450 | ✗ | break; | |
| 12451 | } | ||
| 12452 | 1 | } | |
| 12453 | |||
| 12454 | 1 | void EventManagerComponentBase::Tlm_out( | |
| 12455 | FwIndexType portNum, | ||
| 12456 | FwChanIdType id, | ||
| 12457 | Fw::Time& timeTag, | ||
| 12458 | Fw::TlmBuffer& val | ||
| 12459 | ) const { | ||
| 12460 | 1 | FW_ASSERT( | |
| 12461 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 12462 | static_cast<FwAssertArgType>(portNum), | ||
| 12463 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 12464 | ); | ||
| 12465 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 12466 | 1 | case 0: | |
| 12467 | 1 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 12468 | 0, | ||
| 12469 | id, | ||
| 12470 | timeTag, | ||
| 12471 | val | ||
| 12472 | ); | ||
| 12473 | 1 | break; | |
| 12474 | ✗ | default: | |
| 12475 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12476 | ✗ | break; | |
| 12477 | } | ||
| 12478 | 1 | } | |
| 12479 | |||
| 12480 | 62 | void EventManagerComponentBase::pingOut_out( | |
| 12481 | FwIndexType portNum, | ||
| 12482 | U32 key | ||
| 12483 | ) const { | ||
| 12484 | 62 | FW_ASSERT( | |
| 12485 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 12486 | static_cast<FwAssertArgType>(portNum), | ||
| 12487 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 12488 | ); | ||
| 12489 |
1/2✓ Branch 0 taken 62 times.
✗ Branch 1 not taken.
|
62 | switch (portNum) { |
| 12490 | 62 | case 0: | |
| 12491 | 62 | CdhCore::health.PingReturn_handlerBase( | |
| 12492 | 1, | ||
| 12493 | key | ||
| 12494 | ); | ||
| 12495 | 62 | break; | |
| 12496 | ✗ | default: | |
| 12497 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12498 | ✗ | break; | |
| 12499 | } | ||
| 12500 | 62 | } | |
| 12501 | |||
| 12502 | } | ||
| 12503 | |||
| 12504 | namespace Svc { | ||
| 12505 | |||
| 12506 | ✗ | bool FileDownlinkComponentBase::isConnected_FileComplete_OutputPort(FwIndexType portNum) const { | |
| 12507 | ✗ | FW_ASSERT( | |
| 12508 | (0 <= portNum) && (portNum < NUM_FILECOMPLETE_OUTPUT_PORTS), | ||
| 12509 | static_cast<FwAssertArgType>(portNum), | ||
| 12510 | static_cast<FwAssertArgType>(NUM_FILECOMPLETE_OUTPUT_PORTS) | ||
| 12511 | ); | ||
| 12512 | ✗ | bool result = false; | |
| 12513 | ✗ | switch (portNum) { | |
| 12514 | ✗ | case 0: | |
| 12515 | ✗ | result = true; | |
| 12516 | ✗ | break; | |
| 12517 | ✗ | default: | |
| 12518 | ✗ | break; | |
| 12519 | } | ||
| 12520 | ✗ | return result; | |
| 12521 | } | ||
| 12522 | |||
| 12523 | ✗ | bool FileDownlinkComponentBase::isConnected_bufferSendOut_OutputPort(FwIndexType portNum) const { | |
| 12524 | ✗ | FW_ASSERT( | |
| 12525 | (0 <= portNum) && (portNum < NUM_BUFFERSENDOUT_OUTPUT_PORTS), | ||
| 12526 | static_cast<FwAssertArgType>(portNum), | ||
| 12527 | static_cast<FwAssertArgType>(NUM_BUFFERSENDOUT_OUTPUT_PORTS) | ||
| 12528 | ); | ||
| 12529 | ✗ | bool result = false; | |
| 12530 | ✗ | switch (portNum) { | |
| 12531 | ✗ | case 0: | |
| 12532 | ✗ | result = true; | |
| 12533 | ✗ | break; | |
| 12534 | ✗ | default: | |
| 12535 | ✗ | break; | |
| 12536 | } | ||
| 12537 | ✗ | return result; | |
| 12538 | } | ||
| 12539 | |||
| 12540 | 1 | bool FileDownlinkComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const { | |
| 12541 | 1 | FW_ASSERT( | |
| 12542 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 12543 | static_cast<FwAssertArgType>(portNum), | ||
| 12544 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 12545 | ); | ||
| 12546 | 1 | bool result = false; | |
| 12547 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 12548 | 1 | case 0: | |
| 12549 | 1 | result = true; | |
| 12550 | 1 | break; | |
| 12551 | ✗ | default: | |
| 12552 | ✗ | break; | |
| 12553 | } | ||
| 12554 | 1 | return result; | |
| 12555 | } | ||
| 12556 | |||
| 12557 | ✗ | bool FileDownlinkComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const { | |
| 12558 | ✗ | FW_ASSERT( | |
| 12559 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 12560 | static_cast<FwAssertArgType>(portNum), | ||
| 12561 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 12562 | ); | ||
| 12563 | ✗ | bool result = false; | |
| 12564 | ✗ | switch (portNum) { | |
| 12565 | ✗ | case 0: | |
| 12566 | ✗ | result = true; | |
| 12567 | ✗ | break; | |
| 12568 | ✗ | default: | |
| 12569 | ✗ | break; | |
| 12570 | } | ||
| 12571 | ✗ | return result; | |
| 12572 | } | ||
| 12573 | |||
| 12574 | ✗ | bool FileDownlinkComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const { | |
| 12575 | ✗ | FW_ASSERT( | |
| 12576 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 12577 | static_cast<FwAssertArgType>(portNum), | ||
| 12578 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 12579 | ); | ||
| 12580 | ✗ | bool result = false; | |
| 12581 | ✗ | switch (portNum) { | |
| 12582 | ✗ | case 0: | |
| 12583 | ✗ | result = true; | |
| 12584 | ✗ | break; | |
| 12585 | ✗ | default: | |
| 12586 | ✗ | break; | |
| 12587 | } | ||
| 12588 | ✗ | return result; | |
| 12589 | } | ||
| 12590 | |||
| 12591 | ✗ | bool FileDownlinkComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const { | |
| 12592 | ✗ | FW_ASSERT( | |
| 12593 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 12594 | static_cast<FwAssertArgType>(portNum), | ||
| 12595 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 12596 | ); | ||
| 12597 | ✗ | bool result = false; | |
| 12598 | ✗ | switch (portNum) { | |
| 12599 | ✗ | case 0: | |
| 12600 | ✗ | result = true; | |
| 12601 | ✗ | break; | |
| 12602 | ✗ | default: | |
| 12603 | ✗ | break; | |
| 12604 | } | ||
| 12605 | ✗ | return result; | |
| 12606 | } | ||
| 12607 | |||
| 12608 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 12609 | |||
| 12610 | ✗ | bool FileDownlinkComponentBase::isConnected_textEventOut_OutputPort(FwIndexType portNum) const { | |
| 12611 | ✗ | FW_ASSERT( | |
| 12612 | (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS), | ||
| 12613 | static_cast<FwAssertArgType>(portNum), | ||
| 12614 | static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS) | ||
| 12615 | ); | ||
| 12616 | ✗ | bool result = false; | |
| 12617 | ✗ | switch (portNum) { | |
| 12618 | ✗ | case 0: | |
| 12619 | ✗ | result = true; | |
| 12620 | ✗ | break; | |
| 12621 | ✗ | default: | |
| 12622 | ✗ | break; | |
| 12623 | } | ||
| 12624 | ✗ | return result; | |
| 12625 | } | ||
| 12626 | |||
| 12627 | #endif | ||
| 12628 | |||
| 12629 | ✗ | bool FileDownlinkComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 12630 | ✗ | FW_ASSERT( | |
| 12631 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 12632 | static_cast<FwAssertArgType>(portNum), | ||
| 12633 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 12634 | ); | ||
| 12635 | ✗ | bool result = false; | |
| 12636 | ✗ | switch (portNum) { | |
| 12637 | ✗ | case 0: | |
| 12638 | ✗ | result = true; | |
| 12639 | ✗ | break; | |
| 12640 | ✗ | default: | |
| 12641 | ✗ | break; | |
| 12642 | } | ||
| 12643 | ✗ | return result; | |
| 12644 | } | ||
| 12645 | |||
| 12646 | ✗ | bool FileDownlinkComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 12647 | ✗ | FW_ASSERT( | |
| 12648 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 12649 | static_cast<FwAssertArgType>(portNum), | ||
| 12650 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 12651 | ); | ||
| 12652 | ✗ | bool result = false; | |
| 12653 | ✗ | switch (portNum) { | |
| 12654 | ✗ | case 0: | |
| 12655 | ✗ | result = true; | |
| 12656 | ✗ | break; | |
| 12657 | ✗ | default: | |
| 12658 | ✗ | break; | |
| 12659 | } | ||
| 12660 | ✗ | return result; | |
| 12661 | } | ||
| 12662 | |||
| 12663 | ✗ | void FileDownlinkComponentBase::FileComplete_out( | |
| 12664 | FwIndexType portNum, | ||
| 12665 | const Svc::SendFileResponse& resp | ||
| 12666 | ) const { | ||
| 12667 | ✗ | FW_ASSERT( | |
| 12668 | (0 <= portNum) && (portNum < NUM_FILECOMPLETE_OUTPUT_PORTS), | ||
| 12669 | static_cast<FwAssertArgType>(portNum), | ||
| 12670 | static_cast<FwAssertArgType>(NUM_FILECOMPLETE_OUTPUT_PORTS) | ||
| 12671 | ); | ||
| 12672 | ✗ | switch (portNum) { | |
| 12673 | ✗ | case 0: | |
| 12674 | ✗ | DataProducts::dpCat.fileDone_handlerBase( | |
| 12675 | 0, | ||
| 12676 | resp | ||
| 12677 | ); | ||
| 12678 | ✗ | break; | |
| 12679 | ✗ | default: | |
| 12680 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12681 | ✗ | break; | |
| 12682 | } | ||
| 12683 | ✗ | } | |
| 12684 | |||
| 12685 | ✗ | void FileDownlinkComponentBase::bufferSendOut_out( | |
| 12686 | FwIndexType portNum, | ||
| 12687 | Fw::Buffer& fwBuffer | ||
| 12688 | ) const { | ||
| 12689 | ✗ | FW_ASSERT( | |
| 12690 | (0 <= portNum) && (portNum < NUM_BUFFERSENDOUT_OUTPUT_PORTS), | ||
| 12691 | static_cast<FwAssertArgType>(portNum), | ||
| 12692 | static_cast<FwAssertArgType>(NUM_BUFFERSENDOUT_OUTPUT_PORTS) | ||
| 12693 | ); | ||
| 12694 | ✗ | switch (portNum) { | |
| 12695 | ✗ | case 0: | |
| 12696 | ✗ | ComCcsds::comQueue.bufferQueueIn_handlerBase( | |
| 12697 | 0, | ||
| 12698 | fwBuffer | ||
| 12699 | ); | ||
| 12700 | ✗ | break; | |
| 12701 | ✗ | default: | |
| 12702 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12703 | ✗ | break; | |
| 12704 | } | ||
| 12705 | ✗ | } | |
| 12706 | |||
| 12707 | 3 | void FileDownlinkComponentBase::cmdRegOut_out( | |
| 12708 | FwIndexType portNum, | ||
| 12709 | FwOpcodeType opCode | ||
| 12710 | ) const { | ||
| 12711 | 3 | FW_ASSERT( | |
| 12712 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 12713 | static_cast<FwAssertArgType>(portNum), | ||
| 12714 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 12715 | ); | ||
| 12716 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 12717 | 3 | case 0: | |
| 12718 | 3 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 12719 | 9, | ||
| 12720 | opCode | ||
| 12721 | ); | ||
| 12722 | 3 | break; | |
| 12723 | ✗ | default: | |
| 12724 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12725 | ✗ | break; | |
| 12726 | } | ||
| 12727 | 3 | } | |
| 12728 | |||
| 12729 | ✗ | void FileDownlinkComponentBase::cmdResponseOut_out( | |
| 12730 | FwIndexType portNum, | ||
| 12731 | FwOpcodeType opCode, | ||
| 12732 | U32 cmdSeq, | ||
| 12733 | const Fw::CmdResponse& response | ||
| 12734 | ) const { | ||
| 12735 | ✗ | FW_ASSERT( | |
| 12736 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 12737 | static_cast<FwAssertArgType>(portNum), | ||
| 12738 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 12739 | ); | ||
| 12740 | ✗ | switch (portNum) { | |
| 12741 | ✗ | case 0: | |
| 12742 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 12743 | 0, | ||
| 12744 | opCode, | ||
| 12745 | cmdSeq, | ||
| 12746 | response | ||
| 12747 | ); | ||
| 12748 | ✗ | break; | |
| 12749 | ✗ | default: | |
| 12750 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12751 | ✗ | break; | |
| 12752 | } | ||
| 12753 | ✗ | } | |
| 12754 | |||
| 12755 | ✗ | void FileDownlinkComponentBase::eventOut_out( | |
| 12756 | FwIndexType portNum, | ||
| 12757 | FwEventIdType id, | ||
| 12758 | Fw::Time& timeTag, | ||
| 12759 | const Fw::LogSeverity& severity, | ||
| 12760 | Fw::LogBuffer& args | ||
| 12761 | ) const { | ||
| 12762 | ✗ | FW_ASSERT( | |
| 12763 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 12764 | static_cast<FwAssertArgType>(portNum), | ||
| 12765 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 12766 | ); | ||
| 12767 | ✗ | switch (portNum) { | |
| 12768 | ✗ | case 0: | |
| 12769 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 12770 | 0, | ||
| 12771 | id, | ||
| 12772 | timeTag, | ||
| 12773 | severity, | ||
| 12774 | args | ||
| 12775 | ); | ||
| 12776 | ✗ | break; | |
| 12777 | ✗ | default: | |
| 12778 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12779 | ✗ | break; | |
| 12780 | } | ||
| 12781 | ✗ | } | |
| 12782 | |||
| 12783 | 62 | void FileDownlinkComponentBase::pingOut_out( | |
| 12784 | FwIndexType portNum, | ||
| 12785 | U32 key | ||
| 12786 | ) const { | ||
| 12787 | 62 | FW_ASSERT( | |
| 12788 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 12789 | static_cast<FwAssertArgType>(portNum), | ||
| 12790 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 12791 | ); | ||
| 12792 |
1/2✓ Branch 0 taken 62 times.
✗ Branch 1 not taken.
|
62 | switch (portNum) { |
| 12793 | 62 | case 0: | |
| 12794 | 62 | CdhCore::health.PingReturn_handlerBase( | |
| 12795 | 5, | ||
| 12796 | key | ||
| 12797 | ); | ||
| 12798 | 62 | break; | |
| 12799 | ✗ | default: | |
| 12800 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12801 | ✗ | break; | |
| 12802 | } | ||
| 12803 | 62 | } | |
| 12804 | |||
| 12805 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 12806 | |||
| 12807 | ✗ | void FileDownlinkComponentBase::textEventOut_out( | |
| 12808 | FwIndexType portNum, | ||
| 12809 | FwEventIdType id, | ||
| 12810 | Fw::Time& timeTag, | ||
| 12811 | const Fw::LogSeverity& severity, | ||
| 12812 | Fw::TextLogString& text | ||
| 12813 | ) const { | ||
| 12814 | ✗ | FW_ASSERT( | |
| 12815 | (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS), | ||
| 12816 | static_cast<FwAssertArgType>(portNum), | ||
| 12817 | static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS) | ||
| 12818 | ); | ||
| 12819 | ✗ | switch (portNum) { | |
| 12820 | ✗ | case 0: | |
| 12821 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 12822 | 0, | ||
| 12823 | id, | ||
| 12824 | timeTag, | ||
| 12825 | severity, | ||
| 12826 | text | ||
| 12827 | ); | ||
| 12828 | ✗ | break; | |
| 12829 | ✗ | default: | |
| 12830 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12831 | ✗ | break; | |
| 12832 | } | ||
| 12833 | ✗ | } | |
| 12834 | |||
| 12835 | #endif | ||
| 12836 | |||
| 12837 | ✗ | void FileDownlinkComponentBase::timeCaller_out( | |
| 12838 | FwIndexType portNum, | ||
| 12839 | Fw::Time& time | ||
| 12840 | ) const { | ||
| 12841 | ✗ | FW_ASSERT( | |
| 12842 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 12843 | static_cast<FwAssertArgType>(portNum), | ||
| 12844 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 12845 | ); | ||
| 12846 | ✗ | switch (portNum) { | |
| 12847 | ✗ | case 0: | |
| 12848 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 12849 | 0, | ||
| 12850 | time | ||
| 12851 | ); | ||
| 12852 | ✗ | break; | |
| 12853 | ✗ | default: | |
| 12854 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12855 | ✗ | break; | |
| 12856 | } | ||
| 12857 | ✗ | } | |
| 12858 | |||
| 12859 | ✗ | void FileDownlinkComponentBase::tlmOut_out( | |
| 12860 | FwIndexType portNum, | ||
| 12861 | FwChanIdType id, | ||
| 12862 | Fw::Time& timeTag, | ||
| 12863 | Fw::TlmBuffer& val | ||
| 12864 | ) const { | ||
| 12865 | ✗ | FW_ASSERT( | |
| 12866 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 12867 | static_cast<FwAssertArgType>(portNum), | ||
| 12868 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 12869 | ); | ||
| 12870 | ✗ | switch (portNum) { | |
| 12871 | ✗ | case 0: | |
| 12872 | ✗ | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 12873 | 0, | ||
| 12874 | id, | ||
| 12875 | timeTag, | ||
| 12876 | val | ||
| 12877 | ); | ||
| 12878 | ✗ | break; | |
| 12879 | ✗ | default: | |
| 12880 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12881 | ✗ | break; | |
| 12882 | } | ||
| 12883 | ✗ | } | |
| 12884 | |||
| 12885 | } | ||
| 12886 | |||
| 12887 | namespace Svc { | ||
| 12888 | |||
| 12889 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 12890 | |||
| 12891 | 2 | bool FileManagerComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 12892 | 2 | FW_ASSERT( | |
| 12893 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 12894 | static_cast<FwAssertArgType>(portNum), | ||
| 12895 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 12896 | ); | ||
| 12897 | 2 | bool result = false; | |
| 12898 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 12899 | 2 | case 0: | |
| 12900 | 2 | result = true; | |
| 12901 | 2 | break; | |
| 12902 | ✗ | default: | |
| 12903 | ✗ | break; | |
| 12904 | } | ||
| 12905 | 2 | return result; | |
| 12906 | } | ||
| 12907 | |||
| 12908 | #endif | ||
| 12909 | |||
| 12910 | 1 | bool FileManagerComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const { | |
| 12911 | 1 | FW_ASSERT( | |
| 12912 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 12913 | static_cast<FwAssertArgType>(portNum), | ||
| 12914 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 12915 | ); | ||
| 12916 | 1 | bool result = false; | |
| 12917 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 12918 | 1 | case 0: | |
| 12919 | 1 | result = true; | |
| 12920 | 1 | break; | |
| 12921 | ✗ | default: | |
| 12922 | ✗ | break; | |
| 12923 | } | ||
| 12924 | 1 | return result; | |
| 12925 | } | ||
| 12926 | |||
| 12927 | 1 | bool FileManagerComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const { | |
| 12928 | 1 | FW_ASSERT( | |
| 12929 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 12930 | static_cast<FwAssertArgType>(portNum), | ||
| 12931 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 12932 | ); | ||
| 12933 | 1 | bool result = false; | |
| 12934 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 12935 | 1 | case 0: | |
| 12936 | 1 | result = true; | |
| 12937 | 1 | break; | |
| 12938 | ✗ | default: | |
| 12939 | ✗ | break; | |
| 12940 | } | ||
| 12941 | 1 | return result; | |
| 12942 | } | ||
| 12943 | |||
| 12944 | 2 | bool FileManagerComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const { | |
| 12945 | 2 | FW_ASSERT( | |
| 12946 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 12947 | static_cast<FwAssertArgType>(portNum), | ||
| 12948 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 12949 | ); | ||
| 12950 | 2 | bool result = false; | |
| 12951 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 12952 | 2 | case 0: | |
| 12953 | 2 | result = true; | |
| 12954 | 2 | break; | |
| 12955 | ✗ | default: | |
| 12956 | ✗ | break; | |
| 12957 | } | ||
| 12958 | 2 | return result; | |
| 12959 | } | ||
| 12960 | |||
| 12961 | ✗ | bool FileManagerComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const { | |
| 12962 | ✗ | FW_ASSERT( | |
| 12963 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 12964 | static_cast<FwAssertArgType>(portNum), | ||
| 12965 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 12966 | ); | ||
| 12967 | ✗ | bool result = false; | |
| 12968 | ✗ | switch (portNum) { | |
| 12969 | ✗ | case 0: | |
| 12970 | ✗ | result = true; | |
| 12971 | ✗ | break; | |
| 12972 | ✗ | default: | |
| 12973 | ✗ | break; | |
| 12974 | } | ||
| 12975 | ✗ | return result; | |
| 12976 | } | ||
| 12977 | |||
| 12978 | ✗ | bool FileManagerComponentBase::isConnected_productGetOut_OutputPort(FwIndexType portNum) const { | |
| 12979 | ✗ | FW_ASSERT( | |
| 12980 | (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS), | ||
| 12981 | static_cast<FwAssertArgType>(portNum), | ||
| 12982 | static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS) | ||
| 12983 | ); | ||
| 12984 | ✗ | bool result = false; | |
| 12985 | ✗ | switch (portNum) { | |
| 12986 | default: | ||
| 12987 | ✗ | break; | |
| 12988 | } | ||
| 12989 | ✗ | return result; | |
| 12990 | } | ||
| 12991 | |||
| 12992 | ✗ | bool FileManagerComponentBase::isConnected_productSendOut_OutputPort(FwIndexType portNum) const { | |
| 12993 | ✗ | FW_ASSERT( | |
| 12994 | (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS), | ||
| 12995 | static_cast<FwAssertArgType>(portNum), | ||
| 12996 | static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS) | ||
| 12997 | ); | ||
| 12998 | ✗ | bool result = false; | |
| 12999 | ✗ | switch (portNum) { | |
| 13000 | default: | ||
| 13001 | ✗ | break; | |
| 13002 | } | ||
| 13003 | ✗ | return result; | |
| 13004 | } | ||
| 13005 | |||
| 13006 | 3 | bool FileManagerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 13007 | 3 | FW_ASSERT( | |
| 13008 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 13009 | static_cast<FwAssertArgType>(portNum), | ||
| 13010 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 13011 | ); | ||
| 13012 | 3 | bool result = false; | |
| 13013 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 13014 | 3 | case 0: | |
| 13015 | 3 | result = true; | |
| 13016 | 3 | break; | |
| 13017 | ✗ | default: | |
| 13018 | ✗ | break; | |
| 13019 | } | ||
| 13020 | 3 | return result; | |
| 13021 | } | ||
| 13022 | |||
| 13023 | 2 | bool FileManagerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 13024 | 2 | FW_ASSERT( | |
| 13025 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 13026 | static_cast<FwAssertArgType>(portNum), | ||
| 13027 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 13028 | ); | ||
| 13029 | 2 | bool result = false; | |
| 13030 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 13031 | 2 | case 0: | |
| 13032 | 2 | result = true; | |
| 13033 | 2 | break; | |
| 13034 | ✗ | default: | |
| 13035 | ✗ | break; | |
| 13036 | } | ||
| 13037 | 2 | return result; | |
| 13038 | } | ||
| 13039 | |||
| 13040 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 13041 | |||
| 13042 | 2 | void FileManagerComponentBase::LogText_out( | |
| 13043 | FwIndexType portNum, | ||
| 13044 | FwEventIdType id, | ||
| 13045 | Fw::Time& timeTag, | ||
| 13046 | const Fw::LogSeverity& severity, | ||
| 13047 | Fw::TextLogString& text | ||
| 13048 | ) const { | ||
| 13049 | 2 | FW_ASSERT( | |
| 13050 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 13051 | static_cast<FwAssertArgType>(portNum), | ||
| 13052 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 13053 | ); | ||
| 13054 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 13055 | 2 | case 0: | |
| 13056 | 2 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 13057 | 0, | ||
| 13058 | id, | ||
| 13059 | timeTag, | ||
| 13060 | severity, | ||
| 13061 | text | ||
| 13062 | ); | ||
| 13063 | 2 | break; | |
| 13064 | ✗ | default: | |
| 13065 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13066 | ✗ | break; | |
| 13067 | } | ||
| 13068 | 2 | } | |
| 13069 | |||
| 13070 | #endif | ||
| 13071 | |||
| 13072 | 9 | void FileManagerComponentBase::cmdRegOut_out( | |
| 13073 | FwIndexType portNum, | ||
| 13074 | FwOpcodeType opCode | ||
| 13075 | ) const { | ||
| 13076 | 9 | FW_ASSERT( | |
| 13077 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 13078 | static_cast<FwAssertArgType>(portNum), | ||
| 13079 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 13080 | ); | ||
| 13081 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | switch (portNum) { |
| 13082 | 9 | case 0: | |
| 13083 | 9 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 13084 | 10, | ||
| 13085 | opCode | ||
| 13086 | ); | ||
| 13087 | 9 | break; | |
| 13088 | ✗ | default: | |
| 13089 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13090 | ✗ | break; | |
| 13091 | } | ||
| 13092 | 9 | } | |
| 13093 | |||
| 13094 | 1 | void FileManagerComponentBase::cmdResponseOut_out( | |
| 13095 | FwIndexType portNum, | ||
| 13096 | FwOpcodeType opCode, | ||
| 13097 | U32 cmdSeq, | ||
| 13098 | const Fw::CmdResponse& response | ||
| 13099 | ) const { | ||
| 13100 | 1 | FW_ASSERT( | |
| 13101 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 13102 | static_cast<FwAssertArgType>(portNum), | ||
| 13103 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 13104 | ); | ||
| 13105 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 13106 | 1 | case 0: | |
| 13107 | 1 | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 13108 | 0, | ||
| 13109 | opCode, | ||
| 13110 | cmdSeq, | ||
| 13111 | response | ||
| 13112 | ); | ||
| 13113 | 1 | break; | |
| 13114 | ✗ | default: | |
| 13115 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13116 | ✗ | break; | |
| 13117 | } | ||
| 13118 | 1 | } | |
| 13119 | |||
| 13120 | 2 | void FileManagerComponentBase::eventOut_out( | |
| 13121 | FwIndexType portNum, | ||
| 13122 | FwEventIdType id, | ||
| 13123 | Fw::Time& timeTag, | ||
| 13124 | const Fw::LogSeverity& severity, | ||
| 13125 | Fw::LogBuffer& args | ||
| 13126 | ) const { | ||
| 13127 | 2 | FW_ASSERT( | |
| 13128 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 13129 | static_cast<FwAssertArgType>(portNum), | ||
| 13130 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 13131 | ); | ||
| 13132 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 13133 | 2 | case 0: | |
| 13134 | 2 | CdhCore::events.LogRecv_handlerBase( | |
| 13135 | 0, | ||
| 13136 | id, | ||
| 13137 | timeTag, | ||
| 13138 | severity, | ||
| 13139 | args | ||
| 13140 | ); | ||
| 13141 | 2 | break; | |
| 13142 | ✗ | default: | |
| 13143 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13144 | ✗ | break; | |
| 13145 | } | ||
| 13146 | 2 | } | |
| 13147 | |||
| 13148 | 62 | void FileManagerComponentBase::pingOut_out( | |
| 13149 | FwIndexType portNum, | ||
| 13150 | U32 key | ||
| 13151 | ) const { | ||
| 13152 | 62 | FW_ASSERT( | |
| 13153 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 13154 | static_cast<FwAssertArgType>(portNum), | ||
| 13155 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 13156 | ); | ||
| 13157 |
1/2✓ Branch 0 taken 62 times.
✗ Branch 1 not taken.
|
62 | switch (portNum) { |
| 13158 | 62 | case 0: | |
| 13159 | 62 | CdhCore::health.PingReturn_handlerBase( | |
| 13160 | 6, | ||
| 13161 | key | ||
| 13162 | ); | ||
| 13163 | 62 | break; | |
| 13164 | ✗ | default: | |
| 13165 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13166 | ✗ | break; | |
| 13167 | } | ||
| 13168 | 62 | } | |
| 13169 | |||
| 13170 | ✗ | Fw::Success FileManagerComponentBase::productGetOut_out( | |
| 13171 | FwIndexType portNum, | ||
| 13172 | FwDpIdType id, | ||
| 13173 | FwSizeType dataSize, | ||
| 13174 | Fw::Buffer& buffer | ||
| 13175 | ) const { | ||
| 13176 | ✗ | FW_ASSERT( | |
| 13177 | (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS), | ||
| 13178 | static_cast<FwAssertArgType>(portNum), | ||
| 13179 | static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS) | ||
| 13180 | ); | ||
| 13181 | ✗ | Fw::Success _result = {}; | |
| 13182 | ✗ | switch (portNum) { | |
| 13183 | default: | ||
| 13184 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13185 | ✗ | break; | |
| 13186 | } | ||
| 13187 | ✗ | return _result; | |
| 13188 | ✗ | } | |
| 13189 | |||
| 13190 | ✗ | void FileManagerComponentBase::productSendOut_out( | |
| 13191 | FwIndexType portNum, | ||
| 13192 | FwDpIdType id, | ||
| 13193 | const Fw::Buffer& buffer | ||
| 13194 | ) const { | ||
| 13195 | ✗ | FW_ASSERT( | |
| 13196 | (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS), | ||
| 13197 | static_cast<FwAssertArgType>(portNum), | ||
| 13198 | static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS) | ||
| 13199 | ); | ||
| 13200 | ✗ | switch (portNum) { | |
| 13201 | default: | ||
| 13202 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13203 | ✗ | break; | |
| 13204 | } | ||
| 13205 | ✗ | } | |
| 13206 | |||
| 13207 | 3 | void FileManagerComponentBase::timeCaller_out( | |
| 13208 | FwIndexType portNum, | ||
| 13209 | Fw::Time& time | ||
| 13210 | ) const { | ||
| 13211 | 3 | FW_ASSERT( | |
| 13212 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 13213 | static_cast<FwAssertArgType>(portNum), | ||
| 13214 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 13215 | ); | ||
| 13216 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 13217 | 3 | case 0: | |
| 13218 | 3 | Ref::posixTime.timeGetPort_handlerBase( | |
| 13219 | 0, | ||
| 13220 | time | ||
| 13221 | ); | ||
| 13222 | 3 | break; | |
| 13223 | ✗ | default: | |
| 13224 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13225 | ✗ | break; | |
| 13226 | } | ||
| 13227 | 3 | } | |
| 13228 | |||
| 13229 | 1 | void FileManagerComponentBase::tlmOut_out( | |
| 13230 | FwIndexType portNum, | ||
| 13231 | FwChanIdType id, | ||
| 13232 | Fw::Time& timeTag, | ||
| 13233 | Fw::TlmBuffer& val | ||
| 13234 | ) const { | ||
| 13235 | 1 | FW_ASSERT( | |
| 13236 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 13237 | static_cast<FwAssertArgType>(portNum), | ||
| 13238 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 13239 | ); | ||
| 13240 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 13241 | 1 | case 0: | |
| 13242 | 1 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 13243 | 0, | ||
| 13244 | id, | ||
| 13245 | timeTag, | ||
| 13246 | val | ||
| 13247 | ); | ||
| 13248 | 1 | break; | |
| 13249 | ✗ | default: | |
| 13250 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13251 | ✗ | break; | |
| 13252 | } | ||
| 13253 | 1 | } | |
| 13254 | |||
| 13255 | } | ||
| 13256 | |||
| 13257 | namespace Svc { | ||
| 13258 | |||
| 13259 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 13260 | |||
| 13261 | 4 | bool FileUplinkComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 13262 | 4 | FW_ASSERT( | |
| 13263 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 13264 | static_cast<FwAssertArgType>(portNum), | ||
| 13265 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 13266 | ); | ||
| 13267 | 4 | bool result = false; | |
| 13268 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 13269 | 4 | case 0: | |
| 13270 | 4 | result = true; | |
| 13271 | 4 | break; | |
| 13272 | ✗ | default: | |
| 13273 | ✗ | break; | |
| 13274 | } | ||
| 13275 | 4 | return result; | |
| 13276 | } | ||
| 13277 | |||
| 13278 | #endif | ||
| 13279 | |||
| 13280 | ✗ | bool FileUplinkComponentBase::isConnected_bufferSendOut_OutputPort(FwIndexType portNum) const { | |
| 13281 | ✗ | FW_ASSERT( | |
| 13282 | (0 <= portNum) && (portNum < NUM_BUFFERSENDOUT_OUTPUT_PORTS), | ||
| 13283 | static_cast<FwAssertArgType>(portNum), | ||
| 13284 | static_cast<FwAssertArgType>(NUM_BUFFERSENDOUT_OUTPUT_PORTS) | ||
| 13285 | ); | ||
| 13286 | ✗ | bool result = false; | |
| 13287 | ✗ | switch (portNum) { | |
| 13288 | ✗ | case 0: | |
| 13289 | ✗ | result = true; | |
| 13290 | ✗ | break; | |
| 13291 | ✗ | default: | |
| 13292 | ✗ | break; | |
| 13293 | } | ||
| 13294 | ✗ | return result; | |
| 13295 | } | ||
| 13296 | |||
| 13297 | 4 | bool FileUplinkComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const { | |
| 13298 | 4 | FW_ASSERT( | |
| 13299 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 13300 | static_cast<FwAssertArgType>(portNum), | ||
| 13301 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 13302 | ); | ||
| 13303 | 4 | bool result = false; | |
| 13304 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 13305 | 4 | case 0: | |
| 13306 | 4 | result = true; | |
| 13307 | 4 | break; | |
| 13308 | ✗ | default: | |
| 13309 | ✗ | break; | |
| 13310 | } | ||
| 13311 | 4 | return result; | |
| 13312 | } | ||
| 13313 | |||
| 13314 | 1 | bool FileUplinkComponentBase::isConnected_fileAnnounce_OutputPort(FwIndexType portNum) const { | |
| 13315 | 1 | FW_ASSERT( | |
| 13316 | (0 <= portNum) && (portNum < NUM_FILEANNOUNCE_OUTPUT_PORTS), | ||
| 13317 | static_cast<FwAssertArgType>(portNum), | ||
| 13318 | static_cast<FwAssertArgType>(NUM_FILEANNOUNCE_OUTPUT_PORTS) | ||
| 13319 | ); | ||
| 13320 | 1 | bool result = false; | |
| 13321 | 1 | switch (portNum) { | |
| 13322 | default: | ||
| 13323 | 1 | break; | |
| 13324 | } | ||
| 13325 | 1 | return result; | |
| 13326 | } | ||
| 13327 | |||
| 13328 | ✗ | bool FileUplinkComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const { | |
| 13329 | ✗ | FW_ASSERT( | |
| 13330 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 13331 | static_cast<FwAssertArgType>(portNum), | ||
| 13332 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 13333 | ); | ||
| 13334 | ✗ | bool result = false; | |
| 13335 | ✗ | switch (portNum) { | |
| 13336 | ✗ | case 0: | |
| 13337 | ✗ | result = true; | |
| 13338 | ✗ | break; | |
| 13339 | ✗ | default: | |
| 13340 | ✗ | break; | |
| 13341 | } | ||
| 13342 | ✗ | return result; | |
| 13343 | } | ||
| 13344 | |||
| 13345 | 14 | bool FileUplinkComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 13346 | 14 | FW_ASSERT( | |
| 13347 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 13348 | static_cast<FwAssertArgType>(portNum), | ||
| 13349 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 13350 | ); | ||
| 13351 | 14 | bool result = false; | |
| 13352 |
1/2✓ Branch 0 taken 14 times.
✗ Branch 1 not taken.
|
14 | switch (portNum) { |
| 13353 | 14 | case 0: | |
| 13354 | 14 | result = true; | |
| 13355 | 14 | break; | |
| 13356 | ✗ | default: | |
| 13357 | ✗ | break; | |
| 13358 | } | ||
| 13359 | 14 | return result; | |
| 13360 | } | ||
| 13361 | |||
| 13362 | 20 | bool FileUplinkComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 13363 | 20 | FW_ASSERT( | |
| 13364 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 13365 | static_cast<FwAssertArgType>(portNum), | ||
| 13366 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 13367 | ); | ||
| 13368 | 20 | bool result = false; | |
| 13369 |
1/2✓ Branch 0 taken 20 times.
✗ Branch 1 not taken.
|
20 | switch (portNum) { |
| 13370 | 20 | case 0: | |
| 13371 | 20 | result = true; | |
| 13372 | 20 | break; | |
| 13373 | ✗ | default: | |
| 13374 | ✗ | break; | |
| 13375 | } | ||
| 13376 | 20 | return result; | |
| 13377 | } | ||
| 13378 | |||
| 13379 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 13380 | |||
| 13381 | 4 | void FileUplinkComponentBase::LogText_out( | |
| 13382 | FwIndexType portNum, | ||
| 13383 | FwEventIdType id, | ||
| 13384 | Fw::Time& timeTag, | ||
| 13385 | const Fw::LogSeverity& severity, | ||
| 13386 | Fw::TextLogString& text | ||
| 13387 | ) const { | ||
| 13388 | 4 | FW_ASSERT( | |
| 13389 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 13390 | static_cast<FwAssertArgType>(portNum), | ||
| 13391 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 13392 | ); | ||
| 13393 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 13394 | 4 | case 0: | |
| 13395 | 4 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 13396 | 0, | ||
| 13397 | id, | ||
| 13398 | timeTag, | ||
| 13399 | severity, | ||
| 13400 | text | ||
| 13401 | ); | ||
| 13402 | 4 | break; | |
| 13403 | ✗ | default: | |
| 13404 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13405 | ✗ | break; | |
| 13406 | } | ||
| 13407 | 4 | } | |
| 13408 | |||
| 13409 | #endif | ||
| 13410 | |||
| 13411 | 6 | void FileUplinkComponentBase::bufferSendOut_out( | |
| 13412 | FwIndexType portNum, | ||
| 13413 | Fw::Buffer& fwBuffer | ||
| 13414 | ) const { | ||
| 13415 | 6 | FW_ASSERT( | |
| 13416 | (0 <= portNum) && (portNum < NUM_BUFFERSENDOUT_OUTPUT_PORTS), | ||
| 13417 | static_cast<FwAssertArgType>(portNum), | ||
| 13418 | static_cast<FwAssertArgType>(NUM_BUFFERSENDOUT_OUTPUT_PORTS) | ||
| 13419 | ); | ||
| 13420 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 13421 | 6 | case 0: | |
| 13422 | 6 | ComCcsds::fprimeRouter.fileBufferReturnIn_handlerBase( | |
| 13423 | 0, | ||
| 13424 | fwBuffer | ||
| 13425 | ); | ||
| 13426 | 6 | break; | |
| 13427 | ✗ | default: | |
| 13428 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13429 | ✗ | break; | |
| 13430 | } | ||
| 13431 | 6 | } | |
| 13432 | |||
| 13433 | 4 | void FileUplinkComponentBase::eventOut_out( | |
| 13434 | FwIndexType portNum, | ||
| 13435 | FwEventIdType id, | ||
| 13436 | Fw::Time& timeTag, | ||
| 13437 | const Fw::LogSeverity& severity, | ||
| 13438 | Fw::LogBuffer& args | ||
| 13439 | ) const { | ||
| 13440 | 4 | FW_ASSERT( | |
| 13441 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 13442 | static_cast<FwAssertArgType>(portNum), | ||
| 13443 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 13444 | ); | ||
| 13445 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 13446 | 4 | case 0: | |
| 13447 | 4 | CdhCore::events.LogRecv_handlerBase( | |
| 13448 | 0, | ||
| 13449 | id, | ||
| 13450 | timeTag, | ||
| 13451 | severity, | ||
| 13452 | args | ||
| 13453 | ); | ||
| 13454 | 4 | break; | |
| 13455 | ✗ | default: | |
| 13456 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13457 | ✗ | break; | |
| 13458 | } | ||
| 13459 | 4 | } | |
| 13460 | |||
| 13461 | ✗ | void FileUplinkComponentBase::fileAnnounce_out( | |
| 13462 | FwIndexType portNum, | ||
| 13463 | Fw::StringBase& file_name | ||
| 13464 | ) const { | ||
| 13465 | ✗ | FW_ASSERT( | |
| 13466 | (0 <= portNum) && (portNum < NUM_FILEANNOUNCE_OUTPUT_PORTS), | ||
| 13467 | static_cast<FwAssertArgType>(portNum), | ||
| 13468 | static_cast<FwAssertArgType>(NUM_FILEANNOUNCE_OUTPUT_PORTS) | ||
| 13469 | ); | ||
| 13470 | ✗ | switch (portNum) { | |
| 13471 | default: | ||
| 13472 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13473 | ✗ | break; | |
| 13474 | } | ||
| 13475 | ✗ | } | |
| 13476 | |||
| 13477 | 62 | void FileUplinkComponentBase::pingOut_out( | |
| 13478 | FwIndexType portNum, | ||
| 13479 | U32 key | ||
| 13480 | ) const { | ||
| 13481 | 62 | FW_ASSERT( | |
| 13482 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 13483 | static_cast<FwAssertArgType>(portNum), | ||
| 13484 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 13485 | ); | ||
| 13486 |
1/2✓ Branch 0 taken 62 times.
✗ Branch 1 not taken.
|
62 | switch (portNum) { |
| 13487 | 62 | case 0: | |
| 13488 | 62 | CdhCore::health.PingReturn_handlerBase( | |
| 13489 | 7, | ||
| 13490 | key | ||
| 13491 | ); | ||
| 13492 | 62 | break; | |
| 13493 | ✗ | default: | |
| 13494 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13495 | ✗ | break; | |
| 13496 | } | ||
| 13497 | 62 | } | |
| 13498 | |||
| 13499 | 14 | void FileUplinkComponentBase::timeCaller_out( | |
| 13500 | FwIndexType portNum, | ||
| 13501 | Fw::Time& time | ||
| 13502 | ) const { | ||
| 13503 | 14 | FW_ASSERT( | |
| 13504 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 13505 | static_cast<FwAssertArgType>(portNum), | ||
| 13506 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 13507 | ); | ||
| 13508 |
1/2✓ Branch 0 taken 14 times.
✗ Branch 1 not taken.
|
14 | switch (portNum) { |
| 13509 | 14 | case 0: | |
| 13510 | 14 | Ref::posixTime.timeGetPort_handlerBase( | |
| 13511 | 0, | ||
| 13512 | time | ||
| 13513 | ); | ||
| 13514 | 14 | break; | |
| 13515 | ✗ | default: | |
| 13516 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13517 | ✗ | break; | |
| 13518 | } | ||
| 13519 | 14 | } | |
| 13520 | |||
| 13521 | 10 | void FileUplinkComponentBase::tlmOut_out( | |
| 13522 | FwIndexType portNum, | ||
| 13523 | FwChanIdType id, | ||
| 13524 | Fw::Time& timeTag, | ||
| 13525 | Fw::TlmBuffer& val | ||
| 13526 | ) const { | ||
| 13527 | 10 | FW_ASSERT( | |
| 13528 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 13529 | static_cast<FwAssertArgType>(portNum), | ||
| 13530 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 13531 | ); | ||
| 13532 |
1/2✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
|
10 | switch (portNum) { |
| 13533 | 10 | case 0: | |
| 13534 | 10 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 13535 | 0, | ||
| 13536 | id, | ||
| 13537 | timeTag, | ||
| 13538 | val | ||
| 13539 | ); | ||
| 13540 | 10 | break; | |
| 13541 | ✗ | default: | |
| 13542 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13543 | ✗ | break; | |
| 13544 | } | ||
| 13545 | 10 | } | |
| 13546 | |||
| 13547 | } | ||
| 13548 | |||
| 13549 | namespace Svc { | ||
| 13550 | |||
| 13551 | ✗ | bool FprimeRouterComponentBase::isConnected_commandOut_OutputPort(FwIndexType portNum) const { | |
| 13552 | ✗ | FW_ASSERT( | |
| 13553 | (0 <= portNum) && (portNum < NUM_COMMANDOUT_OUTPUT_PORTS), | ||
| 13554 | static_cast<FwAssertArgType>(portNum), | ||
| 13555 | static_cast<FwAssertArgType>(NUM_COMMANDOUT_OUTPUT_PORTS) | ||
| 13556 | ); | ||
| 13557 | ✗ | bool result = false; | |
| 13558 | ✗ | switch (portNum) { | |
| 13559 | ✗ | case 0: | |
| 13560 | ✗ | result = true; | |
| 13561 | ✗ | break; | |
| 13562 | ✗ | default: | |
| 13563 | ✗ | break; | |
| 13564 | } | ||
| 13565 | ✗ | return result; | |
| 13566 | } | ||
| 13567 | |||
| 13568 | ✗ | bool FprimeRouterComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const { | |
| 13569 | ✗ | FW_ASSERT( | |
| 13570 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 13571 | static_cast<FwAssertArgType>(portNum), | ||
| 13572 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 13573 | ); | ||
| 13574 | ✗ | bool result = false; | |
| 13575 | ✗ | switch (portNum) { | |
| 13576 | ✗ | case 0: | |
| 13577 | ✗ | result = true; | |
| 13578 | ✗ | break; | |
| 13579 | ✗ | default: | |
| 13580 | ✗ | break; | |
| 13581 | } | ||
| 13582 | ✗ | return result; | |
| 13583 | } | ||
| 13584 | |||
| 13585 | 6 | bool FprimeRouterComponentBase::isConnected_fileOut_OutputPort(FwIndexType portNum) const { | |
| 13586 | 6 | FW_ASSERT( | |
| 13587 | (0 <= portNum) && (portNum < NUM_FILEOUT_OUTPUT_PORTS), | ||
| 13588 | static_cast<FwAssertArgType>(portNum), | ||
| 13589 | static_cast<FwAssertArgType>(NUM_FILEOUT_OUTPUT_PORTS) | ||
| 13590 | ); | ||
| 13591 | 6 | bool result = false; | |
| 13592 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 13593 | 6 | case 0: | |
| 13594 | 6 | result = true; | |
| 13595 | 6 | break; | |
| 13596 | ✗ | default: | |
| 13597 | ✗ | break; | |
| 13598 | } | ||
| 13599 | 6 | return result; | |
| 13600 | } | ||
| 13601 | |||
| 13602 | ✗ | bool FprimeRouterComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 13603 | ✗ | FW_ASSERT( | |
| 13604 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 13605 | static_cast<FwAssertArgType>(portNum), | ||
| 13606 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 13607 | ); | ||
| 13608 | ✗ | bool result = false; | |
| 13609 | ✗ | switch (portNum) { | |
| 13610 | ✗ | case 0: | |
| 13611 | ✗ | result = true; | |
| 13612 | ✗ | break; | |
| 13613 | ✗ | default: | |
| 13614 | ✗ | break; | |
| 13615 | } | ||
| 13616 | ✗ | return result; | |
| 13617 | } | ||
| 13618 | |||
| 13619 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 13620 | |||
| 13621 | ✗ | bool FprimeRouterComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 13622 | ✗ | FW_ASSERT( | |
| 13623 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 13624 | static_cast<FwAssertArgType>(portNum), | ||
| 13625 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 13626 | ); | ||
| 13627 | ✗ | bool result = false; | |
| 13628 | ✗ | switch (portNum) { | |
| 13629 | ✗ | case 0: | |
| 13630 | ✗ | result = true; | |
| 13631 | ✗ | break; | |
| 13632 | ✗ | default: | |
| 13633 | ✗ | break; | |
| 13634 | } | ||
| 13635 | ✗ | return result; | |
| 13636 | } | ||
| 13637 | |||
| 13638 | #endif | ||
| 13639 | |||
| 13640 | ✗ | bool FprimeRouterComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 13641 | ✗ | FW_ASSERT( | |
| 13642 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 13643 | static_cast<FwAssertArgType>(portNum), | ||
| 13644 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 13645 | ); | ||
| 13646 | ✗ | bool result = false; | |
| 13647 | ✗ | switch (portNum) { | |
| 13648 | ✗ | case 0: | |
| 13649 | ✗ | result = true; | |
| 13650 | ✗ | break; | |
| 13651 | ✗ | default: | |
| 13652 | ✗ | break; | |
| 13653 | } | ||
| 13654 | ✗ | return result; | |
| 13655 | } | ||
| 13656 | |||
| 13657 | ✗ | bool FprimeRouterComponentBase::isConnected_unknownDataOut_OutputPort(FwIndexType portNum) const { | |
| 13658 | ✗ | FW_ASSERT( | |
| 13659 | (0 <= portNum) && (portNum < NUM_UNKNOWNDATAOUT_OUTPUT_PORTS), | ||
| 13660 | static_cast<FwAssertArgType>(portNum), | ||
| 13661 | static_cast<FwAssertArgType>(NUM_UNKNOWNDATAOUT_OUTPUT_PORTS) | ||
| 13662 | ); | ||
| 13663 | ✗ | bool result = false; | |
| 13664 | ✗ | switch (portNum) { | |
| 13665 | default: | ||
| 13666 | ✗ | break; | |
| 13667 | } | ||
| 13668 | ✗ | return result; | |
| 13669 | } | ||
| 13670 | |||
| 13671 | 145 | void FprimeRouterComponentBase::commandOut_out( | |
| 13672 | FwIndexType portNum, | ||
| 13673 | Fw::ComBuffer& data, | ||
| 13674 | U32 context | ||
| 13675 | ) const { | ||
| 13676 | 145 | FW_ASSERT( | |
| 13677 | (0 <= portNum) && (portNum < NUM_COMMANDOUT_OUTPUT_PORTS), | ||
| 13678 | static_cast<FwAssertArgType>(portNum), | ||
| 13679 | static_cast<FwAssertArgType>(NUM_COMMANDOUT_OUTPUT_PORTS) | ||
| 13680 | ); | ||
| 13681 |
1/2✓ Branch 0 taken 145 times.
✗ Branch 1 not taken.
|
145 | switch (portNum) { |
| 13682 | 145 | case 0: | |
| 13683 | 145 | CdhCore::cmdDisp.seqCmdBuff_handlerBase( | |
| 13684 | 0, | ||
| 13685 | data, | ||
| 13686 | context | ||
| 13687 | ); | ||
| 13688 | 145 | break; | |
| 13689 | ✗ | default: | |
| 13690 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13691 | ✗ | break; | |
| 13692 | } | ||
| 13693 | 145 | } | |
| 13694 | |||
| 13695 | 151 | void FprimeRouterComponentBase::dataReturnOut_out( | |
| 13696 | FwIndexType portNum, | ||
| 13697 | Fw::Buffer& data, | ||
| 13698 | const ComCfg::FrameContext& context | ||
| 13699 | ) const { | ||
| 13700 | 151 | FW_ASSERT( | |
| 13701 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 13702 | static_cast<FwAssertArgType>(portNum), | ||
| 13703 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 13704 | ); | ||
| 13705 |
1/2✓ Branch 0 taken 151 times.
✗ Branch 1 not taken.
|
151 | switch (portNum) { |
| 13706 | 151 | case 0: | |
| 13707 | 151 | ComCcsds::spacePacketDeframer.dataReturnIn_handlerBase( | |
| 13708 | 0, | ||
| 13709 | data, | ||
| 13710 | context | ||
| 13711 | ); | ||
| 13712 | 151 | break; | |
| 13713 | ✗ | default: | |
| 13714 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13715 | ✗ | break; | |
| 13716 | } | ||
| 13717 | 151 | } | |
| 13718 | |||
| 13719 | 6 | void FprimeRouterComponentBase::fileOut_out( | |
| 13720 | FwIndexType portNum, | ||
| 13721 | Fw::Buffer& fwBuffer | ||
| 13722 | ) const { | ||
| 13723 | 6 | FW_ASSERT( | |
| 13724 | (0 <= portNum) && (portNum < NUM_FILEOUT_OUTPUT_PORTS), | ||
| 13725 | static_cast<FwAssertArgType>(portNum), | ||
| 13726 | static_cast<FwAssertArgType>(NUM_FILEOUT_OUTPUT_PORTS) | ||
| 13727 | ); | ||
| 13728 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 13729 | 6 | case 0: | |
| 13730 | 6 | FileHandling::fileUplink.bufferSendIn_handlerBase( | |
| 13731 | 0, | ||
| 13732 | fwBuffer | ||
| 13733 | ); | ||
| 13734 | 6 | break; | |
| 13735 | ✗ | default: | |
| 13736 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13737 | ✗ | break; | |
| 13738 | } | ||
| 13739 | 6 | } | |
| 13740 | |||
| 13741 | ✗ | void FprimeRouterComponentBase::logOut_out( | |
| 13742 | FwIndexType portNum, | ||
| 13743 | FwEventIdType id, | ||
| 13744 | Fw::Time& timeTag, | ||
| 13745 | const Fw::LogSeverity& severity, | ||
| 13746 | Fw::LogBuffer& args | ||
| 13747 | ) const { | ||
| 13748 | ✗ | FW_ASSERT( | |
| 13749 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 13750 | static_cast<FwAssertArgType>(portNum), | ||
| 13751 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 13752 | ); | ||
| 13753 | ✗ | switch (portNum) { | |
| 13754 | ✗ | case 0: | |
| 13755 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 13756 | 0, | ||
| 13757 | id, | ||
| 13758 | timeTag, | ||
| 13759 | severity, | ||
| 13760 | args | ||
| 13761 | ); | ||
| 13762 | ✗ | break; | |
| 13763 | ✗ | default: | |
| 13764 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13765 | ✗ | break; | |
| 13766 | } | ||
| 13767 | ✗ | } | |
| 13768 | |||
| 13769 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 13770 | |||
| 13771 | ✗ | void FprimeRouterComponentBase::logTextOut_out( | |
| 13772 | FwIndexType portNum, | ||
| 13773 | FwEventIdType id, | ||
| 13774 | Fw::Time& timeTag, | ||
| 13775 | const Fw::LogSeverity& severity, | ||
| 13776 | Fw::TextLogString& text | ||
| 13777 | ) const { | ||
| 13778 | ✗ | FW_ASSERT( | |
| 13779 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 13780 | static_cast<FwAssertArgType>(portNum), | ||
| 13781 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 13782 | ); | ||
| 13783 | ✗ | switch (portNum) { | |
| 13784 | ✗ | case 0: | |
| 13785 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 13786 | 0, | ||
| 13787 | id, | ||
| 13788 | timeTag, | ||
| 13789 | severity, | ||
| 13790 | text | ||
| 13791 | ); | ||
| 13792 | ✗ | break; | |
| 13793 | ✗ | default: | |
| 13794 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13795 | ✗ | break; | |
| 13796 | } | ||
| 13797 | ✗ | } | |
| 13798 | |||
| 13799 | #endif | ||
| 13800 | |||
| 13801 | ✗ | void FprimeRouterComponentBase::timeCaller_out( | |
| 13802 | FwIndexType portNum, | ||
| 13803 | Fw::Time& time | ||
| 13804 | ) const { | ||
| 13805 | ✗ | FW_ASSERT( | |
| 13806 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 13807 | static_cast<FwAssertArgType>(portNum), | ||
| 13808 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 13809 | ); | ||
| 13810 | ✗ | switch (portNum) { | |
| 13811 | ✗ | case 0: | |
| 13812 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 13813 | 0, | ||
| 13814 | time | ||
| 13815 | ); | ||
| 13816 | ✗ | break; | |
| 13817 | ✗ | default: | |
| 13818 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13819 | ✗ | break; | |
| 13820 | } | ||
| 13821 | ✗ | } | |
| 13822 | |||
| 13823 | ✗ | void FprimeRouterComponentBase::unknownDataOut_out( | |
| 13824 | FwIndexType portNum, | ||
| 13825 | Fw::Buffer& data, | ||
| 13826 | const ComCfg::FrameContext& context | ||
| 13827 | ) const { | ||
| 13828 | ✗ | FW_ASSERT( | |
| 13829 | (0 <= portNum) && (portNum < NUM_UNKNOWNDATAOUT_OUTPUT_PORTS), | ||
| 13830 | static_cast<FwAssertArgType>(portNum), | ||
| 13831 | static_cast<FwAssertArgType>(NUM_UNKNOWNDATAOUT_OUTPUT_PORTS) | ||
| 13832 | ); | ||
| 13833 | ✗ | switch (portNum) { | |
| 13834 | default: | ||
| 13835 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13836 | ✗ | break; | |
| 13837 | } | ||
| 13838 | ✗ | } | |
| 13839 | |||
| 13840 | } | ||
| 13841 | |||
| 13842 | namespace Svc { | ||
| 13843 | |||
| 13844 | ✗ | bool FrameAccumulatorComponentBase::isConnected_bufferAllocate_OutputPort(FwIndexType portNum) const { | |
| 13845 | ✗ | FW_ASSERT( | |
| 13846 | (0 <= portNum) && (portNum < NUM_BUFFERALLOCATE_OUTPUT_PORTS), | ||
| 13847 | static_cast<FwAssertArgType>(portNum), | ||
| 13848 | static_cast<FwAssertArgType>(NUM_BUFFERALLOCATE_OUTPUT_PORTS) | ||
| 13849 | ); | ||
| 13850 | ✗ | bool result = false; | |
| 13851 | ✗ | switch (portNum) { | |
| 13852 | ✗ | case 0: | |
| 13853 | ✗ | result = true; | |
| 13854 | ✗ | break; | |
| 13855 | ✗ | default: | |
| 13856 | ✗ | break; | |
| 13857 | } | ||
| 13858 | ✗ | return result; | |
| 13859 | } | ||
| 13860 | |||
| 13861 | ✗ | bool FrameAccumulatorComponentBase::isConnected_bufferDeallocate_OutputPort(FwIndexType portNum) const { | |
| 13862 | ✗ | FW_ASSERT( | |
| 13863 | (0 <= portNum) && (portNum < NUM_BUFFERDEALLOCATE_OUTPUT_PORTS), | ||
| 13864 | static_cast<FwAssertArgType>(portNum), | ||
| 13865 | static_cast<FwAssertArgType>(NUM_BUFFERDEALLOCATE_OUTPUT_PORTS) | ||
| 13866 | ); | ||
| 13867 | ✗ | bool result = false; | |
| 13868 | ✗ | switch (portNum) { | |
| 13869 | ✗ | case 0: | |
| 13870 | ✗ | result = true; | |
| 13871 | ✗ | break; | |
| 13872 | ✗ | default: | |
| 13873 | ✗ | break; | |
| 13874 | } | ||
| 13875 | ✗ | return result; | |
| 13876 | } | ||
| 13877 | |||
| 13878 | ✗ | bool FrameAccumulatorComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const { | |
| 13879 | ✗ | FW_ASSERT( | |
| 13880 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 13881 | static_cast<FwAssertArgType>(portNum), | ||
| 13882 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 13883 | ); | ||
| 13884 | ✗ | bool result = false; | |
| 13885 | ✗ | switch (portNum) { | |
| 13886 | ✗ | case 0: | |
| 13887 | ✗ | result = true; | |
| 13888 | ✗ | break; | |
| 13889 | ✗ | default: | |
| 13890 | ✗ | break; | |
| 13891 | } | ||
| 13892 | ✗ | return result; | |
| 13893 | } | ||
| 13894 | |||
| 13895 | ✗ | bool FrameAccumulatorComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const { | |
| 13896 | ✗ | FW_ASSERT( | |
| 13897 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 13898 | static_cast<FwAssertArgType>(portNum), | ||
| 13899 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 13900 | ); | ||
| 13901 | ✗ | bool result = false; | |
| 13902 | ✗ | switch (portNum) { | |
| 13903 | ✗ | case 0: | |
| 13904 | ✗ | result = true; | |
| 13905 | ✗ | break; | |
| 13906 | ✗ | default: | |
| 13907 | ✗ | break; | |
| 13908 | } | ||
| 13909 | ✗ | return result; | |
| 13910 | } | ||
| 13911 | |||
| 13912 | ✗ | bool FrameAccumulatorComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 13913 | ✗ | FW_ASSERT( | |
| 13914 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 13915 | static_cast<FwAssertArgType>(portNum), | ||
| 13916 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 13917 | ); | ||
| 13918 | ✗ | bool result = false; | |
| 13919 | ✗ | switch (portNum) { | |
| 13920 | ✗ | case 0: | |
| 13921 | ✗ | result = true; | |
| 13922 | ✗ | break; | |
| 13923 | ✗ | default: | |
| 13924 | ✗ | break; | |
| 13925 | } | ||
| 13926 | ✗ | return result; | |
| 13927 | } | ||
| 13928 | |||
| 13929 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 13930 | |||
| 13931 | ✗ | bool FrameAccumulatorComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 13932 | ✗ | FW_ASSERT( | |
| 13933 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 13934 | static_cast<FwAssertArgType>(portNum), | ||
| 13935 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 13936 | ); | ||
| 13937 | ✗ | bool result = false; | |
| 13938 | ✗ | switch (portNum) { | |
| 13939 | ✗ | case 0: | |
| 13940 | ✗ | result = true; | |
| 13941 | ✗ | break; | |
| 13942 | ✗ | default: | |
| 13943 | ✗ | break; | |
| 13944 | } | ||
| 13945 | ✗ | return result; | |
| 13946 | } | ||
| 13947 | |||
| 13948 | #endif | ||
| 13949 | |||
| 13950 | ✗ | bool FrameAccumulatorComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 13951 | ✗ | FW_ASSERT( | |
| 13952 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 13953 | static_cast<FwAssertArgType>(portNum), | ||
| 13954 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 13955 | ); | ||
| 13956 | ✗ | bool result = false; | |
| 13957 | ✗ | switch (portNum) { | |
| 13958 | ✗ | case 0: | |
| 13959 | ✗ | result = true; | |
| 13960 | ✗ | break; | |
| 13961 | ✗ | default: | |
| 13962 | ✗ | break; | |
| 13963 | } | ||
| 13964 | ✗ | return result; | |
| 13965 | } | ||
| 13966 | |||
| 13967 | 151 | Fw::Buffer FrameAccumulatorComponentBase::bufferAllocate_out( | |
| 13968 | FwIndexType portNum, | ||
| 13969 | FwSizeType size | ||
| 13970 | ) const { | ||
| 13971 | 151 | FW_ASSERT( | |
| 13972 | (0 <= portNum) && (portNum < NUM_BUFFERALLOCATE_OUTPUT_PORTS), | ||
| 13973 | static_cast<FwAssertArgType>(portNum), | ||
| 13974 | static_cast<FwAssertArgType>(NUM_BUFFERALLOCATE_OUTPUT_PORTS) | ||
| 13975 | ); | ||
| 13976 | 151 | Fw::Buffer _result = {}; | |
| 13977 |
1/2✓ Branch 0 taken 151 times.
✗ Branch 1 not taken.
|
151 | switch (portNum) { |
| 13978 | 151 | case 0: | |
| 13979 |
1/1✓ Branch 1 taken 151 times.
|
302 | _result = ComCcsds::commsBufferManager.bufferGetCallee_handlerBase( |
| 13980 | 0, | ||
| 13981 | size | ||
| 13982 |
1/1✓ Branch 1 taken 151 times.
|
151 | ); |
| 13983 | 151 | break; | |
| 13984 | ✗ | default: | |
| 13985 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13986 | ✗ | break; | |
| 13987 | } | ||
| 13988 | 151 | return _result; | |
| 13989 | ✗ | } | |
| 13990 | |||
| 13991 | 151 | void FrameAccumulatorComponentBase::bufferDeallocate_out( | |
| 13992 | FwIndexType portNum, | ||
| 13993 | Fw::Buffer& fwBuffer | ||
| 13994 | ) const { | ||
| 13995 | 151 | FW_ASSERT( | |
| 13996 | (0 <= portNum) && (portNum < NUM_BUFFERDEALLOCATE_OUTPUT_PORTS), | ||
| 13997 | static_cast<FwAssertArgType>(portNum), | ||
| 13998 | static_cast<FwAssertArgType>(NUM_BUFFERDEALLOCATE_OUTPUT_PORTS) | ||
| 13999 | ); | ||
| 14000 |
1/2✓ Branch 0 taken 151 times.
✗ Branch 1 not taken.
|
151 | switch (portNum) { |
| 14001 | 151 | case 0: | |
| 14002 | 151 | ComCcsds::commsBufferManager.bufferSendIn_handlerBase( | |
| 14003 | 0, | ||
| 14004 | fwBuffer | ||
| 14005 | ); | ||
| 14006 | 151 | break; | |
| 14007 | ✗ | default: | |
| 14008 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14009 | ✗ | break; | |
| 14010 | } | ||
| 14011 | 151 | } | |
| 14012 | |||
| 14013 | 151 | void FrameAccumulatorComponentBase::dataOut_out( | |
| 14014 | FwIndexType portNum, | ||
| 14015 | Fw::Buffer& data, | ||
| 14016 | const ComCfg::FrameContext& context | ||
| 14017 | ) const { | ||
| 14018 | 151 | FW_ASSERT( | |
| 14019 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 14020 | static_cast<FwAssertArgType>(portNum), | ||
| 14021 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 14022 | ); | ||
| 14023 |
1/2✓ Branch 0 taken 151 times.
✗ Branch 1 not taken.
|
151 | switch (portNum) { |
| 14024 | 151 | case 0: | |
| 14025 | 151 | ComCcsds::tcDeframer.dataIn_handlerBase( | |
| 14026 | 0, | ||
| 14027 | data, | ||
| 14028 | context | ||
| 14029 | ); | ||
| 14030 | 151 | break; | |
| 14031 | ✗ | default: | |
| 14032 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14033 | ✗ | break; | |
| 14034 | } | ||
| 14035 | 151 | } | |
| 14036 | |||
| 14037 | 635 | void FrameAccumulatorComponentBase::dataReturnOut_out( | |
| 14038 | FwIndexType portNum, | ||
| 14039 | Fw::Buffer& data, | ||
| 14040 | const ComCfg::FrameContext& context | ||
| 14041 | ) const { | ||
| 14042 | 635 | FW_ASSERT( | |
| 14043 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 14044 | static_cast<FwAssertArgType>(portNum), | ||
| 14045 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 14046 | ); | ||
| 14047 |
1/2✓ Branch 0 taken 635 times.
✗ Branch 1 not taken.
|
635 | switch (portNum) { |
| 14048 | 635 | case 0: | |
| 14049 | 635 | ComCcsds::comStub.dataReturnIn_handlerBase( | |
| 14050 | 0, | ||
| 14051 | data, | ||
| 14052 | context | ||
| 14053 | ); | ||
| 14054 | 635 | break; | |
| 14055 | ✗ | default: | |
| 14056 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14057 | ✗ | break; | |
| 14058 | } | ||
| 14059 | 635 | } | |
| 14060 | |||
| 14061 | ✗ | void FrameAccumulatorComponentBase::logOut_out( | |
| 14062 | FwIndexType portNum, | ||
| 14063 | FwEventIdType id, | ||
| 14064 | Fw::Time& timeTag, | ||
| 14065 | const Fw::LogSeverity& severity, | ||
| 14066 | Fw::LogBuffer& args | ||
| 14067 | ) const { | ||
| 14068 | ✗ | FW_ASSERT( | |
| 14069 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 14070 | static_cast<FwAssertArgType>(portNum), | ||
| 14071 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 14072 | ); | ||
| 14073 | ✗ | switch (portNum) { | |
| 14074 | ✗ | case 0: | |
| 14075 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 14076 | 0, | ||
| 14077 | id, | ||
| 14078 | timeTag, | ||
| 14079 | severity, | ||
| 14080 | args | ||
| 14081 | ); | ||
| 14082 | ✗ | break; | |
| 14083 | ✗ | default: | |
| 14084 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14085 | ✗ | break; | |
| 14086 | } | ||
| 14087 | ✗ | } | |
| 14088 | |||
| 14089 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 14090 | |||
| 14091 | ✗ | void FrameAccumulatorComponentBase::logTextOut_out( | |
| 14092 | FwIndexType portNum, | ||
| 14093 | FwEventIdType id, | ||
| 14094 | Fw::Time& timeTag, | ||
| 14095 | const Fw::LogSeverity& severity, | ||
| 14096 | Fw::TextLogString& text | ||
| 14097 | ) const { | ||
| 14098 | ✗ | FW_ASSERT( | |
| 14099 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 14100 | static_cast<FwAssertArgType>(portNum), | ||
| 14101 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 14102 | ); | ||
| 14103 | ✗ | switch (portNum) { | |
| 14104 | ✗ | case 0: | |
| 14105 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 14106 | 0, | ||
| 14107 | id, | ||
| 14108 | timeTag, | ||
| 14109 | severity, | ||
| 14110 | text | ||
| 14111 | ); | ||
| 14112 | ✗ | break; | |
| 14113 | ✗ | default: | |
| 14114 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14115 | ✗ | break; | |
| 14116 | } | ||
| 14117 | ✗ | } | |
| 14118 | |||
| 14119 | #endif | ||
| 14120 | |||
| 14121 | ✗ | void FrameAccumulatorComponentBase::timeCaller_out( | |
| 14122 | FwIndexType portNum, | ||
| 14123 | Fw::Time& time | ||
| 14124 | ) const { | ||
| 14125 | ✗ | FW_ASSERT( | |
| 14126 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 14127 | static_cast<FwAssertArgType>(portNum), | ||
| 14128 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 14129 | ); | ||
| 14130 | ✗ | switch (portNum) { | |
| 14131 | ✗ | case 0: | |
| 14132 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 14133 | 0, | ||
| 14134 | time | ||
| 14135 | ); | ||
| 14136 | ✗ | break; | |
| 14137 | ✗ | default: | |
| 14138 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14139 | ✗ | break; | |
| 14140 | } | ||
| 14141 | ✗ | } | |
| 14142 | |||
| 14143 | } | ||
| 14144 | |||
| 14145 | namespace Svc { | ||
| 14146 | |||
| 14147 | 1 | bool HealthComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const { | |
| 14148 | 1 | FW_ASSERT( | |
| 14149 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 14150 | static_cast<FwAssertArgType>(portNum), | ||
| 14151 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 14152 | ); | ||
| 14153 | 1 | bool result = false; | |
| 14154 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 14155 | 1 | case 0: | |
| 14156 | 1 | result = true; | |
| 14157 | 1 | break; | |
| 14158 | ✗ | default: | |
| 14159 | ✗ | break; | |
| 14160 | } | ||
| 14161 | 1 | return result; | |
| 14162 | } | ||
| 14163 | |||
| 14164 | ✗ | bool HealthComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const { | |
| 14165 | ✗ | FW_ASSERT( | |
| 14166 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 14167 | static_cast<FwAssertArgType>(portNum), | ||
| 14168 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 14169 | ); | ||
| 14170 | ✗ | bool result = false; | |
| 14171 | ✗ | switch (portNum) { | |
| 14172 | ✗ | case 0: | |
| 14173 | ✗ | result = true; | |
| 14174 | ✗ | break; | |
| 14175 | ✗ | default: | |
| 14176 | ✗ | break; | |
| 14177 | } | ||
| 14178 | ✗ | return result; | |
| 14179 | } | ||
| 14180 | |||
| 14181 | ✗ | bool HealthComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 14182 | ✗ | FW_ASSERT( | |
| 14183 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 14184 | static_cast<FwAssertArgType>(portNum), | ||
| 14185 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 14186 | ); | ||
| 14187 | ✗ | bool result = false; | |
| 14188 | ✗ | switch (portNum) { | |
| 14189 | ✗ | case 0: | |
| 14190 | ✗ | result = true; | |
| 14191 | ✗ | break; | |
| 14192 | ✗ | default: | |
| 14193 | ✗ | break; | |
| 14194 | } | ||
| 14195 | ✗ | return result; | |
| 14196 | } | ||
| 14197 | |||
| 14198 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 14199 | |||
| 14200 | ✗ | bool HealthComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 14201 | ✗ | FW_ASSERT( | |
| 14202 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 14203 | static_cast<FwAssertArgType>(portNum), | ||
| 14204 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 14205 | ); | ||
| 14206 | ✗ | bool result = false; | |
| 14207 | ✗ | switch (portNum) { | |
| 14208 | ✗ | case 0: | |
| 14209 | ✗ | result = true; | |
| 14210 | ✗ | break; | |
| 14211 | ✗ | default: | |
| 14212 | ✗ | break; | |
| 14213 | } | ||
| 14214 | ✗ | return result; | |
| 14215 | } | ||
| 14216 | |||
| 14217 | #endif | ||
| 14218 | |||
| 14219 | ✗ | bool HealthComponentBase::isConnected_PingSend_OutputPort(FwIndexType portNum) const { | |
| 14220 | ✗ | FW_ASSERT( | |
| 14221 | (0 <= portNum) && (portNum < NUM_PINGSEND_OUTPUT_PORTS), | ||
| 14222 | static_cast<FwAssertArgType>(portNum), | ||
| 14223 | static_cast<FwAssertArgType>(NUM_PINGSEND_OUTPUT_PORTS) | ||
| 14224 | ); | ||
| 14225 | ✗ | bool result = false; | |
| 14226 | ✗ | switch (portNum) { | |
| 14227 | ✗ | case 0: | |
| 14228 | ✗ | result = true; | |
| 14229 | ✗ | break; | |
| 14230 | ✗ | case 1: | |
| 14231 | ✗ | result = true; | |
| 14232 | ✗ | break; | |
| 14233 | ✗ | case 2: | |
| 14234 | ✗ | result = true; | |
| 14235 | ✗ | break; | |
| 14236 | ✗ | case 3: | |
| 14237 | ✗ | result = true; | |
| 14238 | ✗ | break; | |
| 14239 | ✗ | case 4: | |
| 14240 | ✗ | result = true; | |
| 14241 | ✗ | break; | |
| 14242 | ✗ | case 5: | |
| 14243 | ✗ | result = true; | |
| 14244 | ✗ | break; | |
| 14245 | ✗ | case 6: | |
| 14246 | ✗ | result = true; | |
| 14247 | ✗ | break; | |
| 14248 | ✗ | case 7: | |
| 14249 | ✗ | result = true; | |
| 14250 | ✗ | break; | |
| 14251 | ✗ | case 8: | |
| 14252 | ✗ | result = true; | |
| 14253 | ✗ | break; | |
| 14254 | ✗ | case 9: | |
| 14255 | ✗ | result = true; | |
| 14256 | ✗ | break; | |
| 14257 | ✗ | case 10: | |
| 14258 | ✗ | result = true; | |
| 14259 | ✗ | break; | |
| 14260 | ✗ | case 11: | |
| 14261 | ✗ | result = true; | |
| 14262 | ✗ | break; | |
| 14263 | ✗ | case 12: | |
| 14264 | ✗ | result = true; | |
| 14265 | ✗ | break; | |
| 14266 | ✗ | case 13: | |
| 14267 | ✗ | result = true; | |
| 14268 | ✗ | break; | |
| 14269 | ✗ | case 14: | |
| 14270 | ✗ | result = true; | |
| 14271 | ✗ | break; | |
| 14272 | ✗ | default: | |
| 14273 | ✗ | break; | |
| 14274 | } | ||
| 14275 | ✗ | return result; | |
| 14276 | } | ||
| 14277 | |||
| 14278 | ✗ | bool HealthComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 14279 | ✗ | FW_ASSERT( | |
| 14280 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 14281 | static_cast<FwAssertArgType>(portNum), | ||
| 14282 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 14283 | ); | ||
| 14284 | ✗ | bool result = false; | |
| 14285 | ✗ | switch (portNum) { | |
| 14286 | ✗ | case 0: | |
| 14287 | ✗ | result = true; | |
| 14288 | ✗ | break; | |
| 14289 | ✗ | default: | |
| 14290 | ✗ | break; | |
| 14291 | } | ||
| 14292 | ✗ | return result; | |
| 14293 | } | ||
| 14294 | |||
| 14295 | ✗ | bool HealthComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const { | |
| 14296 | ✗ | FW_ASSERT( | |
| 14297 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 14298 | static_cast<FwAssertArgType>(portNum), | ||
| 14299 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 14300 | ); | ||
| 14301 | ✗ | bool result = false; | |
| 14302 | ✗ | switch (portNum) { | |
| 14303 | ✗ | case 0: | |
| 14304 | ✗ | result = true; | |
| 14305 | ✗ | break; | |
| 14306 | ✗ | default: | |
| 14307 | ✗ | break; | |
| 14308 | } | ||
| 14309 | ✗ | return result; | |
| 14310 | } | ||
| 14311 | |||
| 14312 | 62 | bool HealthComponentBase::isConnected_WdogStroke_OutputPort(FwIndexType portNum) const { | |
| 14313 | 62 | FW_ASSERT( | |
| 14314 | (0 <= portNum) && (portNum < NUM_WDOGSTROKE_OUTPUT_PORTS), | ||
| 14315 | static_cast<FwAssertArgType>(portNum), | ||
| 14316 | static_cast<FwAssertArgType>(NUM_WDOGSTROKE_OUTPUT_PORTS) | ||
| 14317 | ); | ||
| 14318 | 62 | bool result = false; | |
| 14319 | 62 | switch (portNum) { | |
| 14320 | default: | ||
| 14321 | 62 | break; | |
| 14322 | } | ||
| 14323 | 62 | return result; | |
| 14324 | } | ||
| 14325 | |||
| 14326 | 3 | void HealthComponentBase::CmdReg_out( | |
| 14327 | FwIndexType portNum, | ||
| 14328 | FwOpcodeType opCode | ||
| 14329 | ) const { | ||
| 14330 | 3 | FW_ASSERT( | |
| 14331 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 14332 | static_cast<FwAssertArgType>(portNum), | ||
| 14333 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 14334 | ); | ||
| 14335 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 14336 | 3 | case 0: | |
| 14337 | 3 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 14338 | 2, | ||
| 14339 | opCode | ||
| 14340 | ); | ||
| 14341 | 3 | break; | |
| 14342 | ✗ | default: | |
| 14343 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14344 | ✗ | break; | |
| 14345 | } | ||
| 14346 | 3 | } | |
| 14347 | |||
| 14348 | ✗ | void HealthComponentBase::CmdStatus_out( | |
| 14349 | FwIndexType portNum, | ||
| 14350 | FwOpcodeType opCode, | ||
| 14351 | U32 cmdSeq, | ||
| 14352 | const Fw::CmdResponse& response | ||
| 14353 | ) const { | ||
| 14354 | ✗ | FW_ASSERT( | |
| 14355 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 14356 | static_cast<FwAssertArgType>(portNum), | ||
| 14357 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 14358 | ); | ||
| 14359 | ✗ | switch (portNum) { | |
| 14360 | ✗ | case 0: | |
| 14361 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 14362 | 0, | ||
| 14363 | opCode, | ||
| 14364 | cmdSeq, | ||
| 14365 | response | ||
| 14366 | ); | ||
| 14367 | ✗ | break; | |
| 14368 | ✗ | default: | |
| 14369 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14370 | ✗ | break; | |
| 14371 | } | ||
| 14372 | ✗ | } | |
| 14373 | |||
| 14374 | ✗ | void HealthComponentBase::Log_out( | |
| 14375 | FwIndexType portNum, | ||
| 14376 | FwEventIdType id, | ||
| 14377 | Fw::Time& timeTag, | ||
| 14378 | const Fw::LogSeverity& severity, | ||
| 14379 | Fw::LogBuffer& args | ||
| 14380 | ) const { | ||
| 14381 | ✗ | FW_ASSERT( | |
| 14382 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 14383 | static_cast<FwAssertArgType>(portNum), | ||
| 14384 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 14385 | ); | ||
| 14386 | ✗ | switch (portNum) { | |
| 14387 | ✗ | case 0: | |
| 14388 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 14389 | 0, | ||
| 14390 | id, | ||
| 14391 | timeTag, | ||
| 14392 | severity, | ||
| 14393 | args | ||
| 14394 | ); | ||
| 14395 | ✗ | break; | |
| 14396 | ✗ | default: | |
| 14397 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14398 | ✗ | break; | |
| 14399 | } | ||
| 14400 | ✗ | } | |
| 14401 | |||
| 14402 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 14403 | |||
| 14404 | ✗ | void HealthComponentBase::LogText_out( | |
| 14405 | FwIndexType portNum, | ||
| 14406 | FwEventIdType id, | ||
| 14407 | Fw::Time& timeTag, | ||
| 14408 | const Fw::LogSeverity& severity, | ||
| 14409 | Fw::TextLogString& text | ||
| 14410 | ) const { | ||
| 14411 | ✗ | FW_ASSERT( | |
| 14412 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 14413 | static_cast<FwAssertArgType>(portNum), | ||
| 14414 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 14415 | ); | ||
| 14416 | ✗ | switch (portNum) { | |
| 14417 | ✗ | case 0: | |
| 14418 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 14419 | 0, | ||
| 14420 | id, | ||
| 14421 | timeTag, | ||
| 14422 | severity, | ||
| 14423 | text | ||
| 14424 | ); | ||
| 14425 | ✗ | break; | |
| 14426 | ✗ | default: | |
| 14427 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14428 | ✗ | break; | |
| 14429 | } | ||
| 14430 | ✗ | } | |
| 14431 | |||
| 14432 | #endif | ||
| 14433 | |||
| 14434 | 930 | void HealthComponentBase::PingSend_out( | |
| 14435 | FwIndexType portNum, | ||
| 14436 | U32 key | ||
| 14437 | ) const { | ||
| 14438 | 930 | FW_ASSERT( | |
| 14439 | (0 <= portNum) && (portNum < NUM_PINGSEND_OUTPUT_PORTS), | ||
| 14440 | static_cast<FwAssertArgType>(portNum), | ||
| 14441 | static_cast<FwAssertArgType>(NUM_PINGSEND_OUTPUT_PORTS) | ||
| 14442 | ); | ||
| 14443 |
15/16✓ Branch 0 taken 62 times.
✓ Branch 1 taken 62 times.
✓ Branch 2 taken 62 times.
✓ Branch 3 taken 62 times.
✓ Branch 4 taken 62 times.
✓ Branch 5 taken 62 times.
✓ Branch 6 taken 62 times.
✓ Branch 7 taken 62 times.
✓ Branch 8 taken 62 times.
✓ Branch 9 taken 62 times.
✓ Branch 10 taken 62 times.
✓ Branch 11 taken 62 times.
✓ Branch 12 taken 62 times.
✓ Branch 13 taken 62 times.
✓ Branch 14 taken 62 times.
✗ Branch 15 not taken.
|
930 | switch (portNum) { |
| 14444 | 62 | case 0: | |
| 14445 | 62 | CdhCore::cmdDisp.pingIn_handlerBase( | |
| 14446 | 0, | ||
| 14447 | key | ||
| 14448 | ); | ||
| 14449 | 62 | break; | |
| 14450 | 62 | case 1: | |
| 14451 | 62 | CdhCore::events.pingIn_handlerBase( | |
| 14452 | 0, | ||
| 14453 | key | ||
| 14454 | ); | ||
| 14455 | 62 | break; | |
| 14456 | 62 | case 2: | |
| 14457 | 62 | CdhCore::tlmSend.pingIn_handlerBase( | |
| 14458 | 0, | ||
| 14459 | key | ||
| 14460 | ); | ||
| 14461 | 62 | break; | |
| 14462 | 62 | case 3: | |
| 14463 | 62 | DataProducts::dpBufferAccumulator.pingIn_handlerBase( | |
| 14464 | 0, | ||
| 14465 | key | ||
| 14466 | ); | ||
| 14467 | 62 | break; | |
| 14468 | 62 | case 4: | |
| 14469 | 62 | DataProducts::dpCat.pingIn_handlerBase( | |
| 14470 | 0, | ||
| 14471 | key | ||
| 14472 | ); | ||
| 14473 | 62 | break; | |
| 14474 | 62 | case 5: | |
| 14475 | 62 | FileHandling::fileDownlink.pingIn_handlerBase( | |
| 14476 | 0, | ||
| 14477 | key | ||
| 14478 | ); | ||
| 14479 | 62 | break; | |
| 14480 | 62 | case 6: | |
| 14481 | 62 | FileHandling::fileManager.pingIn_handlerBase( | |
| 14482 | 0, | ||
| 14483 | key | ||
| 14484 | ); | ||
| 14485 | 62 | break; | |
| 14486 | 62 | case 7: | |
| 14487 | 62 | FileHandling::fileUplink.pingIn_handlerBase( | |
| 14488 | 0, | ||
| 14489 | key | ||
| 14490 | ); | ||
| 14491 | 62 | break; | |
| 14492 | 62 | case 8: | |
| 14493 | 62 | FileHandling::prmDb.pingIn_handlerBase( | |
| 14494 | 0, | ||
| 14495 | key | ||
| 14496 | ); | ||
| 14497 | 62 | break; | |
| 14498 | 62 | case 9: | |
| 14499 | 62 | Ref::blockDrv.PingIn_handlerBase( | |
| 14500 | 0, | ||
| 14501 | key | ||
| 14502 | ); | ||
| 14503 | 62 | break; | |
| 14504 | 62 | case 10: | |
| 14505 | 62 | Ref::cmdSeq.pingIn_handlerBase( | |
| 14506 | 0, | ||
| 14507 | key | ||
| 14508 | ); | ||
| 14509 | 62 | break; | |
| 14510 | 62 | case 11: | |
| 14511 | 62 | Ref::pingRcvr.PingIn_handlerBase( | |
| 14512 | 0, | ||
| 14513 | key | ||
| 14514 | ); | ||
| 14515 | 62 | break; | |
| 14516 | 62 | case 12: | |
| 14517 | 62 | Ref::rateGroup1Comp.PingIn_handlerBase( | |
| 14518 | 0, | ||
| 14519 | key | ||
| 14520 | ); | ||
| 14521 | 62 | break; | |
| 14522 | 62 | case 13: | |
| 14523 | 62 | Ref::rateGroup2Comp.PingIn_handlerBase( | |
| 14524 | 0, | ||
| 14525 | key | ||
| 14526 | ); | ||
| 14527 | 62 | break; | |
| 14528 | 62 | case 14: | |
| 14529 | 62 | Ref::rateGroup3Comp.PingIn_handlerBase( | |
| 14530 | 0, | ||
| 14531 | key | ||
| 14532 | ); | ||
| 14533 | 62 | break; | |
| 14534 | ✗ | default: | |
| 14535 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14536 | ✗ | break; | |
| 14537 | } | ||
| 14538 | 930 | } | |
| 14539 | |||
| 14540 | ✗ | void HealthComponentBase::Time_out( | |
| 14541 | FwIndexType portNum, | ||
| 14542 | Fw::Time& time | ||
| 14543 | ) const { | ||
| 14544 | ✗ | FW_ASSERT( | |
| 14545 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 14546 | static_cast<FwAssertArgType>(portNum), | ||
| 14547 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 14548 | ); | ||
| 14549 | ✗ | switch (portNum) { | |
| 14550 | ✗ | case 0: | |
| 14551 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 14552 | 0, | ||
| 14553 | time | ||
| 14554 | ); | ||
| 14555 | ✗ | break; | |
| 14556 | ✗ | default: | |
| 14557 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14558 | ✗ | break; | |
| 14559 | } | ||
| 14560 | ✗ | } | |
| 14561 | |||
| 14562 | ✗ | void HealthComponentBase::Tlm_out( | |
| 14563 | FwIndexType portNum, | ||
| 14564 | FwChanIdType id, | ||
| 14565 | Fw::Time& timeTag, | ||
| 14566 | Fw::TlmBuffer& val | ||
| 14567 | ) const { | ||
| 14568 | ✗ | FW_ASSERT( | |
| 14569 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 14570 | static_cast<FwAssertArgType>(portNum), | ||
| 14571 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 14572 | ); | ||
| 14573 | ✗ | switch (portNum) { | |
| 14574 | ✗ | case 0: | |
| 14575 | ✗ | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 14576 | 0, | ||
| 14577 | id, | ||
| 14578 | timeTag, | ||
| 14579 | val | ||
| 14580 | ); | ||
| 14581 | ✗ | break; | |
| 14582 | ✗ | default: | |
| 14583 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14584 | ✗ | break; | |
| 14585 | } | ||
| 14586 | ✗ | } | |
| 14587 | |||
| 14588 | ✗ | void HealthComponentBase::WdogStroke_out( | |
| 14589 | FwIndexType portNum, | ||
| 14590 | U32 code | ||
| 14591 | ) const { | ||
| 14592 | ✗ | FW_ASSERT( | |
| 14593 | (0 <= portNum) && (portNum < NUM_WDOGSTROKE_OUTPUT_PORTS), | ||
| 14594 | static_cast<FwAssertArgType>(portNum), | ||
| 14595 | static_cast<FwAssertArgType>(NUM_WDOGSTROKE_OUTPUT_PORTS) | ||
| 14596 | ); | ||
| 14597 | ✗ | switch (portNum) { | |
| 14598 | default: | ||
| 14599 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14600 | ✗ | break; | |
| 14601 | } | ||
| 14602 | ✗ | } | |
| 14603 | |||
| 14604 | } | ||
| 14605 | |||
| 14606 | namespace Svc { | ||
| 14607 | |||
| 14608 | ✗ | bool LinuxTimerComponentBase::isConnected_CycleOut_OutputPort(FwIndexType portNum) const { | |
| 14609 | ✗ | FW_ASSERT( | |
| 14610 | (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS), | ||
| 14611 | static_cast<FwAssertArgType>(portNum), | ||
| 14612 | static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS) | ||
| 14613 | ); | ||
| 14614 | ✗ | bool result = false; | |
| 14615 | ✗ | switch (portNum) { | |
| 14616 | ✗ | case 0: | |
| 14617 | ✗ | result = true; | |
| 14618 | ✗ | break; | |
| 14619 | ✗ | default: | |
| 14620 | ✗ | break; | |
| 14621 | } | ||
| 14622 | ✗ | return result; | |
| 14623 | } | ||
| 14624 | |||
| 14625 | 246 | void LinuxTimerComponentBase::CycleOut_out( | |
| 14626 | FwIndexType portNum, | ||
| 14627 | Os::RawTime& cycleStart | ||
| 14628 | ) const { | ||
| 14629 | 246 | FW_ASSERT( | |
| 14630 | (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS), | ||
| 14631 | static_cast<FwAssertArgType>(portNum), | ||
| 14632 | static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS) | ||
| 14633 | ); | ||
| 14634 |
1/2✓ Branch 0 taken 246 times.
✗ Branch 1 not taken.
|
246 | switch (portNum) { |
| 14635 | 246 | case 0: | |
| 14636 | 246 | Ref::rateGroupDriverComp.CycleIn_handlerBase( | |
| 14637 | 0, | ||
| 14638 | cycleStart | ||
| 14639 | ); | ||
| 14640 | 246 | break; | |
| 14641 | ✗ | default: | |
| 14642 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14643 | ✗ | break; | |
| 14644 | } | ||
| 14645 | 246 | } | |
| 14646 | |||
| 14647 | } | ||
| 14648 | |||
| 14649 | namespace Svc { | ||
| 14650 | |||
| 14651 | 1 | bool PrmDbComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const { | |
| 14652 | 1 | FW_ASSERT( | |
| 14653 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 14654 | static_cast<FwAssertArgType>(portNum), | ||
| 14655 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 14656 | ); | ||
| 14657 | 1 | bool result = false; | |
| 14658 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 14659 | 1 | case 0: | |
| 14660 | 1 | result = true; | |
| 14661 | 1 | break; | |
| 14662 | ✗ | default: | |
| 14663 | ✗ | break; | |
| 14664 | } | ||
| 14665 | 1 | return result; | |
| 14666 | } | ||
| 14667 | |||
| 14668 | 4 | bool PrmDbComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const { | |
| 14669 | 4 | FW_ASSERT( | |
| 14670 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 14671 | static_cast<FwAssertArgType>(portNum), | ||
| 14672 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 14673 | ); | ||
| 14674 | 4 | bool result = false; | |
| 14675 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 14676 | 4 | case 0: | |
| 14677 | 4 | result = true; | |
| 14678 | 4 | break; | |
| 14679 | ✗ | default: | |
| 14680 | ✗ | break; | |
| 14681 | } | ||
| 14682 | 4 | return result; | |
| 14683 | } | ||
| 14684 | |||
| 14685 | 15 | bool PrmDbComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 14686 | 15 | FW_ASSERT( | |
| 14687 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 14688 | static_cast<FwAssertArgType>(portNum), | ||
| 14689 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 14690 | ); | ||
| 14691 | 15 | bool result = false; | |
| 14692 |
1/2✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
|
15 | switch (portNum) { |
| 14693 | 15 | case 0: | |
| 14694 | 15 | result = true; | |
| 14695 | 15 | break; | |
| 14696 | ✗ | default: | |
| 14697 | ✗ | break; | |
| 14698 | } | ||
| 14699 | 15 | return result; | |
| 14700 | } | ||
| 14701 | |||
| 14702 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 14703 | |||
| 14704 | 15 | bool PrmDbComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 14705 | 15 | FW_ASSERT( | |
| 14706 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 14707 | static_cast<FwAssertArgType>(portNum), | ||
| 14708 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 14709 | ); | ||
| 14710 | 15 | bool result = false; | |
| 14711 |
1/2✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
|
15 | switch (portNum) { |
| 14712 | 15 | case 0: | |
| 14713 | 15 | result = true; | |
| 14714 | 15 | break; | |
| 14715 | ✗ | default: | |
| 14716 | ✗ | break; | |
| 14717 | } | ||
| 14718 | 15 | return result; | |
| 14719 | } | ||
| 14720 | |||
| 14721 | #endif | ||
| 14722 | |||
| 14723 | 15 | bool PrmDbComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 14724 | 15 | FW_ASSERT( | |
| 14725 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 14726 | static_cast<FwAssertArgType>(portNum), | ||
| 14727 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 14728 | ); | ||
| 14729 | 15 | bool result = false; | |
| 14730 |
1/2✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
|
15 | switch (portNum) { |
| 14731 | 15 | case 0: | |
| 14732 | 15 | result = true; | |
| 14733 | 15 | break; | |
| 14734 | ✗ | default: | |
| 14735 | ✗ | break; | |
| 14736 | } | ||
| 14737 | 15 | return result; | |
| 14738 | } | ||
| 14739 | |||
| 14740 | ✗ | bool PrmDbComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const { | |
| 14741 | ✗ | FW_ASSERT( | |
| 14742 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 14743 | static_cast<FwAssertArgType>(portNum), | ||
| 14744 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 14745 | ); | ||
| 14746 | ✗ | bool result = false; | |
| 14747 | ✗ | switch (portNum) { | |
| 14748 | ✗ | case 0: | |
| 14749 | ✗ | result = true; | |
| 14750 | ✗ | break; | |
| 14751 | ✗ | default: | |
| 14752 | ✗ | break; | |
| 14753 | } | ||
| 14754 | ✗ | return result; | |
| 14755 | } | ||
| 14756 | |||
| 14757 | 3 | void PrmDbComponentBase::CmdReg_out( | |
| 14758 | FwIndexType portNum, | ||
| 14759 | FwOpcodeType opCode | ||
| 14760 | ) const { | ||
| 14761 | 3 | FW_ASSERT( | |
| 14762 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 14763 | static_cast<FwAssertArgType>(portNum), | ||
| 14764 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 14765 | ); | ||
| 14766 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 14767 | 3 | case 0: | |
| 14768 | 3 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 14769 | 11, | ||
| 14770 | opCode | ||
| 14771 | ); | ||
| 14772 | 3 | break; | |
| 14773 | ✗ | default: | |
| 14774 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14775 | ✗ | break; | |
| 14776 | } | ||
| 14777 | 3 | } | |
| 14778 | |||
| 14779 | 4 | void PrmDbComponentBase::CmdStatus_out( | |
| 14780 | FwIndexType portNum, | ||
| 14781 | FwOpcodeType opCode, | ||
| 14782 | U32 cmdSeq, | ||
| 14783 | const Fw::CmdResponse& response | ||
| 14784 | ) const { | ||
| 14785 | 4 | FW_ASSERT( | |
| 14786 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 14787 | static_cast<FwAssertArgType>(portNum), | ||
| 14788 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 14789 | ); | ||
| 14790 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 14791 | 4 | case 0: | |
| 14792 | 4 | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 14793 | 0, | ||
| 14794 | opCode, | ||
| 14795 | cmdSeq, | ||
| 14796 | response | ||
| 14797 | ); | ||
| 14798 | 4 | break; | |
| 14799 | ✗ | default: | |
| 14800 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14801 | ✗ | break; | |
| 14802 | } | ||
| 14803 | 4 | } | |
| 14804 | |||
| 14805 | 15 | void PrmDbComponentBase::Log_out( | |
| 14806 | FwIndexType portNum, | ||
| 14807 | FwEventIdType id, | ||
| 14808 | Fw::Time& timeTag, | ||
| 14809 | const Fw::LogSeverity& severity, | ||
| 14810 | Fw::LogBuffer& args | ||
| 14811 | ) const { | ||
| 14812 | 15 | FW_ASSERT( | |
| 14813 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 14814 | static_cast<FwAssertArgType>(portNum), | ||
| 14815 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 14816 | ); | ||
| 14817 |
1/2✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
|
15 | switch (portNum) { |
| 14818 | 15 | case 0: | |
| 14819 | 15 | CdhCore::events.LogRecv_handlerBase( | |
| 14820 | 0, | ||
| 14821 | id, | ||
| 14822 | timeTag, | ||
| 14823 | severity, | ||
| 14824 | args | ||
| 14825 | ); | ||
| 14826 | 15 | break; | |
| 14827 | ✗ | default: | |
| 14828 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14829 | ✗ | break; | |
| 14830 | } | ||
| 14831 | 15 | } | |
| 14832 | |||
| 14833 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 14834 | |||
| 14835 | 15 | void PrmDbComponentBase::LogText_out( | |
| 14836 | FwIndexType portNum, | ||
| 14837 | FwEventIdType id, | ||
| 14838 | Fw::Time& timeTag, | ||
| 14839 | const Fw::LogSeverity& severity, | ||
| 14840 | Fw::TextLogString& text | ||
| 14841 | ) const { | ||
| 14842 | 15 | FW_ASSERT( | |
| 14843 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 14844 | static_cast<FwAssertArgType>(portNum), | ||
| 14845 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 14846 | ); | ||
| 14847 |
1/2✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
|
15 | switch (portNum) { |
| 14848 | 15 | case 0: | |
| 14849 | 15 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 14850 | 0, | ||
| 14851 | id, | ||
| 14852 | timeTag, | ||
| 14853 | severity, | ||
| 14854 | text | ||
| 14855 | ); | ||
| 14856 | 15 | break; | |
| 14857 | ✗ | default: | |
| 14858 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14859 | ✗ | break; | |
| 14860 | } | ||
| 14861 | 15 | } | |
| 14862 | |||
| 14863 | #endif | ||
| 14864 | |||
| 14865 | 15 | void PrmDbComponentBase::Time_out( | |
| 14866 | FwIndexType portNum, | ||
| 14867 | Fw::Time& time | ||
| 14868 | ) const { | ||
| 14869 | 15 | FW_ASSERT( | |
| 14870 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 14871 | static_cast<FwAssertArgType>(portNum), | ||
| 14872 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 14873 | ); | ||
| 14874 |
1/2✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
|
15 | switch (portNum) { |
| 14875 | 15 | case 0: | |
| 14876 | 15 | Ref::posixTime.timeGetPort_handlerBase( | |
| 14877 | 0, | ||
| 14878 | time | ||
| 14879 | ); | ||
| 14880 | 15 | break; | |
| 14881 | ✗ | default: | |
| 14882 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14883 | ✗ | break; | |
| 14884 | } | ||
| 14885 | 15 | } | |
| 14886 | |||
| 14887 | 62 | void PrmDbComponentBase::pingOut_out( | |
| 14888 | FwIndexType portNum, | ||
| 14889 | U32 key | ||
| 14890 | ) const { | ||
| 14891 | 62 | FW_ASSERT( | |
| 14892 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 14893 | static_cast<FwAssertArgType>(portNum), | ||
| 14894 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 14895 | ); | ||
| 14896 |
1/2✓ Branch 0 taken 62 times.
✗ Branch 1 not taken.
|
62 | switch (portNum) { |
| 14897 | 62 | case 0: | |
| 14898 | 62 | CdhCore::health.PingReturn_handlerBase( | |
| 14899 | 8, | ||
| 14900 | key | ||
| 14901 | ); | ||
| 14902 | 62 | break; | |
| 14903 | ✗ | default: | |
| 14904 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14905 | ✗ | break; | |
| 14906 | } | ||
| 14907 | 62 | } | |
| 14908 | |||
| 14909 | } | ||
| 14910 | |||
| 14911 | namespace Svc { | ||
| 14912 | |||
| 14913 | 738 | bool RateGroupDriverComponentBase::isConnected_CycleOut_OutputPort(FwIndexType portNum) const { | |
| 14914 | 738 | FW_ASSERT( | |
| 14915 | (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS), | ||
| 14916 | static_cast<FwAssertArgType>(portNum), | ||
| 14917 | static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS) | ||
| 14918 | ); | ||
| 14919 | 738 | bool result = false; | |
| 14920 |
3/4✓ Branch 0 taken 246 times.
✓ Branch 1 taken 246 times.
✓ Branch 2 taken 246 times.
✗ Branch 3 not taken.
|
738 | switch (portNum) { |
| 14921 | 246 | case 0: | |
| 14922 | 246 | result = true; | |
| 14923 | 246 | break; | |
| 14924 | 246 | case 1: | |
| 14925 | 246 | result = true; | |
| 14926 | 246 | break; | |
| 14927 | 246 | case 2: | |
| 14928 | 246 | result = true; | |
| 14929 | 246 | break; | |
| 14930 | ✗ | default: | |
| 14931 | ✗ | break; | |
| 14932 | } | ||
| 14933 | 738 | return result; | |
| 14934 | } | ||
| 14935 | |||
| 14936 | 431 | void RateGroupDriverComponentBase::CycleOut_out( | |
| 14937 | FwIndexType portNum, | ||
| 14938 | Os::RawTime& cycleStart | ||
| 14939 | ) const { | ||
| 14940 | 431 | FW_ASSERT( | |
| 14941 | (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS), | ||
| 14942 | static_cast<FwAssertArgType>(portNum), | ||
| 14943 | static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS) | ||
| 14944 | ); | ||
| 14945 |
3/4✓ Branch 0 taken 246 times.
✓ Branch 1 taken 123 times.
✓ Branch 2 taken 62 times.
✗ Branch 3 not taken.
|
431 | switch (portNum) { |
| 14946 | 246 | case 0: | |
| 14947 | 246 | Ref::rateGroup1Comp.CycleIn_handlerBase( | |
| 14948 | 0, | ||
| 14949 | cycleStart | ||
| 14950 | ); | ||
| 14951 | 246 | break; | |
| 14952 | 123 | case 1: | |
| 14953 | 123 | Ref::rateGroup2Comp.CycleIn_handlerBase( | |
| 14954 | 0, | ||
| 14955 | cycleStart | ||
| 14956 | ); | ||
| 14957 | 123 | break; | |
| 14958 | 62 | case 2: | |
| 14959 | 62 | Ref::rateGroup3Comp.CycleIn_handlerBase( | |
| 14960 | 0, | ||
| 14961 | cycleStart | ||
| 14962 | ); | ||
| 14963 | 62 | break; | |
| 14964 | ✗ | default: | |
| 14965 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14966 | ✗ | break; | |
| 14967 | } | ||
| 14968 | 431 | } | |
| 14969 | |||
| 14970 | } | ||
| 14971 | |||
| 14972 | namespace Svc { | ||
| 14973 | |||
| 14974 | 1 | bool SystemResourcesComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const { | |
| 14975 | 1 | FW_ASSERT( | |
| 14976 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 14977 | static_cast<FwAssertArgType>(portNum), | ||
| 14978 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 14979 | ); | ||
| 14980 | 1 | bool result = false; | |
| 14981 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 14982 | 1 | case 0: | |
| 14983 | 1 | result = true; | |
| 14984 | 1 | break; | |
| 14985 | ✗ | default: | |
| 14986 | ✗ | break; | |
| 14987 | } | ||
| 14988 | 1 | return result; | |
| 14989 | } | ||
| 14990 | |||
| 14991 | ✗ | bool SystemResourcesComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const { | |
| 14992 | ✗ | FW_ASSERT( | |
| 14993 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 14994 | static_cast<FwAssertArgType>(portNum), | ||
| 14995 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 14996 | ); | ||
| 14997 | ✗ | bool result = false; | |
| 14998 | ✗ | switch (portNum) { | |
| 14999 | ✗ | case 0: | |
| 15000 | ✗ | result = true; | |
| 15001 | ✗ | break; | |
| 15002 | ✗ | default: | |
| 15003 | ✗ | break; | |
| 15004 | } | ||
| 15005 | ✗ | return result; | |
| 15006 | } | ||
| 15007 | |||
| 15008 | ✗ | bool SystemResourcesComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 15009 | ✗ | FW_ASSERT( | |
| 15010 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 15011 | static_cast<FwAssertArgType>(portNum), | ||
| 15012 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 15013 | ); | ||
| 15014 | ✗ | bool result = false; | |
| 15015 | ✗ | switch (portNum) { | |
| 15016 | ✗ | case 0: | |
| 15017 | ✗ | result = true; | |
| 15018 | ✗ | break; | |
| 15019 | ✗ | default: | |
| 15020 | ✗ | break; | |
| 15021 | } | ||
| 15022 | ✗ | return result; | |
| 15023 | } | ||
| 15024 | |||
| 15025 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 15026 | |||
| 15027 | ✗ | bool SystemResourcesComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 15028 | ✗ | FW_ASSERT( | |
| 15029 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 15030 | static_cast<FwAssertArgType>(portNum), | ||
| 15031 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 15032 | ); | ||
| 15033 | ✗ | bool result = false; | |
| 15034 | ✗ | switch (portNum) { | |
| 15035 | ✗ | case 0: | |
| 15036 | ✗ | result = true; | |
| 15037 | ✗ | break; | |
| 15038 | ✗ | default: | |
| 15039 | ✗ | break; | |
| 15040 | } | ||
| 15041 | ✗ | return result; | |
| 15042 | } | ||
| 15043 | |||
| 15044 | #endif | ||
| 15045 | |||
| 15046 | 2214 | bool SystemResourcesComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 15047 | 2214 | FW_ASSERT( | |
| 15048 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 15049 | static_cast<FwAssertArgType>(portNum), | ||
| 15050 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 15051 | ); | ||
| 15052 | 2214 | bool result = false; | |
| 15053 |
1/2✓ Branch 0 taken 2214 times.
✗ Branch 1 not taken.
|
2214 | switch (portNum) { |
| 15054 | 2214 | case 0: | |
| 15055 | 2214 | result = true; | |
| 15056 | 2214 | break; | |
| 15057 | ✗ | default: | |
| 15058 | ✗ | break; | |
| 15059 | } | ||
| 15060 | 2214 | return result; | |
| 15061 | } | ||
| 15062 | |||
| 15063 | 4428 | bool SystemResourcesComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const { | |
| 15064 | 4428 | FW_ASSERT( | |
| 15065 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 15066 | static_cast<FwAssertArgType>(portNum), | ||
| 15067 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 15068 | ); | ||
| 15069 | 4428 | bool result = false; | |
| 15070 |
1/2✓ Branch 0 taken 4428 times.
✗ Branch 1 not taken.
|
4428 | switch (portNum) { |
| 15071 | 4428 | case 0: | |
| 15072 | 4428 | result = true; | |
| 15073 | 4428 | break; | |
| 15074 | ✗ | default: | |
| 15075 | ✗ | break; | |
| 15076 | } | ||
| 15077 | 4428 | return result; | |
| 15078 | } | ||
| 15079 | |||
| 15080 | 1 | void SystemResourcesComponentBase::CmdReg_out( | |
| 15081 | FwIndexType portNum, | ||
| 15082 | FwOpcodeType opCode | ||
| 15083 | ) const { | ||
| 15084 | 1 | FW_ASSERT( | |
| 15085 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 15086 | static_cast<FwAssertArgType>(portNum), | ||
| 15087 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 15088 | ); | ||
| 15089 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 15090 | 1 | case 0: | |
| 15091 | 1 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 15092 | 22, | ||
| 15093 | opCode | ||
| 15094 | ); | ||
| 15095 | 1 | break; | |
| 15096 | ✗ | default: | |
| 15097 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15098 | ✗ | break; | |
| 15099 | } | ||
| 15100 | 1 | } | |
| 15101 | |||
| 15102 | ✗ | void SystemResourcesComponentBase::CmdStatus_out( | |
| 15103 | FwIndexType portNum, | ||
| 15104 | FwOpcodeType opCode, | ||
| 15105 | U32 cmdSeq, | ||
| 15106 | const Fw::CmdResponse& response | ||
| 15107 | ) const { | ||
| 15108 | ✗ | FW_ASSERT( | |
| 15109 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 15110 | static_cast<FwAssertArgType>(portNum), | ||
| 15111 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 15112 | ); | ||
| 15113 | ✗ | switch (portNum) { | |
| 15114 | ✗ | case 0: | |
| 15115 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 15116 | 0, | ||
| 15117 | opCode, | ||
| 15118 | cmdSeq, | ||
| 15119 | response | ||
| 15120 | ); | ||
| 15121 | ✗ | break; | |
| 15122 | ✗ | default: | |
| 15123 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15124 | ✗ | break; | |
| 15125 | } | ||
| 15126 | ✗ | } | |
| 15127 | |||
| 15128 | 2214 | void SystemResourcesComponentBase::Time_out( | |
| 15129 | FwIndexType portNum, | ||
| 15130 | Fw::Time& time | ||
| 15131 | ) const { | ||
| 15132 | 2214 | FW_ASSERT( | |
| 15133 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 15134 | static_cast<FwAssertArgType>(portNum), | ||
| 15135 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 15136 | ); | ||
| 15137 |
1/2✓ Branch 0 taken 2214 times.
✗ Branch 1 not taken.
|
2214 | switch (portNum) { |
| 15138 | 2214 | case 0: | |
| 15139 | 2214 | Ref::posixTime.timeGetPort_handlerBase( | |
| 15140 | 0, | ||
| 15141 | time | ||
| 15142 | ); | ||
| 15143 | 2214 | break; | |
| 15144 | ✗ | default: | |
| 15145 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15146 | ✗ | break; | |
| 15147 | } | ||
| 15148 | 2214 | } | |
| 15149 | |||
| 15150 | 2214 | void SystemResourcesComponentBase::Tlm_out( | |
| 15151 | FwIndexType portNum, | ||
| 15152 | FwChanIdType id, | ||
| 15153 | Fw::Time& timeTag, | ||
| 15154 | Fw::TlmBuffer& val | ||
| 15155 | ) const { | ||
| 15156 | 2214 | FW_ASSERT( | |
| 15157 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 15158 | static_cast<FwAssertArgType>(portNum), | ||
| 15159 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 15160 | ); | ||
| 15161 |
1/2✓ Branch 0 taken 2214 times.
✗ Branch 1 not taken.
|
2214 | switch (portNum) { |
| 15162 | 2214 | case 0: | |
| 15163 | 2214 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 15164 | 0, | ||
| 15165 | id, | ||
| 15166 | timeTag, | ||
| 15167 | val | ||
| 15168 | ); | ||
| 15169 | 2214 | break; | |
| 15170 | ✗ | default: | |
| 15171 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15172 | ✗ | break; | |
| 15173 | } | ||
| 15174 | 2214 | } | |
| 15175 | |||
| 15176 | } | ||
| 15177 | |||
| 15178 | namespace Svc { | ||
| 15179 | |||
| 15180 | 246 | bool TlmChanComponentBase::isConnected_PktSend_OutputPort(FwIndexType portNum) const { | |
| 15181 | 246 | FW_ASSERT( | |
| 15182 | (0 <= portNum) && (portNum < NUM_PKTSEND_OUTPUT_PORTS), | ||
| 15183 | static_cast<FwAssertArgType>(portNum), | ||
| 15184 | static_cast<FwAssertArgType>(NUM_PKTSEND_OUTPUT_PORTS) | ||
| 15185 | ); | ||
| 15186 | 246 | bool result = false; | |
| 15187 |
1/2✓ Branch 0 taken 246 times.
✗ Branch 1 not taken.
|
246 | switch (portNum) { |
| 15188 | 246 | case 0: | |
| 15189 | 246 | result = true; | |
| 15190 | 246 | break; | |
| 15191 | ✗ | default: | |
| 15192 | ✗ | break; | |
| 15193 | } | ||
| 15194 | 246 | return result; | |
| 15195 | } | ||
| 15196 | |||
| 15197 | ✗ | bool TlmChanComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const { | |
| 15198 | ✗ | FW_ASSERT( | |
| 15199 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 15200 | static_cast<FwAssertArgType>(portNum), | ||
| 15201 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 15202 | ); | ||
| 15203 | ✗ | bool result = false; | |
| 15204 | ✗ | switch (portNum) { | |
| 15205 | ✗ | case 0: | |
| 15206 | ✗ | result = true; | |
| 15207 | ✗ | break; | |
| 15208 | ✗ | default: | |
| 15209 | ✗ | break; | |
| 15210 | } | ||
| 15211 | ✗ | return result; | |
| 15212 | } | ||
| 15213 | |||
| 15214 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 15215 | |||
| 15216 | ✗ | bool TlmChanComponentBase::isConnected_eventOutText_OutputPort(FwIndexType portNum) const { | |
| 15217 | ✗ | FW_ASSERT( | |
| 15218 | (0 <= portNum) && (portNum < NUM_EVENTOUTTEXT_OUTPUT_PORTS), | ||
| 15219 | static_cast<FwAssertArgType>(portNum), | ||
| 15220 | static_cast<FwAssertArgType>(NUM_EVENTOUTTEXT_OUTPUT_PORTS) | ||
| 15221 | ); | ||
| 15222 | ✗ | bool result = false; | |
| 15223 | ✗ | switch (portNum) { | |
| 15224 | ✗ | case 0: | |
| 15225 | ✗ | result = true; | |
| 15226 | ✗ | break; | |
| 15227 | ✗ | default: | |
| 15228 | ✗ | break; | |
| 15229 | } | ||
| 15230 | ✗ | return result; | |
| 15231 | } | ||
| 15232 | |||
| 15233 | #endif | ||
| 15234 | |||
| 15235 | ✗ | bool TlmChanComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const { | |
| 15236 | ✗ | FW_ASSERT( | |
| 15237 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 15238 | static_cast<FwAssertArgType>(portNum), | ||
| 15239 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 15240 | ); | ||
| 15241 | ✗ | bool result = false; | |
| 15242 | ✗ | switch (portNum) { | |
| 15243 | ✗ | case 0: | |
| 15244 | ✗ | result = true; | |
| 15245 | ✗ | break; | |
| 15246 | ✗ | default: | |
| 15247 | ✗ | break; | |
| 15248 | } | ||
| 15249 | ✗ | return result; | |
| 15250 | } | ||
| 15251 | |||
| 15252 | ✗ | bool TlmChanComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 15253 | ✗ | FW_ASSERT( | |
| 15254 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 15255 | static_cast<FwAssertArgType>(portNum), | ||
| 15256 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 15257 | ); | ||
| 15258 | ✗ | bool result = false; | |
| 15259 | ✗ | switch (portNum) { | |
| 15260 | ✗ | case 0: | |
| 15261 | ✗ | result = true; | |
| 15262 | ✗ | break; | |
| 15263 | ✗ | default: | |
| 15264 | ✗ | break; | |
| 15265 | } | ||
| 15266 | ✗ | return result; | |
| 15267 | } | ||
| 15268 | |||
| 15269 | 241 | void TlmChanComponentBase::PktSend_out( | |
| 15270 | FwIndexType portNum, | ||
| 15271 | Fw::ComBuffer& data, | ||
| 15272 | U32 context | ||
| 15273 | ) const { | ||
| 15274 | 241 | FW_ASSERT( | |
| 15275 | (0 <= portNum) && (portNum < NUM_PKTSEND_OUTPUT_PORTS), | ||
| 15276 | static_cast<FwAssertArgType>(portNum), | ||
| 15277 | static_cast<FwAssertArgType>(NUM_PKTSEND_OUTPUT_PORTS) | ||
| 15278 | ); | ||
| 15279 |
1/2✓ Branch 0 taken 241 times.
✗ Branch 1 not taken.
|
241 | switch (portNum) { |
| 15280 | 241 | case 0: | |
| 15281 | 241 | ComCcsds::comQueue.comPacketQueueIn_handlerBase( | |
| 15282 | 1, | ||
| 15283 | data, | ||
| 15284 | context | ||
| 15285 | ); | ||
| 15286 | 241 | break; | |
| 15287 | ✗ | default: | |
| 15288 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15289 | ✗ | break; | |
| 15290 | } | ||
| 15291 | 241 | } | |
| 15292 | |||
| 15293 | ✗ | void TlmChanComponentBase::eventOut_out( | |
| 15294 | FwIndexType portNum, | ||
| 15295 | FwEventIdType id, | ||
| 15296 | Fw::Time& timeTag, | ||
| 15297 | const Fw::LogSeverity& severity, | ||
| 15298 | Fw::LogBuffer& args | ||
| 15299 | ) const { | ||
| 15300 | ✗ | FW_ASSERT( | |
| 15301 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 15302 | static_cast<FwAssertArgType>(portNum), | ||
| 15303 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 15304 | ); | ||
| 15305 | ✗ | switch (portNum) { | |
| 15306 | ✗ | case 0: | |
| 15307 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 15308 | 0, | ||
| 15309 | id, | ||
| 15310 | timeTag, | ||
| 15311 | severity, | ||
| 15312 | args | ||
| 15313 | ); | ||
| 15314 | ✗ | break; | |
| 15315 | ✗ | default: | |
| 15316 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15317 | ✗ | break; | |
| 15318 | } | ||
| 15319 | ✗ | } | |
| 15320 | |||
| 15321 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 15322 | |||
| 15323 | ✗ | void TlmChanComponentBase::eventOutText_out( | |
| 15324 | FwIndexType portNum, | ||
| 15325 | FwEventIdType id, | ||
| 15326 | Fw::Time& timeTag, | ||
| 15327 | const Fw::LogSeverity& severity, | ||
| 15328 | Fw::TextLogString& text | ||
| 15329 | ) const { | ||
| 15330 | ✗ | FW_ASSERT( | |
| 15331 | (0 <= portNum) && (portNum < NUM_EVENTOUTTEXT_OUTPUT_PORTS), | ||
| 15332 | static_cast<FwAssertArgType>(portNum), | ||
| 15333 | static_cast<FwAssertArgType>(NUM_EVENTOUTTEXT_OUTPUT_PORTS) | ||
| 15334 | ); | ||
| 15335 | ✗ | switch (portNum) { | |
| 15336 | ✗ | case 0: | |
| 15337 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 15338 | 0, | ||
| 15339 | id, | ||
| 15340 | timeTag, | ||
| 15341 | severity, | ||
| 15342 | text | ||
| 15343 | ); | ||
| 15344 | ✗ | break; | |
| 15345 | ✗ | default: | |
| 15346 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15347 | ✗ | break; | |
| 15348 | } | ||
| 15349 | ✗ | } | |
| 15350 | |||
| 15351 | #endif | ||
| 15352 | |||
| 15353 | 62 | void TlmChanComponentBase::pingOut_out( | |
| 15354 | FwIndexType portNum, | ||
| 15355 | U32 key | ||
| 15356 | ) const { | ||
| 15357 | 62 | FW_ASSERT( | |
| 15358 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 15359 | static_cast<FwAssertArgType>(portNum), | ||
| 15360 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 15361 | ); | ||
| 15362 |
1/2✓ Branch 0 taken 62 times.
✗ Branch 1 not taken.
|
62 | switch (portNum) { |
| 15363 | 62 | case 0: | |
| 15364 | 62 | CdhCore::health.PingReturn_handlerBase( | |
| 15365 | 2, | ||
| 15366 | key | ||
| 15367 | ); | ||
| 15368 | 62 | break; | |
| 15369 | ✗ | default: | |
| 15370 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15371 | ✗ | break; | |
| 15372 | } | ||
| 15373 | 62 | } | |
| 15374 | |||
| 15375 | ✗ | void TlmChanComponentBase::timeCaller_out( | |
| 15376 | FwIndexType portNum, | ||
| 15377 | Fw::Time& time | ||
| 15378 | ) const { | ||
| 15379 | ✗ | FW_ASSERT( | |
| 15380 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 15381 | static_cast<FwAssertArgType>(portNum), | ||
| 15382 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 15383 | ); | ||
| 15384 | ✗ | switch (portNum) { | |
| 15385 | ✗ | case 0: | |
| 15386 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 15387 | 0, | ||
| 15388 | time | ||
| 15389 | ); | ||
| 15390 | ✗ | break; | |
| 15391 | ✗ | default: | |
| 15392 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15393 | ✗ | break; | |
| 15394 | } | ||
| 15395 | ✗ | } | |
| 15396 | |||
| 15397 | } | ||
| 15398 | |||
| 15399 | namespace Svc { | ||
| 15400 | |||
| 15401 | 1 | bool VersionComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const { | |
| 15402 | 1 | FW_ASSERT( | |
| 15403 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 15404 | static_cast<FwAssertArgType>(portNum), | ||
| 15405 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 15406 | ); | ||
| 15407 | 1 | bool result = false; | |
| 15408 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 15409 | 1 | case 0: | |
| 15410 | 1 | result = true; | |
| 15411 | 1 | break; | |
| 15412 | ✗ | default: | |
| 15413 | ✗ | break; | |
| 15414 | } | ||
| 15415 | 1 | return result; | |
| 15416 | } | ||
| 15417 | |||
| 15418 | ✗ | bool VersionComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const { | |
| 15419 | ✗ | FW_ASSERT( | |
| 15420 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 15421 | static_cast<FwAssertArgType>(portNum), | ||
| 15422 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 15423 | ); | ||
| 15424 | ✗ | bool result = false; | |
| 15425 | ✗ | switch (portNum) { | |
| 15426 | ✗ | case 0: | |
| 15427 | ✗ | result = true; | |
| 15428 | ✗ | break; | |
| 15429 | ✗ | default: | |
| 15430 | ✗ | break; | |
| 15431 | } | ||
| 15432 | ✗ | return result; | |
| 15433 | } | ||
| 15434 | |||
| 15435 | 2 | bool VersionComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 15436 | 2 | FW_ASSERT( | |
| 15437 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 15438 | static_cast<FwAssertArgType>(portNum), | ||
| 15439 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 15440 | ); | ||
| 15441 | 2 | bool result = false; | |
| 15442 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 15443 | 2 | case 0: | |
| 15444 | 2 | result = true; | |
| 15445 | 2 | break; | |
| 15446 | ✗ | default: | |
| 15447 | ✗ | break; | |
| 15448 | } | ||
| 15449 | 2 | return result; | |
| 15450 | } | ||
| 15451 | |||
| 15452 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 15453 | |||
| 15454 | 2 | bool VersionComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 15455 | 2 | FW_ASSERT( | |
| 15456 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 15457 | static_cast<FwAssertArgType>(portNum), | ||
| 15458 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 15459 | ); | ||
| 15460 | 2 | bool result = false; | |
| 15461 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 15462 | 2 | case 0: | |
| 15463 | 2 | result = true; | |
| 15464 | 2 | break; | |
| 15465 | ✗ | default: | |
| 15466 | ✗ | break; | |
| 15467 | } | ||
| 15468 | 2 | return result; | |
| 15469 | } | ||
| 15470 | |||
| 15471 | #endif | ||
| 15472 | |||
| 15473 | 4 | bool VersionComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 15474 | 4 | FW_ASSERT( | |
| 15475 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 15476 | static_cast<FwAssertArgType>(portNum), | ||
| 15477 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 15478 | ); | ||
| 15479 | 4 | bool result = false; | |
| 15480 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 15481 | 4 | case 0: | |
| 15482 | 4 | result = true; | |
| 15483 | 4 | break; | |
| 15484 | ✗ | default: | |
| 15485 | ✗ | break; | |
| 15486 | } | ||
| 15487 | 4 | return result; | |
| 15488 | } | ||
| 15489 | |||
| 15490 | 4 | bool VersionComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 15491 | 4 | FW_ASSERT( | |
| 15492 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 15493 | static_cast<FwAssertArgType>(portNum), | ||
| 15494 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 15495 | ); | ||
| 15496 | 4 | bool result = false; | |
| 15497 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 15498 | 4 | case 0: | |
| 15499 | 4 | result = true; | |
| 15500 | 4 | break; | |
| 15501 | ✗ | default: | |
| 15502 | ✗ | break; | |
| 15503 | } | ||
| 15504 | 4 | return result; | |
| 15505 | } | ||
| 15506 | |||
| 15507 | 2 | void VersionComponentBase::cmdRegOut_out( | |
| 15508 | FwIndexType portNum, | ||
| 15509 | FwOpcodeType opCode | ||
| 15510 | ) const { | ||
| 15511 | 2 | FW_ASSERT( | |
| 15512 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 15513 | static_cast<FwAssertArgType>(portNum), | ||
| 15514 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 15515 | ); | ||
| 15516 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 15517 | 2 | case 0: | |
| 15518 | 2 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 15519 | 3, | ||
| 15520 | opCode | ||
| 15521 | ); | ||
| 15522 | 2 | break; | |
| 15523 | ✗ | default: | |
| 15524 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15525 | ✗ | break; | |
| 15526 | } | ||
| 15527 | 2 | } | |
| 15528 | |||
| 15529 | ✗ | void VersionComponentBase::cmdResponseOut_out( | |
| 15530 | FwIndexType portNum, | ||
| 15531 | FwOpcodeType opCode, | ||
| 15532 | U32 cmdSeq, | ||
| 15533 | const Fw::CmdResponse& response | ||
| 15534 | ) const { | ||
| 15535 | ✗ | FW_ASSERT( | |
| 15536 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 15537 | static_cast<FwAssertArgType>(portNum), | ||
| 15538 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 15539 | ); | ||
| 15540 | ✗ | switch (portNum) { | |
| 15541 | ✗ | case 0: | |
| 15542 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 15543 | 0, | ||
| 15544 | opCode, | ||
| 15545 | cmdSeq, | ||
| 15546 | response | ||
| 15547 | ); | ||
| 15548 | ✗ | break; | |
| 15549 | ✗ | default: | |
| 15550 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15551 | ✗ | break; | |
| 15552 | } | ||
| 15553 | ✗ | } | |
| 15554 | |||
| 15555 | 2 | void VersionComponentBase::logOut_out( | |
| 15556 | FwIndexType portNum, | ||
| 15557 | FwEventIdType id, | ||
| 15558 | Fw::Time& timeTag, | ||
| 15559 | const Fw::LogSeverity& severity, | ||
| 15560 | Fw::LogBuffer& args | ||
| 15561 | ) const { | ||
| 15562 | 2 | FW_ASSERT( | |
| 15563 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 15564 | static_cast<FwAssertArgType>(portNum), | ||
| 15565 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 15566 | ); | ||
| 15567 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 15568 | 2 | case 0: | |
| 15569 | 2 | CdhCore::events.LogRecv_handlerBase( | |
| 15570 | 0, | ||
| 15571 | id, | ||
| 15572 | timeTag, | ||
| 15573 | severity, | ||
| 15574 | args | ||
| 15575 | ); | ||
| 15576 | 2 | break; | |
| 15577 | ✗ | default: | |
| 15578 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15579 | ✗ | break; | |
| 15580 | } | ||
| 15581 | 2 | } | |
| 15582 | |||
| 15583 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 15584 | |||
| 15585 | 2 | void VersionComponentBase::logTextOut_out( | |
| 15586 | FwIndexType portNum, | ||
| 15587 | FwEventIdType id, | ||
| 15588 | Fw::Time& timeTag, | ||
| 15589 | const Fw::LogSeverity& severity, | ||
| 15590 | Fw::TextLogString& text | ||
| 15591 | ) const { | ||
| 15592 | 2 | FW_ASSERT( | |
| 15593 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 15594 | static_cast<FwAssertArgType>(portNum), | ||
| 15595 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 15596 | ); | ||
| 15597 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 15598 | 2 | case 0: | |
| 15599 | 2 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 15600 | 0, | ||
| 15601 | id, | ||
| 15602 | timeTag, | ||
| 15603 | severity, | ||
| 15604 | text | ||
| 15605 | ); | ||
| 15606 | 2 | break; | |
| 15607 | ✗ | default: | |
| 15608 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15609 | ✗ | break; | |
| 15610 | } | ||
| 15611 | 2 | } | |
| 15612 | |||
| 15613 | #endif | ||
| 15614 | |||
| 15615 | 4 | void VersionComponentBase::timeCaller_out( | |
| 15616 | FwIndexType portNum, | ||
| 15617 | Fw::Time& time | ||
| 15618 | ) const { | ||
| 15619 | 4 | FW_ASSERT( | |
| 15620 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 15621 | static_cast<FwAssertArgType>(portNum), | ||
| 15622 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 15623 | ); | ||
| 15624 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 15625 | 4 | case 0: | |
| 15626 | 4 | Ref::posixTime.timeGetPort_handlerBase( | |
| 15627 | 0, | ||
| 15628 | time | ||
| 15629 | ); | ||
| 15630 | 4 | break; | |
| 15631 | ✗ | default: | |
| 15632 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15633 | ✗ | break; | |
| 15634 | } | ||
| 15635 | 4 | } | |
| 15636 | |||
| 15637 | 2 | void VersionComponentBase::tlmOut_out( | |
| 15638 | FwIndexType portNum, | ||
| 15639 | FwChanIdType id, | ||
| 15640 | Fw::Time& timeTag, | ||
| 15641 | Fw::TlmBuffer& val | ||
| 15642 | ) const { | ||
| 15643 | 2 | FW_ASSERT( | |
| 15644 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 15645 | static_cast<FwAssertArgType>(portNum), | ||
| 15646 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 15647 | ); | ||
| 15648 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 15649 | 2 | case 0: | |
| 15650 | 2 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 15651 | 0, | ||
| 15652 | id, | ||
| 15653 | timeTag, | ||
| 15654 | val | ||
| 15655 | ); | ||
| 15656 | 2 | break; | |
| 15657 | ✗ | default: | |
| 15658 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15659 | ✗ | break; | |
| 15660 | } | ||
| 15661 | 2 | } | |
| 15662 | |||
| 15663 | } | ||
| 15664 | |||
| 15665 | namespace Svc { | ||
| 15666 | |||
| 15667 | ✗ | bool WasmSequencerComponentBase::isConnected_cmdOut_OutputPort(FwIndexType portNum) const { | |
| 15668 | ✗ | FW_ASSERT( | |
| 15669 | (0 <= portNum) && (portNum < NUM_CMDOUT_OUTPUT_PORTS), | ||
| 15670 | static_cast<FwAssertArgType>(portNum), | ||
| 15671 | static_cast<FwAssertArgType>(NUM_CMDOUT_OUTPUT_PORTS) | ||
| 15672 | ); | ||
| 15673 | ✗ | bool result = false; | |
| 15674 | ✗ | switch (portNum) { | |
| 15675 | ✗ | case 0: | |
| 15676 | ✗ | result = true; | |
| 15677 | ✗ | break; | |
| 15678 | ✗ | default: | |
| 15679 | ✗ | break; | |
| 15680 | } | ||
| 15681 | ✗ | return result; | |
| 15682 | } | ||
| 15683 | |||
| 15684 | 1 | bool WasmSequencerComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const { | |
| 15685 | 1 | FW_ASSERT( | |
| 15686 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 15687 | static_cast<FwAssertArgType>(portNum), | ||
| 15688 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 15689 | ); | ||
| 15690 | 1 | bool result = false; | |
| 15691 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 15692 | 1 | case 0: | |
| 15693 | 1 | result = true; | |
| 15694 | 1 | break; | |
| 15695 | ✗ | default: | |
| 15696 | ✗ | break; | |
| 15697 | } | ||
| 15698 | 1 | return result; | |
| 15699 | } | ||
| 15700 | |||
| 15701 | ✗ | bool WasmSequencerComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const { | |
| 15702 | ✗ | FW_ASSERT( | |
| 15703 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 15704 | static_cast<FwAssertArgType>(portNum), | ||
| 15705 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 15706 | ); | ||
| 15707 | ✗ | bool result = false; | |
| 15708 | ✗ | switch (portNum) { | |
| 15709 | ✗ | case 0: | |
| 15710 | ✗ | result = true; | |
| 15711 | ✗ | break; | |
| 15712 | ✗ | default: | |
| 15713 | ✗ | break; | |
| 15714 | } | ||
| 15715 | ✗ | return result; | |
| 15716 | } | ||
| 15717 | |||
| 15718 | ✗ | bool WasmSequencerComponentBase::isConnected_getParam_OutputPort(FwIndexType portNum) const { | |
| 15719 | ✗ | FW_ASSERT( | |
| 15720 | (0 <= portNum) && (portNum < NUM_GETPARAM_OUTPUT_PORTS), | ||
| 15721 | static_cast<FwAssertArgType>(portNum), | ||
| 15722 | static_cast<FwAssertArgType>(NUM_GETPARAM_OUTPUT_PORTS) | ||
| 15723 | ); | ||
| 15724 | ✗ | bool result = false; | |
| 15725 | ✗ | switch (portNum) { | |
| 15726 | ✗ | case 0: | |
| 15727 | ✗ | result = true; | |
| 15728 | ✗ | break; | |
| 15729 | ✗ | default: | |
| 15730 | ✗ | break; | |
| 15731 | } | ||
| 15732 | ✗ | return result; | |
| 15733 | } | ||
| 15734 | |||
| 15735 | ✗ | bool WasmSequencerComponentBase::isConnected_getTlmChan_OutputPort(FwIndexType portNum) const { | |
| 15736 | ✗ | FW_ASSERT( | |
| 15737 | (0 <= portNum) && (portNum < NUM_GETTLMCHAN_OUTPUT_PORTS), | ||
| 15738 | static_cast<FwAssertArgType>(portNum), | ||
| 15739 | static_cast<FwAssertArgType>(NUM_GETTLMCHAN_OUTPUT_PORTS) | ||
| 15740 | ); | ||
| 15741 | ✗ | bool result = false; | |
| 15742 | ✗ | switch (portNum) { | |
| 15743 | ✗ | case 0: | |
| 15744 | ✗ | result = true; | |
| 15745 | ✗ | break; | |
| 15746 | ✗ | default: | |
| 15747 | ✗ | break; | |
| 15748 | } | ||
| 15749 | ✗ | return result; | |
| 15750 | } | ||
| 15751 | |||
| 15752 | 1 | bool WasmSequencerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 15753 | 1 | FW_ASSERT( | |
| 15754 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 15755 | static_cast<FwAssertArgType>(portNum), | ||
| 15756 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 15757 | ); | ||
| 15758 | 1 | bool result = false; | |
| 15759 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 15760 | 1 | case 0: | |
| 15761 | 1 | result = true; | |
| 15762 | 1 | break; | |
| 15763 | ✗ | default: | |
| 15764 | ✗ | break; | |
| 15765 | } | ||
| 15766 | 1 | return result; | |
| 15767 | } | ||
| 15768 | |||
| 15769 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 15770 | |||
| 15771 | 1 | bool WasmSequencerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 15772 | 1 | FW_ASSERT( | |
| 15773 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 15774 | static_cast<FwAssertArgType>(portNum), | ||
| 15775 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 15776 | ); | ||
| 15777 | 1 | bool result = false; | |
| 15778 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 15779 | 1 | case 0: | |
| 15780 | 1 | result = true; | |
| 15781 | 1 | break; | |
| 15782 | ✗ | default: | |
| 15783 | ✗ | break; | |
| 15784 | } | ||
| 15785 | 1 | return result; | |
| 15786 | } | ||
| 15787 | |||
| 15788 | #endif | ||
| 15789 | |||
| 15790 | 1 | bool WasmSequencerComponentBase::isConnected_prmGet_OutputPort(FwIndexType portNum) const { | |
| 15791 | 1 | FW_ASSERT( | |
| 15792 | (0 <= portNum) && (portNum < NUM_PRMGET_OUTPUT_PORTS), | ||
| 15793 | static_cast<FwAssertArgType>(portNum), | ||
| 15794 | static_cast<FwAssertArgType>(NUM_PRMGET_OUTPUT_PORTS) | ||
| 15795 | ); | ||
| 15796 | 1 | bool result = false; | |
| 15797 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 15798 | 1 | case 0: | |
| 15799 | 1 | result = true; | |
| 15800 | 1 | break; | |
| 15801 | ✗ | default: | |
| 15802 | ✗ | break; | |
| 15803 | } | ||
| 15804 | 1 | return result; | |
| 15805 | } | ||
| 15806 | |||
| 15807 | ✗ | bool WasmSequencerComponentBase::isConnected_prmSet_OutputPort(FwIndexType portNum) const { | |
| 15808 | ✗ | FW_ASSERT( | |
| 15809 | (0 <= portNum) && (portNum < NUM_PRMSET_OUTPUT_PORTS), | ||
| 15810 | static_cast<FwAssertArgType>(portNum), | ||
| 15811 | static_cast<FwAssertArgType>(NUM_PRMSET_OUTPUT_PORTS) | ||
| 15812 | ); | ||
| 15813 | ✗ | bool result = false; | |
| 15814 | ✗ | switch (portNum) { | |
| 15815 | ✗ | case 0: | |
| 15816 | ✗ | result = true; | |
| 15817 | ✗ | break; | |
| 15818 | ✗ | default: | |
| 15819 | ✗ | break; | |
| 15820 | } | ||
| 15821 | ✗ | return result; | |
| 15822 | } | ||
| 15823 | |||
| 15824 | ✗ | bool WasmSequencerComponentBase::isConnected_seqDoneOut_OutputPort(FwIndexType portNum) const { | |
| 15825 | ✗ | FW_ASSERT( | |
| 15826 | (0 <= portNum) && (portNum < NUM_SEQDONEOUT_OUTPUT_PORTS), | ||
| 15827 | static_cast<FwAssertArgType>(portNum), | ||
| 15828 | static_cast<FwAssertArgType>(NUM_SEQDONEOUT_OUTPUT_PORTS) | ||
| 15829 | ); | ||
| 15830 | ✗ | bool result = false; | |
| 15831 | ✗ | switch (portNum) { | |
| 15832 | default: | ||
| 15833 | ✗ | break; | |
| 15834 | } | ||
| 15835 | ✗ | return result; | |
| 15836 | } | ||
| 15837 | |||
| 15838 | ✗ | bool WasmSequencerComponentBase::isConnected_seqStartOut_OutputPort(FwIndexType portNum) const { | |
| 15839 | ✗ | FW_ASSERT( | |
| 15840 | (0 <= portNum) && (portNum < NUM_SEQSTARTOUT_OUTPUT_PORTS), | ||
| 15841 | static_cast<FwAssertArgType>(portNum), | ||
| 15842 | static_cast<FwAssertArgType>(NUM_SEQSTARTOUT_OUTPUT_PORTS) | ||
| 15843 | ); | ||
| 15844 | ✗ | bool result = false; | |
| 15845 | ✗ | switch (portNum) { | |
| 15846 | default: | ||
| 15847 | ✗ | break; | |
| 15848 | } | ||
| 15849 | ✗ | return result; | |
| 15850 | } | ||
| 15851 | |||
| 15852 | ✗ | bool WasmSequencerComponentBase::isConnected_serialOut_OutputPort(FwIndexType portNum) const { | |
| 15853 | ✗ | FW_ASSERT( | |
| 15854 | (0 <= portNum) && (portNum < NUM_SERIALOUT_OUTPUT_PORTS), | ||
| 15855 | static_cast<FwAssertArgType>(portNum), | ||
| 15856 | static_cast<FwAssertArgType>(NUM_SERIALOUT_OUTPUT_PORTS) | ||
| 15857 | ); | ||
| 15858 | ✗ | bool result = false; | |
| 15859 | ✗ | switch (portNum) { | |
| 15860 | default: | ||
| 15861 | ✗ | break; | |
| 15862 | } | ||
| 15863 | ✗ | return result; | |
| 15864 | } | ||
| 15865 | |||
| 15866 | 133 | bool WasmSequencerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 15867 | 133 | FW_ASSERT( | |
| 15868 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 15869 | static_cast<FwAssertArgType>(portNum), | ||
| 15870 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 15871 | ); | ||
| 15872 | 133 | bool result = false; | |
| 15873 |
1/2✓ Branch 0 taken 133 times.
✗ Branch 1 not taken.
|
133 | switch (portNum) { |
| 15874 | 133 | case 0: | |
| 15875 | 133 | result = true; | |
| 15876 | 133 | break; | |
| 15877 | ✗ | default: | |
| 15878 | ✗ | break; | |
| 15879 | } | ||
| 15880 | 133 | return result; | |
| 15881 | } | ||
| 15882 | |||
| 15883 | 18 | bool WasmSequencerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 15884 | 18 | FW_ASSERT( | |
| 15885 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 15886 | static_cast<FwAssertArgType>(portNum), | ||
| 15887 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 15888 | ); | ||
| 15889 | 18 | bool result = false; | |
| 15890 |
1/2✓ Branch 0 taken 18 times.
✗ Branch 1 not taken.
|
18 | switch (portNum) { |
| 15891 | 18 | case 0: | |
| 15892 | 18 | result = true; | |
| 15893 | 18 | break; | |
| 15894 | ✗ | default: | |
| 15895 | ✗ | break; | |
| 15896 | } | ||
| 15897 | 18 | return result; | |
| 15898 | } | ||
| 15899 | |||
| 15900 | ✗ | void WasmSequencerComponentBase::cmdOut_out( | |
| 15901 | FwIndexType portNum, | ||
| 15902 | Fw::ComBuffer& data, | ||
| 15903 | U32 context | ||
| 15904 | ) const { | ||
| 15905 | ✗ | FW_ASSERT( | |
| 15906 | (0 <= portNum) && (portNum < NUM_CMDOUT_OUTPUT_PORTS), | ||
| 15907 | static_cast<FwAssertArgType>(portNum), | ||
| 15908 | static_cast<FwAssertArgType>(NUM_CMDOUT_OUTPUT_PORTS) | ||
| 15909 | ); | ||
| 15910 | ✗ | switch (portNum) { | |
| 15911 | ✗ | case 0: | |
| 15912 | ✗ | CdhCore::cmdDisp.seqCmdBuff_handlerBase( | |
| 15913 | 2, | ||
| 15914 | data, | ||
| 15915 | context | ||
| 15916 | ); | ||
| 15917 | ✗ | break; | |
| 15918 | ✗ | default: | |
| 15919 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15920 | ✗ | break; | |
| 15921 | } | ||
| 15922 | ✗ | } | |
| 15923 | |||
| 15924 | 18 | void WasmSequencerComponentBase::cmdRegOut_out( | |
| 15925 | FwIndexType portNum, | ||
| 15926 | FwOpcodeType opCode | ||
| 15927 | ) const { | ||
| 15928 | 18 | FW_ASSERT( | |
| 15929 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 15930 | static_cast<FwAssertArgType>(portNum), | ||
| 15931 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 15932 | ); | ||
| 15933 |
1/2✓ Branch 0 taken 18 times.
✗ Branch 1 not taken.
|
18 | switch (portNum) { |
| 15934 | 18 | case 0: | |
| 15935 | 18 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 15936 | 24, | ||
| 15937 | opCode | ||
| 15938 | ); | ||
| 15939 | 18 | break; | |
| 15940 | ✗ | default: | |
| 15941 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15942 | ✗ | break; | |
| 15943 | } | ||
| 15944 | 18 | } | |
| 15945 | |||
| 15946 | ✗ | void WasmSequencerComponentBase::cmdResponseOut_out( | |
| 15947 | FwIndexType portNum, | ||
| 15948 | FwOpcodeType opCode, | ||
| 15949 | U32 cmdSeq, | ||
| 15950 | const Fw::CmdResponse& response | ||
| 15951 | ) const { | ||
| 15952 | ✗ | FW_ASSERT( | |
| 15953 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 15954 | static_cast<FwAssertArgType>(portNum), | ||
| 15955 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 15956 | ); | ||
| 15957 | ✗ | switch (portNum) { | |
| 15958 | ✗ | case 0: | |
| 15959 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 15960 | 0, | ||
| 15961 | opCode, | ||
| 15962 | cmdSeq, | ||
| 15963 | response | ||
| 15964 | ); | ||
| 15965 | ✗ | break; | |
| 15966 | ✗ | default: | |
| 15967 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15968 | ✗ | break; | |
| 15969 | } | ||
| 15970 | ✗ | } | |
| 15971 | |||
| 15972 | ✗ | Fw::ParamValid WasmSequencerComponentBase::getParam_out( | |
| 15973 | FwIndexType portNum, | ||
| 15974 | FwPrmIdType id, | ||
| 15975 | Fw::ParamBuffer& val | ||
| 15976 | ) const { | ||
| 15977 | ✗ | FW_ASSERT( | |
| 15978 | (0 <= portNum) && (portNum < NUM_GETPARAM_OUTPUT_PORTS), | ||
| 15979 | static_cast<FwAssertArgType>(portNum), | ||
| 15980 | static_cast<FwAssertArgType>(NUM_GETPARAM_OUTPUT_PORTS) | ||
| 15981 | ); | ||
| 15982 | ✗ | Fw::ParamValid _result = {}; | |
| 15983 | ✗ | switch (portNum) { | |
| 15984 | ✗ | case 0: | |
| 15985 | ✗ | _result = FileHandling::prmDb.getPrm_handlerBase( | |
| 15986 | 0, | ||
| 15987 | id, | ||
| 15988 | val | ||
| 15989 | ✗ | ); | |
| 15990 | ✗ | break; | |
| 15991 | ✗ | default: | |
| 15992 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15993 | ✗ | break; | |
| 15994 | } | ||
| 15995 | ✗ | return _result; | |
| 15996 | ✗ | } | |
| 15997 | |||
| 15998 | ✗ | Fw::TlmValid WasmSequencerComponentBase::getTlmChan_out( | |
| 15999 | FwIndexType portNum, | ||
| 16000 | FwChanIdType id, | ||
| 16001 | Fw::Time& timeTag, | ||
| 16002 | Fw::TlmBuffer& val | ||
| 16003 | ) const { | ||
| 16004 | ✗ | FW_ASSERT( | |
| 16005 | (0 <= portNum) && (portNum < NUM_GETTLMCHAN_OUTPUT_PORTS), | ||
| 16006 | static_cast<FwAssertArgType>(portNum), | ||
| 16007 | static_cast<FwAssertArgType>(NUM_GETTLMCHAN_OUTPUT_PORTS) | ||
| 16008 | ); | ||
| 16009 | ✗ | Fw::TlmValid _result = {}; | |
| 16010 | ✗ | switch (portNum) { | |
| 16011 | ✗ | case 0: | |
| 16012 | ✗ | _result = CdhCore::tlmSend.TlmGet_handlerBase( | |
| 16013 | 0, | ||
| 16014 | id, | ||
| 16015 | timeTag, | ||
| 16016 | val | ||
| 16017 | ✗ | ); | |
| 16018 | ✗ | break; | |
| 16019 | ✗ | default: | |
| 16020 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16021 | ✗ | break; | |
| 16022 | } | ||
| 16023 | ✗ | return _result; | |
| 16024 | ✗ | } | |
| 16025 | |||
| 16026 | 1 | void WasmSequencerComponentBase::logOut_out( | |
| 16027 | FwIndexType portNum, | ||
| 16028 | FwEventIdType id, | ||
| 16029 | Fw::Time& timeTag, | ||
| 16030 | const Fw::LogSeverity& severity, | ||
| 16031 | Fw::LogBuffer& args | ||
| 16032 | ) const { | ||
| 16033 | 1 | FW_ASSERT( | |
| 16034 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 16035 | static_cast<FwAssertArgType>(portNum), | ||
| 16036 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 16037 | ); | ||
| 16038 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 16039 | 1 | case 0: | |
| 16040 | 1 | CdhCore::events.LogRecv_handlerBase( | |
| 16041 | 0, | ||
| 16042 | id, | ||
| 16043 | timeTag, | ||
| 16044 | severity, | ||
| 16045 | args | ||
| 16046 | ); | ||
| 16047 | 1 | break; | |
| 16048 | ✗ | default: | |
| 16049 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16050 | ✗ | break; | |
| 16051 | } | ||
| 16052 | 1 | } | |
| 16053 | |||
| 16054 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 16055 | |||
| 16056 | 1 | void WasmSequencerComponentBase::logTextOut_out( | |
| 16057 | FwIndexType portNum, | ||
| 16058 | FwEventIdType id, | ||
| 16059 | Fw::Time& timeTag, | ||
| 16060 | const Fw::LogSeverity& severity, | ||
| 16061 | Fw::TextLogString& text | ||
| 16062 | ) const { | ||
| 16063 | 1 | FW_ASSERT( | |
| 16064 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 16065 | static_cast<FwAssertArgType>(portNum), | ||
| 16066 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 16067 | ); | ||
| 16068 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 16069 | 1 | case 0: | |
| 16070 | 1 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 16071 | 0, | ||
| 16072 | id, | ||
| 16073 | timeTag, | ||
| 16074 | severity, | ||
| 16075 | text | ||
| 16076 | ); | ||
| 16077 | 1 | break; | |
| 16078 | ✗ | default: | |
| 16079 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16080 | ✗ | break; | |
| 16081 | } | ||
| 16082 | 1 | } | |
| 16083 | |||
| 16084 | #endif | ||
| 16085 | |||
| 16086 | 3 | Fw::ParamValid WasmSequencerComponentBase::prmGet_out( | |
| 16087 | FwIndexType portNum, | ||
| 16088 | FwPrmIdType id, | ||
| 16089 | Fw::ParamBuffer& val | ||
| 16090 | ) const { | ||
| 16091 | 3 | FW_ASSERT( | |
| 16092 | (0 <= portNum) && (portNum < NUM_PRMGET_OUTPUT_PORTS), | ||
| 16093 | static_cast<FwAssertArgType>(portNum), | ||
| 16094 | static_cast<FwAssertArgType>(NUM_PRMGET_OUTPUT_PORTS) | ||
| 16095 | ); | ||
| 16096 | 3 | Fw::ParamValid _result = {}; | |
| 16097 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 16098 | 3 | case 0: | |
| 16099 |
1/1✓ Branch 1 taken 3 times.
|
6 | _result = FileHandling::prmDb.getPrm_handlerBase( |
| 16100 | 0, | ||
| 16101 | id, | ||
| 16102 | val | ||
| 16103 |
1/1✓ Branch 1 taken 3 times.
|
3 | ); |
| 16104 | 3 | break; | |
| 16105 | ✗ | default: | |
| 16106 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16107 | ✗ | break; | |
| 16108 | } | ||
| 16109 | 3 | return _result; | |
| 16110 | ✗ | } | |
| 16111 | |||
| 16112 | ✗ | void WasmSequencerComponentBase::prmSet_out( | |
| 16113 | FwIndexType portNum, | ||
| 16114 | FwPrmIdType id, | ||
| 16115 | Fw::ParamBuffer& val | ||
| 16116 | ) const { | ||
| 16117 | ✗ | FW_ASSERT( | |
| 16118 | (0 <= portNum) && (portNum < NUM_PRMSET_OUTPUT_PORTS), | ||
| 16119 | static_cast<FwAssertArgType>(portNum), | ||
| 16120 | static_cast<FwAssertArgType>(NUM_PRMSET_OUTPUT_PORTS) | ||
| 16121 | ); | ||
| 16122 | ✗ | switch (portNum) { | |
| 16123 | ✗ | case 0: | |
| 16124 | ✗ | FileHandling::prmDb.setPrm_handlerBase( | |
| 16125 | 0, | ||
| 16126 | id, | ||
| 16127 | val | ||
| 16128 | ); | ||
| 16129 | ✗ | break; | |
| 16130 | ✗ | default: | |
| 16131 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16132 | ✗ | break; | |
| 16133 | } | ||
| 16134 | ✗ | } | |
| 16135 | |||
| 16136 | ✗ | void WasmSequencerComponentBase::seqDoneOut_out( | |
| 16137 | FwIndexType portNum, | ||
| 16138 | FwOpcodeType opCode, | ||
| 16139 | U32 cmdSeq, | ||
| 16140 | const Fw::CmdResponse& response | ||
| 16141 | ) const { | ||
| 16142 | ✗ | FW_ASSERT( | |
| 16143 | (0 <= portNum) && (portNum < NUM_SEQDONEOUT_OUTPUT_PORTS), | ||
| 16144 | static_cast<FwAssertArgType>(portNum), | ||
| 16145 | static_cast<FwAssertArgType>(NUM_SEQDONEOUT_OUTPUT_PORTS) | ||
| 16146 | ); | ||
| 16147 | ✗ | switch (portNum) { | |
| 16148 | default: | ||
| 16149 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16150 | ✗ | break; | |
| 16151 | } | ||
| 16152 | ✗ | } | |
| 16153 | |||
| 16154 | ✗ | void WasmSequencerComponentBase::seqStartOut_out( | |
| 16155 | FwIndexType portNum, | ||
| 16156 | const Fw::StringBase& filename, | ||
| 16157 | const Svc::SeqArgs& args | ||
| 16158 | ) const { | ||
| 16159 | ✗ | FW_ASSERT( | |
| 16160 | (0 <= portNum) && (portNum < NUM_SEQSTARTOUT_OUTPUT_PORTS), | ||
| 16161 | static_cast<FwAssertArgType>(portNum), | ||
| 16162 | static_cast<FwAssertArgType>(NUM_SEQSTARTOUT_OUTPUT_PORTS) | ||
| 16163 | ); | ||
| 16164 | ✗ | switch (portNum) { | |
| 16165 | default: | ||
| 16166 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16167 | ✗ | break; | |
| 16168 | } | ||
| 16169 | ✗ | } | |
| 16170 | |||
| 16171 | ✗ | Fw::SerializeStatus WasmSequencerComponentBase::serialOut_out( | |
| 16172 | FwIndexType portNum, | ||
| 16173 | Fw::LinearBufferBase& buffer | ||
| 16174 | ) { | ||
| 16175 | ✗ | FW_ASSERT( | |
| 16176 | (0 <= portNum) && (portNum < NUM_SERIALOUT_OUTPUT_PORTS), | ||
| 16177 | static_cast<FwAssertArgType>(portNum), | ||
| 16178 | static_cast<FwAssertArgType>(NUM_SERIALOUT_OUTPUT_PORTS) | ||
| 16179 | ); | ||
| 16180 | ✗ | Fw::SerializeStatus _result = {}; | |
| 16181 | ✗ | switch (portNum) { | |
| 16182 | default: | ||
| 16183 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16184 | ✗ | break; | |
| 16185 | } | ||
| 16186 | ✗ | return _result; | |
| 16187 | } | ||
| 16188 | |||
| 16189 | 124 | void WasmSequencerComponentBase::timeCaller_out( | |
| 16190 | FwIndexType portNum, | ||
| 16191 | Fw::Time& time | ||
| 16192 | ) const { | ||
| 16193 | 124 | FW_ASSERT( | |
| 16194 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 16195 | static_cast<FwAssertArgType>(portNum), | ||
| 16196 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 16197 | ); | ||
| 16198 |
1/2✓ Branch 0 taken 124 times.
✗ Branch 1 not taken.
|
124 | switch (portNum) { |
| 16199 | 124 | case 0: | |
| 16200 | 124 | Ref::posixTime.timeGetPort_handlerBase( | |
| 16201 | 0, | ||
| 16202 | time | ||
| 16203 | ); | ||
| 16204 | 124 | break; | |
| 16205 | ✗ | default: | |
| 16206 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16207 | ✗ | break; | |
| 16208 | } | ||
| 16209 | 124 | } | |
| 16210 | |||
| 16211 | 9 | void WasmSequencerComponentBase::tlmOut_out( | |
| 16212 | FwIndexType portNum, | ||
| 16213 | FwChanIdType id, | ||
| 16214 | Fw::Time& timeTag, | ||
| 16215 | Fw::TlmBuffer& val | ||
| 16216 | ) const { | ||
| 16217 | 9 | FW_ASSERT( | |
| 16218 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 16219 | static_cast<FwAssertArgType>(portNum), | ||
| 16220 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 16221 | ); | ||
| 16222 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | switch (portNum) { |
| 16223 | 9 | case 0: | |
| 16224 | 9 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 16225 | 0, | ||
| 16226 | id, | ||
| 16227 | timeTag, | ||
| 16228 | val | ||
| 16229 | ); | ||
| 16230 | 9 | break; | |
| 16231 | ✗ | default: | |
| 16232 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16233 | ✗ | break; | |
| 16234 | } | ||
| 16235 | 9 | } | |
| 16236 | |||
| 16237 | } | ||
| 16238 | |||
| 16239 | #endif | ||
| 16240 |