| 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 | namespace DataProducts_dpCat { | ||
| 408 | Fw::FileNameString dpDir(DataProductsConfig::Paths::dpDir); | ||
| 409 | Fw::FileNameString dpState(DataProductsConfig::Paths::dpState); | ||
| 410 | } | ||
| 411 | |||
| 412 | namespace DataProducts_dpWriter { | ||
| 413 | Fw::FileNameString dpDir(DataProductsConfig::Paths::dpDir); | ||
| 414 | } | ||
| 415 | |||
| 416 | } | ||
| 417 | |||
| 418 | // ---------------------------------------------------------------------- | ||
| 419 | // Helper functions | ||
| 420 | // ---------------------------------------------------------------------- | ||
| 421 | |||
| 422 | 1 | void initComponents(const TopologyState& state) { | |
| 423 | 1 | CdhCore::cmdDisp.init(QueueSizes::CdhCore_cmdDisp, InstanceIds::CdhCore_cmdDisp); | |
| 424 | 1 | CdhCore::events.init(QueueSizes::CdhCore_events, InstanceIds::CdhCore_events); | |
| 425 | 1 | CdhCore::fatalAdapter.init(InstanceIds::CdhCore_fatalAdapter); | |
| 426 | 1 | CdhCore::fatalHandler.init(InstanceIds::CdhCore_fatalHandler); | |
| 427 | 1 | CdhCore::health.init(QueueSizes::CdhCore_health, InstanceIds::CdhCore_health); | |
| 428 | 1 | CdhCore::textLogger.init(InstanceIds::CdhCore_textLogger); | |
| 429 | 1 | CdhCore::tlmSend.init(QueueSizes::CdhCore_tlmSend, InstanceIds::CdhCore_tlmSend); | |
| 430 | 1 | CdhCore::version.init(InstanceIds::CdhCore_version); | |
| 431 | 1 | ComCcsds::aggregator.init(QueueSizes::ComCcsds_aggregator, InstanceIds::ComCcsds_aggregator); | |
| 432 | 1 | ComCcsds::apidManager.init(InstanceIds::ComCcsds_apidManager); | |
| 433 | 1 | ComCcsds::comQueue.init(QueueSizes::ComCcsds_comQueue, InstanceIds::ComCcsds_comQueue); | |
| 434 | 1 | ComCcsds::comStub.init(InstanceIds::ComCcsds_comStub); | |
| 435 | 1 | ComCcsds::commsBufferManager.init(InstanceIds::ComCcsds_commsBufferManager); | |
| 436 | 1 | ComCcsds::fprimeRouter.init(InstanceIds::ComCcsds_fprimeRouter); | |
| 437 | 1 | ComCcsds::frameAccumulator.init(InstanceIds::ComCcsds_frameAccumulator); | |
| 438 | 1 | ComCcsds::framer.init(InstanceIds::ComCcsds_framer); | |
| 439 | 1 | ComCcsds::spacePacketDeframer.init(InstanceIds::ComCcsds_spacePacketDeframer); | |
| 440 | 1 | ComCcsds::spacePacketFramer.init(InstanceIds::ComCcsds_spacePacketFramer); | |
| 441 | 1 | ComCcsds::tcDeframer.init(InstanceIds::ComCcsds_tcDeframer); | |
| 442 | 1 | DataProducts::dpBufferAccumulator.init(QueueSizes::DataProducts_dpBufferAccumulator, InstanceIds::DataProducts_dpBufferAccumulator); | |
| 443 | 1 | DataProducts::dpBufferManager.init(InstanceIds::DataProducts_dpBufferManager); | |
| 444 | 1 | DataProducts::dpCat.init(QueueSizes::DataProducts_dpCat, InstanceIds::DataProducts_dpCat); | |
| 445 | 1 | DataProducts::dpMgr.init(QueueSizes::DataProducts_dpMgr, InstanceIds::DataProducts_dpMgr); | |
| 446 | 1 | DataProducts::dpWriter.init(QueueSizes::DataProducts_dpWriter, InstanceIds::DataProducts_dpWriter); | |
| 447 | 1 | FileHandling::fileDownlink.init(QueueSizes::FileHandling_fileDownlink, InstanceIds::FileHandling_fileDownlink); | |
| 448 | 1 | FileHandling::fileManager.init(QueueSizes::FileHandling_fileManager, InstanceIds::FileHandling_fileManager); | |
| 449 | 1 | FileHandling::fileUplink.init(QueueSizes::FileHandling_fileUplink, InstanceIds::FileHandling_fileUplink); | |
| 450 | 1 | FileHandling::prmDb.init(QueueSizes::FileHandling_prmDb, InstanceIds::FileHandling_prmDb); | |
| 451 | 1 | Ref::SG1.init(QueueSizes::Ref_SG1, InstanceIds::Ref_SG1); | |
| 452 | 1 | Ref::SG2.init(QueueSizes::Ref_SG2, InstanceIds::Ref_SG2); | |
| 453 | 1 | Ref::SG3.init(QueueSizes::Ref_SG3, InstanceIds::Ref_SG3); | |
| 454 | 1 | Ref::SG4.init(QueueSizes::Ref_SG4, InstanceIds::Ref_SG4); | |
| 455 | 1 | Ref::SG5.init(QueueSizes::Ref_SG5, InstanceIds::Ref_SG5); | |
| 456 | 1 | Ref::blockDrv.init(QueueSizes::Ref_blockDrv, InstanceIds::Ref_blockDrv); | |
| 457 | 1 | Ref::cmdSeq.init(QueueSizes::Ref_cmdSeq, InstanceIds::Ref_cmdSeq); | |
| 458 | 1 | Ref::comDriver.init(InstanceIds::Ref_comDriver); | |
| 459 | 1 | Ref::dpDemo.init(QueueSizes::Ref_dpDemo, InstanceIds::Ref_dpDemo); | |
| 460 | 1 | Ref::linuxTimer.init(InstanceIds::Ref_linuxTimer); | |
| 461 | 1 | Ref::pingRcvr.init(QueueSizes::Ref_pingRcvr, InstanceIds::Ref_pingRcvr); | |
| 462 | 1 | Ref::posixTime.init(InstanceIds::Ref_posixTime); | |
| 463 | 1 | Ref::rateGroup1Comp.init(QueueSizes::Ref_rateGroup1Comp, InstanceIds::Ref_rateGroup1Comp); | |
| 464 | 1 | Ref::rateGroup2Comp.init(QueueSizes::Ref_rateGroup2Comp, InstanceIds::Ref_rateGroup2Comp); | |
| 465 | 1 | Ref::rateGroup3Comp.init(QueueSizes::Ref_rateGroup3Comp, InstanceIds::Ref_rateGroup3Comp); | |
| 466 | 1 | Ref::rateGroupDriverComp.init(InstanceIds::Ref_rateGroupDriverComp); | |
| 467 | 1 | Ref::recvBuffComp.init(InstanceIds::Ref_recvBuffComp); | |
| 468 | 1 | Ref::sendBuffComp.init(QueueSizes::Ref_sendBuffComp, InstanceIds::Ref_sendBuffComp); | |
| 469 | 1 | Ref::systemResources.init(InstanceIds::Ref_systemResources); | |
| 470 | 1 | Ref::typeDemo.init(InstanceIds::Ref_typeDemo); | |
| 471 | 1 | Ref::wasmSeq.init(QueueSizes::Ref_wasmSeq, InstanceIds::Ref_wasmSeq); | |
| 472 | 1 | } | |
| 473 | |||
| 474 | 1 | void configComponents(const TopologyState& state) { | |
| 475 | { | ||
| 476 | using namespace CdhCore; | ||
| 477 | using namespace ConfigConstants::CdhCore_health; | ||
| 478 | using namespace ConfigObjects::CdhCore_health; | ||
| 479 | |||
| 480 | // Health is supplied a set of ping entires. | ||
| 481 | 1 | CdhCore::health.setPingEntries( | |
| 482 | ConfigObjects::CdhCore_health::pingEntries, | ||
| 483 | 1 | FW_NUM_ARRAY_ELEMENTS(ConfigObjects::CdhCore_health::pingEntries), | |
| 484 | ConfigConstants::CdhCore_health::HEALTH_WATCHDOG_CODE | ||
| 485 | ); | ||
| 486 | } | ||
| 487 | { | ||
| 488 | using namespace CdhCore; | ||
| 489 | |||
| 490 | // Startup TLM and Config verbosity for Versions | ||
| 491 | 1 | CdhCore::version.config(true); | |
| 492 | } | ||
| 493 | { | ||
| 494 | using namespace ComCcsds; | ||
| 495 | |||
| 496 | static_assert(static_cast<FwSizeType>(ComCcsdsConfig::Aggregator::aggregationSize) <= | ||
| 497 | static_cast<FwSizeType>(Svc::Ccsds::TmDataFieldSize), | ||
| 498 | "ComCcsdsConfig.Aggregator.aggregationSize must fit the TM Transfer Frame Data Field"); | ||
| 499 | 1 | ComCcsds::aggregator.configure(ComCcsdsConfig::Aggregator::aggregationSize, | |
| 500 | ComCcsdsConfig::Aggregator::enablePacketSpanning, | ||
| 501 | 2, // Allocation id, distinct from the other ComCcsds instances | ||
| 502 | ComCcsds::Allocation::memAllocator); | ||
| 503 | } | ||
| 504 | { | ||
| 505 | using namespace ComCcsds; | ||
| 506 | |||
| 507 | using namespace ComCcsds; | ||
| 508 |
1/1✓ Branch 1 taken 1 times.
|
1 | Svc::ComQueue::QueueConfigurationTable configurationTable; |
| 509 | |||
| 510 | // Events (highest-priority) | ||
| 511 | 1 | configurationTable.entries[Ports_ComPacketQueue::EVENTS].depth = ComCcsdsConfig::QueueDepths::events; | |
| 512 | 1 | configurationTable.entries[Ports_ComPacketQueue::EVENTS].priority = ComCcsdsConfig::QueuePriorities::events; | |
| 513 | |||
| 514 | // Telemetry | ||
| 515 | 1 | configurationTable.entries[Ports_ComPacketQueue::TELEMETRY].depth = ComCcsdsConfig::QueueDepths::tlm; | |
| 516 | 1 | configurationTable.entries[Ports_ComPacketQueue::TELEMETRY].priority = ComCcsdsConfig::QueuePriorities::tlm; | |
| 517 | |||
| 518 | // File Downlink Queue (buffer queue using NUM_CONSTANTS offset) | ||
| 519 | 1 | configurationTable.entries[Ports_ComPacketQueue::NUM_CONSTANTS + Ports_ComBufferQueue::FILE].depth = ComCcsdsConfig::QueueDepths::file; | |
| 520 | 1 | configurationTable.entries[Ports_ComPacketQueue::NUM_CONSTANTS + Ports_ComBufferQueue::FILE].priority = ComCcsdsConfig::QueuePriorities::file; | |
| 521 | |||
| 522 | // Allocation identifier is 0 as the MallocAllocator discards it | ||
| 523 |
1/1✓ Branch 1 taken 1 times.
|
1 | ComCcsds::comQueue.configure(configurationTable, 0, ComCcsds::Allocation::memAllocator); |
| 524 | } | ||
| 525 | { | ||
| 526 | using namespace ComCcsds; | ||
| 527 | using namespace ConfigObjects::ComCcsds_commsBufferManager; | ||
| 528 | |||
| 529 | 1 | memset(&ConfigObjects::ComCcsds_commsBufferManager::bins, 0, sizeof(ConfigObjects::ComCcsds_commsBufferManager::bins)); | |
| 530 | 1 | ConfigObjects::ComCcsds_commsBufferManager::bins.bins[0].bufferSize = ComCcsdsConfig::BuffMgr::commsBuffSize; | |
| 531 | 1 | ConfigObjects::ComCcsds_commsBufferManager::bins.bins[0].numBuffers = ComCcsdsConfig::BuffMgr::commsBuffCount; | |
| 532 | 1 | ConfigObjects::ComCcsds_commsBufferManager::bins.bins[1].bufferSize = ComCcsdsConfig::BuffMgr::commsFileBuffSize; | |
| 533 | 1 | ConfigObjects::ComCcsds_commsBufferManager::bins.bins[1].numBuffers = ComCcsdsConfig::BuffMgr::commsFileBuffCount; | |
| 534 | 1 | ComCcsds::commsBufferManager.setup( | |
| 535 | ComCcsdsConfig::BuffMgr::commsBuffMgrId, | ||
| 536 | 0, | ||
| 537 | ComCcsds::Allocation::memAllocator, | ||
| 538 | ConfigObjects::ComCcsds_commsBufferManager::bins | ||
| 539 | ); | ||
| 540 | } | ||
| 541 | { | ||
| 542 | using namespace ComCcsds; | ||
| 543 | using namespace ConfigObjects::ComCcsds_frameAccumulator; | ||
| 544 | |||
| 545 | 1 | ComCcsds::frameAccumulator.configure( | |
| 546 | ConfigObjects::ComCcsds_frameAccumulator::frameDetector, | ||
| 547 | 1, | ||
| 548 | ComCcsds::Allocation::memAllocator, | ||
| 549 | ComCcsdsConfig::BuffMgr::frameAccumulatorSize | ||
| 550 | ); | ||
| 551 | } | ||
| 552 | { | ||
| 553 | using namespace DataProducts; | ||
| 554 | |||
| 555 |
2/2✓ Branch 1 taken 1 times.
✓ Branch 4 taken 1 times.
|
1 | DataProducts::dpBufferAccumulator.allocateQueue( |
| 556 | DataProductsConfig::BufferAccumulator::allocatorId, | ||
| 557 | DataProducts::Allocation::memAllocator, | ||
| 558 | DataProductsConfig::BufferAccumulator::maxNumBuffers, | ||
| 559 | Svc::BufferAccumulator_OpState::DRAIN | ||
| 560 | ); | ||
| 561 | } | ||
| 562 | { | ||
| 563 | using namespace DataProducts; | ||
| 564 | using namespace ConfigObjects::DataProducts_dpBufferManager; | ||
| 565 | |||
| 566 | 1 | memset(&ConfigObjects::DataProducts_dpBufferManager::bins, 0, sizeof(ConfigObjects::DataProducts_dpBufferManager::bins)); | |
| 567 | 1 | ConfigObjects::DataProducts_dpBufferManager::bins.bins[0].bufferSize = DataProductsConfig::BuffMgr::dpBufferStoreSize; | |
| 568 | 1 | ConfigObjects::DataProducts_dpBufferManager::bins.bins[0].numBuffers = DataProductsConfig::BuffMgr::dpBufferStoreCount; | |
| 569 | 1 | DataProducts::dpBufferManager.setup( | |
| 570 | DataProductsConfig::BuffMgr::dpBufferManagerId, | ||
| 571 | 0, | ||
| 572 | DataProducts::Allocation::memAllocator, | ||
| 573 | ConfigObjects::DataProducts_dpBufferManager::bins | ||
| 574 | ); | ||
| 575 | } | ||
| 576 | { | ||
| 577 | using namespace DataProducts; | ||
| 578 | using namespace ConfigObjects::DataProducts_dpCat; | ||
| 579 | |||
| 580 |
1/1✓ Branch 2 taken 1 times.
|
1 | Os::FileSystem::createDirectory(dpDir.toChar()); |
| 581 | 1 | Fw::ExternalArray<Fw::FileNameString> dpDirs(&dpDir, 1); | |
| 582 |
1/1✓ Branch 1 taken 1 times.
|
1 | DataProducts::dpCat.configure(dpDirs, dpState, 0, DataProducts::Allocation::memAllocator); |
| 583 | 1 | } | |
| 584 | { | ||
| 585 | using namespace DataProducts; | ||
| 586 | using namespace ConfigObjects::DataProducts_dpWriter; | ||
| 587 | |||
| 588 | 1 | DataProducts::dpWriter.configure(dpDir); | |
| 589 | } | ||
| 590 | { | ||
| 591 | using namespace FileHandling; | ||
| 592 | |||
| 593 | 1 | FileHandling::fileDownlink.configure( | |
| 594 | FileHandlingConfig::DownlinkConfig::cooldown, | ||
| 595 | FileHandlingConfig::DownlinkConfig::cycleTime, | ||
| 596 | FileHandlingConfig::DownlinkConfig::fileQueueDepth | ||
| 597 | ); | ||
| 598 | // Sandbox for downlinked file reads; "/" is unrestricted. Re-configure to restrict. | ||
| 599 | 1 | FileHandling::fileDownlink.configure(FileHandlingConfig::Paths::sandboxDir); | |
| 600 | } | ||
| 601 | { | ||
| 602 | using namespace FileHandling; | ||
| 603 | |||
| 604 | // Sandbox for file-management command paths; "/" is unrestricted. Re-configure to restrict. | ||
| 605 | 1 | FileHandling::fileManager.configure(FileHandlingConfig::Paths::sandboxDir); | |
| 606 | } | ||
| 607 | { | ||
| 608 | using namespace FileHandling; | ||
| 609 | |||
| 610 | // Sandbox for uplinked file writes; "/" is unrestricted. Re-configure to restrict. | ||
| 611 | 1 | FileHandling::fileUplink.configure(FileHandlingConfig::Paths::sandboxDir); | |
| 612 | } | ||
| 613 | { | ||
| 614 | using namespace FileHandling; | ||
| 615 | |||
| 616 | 1 | FileHandling::prmDb.configure(FileHandlingConfig::Paths::prmDbFile); | |
| 617 | // Sandbox for all PrmDb file access; "/" is unrestricted. Re-configure to restrict. | ||
| 618 | 1 | FileHandling::prmDb.configureSandbox(FileHandlingConfig::Paths::sandboxDir); | |
| 619 | } | ||
| 620 | { | ||
| 621 | using namespace Ref; | ||
| 622 | |||
| 623 |
1/1✓ Branch 2 taken 1 times.
|
1 | wasmSeq.configure(Svc::WasmSequencer::Config(), memAllocator); |
| 624 | } | ||
| 625 | 1 | } | |
| 626 | |||
| 627 | 1 | void setBaseIds() { | |
| 628 | 1 | Ref::dpDemo.setIdBase(BaseIds::Ref_dpDemo); | |
| 629 | 1 | CdhCore::cmdDisp.setIdBase(BaseIds::CdhCore_cmdDisp); | |
| 630 | 1 | CdhCore::events.setIdBase(BaseIds::CdhCore_events); | |
| 631 | 1 | CdhCore::health.setIdBase(BaseIds::CdhCore_health); | |
| 632 | 1 | CdhCore::version.setIdBase(BaseIds::CdhCore_version); | |
| 633 | 1 | CdhCore::textLogger.setIdBase(BaseIds::CdhCore_textLogger); | |
| 634 | 1 | CdhCore::fatalAdapter.setIdBase(BaseIds::CdhCore_fatalAdapter); | |
| 635 | 1 | CdhCore::tlmSend.setIdBase(BaseIds::CdhCore_tlmSend); | |
| 636 | 1 | CdhCore::fatalHandler.setIdBase(BaseIds::CdhCore_fatalHandler); | |
| 637 | 1 | ComCcsds::comQueue.setIdBase(BaseIds::ComCcsds_comQueue); | |
| 638 | 1 | ComCcsds::frameAccumulator.setIdBase(BaseIds::ComCcsds_frameAccumulator); | |
| 639 | 1 | ComCcsds::commsBufferManager.setIdBase(BaseIds::ComCcsds_commsBufferManager); | |
| 640 | 1 | ComCcsds::fprimeRouter.setIdBase(BaseIds::ComCcsds_fprimeRouter); | |
| 641 | 1 | ComCcsds::tcDeframer.setIdBase(BaseIds::ComCcsds_tcDeframer); | |
| 642 | 1 | ComCcsds::spacePacketDeframer.setIdBase(BaseIds::ComCcsds_spacePacketDeframer); | |
| 643 | 1 | ComCcsds::aggregator.setIdBase(BaseIds::ComCcsds_aggregator); | |
| 644 | 1 | ComCcsds::framer.setIdBase(BaseIds::ComCcsds_framer); | |
| 645 | 1 | ComCcsds::spacePacketFramer.setIdBase(BaseIds::ComCcsds_spacePacketFramer); | |
| 646 | 1 | ComCcsds::apidManager.setIdBase(BaseIds::ComCcsds_apidManager); | |
| 647 | 1 | ComCcsds::comStub.setIdBase(BaseIds::ComCcsds_comStub); | |
| 648 | 1 | DataProducts::dpCat.setIdBase(BaseIds::DataProducts_dpCat); | |
| 649 | 1 | DataProducts::dpMgr.setIdBase(BaseIds::DataProducts_dpMgr); | |
| 650 | 1 | DataProducts::dpWriter.setIdBase(BaseIds::DataProducts_dpWriter); | |
| 651 | 1 | DataProducts::dpBufferManager.setIdBase(BaseIds::DataProducts_dpBufferManager); | |
| 652 | 1 | DataProducts::dpBufferAccumulator.setIdBase(BaseIds::DataProducts_dpBufferAccumulator); | |
| 653 | 1 | FileHandling::fileUplink.setIdBase(BaseIds::FileHandling_fileUplink); | |
| 654 | 1 | FileHandling::fileDownlink.setIdBase(BaseIds::FileHandling_fileDownlink); | |
| 655 | 1 | FileHandling::fileManager.setIdBase(BaseIds::FileHandling_fileManager); | |
| 656 | 1 | FileHandling::prmDb.setIdBase(BaseIds::FileHandling_prmDb); | |
| 657 | 1 | Ref::blockDrv.setIdBase(BaseIds::Ref_blockDrv); | |
| 658 | 1 | Ref::rateGroup1Comp.setIdBase(BaseIds::Ref_rateGroup1Comp); | |
| 659 | 1 | Ref::rateGroup2Comp.setIdBase(BaseIds::Ref_rateGroup2Comp); | |
| 660 | 1 | Ref::rateGroup3Comp.setIdBase(BaseIds::Ref_rateGroup3Comp); | |
| 661 | 1 | Ref::pingRcvr.setIdBase(BaseIds::Ref_pingRcvr); | |
| 662 | 1 | Ref::typeDemo.setIdBase(BaseIds::Ref_typeDemo); | |
| 663 | 1 | Ref::cmdSeq.setIdBase(BaseIds::Ref_cmdSeq); | |
| 664 | 1 | Ref::wasmSeq.setIdBase(BaseIds::Ref_wasmSeq); | |
| 665 | 1 | Ref::sendBuffComp.setIdBase(BaseIds::Ref_sendBuffComp); | |
| 666 | 1 | Ref::SG1.setIdBase(BaseIds::Ref_SG1); | |
| 667 | 1 | Ref::SG2.setIdBase(BaseIds::Ref_SG2); | |
| 668 | 1 | Ref::SG3.setIdBase(BaseIds::Ref_SG3); | |
| 669 | 1 | Ref::SG4.setIdBase(BaseIds::Ref_SG4); | |
| 670 | 1 | Ref::SG5.setIdBase(BaseIds::Ref_SG5); | |
| 671 | 1 | Ref::posixTime.setIdBase(BaseIds::Ref_posixTime); | |
| 672 | 1 | Ref::rateGroupDriverComp.setIdBase(BaseIds::Ref_rateGroupDriverComp); | |
| 673 | 1 | Ref::recvBuffComp.setIdBase(BaseIds::Ref_recvBuffComp); | |
| 674 | 1 | Ref::systemResources.setIdBase(BaseIds::Ref_systemResources); | |
| 675 | 1 | Ref::linuxTimer.setIdBase(BaseIds::Ref_linuxTimer); | |
| 676 | 1 | Ref::comDriver.setIdBase(BaseIds::Ref_comDriver); | |
| 677 | 1 | } | |
| 678 | |||
| 679 | 1 | void connectComponents() { | |
| 680 | |||
| 681 | #if !FW_DIRECT_PORT_CALLS | ||
| 682 | |||
| 683 | // ComCcsds_CdhCore | ||
| 684 | CdhCore::cmdDisp.set_seqCmdStatus_OutputPort( | ||
| 685 | 0, | ||
| 686 | ComCcsds::fprimeRouter.get_cmdResponseIn_InputPort(0) | ||
| 687 | ); | ||
| 688 | CdhCore::cmdDisp.set_seqCmdStatus_OutputPort( | ||
| 689 | 1, | ||
| 690 | Ref::cmdSeq.get_cmdResponseIn_InputPort(0) | ||
| 691 | ); | ||
| 692 | CdhCore::cmdDisp.set_seqCmdStatus_OutputPort( | ||
| 693 | 2, | ||
| 694 | Ref::wasmSeq.get_cmdResponseIn_InputPort(0) | ||
| 695 | ); | ||
| 696 | CdhCore::events.set_PktSend_OutputPort( | ||
| 697 | 0, | ||
| 698 | ComCcsds::comQueue.get_comPacketQueueIn_InputPort(0) | ||
| 699 | ); | ||
| 700 | CdhCore::tlmSend.set_PktSend_OutputPort( | ||
| 701 | 0, | ||
| 702 | ComCcsds::comQueue.get_comPacketQueueIn_InputPort(1) | ||
| 703 | ); | ||
| 704 | ComCcsds::fprimeRouter.set_commandOut_OutputPort( | ||
| 705 | 0, | ||
| 706 | CdhCore::cmdDisp.get_seqCmdBuff_InputPort(0) | ||
| 707 | ); | ||
| 708 | Ref::cmdSeq.set_comCmdOut_OutputPort( | ||
| 709 | 0, | ||
| 710 | CdhCore::cmdDisp.get_seqCmdBuff_InputPort(1) | ||
| 711 | ); | ||
| 712 | Ref::wasmSeq.set_cmdOut_OutputPort( | ||
| 713 | 0, | ||
| 714 | CdhCore::cmdDisp.get_seqCmdBuff_InputPort(2) | ||
| 715 | ); | ||
| 716 | |||
| 717 | // ComCcsds_FileHandling | ||
| 718 | ComCcsds::comQueue.set_bufferReturnOut_OutputPort( | ||
| 719 | 0, | ||
| 720 | FileHandling::fileDownlink.get_bufferReturn_InputPort(0) | ||
| 721 | ); | ||
| 722 | ComCcsds::fprimeRouter.set_fileOut_OutputPort( | ||
| 723 | 0, | ||
| 724 | FileHandling::fileUplink.get_bufferSendIn_InputPort(0) | ||
| 725 | ); | ||
| 726 | FileHandling::fileDownlink.set_bufferSendOut_OutputPort( | ||
| 727 | 0, | ||
| 728 | ComCcsds::comQueue.get_bufferQueueIn_InputPort(0) | ||
| 729 | ); | ||
| 730 | FileHandling::fileUplink.set_bufferSendOut_OutputPort( | ||
| 731 | 0, | ||
| 732 | ComCcsds::fprimeRouter.get_fileBufferReturnIn_InputPort(0) | ||
| 733 | ); | ||
| 734 | |||
| 735 | // ComStub | ||
| 736 | ComCcsds::comStub.set_comStatusOut_OutputPort( | ||
| 737 | 0, | ||
| 738 | ComCcsds::framer.get_comStatusIn_InputPort(0) | ||
| 739 | ); | ||
| 740 | ComCcsds::comStub.set_dataOut_OutputPort( | ||
| 741 | 0, | ||
| 742 | ComCcsds::frameAccumulator.get_dataIn_InputPort(0) | ||
| 743 | ); | ||
| 744 | ComCcsds::comStub.set_dataReturnOut_OutputPort( | ||
| 745 | 0, | ||
| 746 | ComCcsds::framer.get_dataReturnIn_InputPort(0) | ||
| 747 | ); | ||
| 748 | ComCcsds::frameAccumulator.set_dataReturnOut_OutputPort( | ||
| 749 | 0, | ||
| 750 | ComCcsds::comStub.get_dataReturnIn_InputPort(0) | ||
| 751 | ); | ||
| 752 | ComCcsds::framer.set_dataOut_OutputPort( | ||
| 753 | 0, | ||
| 754 | ComCcsds::comStub.get_dataIn_InputPort(0) | ||
| 755 | ); | ||
| 756 | |||
| 757 | // Command | ||
| 758 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 759 | 0, | ||
| 760 | CdhCore::cmdDisp.get_CmdDisp_InputPort(0) | ||
| 761 | ); | ||
| 762 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 763 | 1, | ||
| 764 | CdhCore::events.get_CmdDisp_InputPort(0) | ||
| 765 | ); | ||
| 766 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 767 | 2, | ||
| 768 | CdhCore::health.get_CmdDisp_InputPort(0) | ||
| 769 | ); | ||
| 770 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 771 | 3, | ||
| 772 | CdhCore::version.get_cmdIn_InputPort(0) | ||
| 773 | ); | ||
| 774 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 775 | 4, | ||
| 776 | ComCcsds::comQueue.get_CmdDisp_InputPort(0) | ||
| 777 | ); | ||
| 778 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 779 | 5, | ||
| 780 | DataProducts::dpBufferAccumulator.get_cmdIn_InputPort(0) | ||
| 781 | ); | ||
| 782 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 783 | 6, | ||
| 784 | DataProducts::dpCat.get_CmdDisp_InputPort(0) | ||
| 785 | ); | ||
| 786 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 787 | 7, | ||
| 788 | DataProducts::dpMgr.get_cmdIn_InputPort(0) | ||
| 789 | ); | ||
| 790 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 791 | 8, | ||
| 792 | DataProducts::dpWriter.get_cmdIn_InputPort(0) | ||
| 793 | ); | ||
| 794 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 795 | 9, | ||
| 796 | FileHandling::fileDownlink.get_cmdIn_InputPort(0) | ||
| 797 | ); | ||
| 798 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 799 | 10, | ||
| 800 | FileHandling::fileManager.get_cmdIn_InputPort(0) | ||
| 801 | ); | ||
| 802 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 803 | 11, | ||
| 804 | FileHandling::prmDb.get_CmdDisp_InputPort(0) | ||
| 805 | ); | ||
| 806 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 807 | 12, | ||
| 808 | Ref::SG1.get_cmdIn_InputPort(0) | ||
| 809 | ); | ||
| 810 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 811 | 13, | ||
| 812 | Ref::SG2.get_cmdIn_InputPort(0) | ||
| 813 | ); | ||
| 814 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 815 | 14, | ||
| 816 | Ref::SG3.get_cmdIn_InputPort(0) | ||
| 817 | ); | ||
| 818 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 819 | 15, | ||
| 820 | Ref::SG4.get_cmdIn_InputPort(0) | ||
| 821 | ); | ||
| 822 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 823 | 16, | ||
| 824 | Ref::SG5.get_cmdIn_InputPort(0) | ||
| 825 | ); | ||
| 826 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 827 | 17, | ||
| 828 | Ref::cmdSeq.get_cmdIn_InputPort(0) | ||
| 829 | ); | ||
| 830 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 831 | 18, | ||
| 832 | Ref::dpDemo.get_cmdIn_InputPort(0) | ||
| 833 | ); | ||
| 834 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 835 | 19, | ||
| 836 | Ref::pingRcvr.get_CmdDisp_InputPort(0) | ||
| 837 | ); | ||
| 838 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 839 | 20, | ||
| 840 | Ref::recvBuffComp.get_CmdDisp_InputPort(0) | ||
| 841 | ); | ||
| 842 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 843 | 21, | ||
| 844 | Ref::sendBuffComp.get_CmdDisp_InputPort(0) | ||
| 845 | ); | ||
| 846 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 847 | 22, | ||
| 848 | Ref::systemResources.get_CmdDisp_InputPort(0) | ||
| 849 | ); | ||
| 850 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 851 | 23, | ||
| 852 | Ref::typeDemo.get_cmdIn_InputPort(0) | ||
| 853 | ); | ||
| 854 | CdhCore::cmdDisp.set_compCmdSend_OutputPort( | ||
| 855 | 24, | ||
| 856 | Ref::wasmSeq.get_cmdIn_InputPort(0) | ||
| 857 | ); | ||
| 858 | |||
| 859 | // CommandRegistration | ||
| 860 | CdhCore::cmdDisp.set_CmdReg_OutputPort( | ||
| 861 | 0, | ||
| 862 | CdhCore::cmdDisp.get_compCmdReg_InputPort(0) | ||
| 863 | ); | ||
| 864 | CdhCore::events.set_CmdReg_OutputPort( | ||
| 865 | 0, | ||
| 866 | CdhCore::cmdDisp.get_compCmdReg_InputPort(1) | ||
| 867 | ); | ||
| 868 | CdhCore::health.set_CmdReg_OutputPort( | ||
| 869 | 0, | ||
| 870 | CdhCore::cmdDisp.get_compCmdReg_InputPort(2) | ||
| 871 | ); | ||
| 872 | CdhCore::version.set_cmdRegOut_OutputPort( | ||
| 873 | 0, | ||
| 874 | CdhCore::cmdDisp.get_compCmdReg_InputPort(3) | ||
| 875 | ); | ||
| 876 | ComCcsds::comQueue.set_CmdReg_OutputPort( | ||
| 877 | 0, | ||
| 878 | CdhCore::cmdDisp.get_compCmdReg_InputPort(4) | ||
| 879 | ); | ||
| 880 | DataProducts::dpBufferAccumulator.set_cmdRegOut_OutputPort( | ||
| 881 | 0, | ||
| 882 | CdhCore::cmdDisp.get_compCmdReg_InputPort(5) | ||
| 883 | ); | ||
| 884 | DataProducts::dpCat.set_CmdReg_OutputPort( | ||
| 885 | 0, | ||
| 886 | CdhCore::cmdDisp.get_compCmdReg_InputPort(6) | ||
| 887 | ); | ||
| 888 | DataProducts::dpMgr.set_cmdRegIn_OutputPort( | ||
| 889 | 0, | ||
| 890 | CdhCore::cmdDisp.get_compCmdReg_InputPort(7) | ||
| 891 | ); | ||
| 892 | DataProducts::dpWriter.set_cmdRegIn_OutputPort( | ||
| 893 | 0, | ||
| 894 | CdhCore::cmdDisp.get_compCmdReg_InputPort(8) | ||
| 895 | ); | ||
| 896 | FileHandling::fileDownlink.set_cmdRegOut_OutputPort( | ||
| 897 | 0, | ||
| 898 | CdhCore::cmdDisp.get_compCmdReg_InputPort(9) | ||
| 899 | ); | ||
| 900 | FileHandling::fileManager.set_cmdRegOut_OutputPort( | ||
| 901 | 0, | ||
| 902 | CdhCore::cmdDisp.get_compCmdReg_InputPort(10) | ||
| 903 | ); | ||
| 904 | FileHandling::prmDb.set_CmdReg_OutputPort( | ||
| 905 | 0, | ||
| 906 | CdhCore::cmdDisp.get_compCmdReg_InputPort(11) | ||
| 907 | ); | ||
| 908 | Ref::SG1.set_cmdRegOut_OutputPort( | ||
| 909 | 0, | ||
| 910 | CdhCore::cmdDisp.get_compCmdReg_InputPort(12) | ||
| 911 | ); | ||
| 912 | Ref::SG2.set_cmdRegOut_OutputPort( | ||
| 913 | 0, | ||
| 914 | CdhCore::cmdDisp.get_compCmdReg_InputPort(13) | ||
| 915 | ); | ||
| 916 | Ref::SG3.set_cmdRegOut_OutputPort( | ||
| 917 | 0, | ||
| 918 | CdhCore::cmdDisp.get_compCmdReg_InputPort(14) | ||
| 919 | ); | ||
| 920 | Ref::SG4.set_cmdRegOut_OutputPort( | ||
| 921 | 0, | ||
| 922 | CdhCore::cmdDisp.get_compCmdReg_InputPort(15) | ||
| 923 | ); | ||
| 924 | Ref::SG5.set_cmdRegOut_OutputPort( | ||
| 925 | 0, | ||
| 926 | CdhCore::cmdDisp.get_compCmdReg_InputPort(16) | ||
| 927 | ); | ||
| 928 | Ref::cmdSeq.set_cmdRegOut_OutputPort( | ||
| 929 | 0, | ||
| 930 | CdhCore::cmdDisp.get_compCmdReg_InputPort(17) | ||
| 931 | ); | ||
| 932 | Ref::dpDemo.set_cmdRegOut_OutputPort( | ||
| 933 | 0, | ||
| 934 | CdhCore::cmdDisp.get_compCmdReg_InputPort(18) | ||
| 935 | ); | ||
| 936 | Ref::pingRcvr.set_CmdReg_OutputPort( | ||
| 937 | 0, | ||
| 938 | CdhCore::cmdDisp.get_compCmdReg_InputPort(19) | ||
| 939 | ); | ||
| 940 | Ref::recvBuffComp.set_CmdReg_OutputPort( | ||
| 941 | 0, | ||
| 942 | CdhCore::cmdDisp.get_compCmdReg_InputPort(20) | ||
| 943 | ); | ||
| 944 | Ref::sendBuffComp.set_CmdReg_OutputPort( | ||
| 945 | 0, | ||
| 946 | CdhCore::cmdDisp.get_compCmdReg_InputPort(21) | ||
| 947 | ); | ||
| 948 | Ref::systemResources.set_CmdReg_OutputPort( | ||
| 949 | 0, | ||
| 950 | CdhCore::cmdDisp.get_compCmdReg_InputPort(22) | ||
| 951 | ); | ||
| 952 | Ref::typeDemo.set_cmdRegOut_OutputPort( | ||
| 953 | 0, | ||
| 954 | CdhCore::cmdDisp.get_compCmdReg_InputPort(23) | ||
| 955 | ); | ||
| 956 | Ref::wasmSeq.set_cmdRegOut_OutputPort( | ||
| 957 | 0, | ||
| 958 | CdhCore::cmdDisp.get_compCmdReg_InputPort(24) | ||
| 959 | ); | ||
| 960 | |||
| 961 | // CommandResponse | ||
| 962 | CdhCore::cmdDisp.set_CmdStatus_OutputPort( | ||
| 963 | 0, | ||
| 964 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 965 | ); | ||
| 966 | CdhCore::events.set_CmdStatus_OutputPort( | ||
| 967 | 0, | ||
| 968 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 969 | ); | ||
| 970 | CdhCore::health.set_CmdStatus_OutputPort( | ||
| 971 | 0, | ||
| 972 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 973 | ); | ||
| 974 | CdhCore::version.set_cmdResponseOut_OutputPort( | ||
| 975 | 0, | ||
| 976 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 977 | ); | ||
| 978 | ComCcsds::comQueue.set_CmdStatus_OutputPort( | ||
| 979 | 0, | ||
| 980 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 981 | ); | ||
| 982 | DataProducts::dpBufferAccumulator.set_cmdResponseOut_OutputPort( | ||
| 983 | 0, | ||
| 984 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 985 | ); | ||
| 986 | DataProducts::dpCat.set_CmdStatus_OutputPort( | ||
| 987 | 0, | ||
| 988 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 989 | ); | ||
| 990 | DataProducts::dpMgr.set_cmdResponseOut_OutputPort( | ||
| 991 | 0, | ||
| 992 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 993 | ); | ||
| 994 | DataProducts::dpWriter.set_cmdResponseOut_OutputPort( | ||
| 995 | 0, | ||
| 996 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 997 | ); | ||
| 998 | FileHandling::fileDownlink.set_cmdResponseOut_OutputPort( | ||
| 999 | 0, | ||
| 1000 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 1001 | ); | ||
| 1002 | FileHandling::fileManager.set_cmdResponseOut_OutputPort( | ||
| 1003 | 0, | ||
| 1004 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 1005 | ); | ||
| 1006 | FileHandling::prmDb.set_CmdStatus_OutputPort( | ||
| 1007 | 0, | ||
| 1008 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 1009 | ); | ||
| 1010 | Ref::SG1.set_cmdResponseOut_OutputPort( | ||
| 1011 | 0, | ||
| 1012 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 1013 | ); | ||
| 1014 | Ref::SG2.set_cmdResponseOut_OutputPort( | ||
| 1015 | 0, | ||
| 1016 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 1017 | ); | ||
| 1018 | Ref::SG3.set_cmdResponseOut_OutputPort( | ||
| 1019 | 0, | ||
| 1020 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 1021 | ); | ||
| 1022 | Ref::SG4.set_cmdResponseOut_OutputPort( | ||
| 1023 | 0, | ||
| 1024 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 1025 | ); | ||
| 1026 | Ref::SG5.set_cmdResponseOut_OutputPort( | ||
| 1027 | 0, | ||
| 1028 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 1029 | ); | ||
| 1030 | Ref::cmdSeq.set_cmdResponseOut_OutputPort( | ||
| 1031 | 0, | ||
| 1032 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 1033 | ); | ||
| 1034 | Ref::dpDemo.set_cmdResponseOut_OutputPort( | ||
| 1035 | 0, | ||
| 1036 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 1037 | ); | ||
| 1038 | Ref::pingRcvr.set_CmdStatus_OutputPort( | ||
| 1039 | 0, | ||
| 1040 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 1041 | ); | ||
| 1042 | Ref::recvBuffComp.set_CmdStatus_OutputPort( | ||
| 1043 | 0, | ||
| 1044 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 1045 | ); | ||
| 1046 | Ref::sendBuffComp.set_CmdStatus_OutputPort( | ||
| 1047 | 0, | ||
| 1048 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 1049 | ); | ||
| 1050 | Ref::systemResources.set_CmdStatus_OutputPort( | ||
| 1051 | 0, | ||
| 1052 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 1053 | ); | ||
| 1054 | Ref::typeDemo.set_cmdResponseOut_OutputPort( | ||
| 1055 | 0, | ||
| 1056 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 1057 | ); | ||
| 1058 | Ref::wasmSeq.set_cmdResponseOut_OutputPort( | ||
| 1059 | 0, | ||
| 1060 | CdhCore::cmdDisp.get_compCmdStat_InputPort(0) | ||
| 1061 | ); | ||
| 1062 | |||
| 1063 | // Communications | ||
| 1064 | ComCcsds::comStub.set_drvReceiveReturnOut_OutputPort( | ||
| 1065 | 0, | ||
| 1066 | Ref::comDriver.get_recvReturnIn_InputPort(0) | ||
| 1067 | ); | ||
| 1068 | ComCcsds::comStub.set_drvSendOut_OutputPort( | ||
| 1069 | 0, | ||
| 1070 | Ref::comDriver.get_send_InputPort(0) | ||
| 1071 | ); | ||
| 1072 | Ref::comDriver.set_allocate_OutputPort( | ||
| 1073 | 0, | ||
| 1074 | ComCcsds::commsBufferManager.get_bufferGetCallee_InputPort(0) | ||
| 1075 | ); | ||
| 1076 | Ref::comDriver.set_deallocate_OutputPort( | ||
| 1077 | 0, | ||
| 1078 | ComCcsds::commsBufferManager.get_bufferSendIn_InputPort(0) | ||
| 1079 | ); | ||
| 1080 | Ref::comDriver.set_ready_OutputPort( | ||
| 1081 | 0, | ||
| 1082 | ComCcsds::comStub.get_drvConnected_InputPort(0) | ||
| 1083 | ); | ||
| 1084 | Ref::comDriver.set_recv_OutputPort( | ||
| 1085 | 0, | ||
| 1086 | ComCcsds::comStub.get_drvReceiveIn_InputPort(0) | ||
| 1087 | ); | ||
| 1088 | |||
| 1089 | // DataProducts | ||
| 1090 | DataProducts::dpBufferAccumulator.set_bufferSendOutDrain_OutputPort( | ||
| 1091 | 0, | ||
| 1092 | DataProducts::dpWriter.get_bufferSendIn_InputPort(0) | ||
| 1093 | ); | ||
| 1094 | DataProducts::dpBufferAccumulator.set_bufferSendOutReturn_OutputPort( | ||
| 1095 | 0, | ||
| 1096 | DataProducts::dpBufferManager.get_bufferSendIn_InputPort(0) | ||
| 1097 | ); | ||
| 1098 | DataProducts::dpMgr.set_bufferGetOut_OutputPort( | ||
| 1099 | 0, | ||
| 1100 | DataProducts::dpBufferManager.get_bufferGetCallee_InputPort(0) | ||
| 1101 | ); | ||
| 1102 | DataProducts::dpMgr.set_productSendOut_OutputPort( | ||
| 1103 | 0, | ||
| 1104 | DataProducts::dpBufferAccumulator.get_bufferSendInFill_InputPort(0) | ||
| 1105 | ); | ||
| 1106 | DataProducts::dpWriter.set_deallocBufferSendOut_OutputPort( | ||
| 1107 | 0, | ||
| 1108 | DataProducts::dpBufferAccumulator.get_bufferSendInReturn_InputPort(0) | ||
| 1109 | ); | ||
| 1110 | DataProducts::dpWriter.set_dpWrittenOut_OutputPort( | ||
| 1111 | 0, | ||
| 1112 | DataProducts::dpCat.get_addToCat_InputPort(0) | ||
| 1113 | ); | ||
| 1114 | |||
| 1115 | // Downlink | ||
| 1116 | ComCcsds::aggregator.set_comStatusOut_OutputPort( | ||
| 1117 | 0, | ||
| 1118 | ComCcsds::spacePacketFramer.get_comStatusIn_InputPort(0) | ||
| 1119 | ); | ||
| 1120 | ComCcsds::aggregator.set_dataOut_OutputPort( | ||
| 1121 | 0, | ||
| 1122 | ComCcsds::framer.get_dataIn_InputPort(0) | ||
| 1123 | ); | ||
| 1124 | ComCcsds::aggregator.set_dataReturnOut_OutputPort( | ||
| 1125 | 0, | ||
| 1126 | ComCcsds::spacePacketFramer.get_dataReturnIn_InputPort(0) | ||
| 1127 | ); | ||
| 1128 | ComCcsds::comQueue.set_dataOut_OutputPort( | ||
| 1129 | 0, | ||
| 1130 | ComCcsds::spacePacketFramer.get_dataIn_InputPort(0) | ||
| 1131 | ); | ||
| 1132 | ComCcsds::framer.set_comStatusOut_OutputPort( | ||
| 1133 | 0, | ||
| 1134 | ComCcsds::aggregator.get_comStatusIn_InputPort(0) | ||
| 1135 | ); | ||
| 1136 | ComCcsds::framer.set_dataReturnOut_OutputPort( | ||
| 1137 | 0, | ||
| 1138 | ComCcsds::aggregator.get_dataReturnIn_InputPort(0) | ||
| 1139 | ); | ||
| 1140 | ComCcsds::spacePacketFramer.set_bufferAllocate_OutputPort( | ||
| 1141 | 0, | ||
| 1142 | ComCcsds::commsBufferManager.get_bufferGetCallee_InputPort(0) | ||
| 1143 | ); | ||
| 1144 | ComCcsds::spacePacketFramer.set_bufferDeallocate_OutputPort( | ||
| 1145 | 0, | ||
| 1146 | ComCcsds::commsBufferManager.get_bufferSendIn_InputPort(0) | ||
| 1147 | ); | ||
| 1148 | ComCcsds::spacePacketFramer.set_comStatusOut_OutputPort( | ||
| 1149 | 0, | ||
| 1150 | ComCcsds::comQueue.get_comStatusIn_InputPort(0) | ||
| 1151 | ); | ||
| 1152 | ComCcsds::spacePacketFramer.set_dataOut_OutputPort( | ||
| 1153 | 0, | ||
| 1154 | ComCcsds::aggregator.get_dataIn_InputPort(0) | ||
| 1155 | ); | ||
| 1156 | ComCcsds::spacePacketFramer.set_dataReturnOut_OutputPort( | ||
| 1157 | 0, | ||
| 1158 | ComCcsds::comQueue.get_dataReturnIn_InputPort(0) | ||
| 1159 | ); | ||
| 1160 | ComCcsds::spacePacketFramer.set_getApidSeqCount_OutputPort( | ||
| 1161 | 0, | ||
| 1162 | ComCcsds::apidManager.get_getApidSeqCountIn_InputPort(0) | ||
| 1163 | ); | ||
| 1164 | |||
| 1165 | // Events | ||
| 1166 | CdhCore::cmdDisp.set_Log_OutputPort( | ||
| 1167 | 0, | ||
| 1168 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1169 | ); | ||
| 1170 | CdhCore::events.set_Log_OutputPort( | ||
| 1171 | 0, | ||
| 1172 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1173 | ); | ||
| 1174 | CdhCore::fatalAdapter.set_Log_OutputPort( | ||
| 1175 | 0, | ||
| 1176 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1177 | ); | ||
| 1178 | CdhCore::health.set_Log_OutputPort( | ||
| 1179 | 0, | ||
| 1180 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1181 | ); | ||
| 1182 | CdhCore::tlmSend.set_eventOut_OutputPort( | ||
| 1183 | 0, | ||
| 1184 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1185 | ); | ||
| 1186 | CdhCore::version.set_logOut_OutputPort( | ||
| 1187 | 0, | ||
| 1188 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1189 | ); | ||
| 1190 | ComCcsds::apidManager.set_logOut_OutputPort( | ||
| 1191 | 0, | ||
| 1192 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1193 | ); | ||
| 1194 | ComCcsds::comQueue.set_Log_OutputPort( | ||
| 1195 | 0, | ||
| 1196 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1197 | ); | ||
| 1198 | ComCcsds::commsBufferManager.set_eventOut_OutputPort( | ||
| 1199 | 0, | ||
| 1200 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1201 | ); | ||
| 1202 | ComCcsds::fprimeRouter.set_logOut_OutputPort( | ||
| 1203 | 0, | ||
| 1204 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1205 | ); | ||
| 1206 | ComCcsds::frameAccumulator.set_logOut_OutputPort( | ||
| 1207 | 0, | ||
| 1208 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1209 | ); | ||
| 1210 | ComCcsds::framer.set_logOut_OutputPort( | ||
| 1211 | 0, | ||
| 1212 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1213 | ); | ||
| 1214 | ComCcsds::spacePacketDeframer.set_logOut_OutputPort( | ||
| 1215 | 0, | ||
| 1216 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1217 | ); | ||
| 1218 | ComCcsds::spacePacketFramer.set_logOut_OutputPort( | ||
| 1219 | 0, | ||
| 1220 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1221 | ); | ||
| 1222 | ComCcsds::tcDeframer.set_logOut_OutputPort( | ||
| 1223 | 0, | ||
| 1224 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1225 | ); | ||
| 1226 | DataProducts::dpBufferAccumulator.set_eventOut_OutputPort( | ||
| 1227 | 0, | ||
| 1228 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1229 | ); | ||
| 1230 | DataProducts::dpBufferManager.set_eventOut_OutputPort( | ||
| 1231 | 0, | ||
| 1232 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1233 | ); | ||
| 1234 | DataProducts::dpCat.set_Log_OutputPort( | ||
| 1235 | 0, | ||
| 1236 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1237 | ); | ||
| 1238 | DataProducts::dpMgr.set_eventOut_OutputPort( | ||
| 1239 | 0, | ||
| 1240 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1241 | ); | ||
| 1242 | DataProducts::dpWriter.set_eventOut_OutputPort( | ||
| 1243 | 0, | ||
| 1244 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1245 | ); | ||
| 1246 | FileHandling::fileDownlink.set_eventOut_OutputPort( | ||
| 1247 | 0, | ||
| 1248 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1249 | ); | ||
| 1250 | FileHandling::fileManager.set_eventOut_OutputPort( | ||
| 1251 | 0, | ||
| 1252 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1253 | ); | ||
| 1254 | FileHandling::fileUplink.set_eventOut_OutputPort( | ||
| 1255 | 0, | ||
| 1256 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1257 | ); | ||
| 1258 | FileHandling::prmDb.set_Log_OutputPort( | ||
| 1259 | 0, | ||
| 1260 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1261 | ); | ||
| 1262 | Ref::SG1.set_logOut_OutputPort( | ||
| 1263 | 0, | ||
| 1264 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1265 | ); | ||
| 1266 | Ref::SG2.set_logOut_OutputPort( | ||
| 1267 | 0, | ||
| 1268 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1269 | ); | ||
| 1270 | Ref::SG3.set_logOut_OutputPort( | ||
| 1271 | 0, | ||
| 1272 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1273 | ); | ||
| 1274 | Ref::SG4.set_logOut_OutputPort( | ||
| 1275 | 0, | ||
| 1276 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1277 | ); | ||
| 1278 | Ref::SG5.set_logOut_OutputPort( | ||
| 1279 | 0, | ||
| 1280 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1281 | ); | ||
| 1282 | Ref::cmdSeq.set_logOut_OutputPort( | ||
| 1283 | 0, | ||
| 1284 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1285 | ); | ||
| 1286 | Ref::dpDemo.set_logOut_OutputPort( | ||
| 1287 | 0, | ||
| 1288 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1289 | ); | ||
| 1290 | Ref::pingRcvr.set_Log_OutputPort( | ||
| 1291 | 0, | ||
| 1292 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1293 | ); | ||
| 1294 | Ref::rateGroup1Comp.set_Log_OutputPort( | ||
| 1295 | 0, | ||
| 1296 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1297 | ); | ||
| 1298 | Ref::rateGroup2Comp.set_Log_OutputPort( | ||
| 1299 | 0, | ||
| 1300 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1301 | ); | ||
| 1302 | Ref::rateGroup3Comp.set_Log_OutputPort( | ||
| 1303 | 0, | ||
| 1304 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1305 | ); | ||
| 1306 | Ref::recvBuffComp.set_Log_OutputPort( | ||
| 1307 | 0, | ||
| 1308 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1309 | ); | ||
| 1310 | Ref::sendBuffComp.set_Log_OutputPort( | ||
| 1311 | 0, | ||
| 1312 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1313 | ); | ||
| 1314 | Ref::systemResources.set_Log_OutputPort( | ||
| 1315 | 0, | ||
| 1316 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1317 | ); | ||
| 1318 | Ref::typeDemo.set_logOut_OutputPort( | ||
| 1319 | 0, | ||
| 1320 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1321 | ); | ||
| 1322 | Ref::wasmSeq.set_logOut_OutputPort( | ||
| 1323 | 0, | ||
| 1324 | CdhCore::events.get_LogRecv_InputPort(0) | ||
| 1325 | ); | ||
| 1326 | |||
| 1327 | // FaultProtection | ||
| 1328 | CdhCore::events.set_FatalAnnounce_OutputPort( | ||
| 1329 | 0, | ||
| 1330 | CdhCore::fatalHandler.get_FatalReceive_InputPort(0) | ||
| 1331 | ); | ||
| 1332 | |||
| 1333 | // FileHandling_DataProducts | ||
| 1334 | DataProducts::dpCat.set_fileOut_OutputPort( | ||
| 1335 | 0, | ||
| 1336 | FileHandling::fileDownlink.get_SendFile_InputPort(0) | ||
| 1337 | ); | ||
| 1338 | FileHandling::fileDownlink.set_FileComplete_OutputPort( | ||
| 1339 | 0, | ||
| 1340 | DataProducts::dpCat.get_fileDone_InputPort(0) | ||
| 1341 | ); | ||
| 1342 | |||
| 1343 | // Health | ||
| 1344 | CdhCore::cmdDisp.set_pingOut_OutputPort( | ||
| 1345 | 0, | ||
| 1346 | CdhCore::health.get_PingReturn_InputPort(0) | ||
| 1347 | ); | ||
| 1348 | CdhCore::events.set_pingOut_OutputPort( | ||
| 1349 | 0, | ||
| 1350 | CdhCore::health.get_PingReturn_InputPort(1) | ||
| 1351 | ); | ||
| 1352 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1353 | 0, | ||
| 1354 | CdhCore::cmdDisp.get_pingIn_InputPort(0) | ||
| 1355 | ); | ||
| 1356 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1357 | 1, | ||
| 1358 | CdhCore::events.get_pingIn_InputPort(0) | ||
| 1359 | ); | ||
| 1360 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1361 | 2, | ||
| 1362 | CdhCore::tlmSend.get_pingIn_InputPort(0) | ||
| 1363 | ); | ||
| 1364 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1365 | 3, | ||
| 1366 | DataProducts::dpBufferAccumulator.get_pingIn_InputPort(0) | ||
| 1367 | ); | ||
| 1368 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1369 | 4, | ||
| 1370 | DataProducts::dpCat.get_pingIn_InputPort(0) | ||
| 1371 | ); | ||
| 1372 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1373 | 5, | ||
| 1374 | FileHandling::fileDownlink.get_pingIn_InputPort(0) | ||
| 1375 | ); | ||
| 1376 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1377 | 6, | ||
| 1378 | FileHandling::fileManager.get_pingIn_InputPort(0) | ||
| 1379 | ); | ||
| 1380 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1381 | 7, | ||
| 1382 | FileHandling::fileUplink.get_pingIn_InputPort(0) | ||
| 1383 | ); | ||
| 1384 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1385 | 8, | ||
| 1386 | FileHandling::prmDb.get_pingIn_InputPort(0) | ||
| 1387 | ); | ||
| 1388 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1389 | 9, | ||
| 1390 | Ref::blockDrv.get_PingIn_InputPort(0) | ||
| 1391 | ); | ||
| 1392 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1393 | 10, | ||
| 1394 | Ref::cmdSeq.get_pingIn_InputPort(0) | ||
| 1395 | ); | ||
| 1396 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1397 | 11, | ||
| 1398 | Ref::pingRcvr.get_PingIn_InputPort(0) | ||
| 1399 | ); | ||
| 1400 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1401 | 12, | ||
| 1402 | Ref::rateGroup1Comp.get_PingIn_InputPort(0) | ||
| 1403 | ); | ||
| 1404 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1405 | 13, | ||
| 1406 | Ref::rateGroup2Comp.get_PingIn_InputPort(0) | ||
| 1407 | ); | ||
| 1408 | CdhCore::health.set_PingSend_OutputPort( | ||
| 1409 | 14, | ||
| 1410 | Ref::rateGroup3Comp.get_PingIn_InputPort(0) | ||
| 1411 | ); | ||
| 1412 | CdhCore::tlmSend.set_pingOut_OutputPort( | ||
| 1413 | 0, | ||
| 1414 | CdhCore::health.get_PingReturn_InputPort(2) | ||
| 1415 | ); | ||
| 1416 | DataProducts::dpBufferAccumulator.set_pingOut_OutputPort( | ||
| 1417 | 0, | ||
| 1418 | CdhCore::health.get_PingReturn_InputPort(3) | ||
| 1419 | ); | ||
| 1420 | DataProducts::dpCat.set_pingOut_OutputPort( | ||
| 1421 | 0, | ||
| 1422 | CdhCore::health.get_PingReturn_InputPort(4) | ||
| 1423 | ); | ||
| 1424 | FileHandling::fileDownlink.set_pingOut_OutputPort( | ||
| 1425 | 0, | ||
| 1426 | CdhCore::health.get_PingReturn_InputPort(5) | ||
| 1427 | ); | ||
| 1428 | FileHandling::fileManager.set_pingOut_OutputPort( | ||
| 1429 | 0, | ||
| 1430 | CdhCore::health.get_PingReturn_InputPort(6) | ||
| 1431 | ); | ||
| 1432 | FileHandling::fileUplink.set_pingOut_OutputPort( | ||
| 1433 | 0, | ||
| 1434 | CdhCore::health.get_PingReturn_InputPort(7) | ||
| 1435 | ); | ||
| 1436 | FileHandling::prmDb.set_pingOut_OutputPort( | ||
| 1437 | 0, | ||
| 1438 | CdhCore::health.get_PingReturn_InputPort(8) | ||
| 1439 | ); | ||
| 1440 | Ref::blockDrv.set_PingOut_OutputPort( | ||
| 1441 | 0, | ||
| 1442 | CdhCore::health.get_PingReturn_InputPort(9) | ||
| 1443 | ); | ||
| 1444 | Ref::cmdSeq.set_pingOut_OutputPort( | ||
| 1445 | 0, | ||
| 1446 | CdhCore::health.get_PingReturn_InputPort(10) | ||
| 1447 | ); | ||
| 1448 | Ref::pingRcvr.set_PingOut_OutputPort( | ||
| 1449 | 0, | ||
| 1450 | CdhCore::health.get_PingReturn_InputPort(11) | ||
| 1451 | ); | ||
| 1452 | Ref::rateGroup1Comp.set_PingOut_OutputPort( | ||
| 1453 | 0, | ||
| 1454 | CdhCore::health.get_PingReturn_InputPort(12) | ||
| 1455 | ); | ||
| 1456 | Ref::rateGroup2Comp.set_PingOut_OutputPort( | ||
| 1457 | 0, | ||
| 1458 | CdhCore::health.get_PingReturn_InputPort(13) | ||
| 1459 | ); | ||
| 1460 | Ref::rateGroup3Comp.set_PingOut_OutputPort( | ||
| 1461 | 0, | ||
| 1462 | CdhCore::health.get_PingReturn_InputPort(14) | ||
| 1463 | ); | ||
| 1464 | |||
| 1465 | // Parameters | ||
| 1466 | ComCcsds::framer.set_prmGetOut_OutputPort( | ||
| 1467 | 0, | ||
| 1468 | FileHandling::prmDb.get_getPrm_InputPort(0) | ||
| 1469 | ); | ||
| 1470 | ComCcsds::framer.set_prmSetOut_OutputPort( | ||
| 1471 | 0, | ||
| 1472 | FileHandling::prmDb.get_setPrm_InputPort(0) | ||
| 1473 | ); | ||
| 1474 | ComCcsds::spacePacketDeframer.set_prmGetOut_OutputPort( | ||
| 1475 | 0, | ||
| 1476 | FileHandling::prmDb.get_getPrm_InputPort(0) | ||
| 1477 | ); | ||
| 1478 | ComCcsds::spacePacketDeframer.set_prmSetOut_OutputPort( | ||
| 1479 | 0, | ||
| 1480 | FileHandling::prmDb.get_setPrm_InputPort(0) | ||
| 1481 | ); | ||
| 1482 | ComCcsds::spacePacketFramer.set_prmGetOut_OutputPort( | ||
| 1483 | 0, | ||
| 1484 | FileHandling::prmDb.get_getPrm_InputPort(0) | ||
| 1485 | ); | ||
| 1486 | ComCcsds::spacePacketFramer.set_prmSetOut_OutputPort( | ||
| 1487 | 0, | ||
| 1488 | FileHandling::prmDb.get_setPrm_InputPort(0) | ||
| 1489 | ); | ||
| 1490 | ComCcsds::tcDeframer.set_prmGetOut_OutputPort( | ||
| 1491 | 0, | ||
| 1492 | FileHandling::prmDb.get_getPrm_InputPort(0) | ||
| 1493 | ); | ||
| 1494 | ComCcsds::tcDeframer.set_prmSetOut_OutputPort( | ||
| 1495 | 0, | ||
| 1496 | FileHandling::prmDb.get_setPrm_InputPort(0) | ||
| 1497 | ); | ||
| 1498 | Ref::dpDemo.set_prmGetOut_OutputPort( | ||
| 1499 | 0, | ||
| 1500 | FileHandling::prmDb.get_getPrm_InputPort(0) | ||
| 1501 | ); | ||
| 1502 | Ref::dpDemo.set_prmSetOut_OutputPort( | ||
| 1503 | 0, | ||
| 1504 | FileHandling::prmDb.get_setPrm_InputPort(0) | ||
| 1505 | ); | ||
| 1506 | Ref::recvBuffComp.set_ParamGet_OutputPort( | ||
| 1507 | 0, | ||
| 1508 | FileHandling::prmDb.get_getPrm_InputPort(0) | ||
| 1509 | ); | ||
| 1510 | Ref::recvBuffComp.set_ParamSet_OutputPort( | ||
| 1511 | 0, | ||
| 1512 | FileHandling::prmDb.get_setPrm_InputPort(0) | ||
| 1513 | ); | ||
| 1514 | Ref::sendBuffComp.set_ParamGet_OutputPort( | ||
| 1515 | 0, | ||
| 1516 | FileHandling::prmDb.get_getPrm_InputPort(0) | ||
| 1517 | ); | ||
| 1518 | Ref::sendBuffComp.set_ParamSet_OutputPort( | ||
| 1519 | 0, | ||
| 1520 | FileHandling::prmDb.get_setPrm_InputPort(0) | ||
| 1521 | ); | ||
| 1522 | Ref::typeDemo.set_prmGetOut_OutputPort( | ||
| 1523 | 0, | ||
| 1524 | FileHandling::prmDb.get_getPrm_InputPort(0) | ||
| 1525 | ); | ||
| 1526 | Ref::typeDemo.set_prmSetOut_OutputPort( | ||
| 1527 | 0, | ||
| 1528 | FileHandling::prmDb.get_setPrm_InputPort(0) | ||
| 1529 | ); | ||
| 1530 | Ref::wasmSeq.set_prmGet_OutputPort( | ||
| 1531 | 0, | ||
| 1532 | FileHandling::prmDb.get_getPrm_InputPort(0) | ||
| 1533 | ); | ||
| 1534 | Ref::wasmSeq.set_prmSet_OutputPort( | ||
| 1535 | 0, | ||
| 1536 | FileHandling::prmDb.get_setPrm_InputPort(0) | ||
| 1537 | ); | ||
| 1538 | |||
| 1539 | // RateGroups | ||
| 1540 | Ref::linuxTimer.set_CycleOut_OutputPort( | ||
| 1541 | 0, | ||
| 1542 | Ref::rateGroupDriverComp.get_CycleIn_InputPort(0) | ||
| 1543 | ); | ||
| 1544 | Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1545 | 0, | ||
| 1546 | Ref::SG1.get_schedIn_InputPort(0) | ||
| 1547 | ); | ||
| 1548 | Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1549 | 1, | ||
| 1550 | Ref::SG2.get_schedIn_InputPort(0) | ||
| 1551 | ); | ||
| 1552 | Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1553 | 2, | ||
| 1554 | CdhCore::tlmSend.get_Run_InputPort(0) | ||
| 1555 | ); | ||
| 1556 | Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1557 | 3, | ||
| 1558 | FileHandling::fileDownlink.get_Run_InputPort(0) | ||
| 1559 | ); | ||
| 1560 | Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1561 | 4, | ||
| 1562 | Ref::systemResources.get_run_InputPort(0) | ||
| 1563 | ); | ||
| 1564 | Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1565 | 5, | ||
| 1566 | ComCcsds::comQueue.get_run_InputPort(0) | ||
| 1567 | ); | ||
| 1568 | Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1569 | 6, | ||
| 1570 | CdhCore::cmdDisp.get_run_InputPort(0) | ||
| 1571 | ); | ||
| 1572 | Ref::rateGroup1Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1573 | 7, | ||
| 1574 | ComCcsds::aggregator.get_timeout_InputPort(0) | ||
| 1575 | ); | ||
| 1576 | Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1577 | 0, | ||
| 1578 | Ref::cmdSeq.get_schedIn_InputPort(0) | ||
| 1579 | ); | ||
| 1580 | Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1581 | 1, | ||
| 1582 | Ref::sendBuffComp.get_SchedIn_InputPort(0) | ||
| 1583 | ); | ||
| 1584 | Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1585 | 2, | ||
| 1586 | Ref::SG3.get_schedIn_InputPort(0) | ||
| 1587 | ); | ||
| 1588 | Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1589 | 3, | ||
| 1590 | Ref::SG4.get_schedIn_InputPort(0) | ||
| 1591 | ); | ||
| 1592 | Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1593 | 4, | ||
| 1594 | Ref::dpDemo.get_run_InputPort(0) | ||
| 1595 | ); | ||
| 1596 | Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1597 | 5, | ||
| 1598 | FileHandling::fileManager.get_schedIn_InputPort(0) | ||
| 1599 | ); | ||
| 1600 | Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1601 | 6, | ||
| 1602 | Ref::wasmSeq.get_checkTimers_InputPort(0) | ||
| 1603 | ); | ||
| 1604 | Ref::rateGroup2Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1605 | 7, | ||
| 1606 | Ref::wasmSeq.get_writeTelemetry_InputPort(0) | ||
| 1607 | ); | ||
| 1608 | Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1609 | 0, | ||
| 1610 | CdhCore::health.get_Run_InputPort(0) | ||
| 1611 | ); | ||
| 1612 | Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1613 | 1, | ||
| 1614 | Ref::SG5.get_schedIn_InputPort(0) | ||
| 1615 | ); | ||
| 1616 | Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1617 | 2, | ||
| 1618 | Ref::blockDrv.get_Sched_InputPort(0) | ||
| 1619 | ); | ||
| 1620 | Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1621 | 3, | ||
| 1622 | ComCcsds::commsBufferManager.get_schedIn_InputPort(0) | ||
| 1623 | ); | ||
| 1624 | Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1625 | 4, | ||
| 1626 | DataProducts::dpBufferManager.get_schedIn_InputPort(0) | ||
| 1627 | ); | ||
| 1628 | Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1629 | 5, | ||
| 1630 | DataProducts::dpWriter.get_schedIn_InputPort(0) | ||
| 1631 | ); | ||
| 1632 | Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1633 | 6, | ||
| 1634 | DataProducts::dpMgr.get_schedIn_InputPort(0) | ||
| 1635 | ); | ||
| 1636 | Ref::rateGroup3Comp.set_RateGroupMemberOut_OutputPort( | ||
| 1637 | 7, | ||
| 1638 | CdhCore::events.get_run_InputPort(0) | ||
| 1639 | ); | ||
| 1640 | Ref::rateGroupDriverComp.set_CycleOut_OutputPort( | ||
| 1641 | 0, | ||
| 1642 | Ref::rateGroup1Comp.get_CycleIn_InputPort(0) | ||
| 1643 | ); | ||
| 1644 | Ref::rateGroupDriverComp.set_CycleOut_OutputPort( | ||
| 1645 | 1, | ||
| 1646 | Ref::rateGroup2Comp.get_CycleIn_InputPort(0) | ||
| 1647 | ); | ||
| 1648 | Ref::rateGroupDriverComp.set_CycleOut_OutputPort( | ||
| 1649 | 2, | ||
| 1650 | Ref::rateGroup3Comp.get_CycleIn_InputPort(0) | ||
| 1651 | ); | ||
| 1652 | |||
| 1653 | // Ref | ||
| 1654 | DataProducts::dpMgr.set_productResponseOut_OutputPort( | ||
| 1655 | 0, | ||
| 1656 | Ref::SG1.get_productRecvIn_InputPort(0) | ||
| 1657 | ); | ||
| 1658 | DataProducts::dpMgr.set_productResponseOut_OutputPort( | ||
| 1659 | 1, | ||
| 1660 | Ref::dpDemo.get_productRecvIn_InputPort(0) | ||
| 1661 | ); | ||
| 1662 | Ref::SG1.set_productGetOut_OutputPort( | ||
| 1663 | 0, | ||
| 1664 | DataProducts::dpMgr.get_productGetIn_InputPort(0) | ||
| 1665 | ); | ||
| 1666 | Ref::SG1.set_productRequestOut_OutputPort( | ||
| 1667 | 0, | ||
| 1668 | DataProducts::dpMgr.get_productRequestIn_InputPort(0) | ||
| 1669 | ); | ||
| 1670 | Ref::SG1.set_productSendOut_OutputPort( | ||
| 1671 | 0, | ||
| 1672 | DataProducts::dpMgr.get_productSendIn_InputPort(0) | ||
| 1673 | ); | ||
| 1674 | Ref::blockDrv.set_BufferOut_OutputPort( | ||
| 1675 | 0, | ||
| 1676 | Ref::recvBuffComp.get_Data_InputPort(0) | ||
| 1677 | ); | ||
| 1678 | Ref::dpDemo.set_productGetOut_OutputPort( | ||
| 1679 | 0, | ||
| 1680 | DataProducts::dpMgr.get_productGetIn_InputPort(0) | ||
| 1681 | ); | ||
| 1682 | Ref::dpDemo.set_productRequestOut_OutputPort( | ||
| 1683 | 0, | ||
| 1684 | DataProducts::dpMgr.get_productRequestIn_InputPort(0) | ||
| 1685 | ); | ||
| 1686 | Ref::dpDemo.set_productSendOut_OutputPort( | ||
| 1687 | 0, | ||
| 1688 | DataProducts::dpMgr.get_productSendIn_InputPort(0) | ||
| 1689 | ); | ||
| 1690 | Ref::sendBuffComp.set_Data_OutputPort( | ||
| 1691 | 0, | ||
| 1692 | Ref::blockDrv.get_BufferIn_InputPort(0) | ||
| 1693 | ); | ||
| 1694 | Ref::wasmSeq.set_getParam_OutputPort( | ||
| 1695 | 0, | ||
| 1696 | FileHandling::prmDb.get_getPrm_InputPort(0) | ||
| 1697 | ); | ||
| 1698 | Ref::wasmSeq.set_getTlmChan_OutputPort( | ||
| 1699 | 0, | ||
| 1700 | CdhCore::tlmSend.get_TlmGet_InputPort(0) | ||
| 1701 | ); | ||
| 1702 | |||
| 1703 | // Telemetry | ||
| 1704 | CdhCore::cmdDisp.set_Tlm_OutputPort( | ||
| 1705 | 0, | ||
| 1706 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1707 | ); | ||
| 1708 | CdhCore::events.set_Tlm_OutputPort( | ||
| 1709 | 0, | ||
| 1710 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1711 | ); | ||
| 1712 | CdhCore::health.set_Tlm_OutputPort( | ||
| 1713 | 0, | ||
| 1714 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1715 | ); | ||
| 1716 | CdhCore::version.set_tlmOut_OutputPort( | ||
| 1717 | 0, | ||
| 1718 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1719 | ); | ||
| 1720 | ComCcsds::comQueue.set_Tlm_OutputPort( | ||
| 1721 | 0, | ||
| 1722 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1723 | ); | ||
| 1724 | ComCcsds::commsBufferManager.set_tlmOut_OutputPort( | ||
| 1725 | 0, | ||
| 1726 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1727 | ); | ||
| 1728 | ComCcsds::framer.set_tlmOut_OutputPort( | ||
| 1729 | 0, | ||
| 1730 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1731 | ); | ||
| 1732 | ComCcsds::spacePacketDeframer.set_tlmOut_OutputPort( | ||
| 1733 | 0, | ||
| 1734 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1735 | ); | ||
| 1736 | ComCcsds::spacePacketFramer.set_tlmOut_OutputPort( | ||
| 1737 | 0, | ||
| 1738 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1739 | ); | ||
| 1740 | ComCcsds::tcDeframer.set_tlmOut_OutputPort( | ||
| 1741 | 0, | ||
| 1742 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1743 | ); | ||
| 1744 | DataProducts::dpBufferAccumulator.set_tlmOut_OutputPort( | ||
| 1745 | 0, | ||
| 1746 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1747 | ); | ||
| 1748 | DataProducts::dpBufferManager.set_tlmOut_OutputPort( | ||
| 1749 | 0, | ||
| 1750 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1751 | ); | ||
| 1752 | DataProducts::dpCat.set_Tlm_OutputPort( | ||
| 1753 | 0, | ||
| 1754 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1755 | ); | ||
| 1756 | DataProducts::dpMgr.set_tlmOut_OutputPort( | ||
| 1757 | 0, | ||
| 1758 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1759 | ); | ||
| 1760 | DataProducts::dpWriter.set_tlmOut_OutputPort( | ||
| 1761 | 0, | ||
| 1762 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1763 | ); | ||
| 1764 | FileHandling::fileDownlink.set_tlmOut_OutputPort( | ||
| 1765 | 0, | ||
| 1766 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1767 | ); | ||
| 1768 | FileHandling::fileManager.set_tlmOut_OutputPort( | ||
| 1769 | 0, | ||
| 1770 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1771 | ); | ||
| 1772 | FileHandling::fileUplink.set_tlmOut_OutputPort( | ||
| 1773 | 0, | ||
| 1774 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1775 | ); | ||
| 1776 | Ref::SG1.set_tlmOut_OutputPort( | ||
| 1777 | 0, | ||
| 1778 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1779 | ); | ||
| 1780 | Ref::SG2.set_tlmOut_OutputPort( | ||
| 1781 | 0, | ||
| 1782 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1783 | ); | ||
| 1784 | Ref::SG3.set_tlmOut_OutputPort( | ||
| 1785 | 0, | ||
| 1786 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1787 | ); | ||
| 1788 | Ref::SG4.set_tlmOut_OutputPort( | ||
| 1789 | 0, | ||
| 1790 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1791 | ); | ||
| 1792 | Ref::SG5.set_tlmOut_OutputPort( | ||
| 1793 | 0, | ||
| 1794 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1795 | ); | ||
| 1796 | Ref::blockDrv.set_Tlm_OutputPort( | ||
| 1797 | 0, | ||
| 1798 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1799 | ); | ||
| 1800 | Ref::cmdSeq.set_tlmOut_OutputPort( | ||
| 1801 | 0, | ||
| 1802 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1803 | ); | ||
| 1804 | Ref::dpDemo.set_tlmOut_OutputPort( | ||
| 1805 | 0, | ||
| 1806 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1807 | ); | ||
| 1808 | Ref::pingRcvr.set_Tlm_OutputPort( | ||
| 1809 | 0, | ||
| 1810 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1811 | ); | ||
| 1812 | Ref::rateGroup1Comp.set_Tlm_OutputPort( | ||
| 1813 | 0, | ||
| 1814 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1815 | ); | ||
| 1816 | Ref::rateGroup2Comp.set_Tlm_OutputPort( | ||
| 1817 | 0, | ||
| 1818 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1819 | ); | ||
| 1820 | Ref::rateGroup3Comp.set_Tlm_OutputPort( | ||
| 1821 | 0, | ||
| 1822 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1823 | ); | ||
| 1824 | Ref::recvBuffComp.set_Tlm_OutputPort( | ||
| 1825 | 0, | ||
| 1826 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1827 | ); | ||
| 1828 | Ref::sendBuffComp.set_Tlm_OutputPort( | ||
| 1829 | 0, | ||
| 1830 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1831 | ); | ||
| 1832 | Ref::systemResources.set_Tlm_OutputPort( | ||
| 1833 | 0, | ||
| 1834 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1835 | ); | ||
| 1836 | Ref::typeDemo.set_tlmOut_OutputPort( | ||
| 1837 | 0, | ||
| 1838 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1839 | ); | ||
| 1840 | Ref::wasmSeq.set_tlmOut_OutputPort( | ||
| 1841 | 0, | ||
| 1842 | CdhCore::tlmSend.get_TlmRecv_InputPort(0) | ||
| 1843 | ); | ||
| 1844 | |||
| 1845 | // TextEvents | ||
| 1846 | CdhCore::cmdDisp.set_LogText_OutputPort( | ||
| 1847 | 0, | ||
| 1848 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1849 | ); | ||
| 1850 | CdhCore::events.set_LogText_OutputPort( | ||
| 1851 | 0, | ||
| 1852 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1853 | ); | ||
| 1854 | CdhCore::fatalAdapter.set_LogText_OutputPort( | ||
| 1855 | 0, | ||
| 1856 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1857 | ); | ||
| 1858 | CdhCore::health.set_LogText_OutputPort( | ||
| 1859 | 0, | ||
| 1860 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1861 | ); | ||
| 1862 | CdhCore::tlmSend.set_eventOutText_OutputPort( | ||
| 1863 | 0, | ||
| 1864 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1865 | ); | ||
| 1866 | CdhCore::version.set_logTextOut_OutputPort( | ||
| 1867 | 0, | ||
| 1868 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1869 | ); | ||
| 1870 | ComCcsds::apidManager.set_logTextOut_OutputPort( | ||
| 1871 | 0, | ||
| 1872 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1873 | ); | ||
| 1874 | ComCcsds::comQueue.set_LogText_OutputPort( | ||
| 1875 | 0, | ||
| 1876 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1877 | ); | ||
| 1878 | ComCcsds::commsBufferManager.set_textEventOut_OutputPort( | ||
| 1879 | 0, | ||
| 1880 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1881 | ); | ||
| 1882 | ComCcsds::fprimeRouter.set_logTextOut_OutputPort( | ||
| 1883 | 0, | ||
| 1884 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1885 | ); | ||
| 1886 | ComCcsds::frameAccumulator.set_logTextOut_OutputPort( | ||
| 1887 | 0, | ||
| 1888 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1889 | ); | ||
| 1890 | ComCcsds::framer.set_logTextOut_OutputPort( | ||
| 1891 | 0, | ||
| 1892 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1893 | ); | ||
| 1894 | ComCcsds::spacePacketDeframer.set_logTextOut_OutputPort( | ||
| 1895 | 0, | ||
| 1896 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1897 | ); | ||
| 1898 | ComCcsds::spacePacketFramer.set_logTextOut_OutputPort( | ||
| 1899 | 0, | ||
| 1900 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1901 | ); | ||
| 1902 | ComCcsds::tcDeframer.set_logTextOut_OutputPort( | ||
| 1903 | 0, | ||
| 1904 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1905 | ); | ||
| 1906 | DataProducts::dpBufferAccumulator.set_eventOutText_OutputPort( | ||
| 1907 | 0, | ||
| 1908 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1909 | ); | ||
| 1910 | DataProducts::dpBufferManager.set_textEventOut_OutputPort( | ||
| 1911 | 0, | ||
| 1912 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1913 | ); | ||
| 1914 | DataProducts::dpCat.set_LogText_OutputPort( | ||
| 1915 | 0, | ||
| 1916 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1917 | ); | ||
| 1918 | DataProducts::dpMgr.set_textEventOut_OutputPort( | ||
| 1919 | 0, | ||
| 1920 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1921 | ); | ||
| 1922 | DataProducts::dpWriter.set_textEventOut_OutputPort( | ||
| 1923 | 0, | ||
| 1924 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1925 | ); | ||
| 1926 | FileHandling::fileDownlink.set_textEventOut_OutputPort( | ||
| 1927 | 0, | ||
| 1928 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1929 | ); | ||
| 1930 | FileHandling::fileManager.set_LogText_OutputPort( | ||
| 1931 | 0, | ||
| 1932 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1933 | ); | ||
| 1934 | FileHandling::fileUplink.set_LogText_OutputPort( | ||
| 1935 | 0, | ||
| 1936 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1937 | ); | ||
| 1938 | FileHandling::prmDb.set_LogText_OutputPort( | ||
| 1939 | 0, | ||
| 1940 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1941 | ); | ||
| 1942 | Ref::SG1.set_logTextOut_OutputPort( | ||
| 1943 | 0, | ||
| 1944 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1945 | ); | ||
| 1946 | Ref::SG2.set_logTextOut_OutputPort( | ||
| 1947 | 0, | ||
| 1948 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1949 | ); | ||
| 1950 | Ref::SG3.set_logTextOut_OutputPort( | ||
| 1951 | 0, | ||
| 1952 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1953 | ); | ||
| 1954 | Ref::SG4.set_logTextOut_OutputPort( | ||
| 1955 | 0, | ||
| 1956 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1957 | ); | ||
| 1958 | Ref::SG5.set_logTextOut_OutputPort( | ||
| 1959 | 0, | ||
| 1960 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1961 | ); | ||
| 1962 | Ref::cmdSeq.set_LogText_OutputPort( | ||
| 1963 | 0, | ||
| 1964 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1965 | ); | ||
| 1966 | Ref::dpDemo.set_logTextOut_OutputPort( | ||
| 1967 | 0, | ||
| 1968 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1969 | ); | ||
| 1970 | Ref::pingRcvr.set_LogText_OutputPort( | ||
| 1971 | 0, | ||
| 1972 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1973 | ); | ||
| 1974 | Ref::rateGroup1Comp.set_LogText_OutputPort( | ||
| 1975 | 0, | ||
| 1976 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1977 | ); | ||
| 1978 | Ref::rateGroup2Comp.set_LogText_OutputPort( | ||
| 1979 | 0, | ||
| 1980 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1981 | ); | ||
| 1982 | Ref::rateGroup3Comp.set_LogText_OutputPort( | ||
| 1983 | 0, | ||
| 1984 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1985 | ); | ||
| 1986 | Ref::recvBuffComp.set_LogText_OutputPort( | ||
| 1987 | 0, | ||
| 1988 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1989 | ); | ||
| 1990 | Ref::sendBuffComp.set_LogText_OutputPort( | ||
| 1991 | 0, | ||
| 1992 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1993 | ); | ||
| 1994 | Ref::systemResources.set_LogText_OutputPort( | ||
| 1995 | 0, | ||
| 1996 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 1997 | ); | ||
| 1998 | Ref::typeDemo.set_logTextOut_OutputPort( | ||
| 1999 | 0, | ||
| 2000 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 2001 | ); | ||
| 2002 | Ref::wasmSeq.set_logTextOut_OutputPort( | ||
| 2003 | 0, | ||
| 2004 | CdhCore::textLogger.get_TextLogger_InputPort(0) | ||
| 2005 | ); | ||
| 2006 | |||
| 2007 | // Time | ||
| 2008 | CdhCore::cmdDisp.set_Time_OutputPort( | ||
| 2009 | 0, | ||
| 2010 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2011 | ); | ||
| 2012 | CdhCore::events.set_Time_OutputPort( | ||
| 2013 | 0, | ||
| 2014 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2015 | ); | ||
| 2016 | CdhCore::fatalAdapter.set_Time_OutputPort( | ||
| 2017 | 0, | ||
| 2018 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2019 | ); | ||
| 2020 | CdhCore::health.set_Time_OutputPort( | ||
| 2021 | 0, | ||
| 2022 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2023 | ); | ||
| 2024 | CdhCore::tlmSend.set_timeCaller_OutputPort( | ||
| 2025 | 0, | ||
| 2026 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2027 | ); | ||
| 2028 | CdhCore::version.set_timeCaller_OutputPort( | ||
| 2029 | 0, | ||
| 2030 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2031 | ); | ||
| 2032 | ComCcsds::apidManager.set_timeCaller_OutputPort( | ||
| 2033 | 0, | ||
| 2034 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2035 | ); | ||
| 2036 | ComCcsds::comQueue.set_Time_OutputPort( | ||
| 2037 | 0, | ||
| 2038 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2039 | ); | ||
| 2040 | ComCcsds::commsBufferManager.set_timeCaller_OutputPort( | ||
| 2041 | 0, | ||
| 2042 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2043 | ); | ||
| 2044 | ComCcsds::fprimeRouter.set_timeCaller_OutputPort( | ||
| 2045 | 0, | ||
| 2046 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2047 | ); | ||
| 2048 | ComCcsds::frameAccumulator.set_timeCaller_OutputPort( | ||
| 2049 | 0, | ||
| 2050 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2051 | ); | ||
| 2052 | ComCcsds::framer.set_timeCaller_OutputPort( | ||
| 2053 | 0, | ||
| 2054 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2055 | ); | ||
| 2056 | ComCcsds::spacePacketDeframer.set_timeCaller_OutputPort( | ||
| 2057 | 0, | ||
| 2058 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2059 | ); | ||
| 2060 | ComCcsds::spacePacketFramer.set_timeCaller_OutputPort( | ||
| 2061 | 0, | ||
| 2062 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2063 | ); | ||
| 2064 | ComCcsds::tcDeframer.set_timeCaller_OutputPort( | ||
| 2065 | 0, | ||
| 2066 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2067 | ); | ||
| 2068 | DataProducts::dpBufferAccumulator.set_timeCaller_OutputPort( | ||
| 2069 | 0, | ||
| 2070 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2071 | ); | ||
| 2072 | DataProducts::dpBufferManager.set_timeCaller_OutputPort( | ||
| 2073 | 0, | ||
| 2074 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2075 | ); | ||
| 2076 | DataProducts::dpCat.set_Time_OutputPort( | ||
| 2077 | 0, | ||
| 2078 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2079 | ); | ||
| 2080 | DataProducts::dpMgr.set_timeGetOut_OutputPort( | ||
| 2081 | 0, | ||
| 2082 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2083 | ); | ||
| 2084 | DataProducts::dpWriter.set_timeGetOut_OutputPort( | ||
| 2085 | 0, | ||
| 2086 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2087 | ); | ||
| 2088 | FileHandling::fileDownlink.set_timeCaller_OutputPort( | ||
| 2089 | 0, | ||
| 2090 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2091 | ); | ||
| 2092 | FileHandling::fileManager.set_timeCaller_OutputPort( | ||
| 2093 | 0, | ||
| 2094 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2095 | ); | ||
| 2096 | FileHandling::fileUplink.set_timeCaller_OutputPort( | ||
| 2097 | 0, | ||
| 2098 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2099 | ); | ||
| 2100 | FileHandling::prmDb.set_Time_OutputPort( | ||
| 2101 | 0, | ||
| 2102 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2103 | ); | ||
| 2104 | Ref::SG1.set_timeCaller_OutputPort( | ||
| 2105 | 0, | ||
| 2106 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2107 | ); | ||
| 2108 | Ref::SG2.set_timeCaller_OutputPort( | ||
| 2109 | 0, | ||
| 2110 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2111 | ); | ||
| 2112 | Ref::SG3.set_timeCaller_OutputPort( | ||
| 2113 | 0, | ||
| 2114 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2115 | ); | ||
| 2116 | Ref::SG4.set_timeCaller_OutputPort( | ||
| 2117 | 0, | ||
| 2118 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2119 | ); | ||
| 2120 | Ref::SG5.set_timeCaller_OutputPort( | ||
| 2121 | 0, | ||
| 2122 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2123 | ); | ||
| 2124 | Ref::blockDrv.set_Time_OutputPort( | ||
| 2125 | 0, | ||
| 2126 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2127 | ); | ||
| 2128 | Ref::cmdSeq.set_timeCaller_OutputPort( | ||
| 2129 | 0, | ||
| 2130 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2131 | ); | ||
| 2132 | Ref::dpDemo.set_timeCaller_OutputPort( | ||
| 2133 | 0, | ||
| 2134 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2135 | ); | ||
| 2136 | Ref::pingRcvr.set_Time_OutputPort( | ||
| 2137 | 0, | ||
| 2138 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2139 | ); | ||
| 2140 | Ref::rateGroup1Comp.set_Time_OutputPort( | ||
| 2141 | 0, | ||
| 2142 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2143 | ); | ||
| 2144 | Ref::rateGroup2Comp.set_Time_OutputPort( | ||
| 2145 | 0, | ||
| 2146 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2147 | ); | ||
| 2148 | Ref::rateGroup3Comp.set_Time_OutputPort( | ||
| 2149 | 0, | ||
| 2150 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2151 | ); | ||
| 2152 | Ref::recvBuffComp.set_Time_OutputPort( | ||
| 2153 | 0, | ||
| 2154 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2155 | ); | ||
| 2156 | Ref::sendBuffComp.set_Time_OutputPort( | ||
| 2157 | 0, | ||
| 2158 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2159 | ); | ||
| 2160 | Ref::systemResources.set_Time_OutputPort( | ||
| 2161 | 0, | ||
| 2162 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2163 | ); | ||
| 2164 | Ref::typeDemo.set_timeCaller_OutputPort( | ||
| 2165 | 0, | ||
| 2166 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2167 | ); | ||
| 2168 | Ref::wasmSeq.set_timeCaller_OutputPort( | ||
| 2169 | 0, | ||
| 2170 | Ref::posixTime.get_timeGetPort_InputPort(0) | ||
| 2171 | ); | ||
| 2172 | |||
| 2173 | // Uplink | ||
| 2174 | ComCcsds::fprimeRouter.set_dataReturnOut_OutputPort( | ||
| 2175 | 0, | ||
| 2176 | ComCcsds::spacePacketDeframer.get_dataReturnIn_InputPort(0) | ||
| 2177 | ); | ||
| 2178 | ComCcsds::frameAccumulator.set_bufferAllocate_OutputPort( | ||
| 2179 | 0, | ||
| 2180 | ComCcsds::commsBufferManager.get_bufferGetCallee_InputPort(0) | ||
| 2181 | ); | ||
| 2182 | ComCcsds::frameAccumulator.set_bufferDeallocate_OutputPort( | ||
| 2183 | 0, | ||
| 2184 | ComCcsds::commsBufferManager.get_bufferSendIn_InputPort(0) | ||
| 2185 | ); | ||
| 2186 | ComCcsds::frameAccumulator.set_dataOut_OutputPort( | ||
| 2187 | 0, | ||
| 2188 | ComCcsds::tcDeframer.get_dataIn_InputPort(0) | ||
| 2189 | ); | ||
| 2190 | ComCcsds::spacePacketDeframer.set_dataOut_OutputPort( | ||
| 2191 | 0, | ||
| 2192 | ComCcsds::fprimeRouter.get_dataIn_InputPort(0) | ||
| 2193 | ); | ||
| 2194 | ComCcsds::spacePacketDeframer.set_dataReturnOut_OutputPort( | ||
| 2195 | 0, | ||
| 2196 | ComCcsds::tcDeframer.get_dataReturnIn_InputPort(0) | ||
| 2197 | ); | ||
| 2198 | ComCcsds::spacePacketDeframer.set_validateApidSeqCount_OutputPort( | ||
| 2199 | 0, | ||
| 2200 | ComCcsds::apidManager.get_validateApidSeqCountIn_InputPort(0) | ||
| 2201 | ); | ||
| 2202 | ComCcsds::tcDeframer.set_dataOut_OutputPort( | ||
| 2203 | 0, | ||
| 2204 | ComCcsds::spacePacketDeframer.get_dataIn_InputPort(0) | ||
| 2205 | ); | ||
| 2206 | ComCcsds::tcDeframer.set_dataReturnOut_OutputPort( | ||
| 2207 | 0, | ||
| 2208 | ComCcsds::frameAccumulator.get_dataReturnIn_InputPort(0) | ||
| 2209 | ); | ||
| 2210 | |||
| 2211 | #endif | ||
| 2212 | |||
| 2213 | 1 | } | |
| 2214 | |||
| 2215 | 1 | void regCommands() { | |
| 2216 | 1 | CdhCore::cmdDisp.regCommands(); | |
| 2217 | 1 | CdhCore::events.regCommands(); | |
| 2218 | 1 | CdhCore::health.regCommands(); | |
| 2219 | 1 | CdhCore::version.regCommands(); | |
| 2220 | 1 | ComCcsds::comQueue.regCommands(); | |
| 2221 | 1 | DataProducts::dpBufferAccumulator.regCommands(); | |
| 2222 | 1 | DataProducts::dpCat.regCommands(); | |
| 2223 | 1 | DataProducts::dpMgr.regCommands(); | |
| 2224 | 1 | DataProducts::dpWriter.regCommands(); | |
| 2225 | 1 | FileHandling::fileDownlink.regCommands(); | |
| 2226 | 1 | FileHandling::fileManager.regCommands(); | |
| 2227 | 1 | FileHandling::prmDb.regCommands(); | |
| 2228 | 1 | Ref::SG1.regCommands(); | |
| 2229 | 1 | Ref::SG2.regCommands(); | |
| 2230 | 1 | Ref::SG3.regCommands(); | |
| 2231 | 1 | Ref::SG4.regCommands(); | |
| 2232 | 1 | Ref::SG5.regCommands(); | |
| 2233 | 1 | Ref::cmdSeq.regCommands(); | |
| 2234 | 1 | Ref::dpDemo.regCommands(); | |
| 2235 | 1 | Ref::pingRcvr.regCommands(); | |
| 2236 | 1 | Ref::recvBuffComp.regCommands(); | |
| 2237 | 1 | Ref::sendBuffComp.regCommands(); | |
| 2238 | 1 | Ref::systemResources.regCommands(); | |
| 2239 | 1 | Ref::typeDemo.regCommands(); | |
| 2240 | 1 | Ref::wasmSeq.regCommands(); | |
| 2241 | 1 | } | |
| 2242 | |||
| 2243 | 1 | void readParameters() { | |
| 2244 | { | ||
| 2245 | using namespace FileHandling; | ||
| 2246 | |||
| 2247 | 1 | FileHandling::prmDb.readParamFile(); | |
| 2248 | } | ||
| 2249 | 1 | } | |
| 2250 | |||
| 2251 | 1 | void loadParameters() { | |
| 2252 | 1 | Ref::recvBuffComp.loadParameters(); | |
| 2253 | 1 | Ref::sendBuffComp.loadParameters(); | |
| 2254 | 1 | Ref::typeDemo.loadParameters(); | |
| 2255 | 1 | Ref::wasmSeq.loadParameters(); | |
| 2256 | 1 | } | |
| 2257 | |||
| 2258 | 1 | void startTasks(const TopologyState& state) { | |
| 2259 | 1 | CdhCore::cmdDisp.start( | |
| 2260 | static_cast<FwTaskPriorityType>(Priorities::CdhCore_cmdDisp), | ||
| 2261 | static_cast<Os::Task::ParamType>(StackSizes::CdhCore_cmdDisp), | ||
| 2262 | static_cast<Os::Task::ParamType>(CPUs::CdhCore_cmdDisp), | ||
| 2263 | static_cast<Os::Task::ParamType>(TaskIds::CdhCore_cmdDisp) | ||
| 2264 | ); | ||
| 2265 | 1 | CdhCore::events.start( | |
| 2266 | static_cast<FwTaskPriorityType>(Priorities::CdhCore_events), | ||
| 2267 | static_cast<Os::Task::ParamType>(StackSizes::CdhCore_events), | ||
| 2268 | static_cast<Os::Task::ParamType>(CPUs::CdhCore_events), | ||
| 2269 | static_cast<Os::Task::ParamType>(TaskIds::CdhCore_events) | ||
| 2270 | ); | ||
| 2271 | 1 | CdhCore::tlmSend.start( | |
| 2272 | static_cast<FwTaskPriorityType>(Priorities::CdhCore_tlmSend), | ||
| 2273 | static_cast<Os::Task::ParamType>(StackSizes::CdhCore_tlmSend), | ||
| 2274 | static_cast<Os::Task::ParamType>(CPUs::CdhCore_tlmSend), | ||
| 2275 | static_cast<Os::Task::ParamType>(TaskIds::CdhCore_tlmSend) | ||
| 2276 | ); | ||
| 2277 | { | ||
| 2278 | using namespace CdhCore; | ||
| 2279 | |||
| 2280 | // Startup TLM and EVENTS | ||
| 2281 | 1 | CdhCore::version.start(); | |
| 2282 | } | ||
| 2283 | 1 | ComCcsds::aggregator.start( | |
| 2284 | static_cast<FwTaskPriorityType>(Priorities::ComCcsds_aggregator), | ||
| 2285 | static_cast<Os::Task::ParamType>(StackSizes::ComCcsds_aggregator), | ||
| 2286 | static_cast<Os::Task::ParamType>(CPUs::ComCcsds_aggregator), | ||
| 2287 | static_cast<Os::Task::ParamType>(TaskIds::ComCcsds_aggregator) | ||
| 2288 | ); | ||
| 2289 | 1 | ComCcsds::comQueue.start( | |
| 2290 | static_cast<FwTaskPriorityType>(Priorities::ComCcsds_comQueue), | ||
| 2291 | static_cast<Os::Task::ParamType>(StackSizes::ComCcsds_comQueue), | ||
| 2292 | static_cast<Os::Task::ParamType>(CPUs::ComCcsds_comQueue), | ||
| 2293 | static_cast<Os::Task::ParamType>(TaskIds::ComCcsds_comQueue) | ||
| 2294 | ); | ||
| 2295 | 1 | DataProducts::dpBufferAccumulator.start( | |
| 2296 | static_cast<FwTaskPriorityType>(Priorities::DataProducts_dpBufferAccumulator), | ||
| 2297 | static_cast<Os::Task::ParamType>(StackSizes::DataProducts_dpBufferAccumulator), | ||
| 2298 | static_cast<Os::Task::ParamType>(CPUs::DataProducts_dpBufferAccumulator), | ||
| 2299 | static_cast<Os::Task::ParamType>(TaskIds::DataProducts_dpBufferAccumulator) | ||
| 2300 | ); | ||
| 2301 | 1 | DataProducts::dpCat.start( | |
| 2302 | static_cast<FwTaskPriorityType>(Priorities::DataProducts_dpCat), | ||
| 2303 | static_cast<Os::Task::ParamType>(StackSizes::DataProducts_dpCat), | ||
| 2304 | static_cast<Os::Task::ParamType>(CPUs::DataProducts_dpCat), | ||
| 2305 | static_cast<Os::Task::ParamType>(TaskIds::DataProducts_dpCat) | ||
| 2306 | ); | ||
| 2307 | 1 | DataProducts::dpMgr.start( | |
| 2308 | static_cast<FwTaskPriorityType>(Priorities::DataProducts_dpMgr), | ||
| 2309 | static_cast<Os::Task::ParamType>(StackSizes::DataProducts_dpMgr), | ||
| 2310 | static_cast<Os::Task::ParamType>(CPUs::DataProducts_dpMgr), | ||
| 2311 | static_cast<Os::Task::ParamType>(TaskIds::DataProducts_dpMgr) | ||
| 2312 | ); | ||
| 2313 | 1 | DataProducts::dpWriter.start( | |
| 2314 | static_cast<FwTaskPriorityType>(Priorities::DataProducts_dpWriter), | ||
| 2315 | static_cast<Os::Task::ParamType>(StackSizes::DataProducts_dpWriter), | ||
| 2316 | static_cast<Os::Task::ParamType>(CPUs::DataProducts_dpWriter), | ||
| 2317 | static_cast<Os::Task::ParamType>(TaskIds::DataProducts_dpWriter) | ||
| 2318 | ); | ||
| 2319 | 1 | FileHandling::fileDownlink.start( | |
| 2320 | static_cast<FwTaskPriorityType>(Priorities::FileHandling_fileDownlink), | ||
| 2321 | static_cast<Os::Task::ParamType>(StackSizes::FileHandling_fileDownlink), | ||
| 2322 | static_cast<Os::Task::ParamType>(CPUs::FileHandling_fileDownlink), | ||
| 2323 | static_cast<Os::Task::ParamType>(TaskIds::FileHandling_fileDownlink) | ||
| 2324 | ); | ||
| 2325 | 1 | FileHandling::fileManager.start( | |
| 2326 | static_cast<FwTaskPriorityType>(Priorities::FileHandling_fileManager), | ||
| 2327 | static_cast<Os::Task::ParamType>(StackSizes::FileHandling_fileManager), | ||
| 2328 | static_cast<Os::Task::ParamType>(CPUs::FileHandling_fileManager), | ||
| 2329 | static_cast<Os::Task::ParamType>(TaskIds::FileHandling_fileManager) | ||
| 2330 | ); | ||
| 2331 | 1 | FileHandling::fileUplink.start( | |
| 2332 | static_cast<FwTaskPriorityType>(Priorities::FileHandling_fileUplink), | ||
| 2333 | static_cast<Os::Task::ParamType>(StackSizes::FileHandling_fileUplink), | ||
| 2334 | static_cast<Os::Task::ParamType>(CPUs::FileHandling_fileUplink), | ||
| 2335 | static_cast<Os::Task::ParamType>(TaskIds::FileHandling_fileUplink) | ||
| 2336 | ); | ||
| 2337 | 1 | FileHandling::prmDb.start( | |
| 2338 | static_cast<FwTaskPriorityType>(Priorities::FileHandling_prmDb), | ||
| 2339 | static_cast<Os::Task::ParamType>(StackSizes::FileHandling_prmDb), | ||
| 2340 | static_cast<Os::Task::ParamType>(CPUs::FileHandling_prmDb), | ||
| 2341 | static_cast<Os::Task::ParamType>(TaskIds::FileHandling_prmDb) | ||
| 2342 | ); | ||
| 2343 | 1 | Ref::blockDrv.start( | |
| 2344 | static_cast<FwTaskPriorityType>(Priorities::Ref_blockDrv), | ||
| 2345 | static_cast<Os::Task::ParamType>(StackSizes::Ref_blockDrv), | ||
| 2346 | Os::Task::TASK_DEFAULT, // Default CPU | ||
| 2347 | static_cast<Os::Task::ParamType>(TaskIds::Ref_blockDrv) | ||
| 2348 | ); | ||
| 2349 | 1 | Ref::cmdSeq.start( | |
| 2350 | static_cast<FwTaskPriorityType>(Priorities::Ref_cmdSeq), | ||
| 2351 | static_cast<Os::Task::ParamType>(StackSizes::Ref_cmdSeq), | ||
| 2352 | Os::Task::TASK_DEFAULT, // Default CPU | ||
| 2353 | static_cast<Os::Task::ParamType>(TaskIds::Ref_cmdSeq) | ||
| 2354 | ); | ||
| 2355 | 1 | Ref::dpDemo.start( | |
| 2356 | static_cast<FwTaskPriorityType>(Priorities::Ref_dpDemo), | ||
| 2357 | static_cast<Os::Task::ParamType>(StackSizes::Ref_dpDemo), | ||
| 2358 | Os::Task::TASK_DEFAULT, // Default CPU | ||
| 2359 | static_cast<Os::Task::ParamType>(TaskIds::Ref_dpDemo) | ||
| 2360 | ); | ||
| 2361 | 1 | Ref::pingRcvr.start( | |
| 2362 | static_cast<FwTaskPriorityType>(Priorities::Ref_pingRcvr), | ||
| 2363 | static_cast<Os::Task::ParamType>(StackSizes::Ref_pingRcvr), | ||
| 2364 | Os::Task::TASK_DEFAULT, // Default CPU | ||
| 2365 | static_cast<Os::Task::ParamType>(TaskIds::Ref_pingRcvr) | ||
| 2366 | ); | ||
| 2367 | 1 | Ref::rateGroup1Comp.start( | |
| 2368 | static_cast<FwTaskPriorityType>(Priorities::Ref_rateGroup1Comp), | ||
| 2369 | static_cast<Os::Task::ParamType>(StackSizes::Ref_rateGroup1Comp), | ||
| 2370 | Os::Task::TASK_DEFAULT, // Default CPU | ||
| 2371 | static_cast<Os::Task::ParamType>(TaskIds::Ref_rateGroup1Comp) | ||
| 2372 | ); | ||
| 2373 | 1 | Ref::rateGroup2Comp.start( | |
| 2374 | static_cast<FwTaskPriorityType>(Priorities::Ref_rateGroup2Comp), | ||
| 2375 | static_cast<Os::Task::ParamType>(StackSizes::Ref_rateGroup2Comp), | ||
| 2376 | Os::Task::TASK_DEFAULT, // Default CPU | ||
| 2377 | static_cast<Os::Task::ParamType>(TaskIds::Ref_rateGroup2Comp) | ||
| 2378 | ); | ||
| 2379 | 1 | Ref::rateGroup3Comp.start( | |
| 2380 | static_cast<FwTaskPriorityType>(Priorities::Ref_rateGroup3Comp), | ||
| 2381 | static_cast<Os::Task::ParamType>(StackSizes::Ref_rateGroup3Comp), | ||
| 2382 | Os::Task::TASK_DEFAULT, // Default CPU | ||
| 2383 | static_cast<Os::Task::ParamType>(TaskIds::Ref_rateGroup3Comp) | ||
| 2384 | ); | ||
| 2385 | 1 | Ref::wasmSeq.start( | |
| 2386 | static_cast<FwTaskPriorityType>(Priorities::Ref_wasmSeq), | ||
| 2387 | static_cast<Os::Task::ParamType>(StackSizes::Ref_wasmSeq), | ||
| 2388 | Os::Task::TASK_DEFAULT, // Default CPU | ||
| 2389 | static_cast<Os::Task::ParamType>(TaskIds::Ref_wasmSeq) | ||
| 2390 | ); | ||
| 2391 | 1 | } | |
| 2392 | |||
| 2393 | 1 | void stopTasks(const TopologyState& state) { | |
| 2394 | 1 | CdhCore::cmdDisp.exit(); | |
| 2395 | 1 | CdhCore::events.exit(); | |
| 2396 | 1 | CdhCore::tlmSend.exit(); | |
| 2397 | 1 | ComCcsds::aggregator.exit(); | |
| 2398 | 1 | ComCcsds::comQueue.exit(); | |
| 2399 | 1 | DataProducts::dpBufferAccumulator.exit(); | |
| 2400 | 1 | DataProducts::dpCat.exit(); | |
| 2401 | 1 | DataProducts::dpMgr.exit(); | |
| 2402 | 1 | DataProducts::dpWriter.exit(); | |
| 2403 | 1 | FileHandling::fileDownlink.exit(); | |
| 2404 | 1 | FileHandling::fileManager.exit(); | |
| 2405 | 1 | FileHandling::fileUplink.exit(); | |
| 2406 | 1 | FileHandling::prmDb.exit(); | |
| 2407 | 1 | Ref::blockDrv.exit(); | |
| 2408 | 1 | Ref::cmdSeq.exit(); | |
| 2409 | 1 | Ref::dpDemo.exit(); | |
| 2410 | 1 | Ref::pingRcvr.exit(); | |
| 2411 | 1 | Ref::rateGroup1Comp.exit(); | |
| 2412 | 1 | Ref::rateGroup2Comp.exit(); | |
| 2413 | 1 | Ref::rateGroup3Comp.exit(); | |
| 2414 | 1 | Ref::wasmSeq.exit(); | |
| 2415 | 1 | } | |
| 2416 | |||
| 2417 | 1 | void freeThreads(const TopologyState& state) { | |
| 2418 | 1 | (void) CdhCore::cmdDisp.ActiveComponentBase::join(); | |
| 2419 | 1 | (void) CdhCore::events.ActiveComponentBase::join(); | |
| 2420 | 1 | (void) CdhCore::tlmSend.ActiveComponentBase::join(); | |
| 2421 | 1 | (void) ComCcsds::aggregator.ActiveComponentBase::join(); | |
| 2422 | 1 | (void) ComCcsds::comQueue.ActiveComponentBase::join(); | |
| 2423 | 1 | (void) DataProducts::dpBufferAccumulator.ActiveComponentBase::join(); | |
| 2424 | 1 | (void) DataProducts::dpCat.ActiveComponentBase::join(); | |
| 2425 | 1 | (void) DataProducts::dpMgr.ActiveComponentBase::join(); | |
| 2426 | 1 | (void) DataProducts::dpWriter.ActiveComponentBase::join(); | |
| 2427 | 1 | (void) FileHandling::fileDownlink.ActiveComponentBase::join(); | |
| 2428 | 1 | (void) FileHandling::fileManager.ActiveComponentBase::join(); | |
| 2429 | 1 | (void) FileHandling::fileUplink.ActiveComponentBase::join(); | |
| 2430 | 1 | (void) FileHandling::prmDb.ActiveComponentBase::join(); | |
| 2431 | 1 | (void) Ref::blockDrv.ActiveComponentBase::join(); | |
| 2432 | 1 | (void) Ref::cmdSeq.ActiveComponentBase::join(); | |
| 2433 | 1 | (void) Ref::dpDemo.ActiveComponentBase::join(); | |
| 2434 | 1 | (void) Ref::pingRcvr.ActiveComponentBase::join(); | |
| 2435 | 1 | (void) Ref::rateGroup1Comp.ActiveComponentBase::join(); | |
| 2436 | 1 | (void) Ref::rateGroup2Comp.ActiveComponentBase::join(); | |
| 2437 | 1 | (void) Ref::rateGroup3Comp.ActiveComponentBase::join(); | |
| 2438 | 1 | (void) Ref::wasmSeq.ActiveComponentBase::join(); | |
| 2439 | 1 | } | |
| 2440 | |||
| 2441 | 1 | void tearDownComponents(const TopologyState& state) { | |
| 2442 | { | ||
| 2443 | using namespace ComCcsds; | ||
| 2444 | |||
| 2445 | 1 | ComCcsds::aggregator.cleanup(); | |
| 2446 | } | ||
| 2447 | { | ||
| 2448 | using namespace ComCcsds; | ||
| 2449 | |||
| 2450 | 1 | ComCcsds::comQueue.cleanup(); | |
| 2451 | } | ||
| 2452 | { | ||
| 2453 | using namespace ComCcsds; | ||
| 2454 | using namespace ConfigObjects::ComCcsds_commsBufferManager; | ||
| 2455 | |||
| 2456 | 1 | ComCcsds::commsBufferManager.cleanup(); | |
| 2457 | } | ||
| 2458 | { | ||
| 2459 | using namespace ComCcsds; | ||
| 2460 | using namespace ConfigObjects::ComCcsds_frameAccumulator; | ||
| 2461 | |||
| 2462 | 1 | ComCcsds::frameAccumulator.cleanup(); | |
| 2463 | } | ||
| 2464 | { | ||
| 2465 | using namespace DataProducts; | ||
| 2466 | |||
| 2467 | 1 | DataProducts::dpBufferAccumulator.deallocateQueue(DataProducts::Allocation::memAllocator); | |
| 2468 | } | ||
| 2469 | { | ||
| 2470 | using namespace DataProducts; | ||
| 2471 | using namespace ConfigObjects::DataProducts_dpBufferManager; | ||
| 2472 | |||
| 2473 | 1 | DataProducts::dpCat.shutdown(); | |
| 2474 | 1 | DataProducts::dpBufferManager.cleanup(); | |
| 2475 | } | ||
| 2476 | 1 | } | |
| 2477 | |||
| 2478 | 1 | void deinitComponents(const TopologyState& state) { | |
| 2479 | 1 | CdhCore::cmdDisp.deinit(); | |
| 2480 | 1 | CdhCore::events.deinit(); | |
| 2481 | 1 | CdhCore::fatalAdapter.deinit(); | |
| 2482 | 1 | CdhCore::fatalHandler.deinit(); | |
| 2483 | 1 | CdhCore::health.deinit(); | |
| 2484 | 1 | CdhCore::textLogger.deinit(); | |
| 2485 | 1 | CdhCore::tlmSend.deinit(); | |
| 2486 | 1 | CdhCore::version.deinit(); | |
| 2487 | 1 | ComCcsds::aggregator.deinit(); | |
| 2488 | 1 | ComCcsds::apidManager.deinit(); | |
| 2489 | 1 | ComCcsds::comQueue.deinit(); | |
| 2490 | 1 | ComCcsds::comStub.deinit(); | |
| 2491 | 1 | ComCcsds::commsBufferManager.deinit(); | |
| 2492 | 1 | ComCcsds::fprimeRouter.deinit(); | |
| 2493 | 1 | ComCcsds::frameAccumulator.deinit(); | |
| 2494 | 1 | ComCcsds::framer.deinit(); | |
| 2495 | 1 | ComCcsds::spacePacketDeframer.deinit(); | |
| 2496 | 1 | ComCcsds::spacePacketFramer.deinit(); | |
| 2497 | 1 | ComCcsds::tcDeframer.deinit(); | |
| 2498 | 1 | DataProducts::dpBufferAccumulator.deinit(); | |
| 2499 | 1 | DataProducts::dpBufferManager.deinit(); | |
| 2500 | 1 | DataProducts::dpCat.deinit(); | |
| 2501 | 1 | DataProducts::dpMgr.deinit(); | |
| 2502 | 1 | DataProducts::dpWriter.deinit(); | |
| 2503 | 1 | FileHandling::fileDownlink.deinit(); | |
| 2504 | 1 | FileHandling::fileManager.deinit(); | |
| 2505 | 1 | FileHandling::fileUplink.deinit(); | |
| 2506 | 1 | FileHandling::prmDb.deinit(); | |
| 2507 | 1 | Ref::SG1.deinit(); | |
| 2508 | 1 | Ref::SG2.deinit(); | |
| 2509 | 1 | Ref::SG3.deinit(); | |
| 2510 | 1 | Ref::SG4.deinit(); | |
| 2511 | 1 | Ref::SG5.deinit(); | |
| 2512 | 1 | Ref::blockDrv.deinit(); | |
| 2513 | 1 | Ref::cmdSeq.deinit(); | |
| 2514 | 1 | Ref::comDriver.deinit(); | |
| 2515 | 1 | Ref::dpDemo.deinit(); | |
| 2516 | 1 | Ref::linuxTimer.deinit(); | |
| 2517 | 1 | Ref::pingRcvr.deinit(); | |
| 2518 | 1 | Ref::posixTime.deinit(); | |
| 2519 | 1 | Ref::rateGroup1Comp.deinit(); | |
| 2520 | 1 | Ref::rateGroup2Comp.deinit(); | |
| 2521 | 1 | Ref::rateGroup3Comp.deinit(); | |
| 2522 | 1 | Ref::rateGroupDriverComp.deinit(); | |
| 2523 | 1 | Ref::recvBuffComp.deinit(); | |
| 2524 | 1 | Ref::sendBuffComp.deinit(); | |
| 2525 | 1 | Ref::systemResources.deinit(); | |
| 2526 | 1 | Ref::typeDemo.deinit(); | |
| 2527 | 1 | Ref::wasmSeq.deinit(); | |
| 2528 | 1 | } | |
| 2529 | |||
| 2530 | // ---------------------------------------------------------------------- | ||
| 2531 | // Setup and teardown functions | ||
| 2532 | // ---------------------------------------------------------------------- | ||
| 2533 | |||
| 2534 | ✗ | void setup(const TopologyState& state) { | |
| 2535 | ✗ | initComponents(state); | |
| 2536 | ✗ | configComponents(state); | |
| 2537 | ✗ | setBaseIds(); | |
| 2538 | ✗ | connectComponents(); | |
| 2539 | ✗ | regCommands(); | |
| 2540 | ✗ | readParameters(); | |
| 2541 | ✗ | loadParameters(); | |
| 2542 | ✗ | startTasks(state); | |
| 2543 | ✗ | } | |
| 2544 | |||
| 2545 | ✗ | void teardown(const TopologyState& state) { | |
| 2546 | ✗ | stopTasks(state); | |
| 2547 | ✗ | freeThreads(state); | |
| 2548 | ✗ | tearDownComponents(state); | |
| 2549 | ✗ | deinitComponents(state); | |
| 2550 | ✗ | } | |
| 2551 | |||
| 2552 | } | ||
| 2553 | |||
| 2554 | #if FW_DIRECT_PORT_CALLS | ||
| 2555 | |||
| 2556 | // ---------------------------------------------------------------------- | ||
| 2557 | // Topology-dependent component implementation | ||
| 2558 | // ---------------------------------------------------------------------- | ||
| 2559 | |||
| 2560 | namespace Drv { | ||
| 2561 | |||
| 2562 | ✗ | bool TcpClientComponentBase::isConnected_allocate_OutputPort(FwIndexType portNum) const { | |
| 2563 | ✗ | FW_ASSERT( | |
| 2564 | (0 <= portNum) && (portNum < NUM_ALLOCATE_OUTPUT_PORTS), | ||
| 2565 | static_cast<FwAssertArgType>(portNum), | ||
| 2566 | static_cast<FwAssertArgType>(NUM_ALLOCATE_OUTPUT_PORTS) | ||
| 2567 | ); | ||
| 2568 | ✗ | bool result = false; | |
| 2569 | ✗ | switch (portNum) { | |
| 2570 | ✗ | case 0: | |
| 2571 | ✗ | result = true; | |
| 2572 | ✗ | break; | |
| 2573 | ✗ | default: | |
| 2574 | ✗ | break; | |
| 2575 | } | ||
| 2576 | ✗ | return result; | |
| 2577 | } | ||
| 2578 | |||
| 2579 | ✗ | bool TcpClientComponentBase::isConnected_deallocate_OutputPort(FwIndexType portNum) const { | |
| 2580 | ✗ | FW_ASSERT( | |
| 2581 | (0 <= portNum) && (portNum < NUM_DEALLOCATE_OUTPUT_PORTS), | ||
| 2582 | static_cast<FwAssertArgType>(portNum), | ||
| 2583 | static_cast<FwAssertArgType>(NUM_DEALLOCATE_OUTPUT_PORTS) | ||
| 2584 | ); | ||
| 2585 | ✗ | bool result = false; | |
| 2586 | ✗ | switch (portNum) { | |
| 2587 | ✗ | case 0: | |
| 2588 | ✗ | result = true; | |
| 2589 | ✗ | break; | |
| 2590 | ✗ | default: | |
| 2591 | ✗ | break; | |
| 2592 | } | ||
| 2593 | ✗ | return result; | |
| 2594 | } | ||
| 2595 | |||
| 2596 | 1 | bool TcpClientComponentBase::isConnected_ready_OutputPort(FwIndexType portNum) const { | |
| 2597 | 1 | FW_ASSERT( | |
| 2598 | (0 <= portNum) && (portNum < NUM_READY_OUTPUT_PORTS), | ||
| 2599 | static_cast<FwAssertArgType>(portNum), | ||
| 2600 | static_cast<FwAssertArgType>(NUM_READY_OUTPUT_PORTS) | ||
| 2601 | ); | ||
| 2602 | 1 | bool result = false; | |
| 2603 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 2604 | 1 | case 0: | |
| 2605 | 1 | result = true; | |
| 2606 | 1 | break; | |
| 2607 | ✗ | default: | |
| 2608 | ✗ | break; | |
| 2609 | } | ||
| 2610 | 1 | return result; | |
| 2611 | } | ||
| 2612 | |||
| 2613 | ✗ | bool TcpClientComponentBase::isConnected_recv_OutputPort(FwIndexType portNum) const { | |
| 2614 | ✗ | FW_ASSERT( | |
| 2615 | (0 <= portNum) && (portNum < NUM_RECV_OUTPUT_PORTS), | ||
| 2616 | static_cast<FwAssertArgType>(portNum), | ||
| 2617 | static_cast<FwAssertArgType>(NUM_RECV_OUTPUT_PORTS) | ||
| 2618 | ); | ||
| 2619 | ✗ | bool result = false; | |
| 2620 | ✗ | switch (portNum) { | |
| 2621 | ✗ | case 0: | |
| 2622 | ✗ | result = true; | |
| 2623 | ✗ | break; | |
| 2624 | ✗ | default: | |
| 2625 | ✗ | break; | |
| 2626 | } | ||
| 2627 | ✗ | return result; | |
| 2628 | } | ||
| 2629 | |||
| 2630 | 680 | Fw::Buffer TcpClientComponentBase::allocate_out( | |
| 2631 | FwIndexType portNum, | ||
| 2632 | FwSizeType size | ||
| 2633 | ) const { | ||
| 2634 | 680 | FW_ASSERT( | |
| 2635 | (0 <= portNum) && (portNum < NUM_ALLOCATE_OUTPUT_PORTS), | ||
| 2636 | static_cast<FwAssertArgType>(portNum), | ||
| 2637 | static_cast<FwAssertArgType>(NUM_ALLOCATE_OUTPUT_PORTS) | ||
| 2638 | ); | ||
| 2639 | 680 | Fw::Buffer _result = {}; | |
| 2640 |
1/2✓ Branch 0 taken 680 times.
✗ Branch 1 not taken.
|
680 | switch (portNum) { |
| 2641 | 680 | case 0: | |
| 2642 |
1/1✓ Branch 1 taken 680 times.
|
1360 | _result = ComCcsds::commsBufferManager.bufferGetCallee_handlerBase( |
| 2643 | 0, | ||
| 2644 | size | ||
| 2645 |
1/1✓ Branch 1 taken 680 times.
|
680 | ); |
| 2646 | 680 | break; | |
| 2647 | ✗ | default: | |
| 2648 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 2649 | ✗ | break; | |
| 2650 | } | ||
| 2651 | 680 | return _result; | |
| 2652 | ✗ | } | |
| 2653 | |||
| 2654 | 680 | void TcpClientComponentBase::deallocate_out( | |
| 2655 | FwIndexType portNum, | ||
| 2656 | Fw::Buffer& fwBuffer | ||
| 2657 | ) const { | ||
| 2658 | 680 | FW_ASSERT( | |
| 2659 | (0 <= portNum) && (portNum < NUM_DEALLOCATE_OUTPUT_PORTS), | ||
| 2660 | static_cast<FwAssertArgType>(portNum), | ||
| 2661 | static_cast<FwAssertArgType>(NUM_DEALLOCATE_OUTPUT_PORTS) | ||
| 2662 | ); | ||
| 2663 |
1/2✓ Branch 0 taken 680 times.
✗ Branch 1 not taken.
|
680 | switch (portNum) { |
| 2664 | 680 | case 0: | |
| 2665 | 680 | ComCcsds::commsBufferManager.bufferSendIn_handlerBase( | |
| 2666 | 0, | ||
| 2667 | fwBuffer | ||
| 2668 | ); | ||
| 2669 | 680 | break; | |
| 2670 | ✗ | default: | |
| 2671 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 2672 | ✗ | break; | |
| 2673 | } | ||
| 2674 | 680 | } | |
| 2675 | |||
| 2676 | 1 | void TcpClientComponentBase::ready_out(FwIndexType portNum) const { | |
| 2677 | 1 | FW_ASSERT( | |
| 2678 | (0 <= portNum) && (portNum < NUM_READY_OUTPUT_PORTS), | ||
| 2679 | static_cast<FwAssertArgType>(portNum), | ||
| 2680 | static_cast<FwAssertArgType>(NUM_READY_OUTPUT_PORTS) | ||
| 2681 | ); | ||
| 2682 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 2683 | 1 | case 0: | |
| 2684 | 1 | ComCcsds::comStub.drvConnected_handlerBase(0); | |
| 2685 | 1 | break; | |
| 2686 | ✗ | default: | |
| 2687 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 2688 | ✗ | break; | |
| 2689 | } | ||
| 2690 | 1 | } | |
| 2691 | |||
| 2692 | 680 | void TcpClientComponentBase::recv_out( | |
| 2693 | FwIndexType portNum, | ||
| 2694 | Fw::Buffer& buffer, | ||
| 2695 | const Drv::ByteStreamStatus& status | ||
| 2696 | ) const { | ||
| 2697 | 680 | FW_ASSERT( | |
| 2698 | (0 <= portNum) && (portNum < NUM_RECV_OUTPUT_PORTS), | ||
| 2699 | static_cast<FwAssertArgType>(portNum), | ||
| 2700 | static_cast<FwAssertArgType>(NUM_RECV_OUTPUT_PORTS) | ||
| 2701 | ); | ||
| 2702 |
1/2✓ Branch 0 taken 680 times.
✗ Branch 1 not taken.
|
680 | switch (portNum) { |
| 2703 | 680 | case 0: | |
| 2704 | 680 | ComCcsds::comStub.drvReceiveIn_handlerBase( | |
| 2705 | 0, | ||
| 2706 | buffer, | ||
| 2707 | status | ||
| 2708 | ); | ||
| 2709 | 680 | break; | |
| 2710 | ✗ | default: | |
| 2711 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 2712 | ✗ | break; | |
| 2713 | } | ||
| 2714 | 680 | } | |
| 2715 | |||
| 2716 | } | ||
| 2717 | |||
| 2718 | namespace Ref { | ||
| 2719 | |||
| 2720 | ✗ | bool BlockDriverComponentBase::isConnected_BufferOut_OutputPort(FwIndexType portNum) const { | |
| 2721 | ✗ | FW_ASSERT( | |
| 2722 | (0 <= portNum) && (portNum < NUM_BUFFEROUT_OUTPUT_PORTS), | ||
| 2723 | static_cast<FwAssertArgType>(portNum), | ||
| 2724 | static_cast<FwAssertArgType>(NUM_BUFFEROUT_OUTPUT_PORTS) | ||
| 2725 | ); | ||
| 2726 | ✗ | bool result = false; | |
| 2727 | ✗ | switch (portNum) { | |
| 2728 | ✗ | case 0: | |
| 2729 | ✗ | result = true; | |
| 2730 | ✗ | break; | |
| 2731 | ✗ | default: | |
| 2732 | ✗ | break; | |
| 2733 | } | ||
| 2734 | ✗ | return result; | |
| 2735 | } | ||
| 2736 | |||
| 2737 | ✗ | bool BlockDriverComponentBase::isConnected_CycleOut_OutputPort(FwIndexType portNum) const { | |
| 2738 | ✗ | FW_ASSERT( | |
| 2739 | (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS), | ||
| 2740 | static_cast<FwAssertArgType>(portNum), | ||
| 2741 | static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS) | ||
| 2742 | ); | ||
| 2743 | ✗ | bool result = false; | |
| 2744 | ✗ | switch (portNum) { | |
| 2745 | default: | ||
| 2746 | ✗ | break; | |
| 2747 | } | ||
| 2748 | ✗ | return result; | |
| 2749 | } | ||
| 2750 | |||
| 2751 | ✗ | bool BlockDriverComponentBase::isConnected_PingOut_OutputPort(FwIndexType portNum) const { | |
| 2752 | ✗ | FW_ASSERT( | |
| 2753 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 2754 | static_cast<FwAssertArgType>(portNum), | ||
| 2755 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 2756 | ); | ||
| 2757 | ✗ | bool result = false; | |
| 2758 | ✗ | switch (portNum) { | |
| 2759 | ✗ | case 0: | |
| 2760 | ✗ | result = true; | |
| 2761 | ✗ | break; | |
| 2762 | ✗ | default: | |
| 2763 | ✗ | break; | |
| 2764 | } | ||
| 2765 | ✗ | return result; | |
| 2766 | } | ||
| 2767 | |||
| 2768 | 66 | bool BlockDriverComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 2769 | 66 | FW_ASSERT( | |
| 2770 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 2771 | static_cast<FwAssertArgType>(portNum), | ||
| 2772 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 2773 | ); | ||
| 2774 | 66 | bool result = false; | |
| 2775 |
1/2✓ Branch 0 taken 66 times.
✗ Branch 1 not taken.
|
66 | switch (portNum) { |
| 2776 | 66 | case 0: | |
| 2777 | 66 | result = true; | |
| 2778 | 66 | break; | |
| 2779 | ✗ | default: | |
| 2780 | ✗ | break; | |
| 2781 | } | ||
| 2782 | 66 | return result; | |
| 2783 | } | ||
| 2784 | |||
| 2785 | 132 | bool BlockDriverComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const { | |
| 2786 | 132 | FW_ASSERT( | |
| 2787 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 2788 | static_cast<FwAssertArgType>(portNum), | ||
| 2789 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 2790 | ); | ||
| 2791 | 132 | bool result = false; | |
| 2792 |
1/2✓ Branch 0 taken 132 times.
✗ Branch 1 not taken.
|
132 | switch (portNum) { |
| 2793 | 132 | case 0: | |
| 2794 | 132 | result = true; | |
| 2795 | 132 | break; | |
| 2796 | ✗ | default: | |
| 2797 | ✗ | break; | |
| 2798 | } | ||
| 2799 | 132 | return result; | |
| 2800 | } | ||
| 2801 | |||
| 2802 | ✗ | void BlockDriverComponentBase::BufferOut_out( | |
| 2803 | FwIndexType portNum, | ||
| 2804 | Drv::DataBuffer& buff | ||
| 2805 | ) const { | ||
| 2806 | ✗ | FW_ASSERT( | |
| 2807 | (0 <= portNum) && (portNum < NUM_BUFFEROUT_OUTPUT_PORTS), | ||
| 2808 | static_cast<FwAssertArgType>(portNum), | ||
| 2809 | static_cast<FwAssertArgType>(NUM_BUFFEROUT_OUTPUT_PORTS) | ||
| 2810 | ); | ||
| 2811 | ✗ | switch (portNum) { | |
| 2812 | ✗ | case 0: | |
| 2813 | ✗ | Ref::recvBuffComp.Data_handlerBase( | |
| 2814 | 0, | ||
| 2815 | buff | ||
| 2816 | ); | ||
| 2817 | ✗ | break; | |
| 2818 | ✗ | default: | |
| 2819 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 2820 | ✗ | break; | |
| 2821 | } | ||
| 2822 | ✗ | } | |
| 2823 | |||
| 2824 | ✗ | void BlockDriverComponentBase::CycleOut_out( | |
| 2825 | FwIndexType portNum, | ||
| 2826 | Os::RawTime& cycleStart | ||
| 2827 | ) const { | ||
| 2828 | ✗ | FW_ASSERT( | |
| 2829 | (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS), | ||
| 2830 | static_cast<FwAssertArgType>(portNum), | ||
| 2831 | static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS) | ||
| 2832 | ); | ||
| 2833 | ✗ | switch (portNum) { | |
| 2834 | default: | ||
| 2835 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 2836 | ✗ | break; | |
| 2837 | } | ||
| 2838 | ✗ | } | |
| 2839 | |||
| 2840 | 66 | void BlockDriverComponentBase::PingOut_out( | |
| 2841 | FwIndexType portNum, | ||
| 2842 | U32 key | ||
| 2843 | ) const { | ||
| 2844 | 66 | FW_ASSERT( | |
| 2845 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 2846 | static_cast<FwAssertArgType>(portNum), | ||
| 2847 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 2848 | ); | ||
| 2849 |
1/2✓ Branch 0 taken 66 times.
✗ Branch 1 not taken.
|
66 | switch (portNum) { |
| 2850 | 66 | case 0: | |
| 2851 | 66 | CdhCore::health.PingReturn_handlerBase( | |
| 2852 | 9, | ||
| 2853 | key | ||
| 2854 | ); | ||
| 2855 | 66 | break; | |
| 2856 | ✗ | default: | |
| 2857 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 2858 | ✗ | break; | |
| 2859 | } | ||
| 2860 | 66 | } | |
| 2861 | |||
| 2862 | 66 | void BlockDriverComponentBase::Time_out( | |
| 2863 | FwIndexType portNum, | ||
| 2864 | Fw::Time& time | ||
| 2865 | ) const { | ||
| 2866 | 66 | FW_ASSERT( | |
| 2867 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 2868 | static_cast<FwAssertArgType>(portNum), | ||
| 2869 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 2870 | ); | ||
| 2871 |
1/2✓ Branch 0 taken 66 times.
✗ Branch 1 not taken.
|
66 | switch (portNum) { |
| 2872 | 66 | case 0: | |
| 2873 | 66 | Ref::posixTime.timeGetPort_handlerBase( | |
| 2874 | 0, | ||
| 2875 | time | ||
| 2876 | ); | ||
| 2877 | 66 | break; | |
| 2878 | ✗ | default: | |
| 2879 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 2880 | ✗ | break; | |
| 2881 | } | ||
| 2882 | 66 | } | |
| 2883 | |||
| 2884 | 66 | void BlockDriverComponentBase::Tlm_out( | |
| 2885 | FwIndexType portNum, | ||
| 2886 | FwChanIdType id, | ||
| 2887 | Fw::Time& timeTag, | ||
| 2888 | Fw::TlmBuffer& val | ||
| 2889 | ) const { | ||
| 2890 | 66 | FW_ASSERT( | |
| 2891 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 2892 | static_cast<FwAssertArgType>(portNum), | ||
| 2893 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 2894 | ); | ||
| 2895 |
1/2✓ Branch 0 taken 66 times.
✗ Branch 1 not taken.
|
66 | switch (portNum) { |
| 2896 | 66 | case 0: | |
| 2897 | 66 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 2898 | 0, | ||
| 2899 | id, | ||
| 2900 | timeTag, | ||
| 2901 | val | ||
| 2902 | ); | ||
| 2903 | 66 | break; | |
| 2904 | ✗ | default: | |
| 2905 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 2906 | ✗ | break; | |
| 2907 | } | ||
| 2908 | 66 | } | |
| 2909 | |||
| 2910 | } | ||
| 2911 | |||
| 2912 | namespace Ref { | ||
| 2913 | |||
| 2914 | 1 | bool DpDemoComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const { | |
| 2915 | 1 | FW_ASSERT( | |
| 2916 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 2917 | static_cast<FwAssertArgType>(portNum), | ||
| 2918 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 2919 | ); | ||
| 2920 | 1 | bool result = false; | |
| 2921 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 2922 | 1 | case 0: | |
| 2923 | 1 | result = true; | |
| 2924 | 1 | break; | |
| 2925 | ✗ | default: | |
| 2926 | ✗ | break; | |
| 2927 | } | ||
| 2928 | 1 | return result; | |
| 2929 | } | ||
| 2930 | |||
| 2931 | 5 | bool DpDemoComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const { | |
| 2932 | 5 | FW_ASSERT( | |
| 2933 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 2934 | static_cast<FwAssertArgType>(portNum), | ||
| 2935 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 2936 | ); | ||
| 2937 | 5 | bool result = false; | |
| 2938 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 2939 | 5 | case 0: | |
| 2940 | 5 | result = true; | |
| 2941 | 5 | break; | |
| 2942 | ✗ | default: | |
| 2943 | ✗ | break; | |
| 2944 | } | ||
| 2945 | 5 | return result; | |
| 2946 | } | ||
| 2947 | |||
| 2948 | 20 | bool DpDemoComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 2949 | 20 | FW_ASSERT( | |
| 2950 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 2951 | static_cast<FwAssertArgType>(portNum), | ||
| 2952 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 2953 | ); | ||
| 2954 | 20 | bool result = false; | |
| 2955 |
1/2✓ Branch 0 taken 20 times.
✗ Branch 1 not taken.
|
20 | switch (portNum) { |
| 2956 | 20 | case 0: | |
| 2957 | 20 | result = true; | |
| 2958 | 20 | break; | |
| 2959 | ✗ | default: | |
| 2960 | ✗ | break; | |
| 2961 | } | ||
| 2962 | 20 | return result; | |
| 2963 | } | ||
| 2964 | |||
| 2965 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 2966 | |||
| 2967 | 20 | bool DpDemoComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 2968 | 20 | FW_ASSERT( | |
| 2969 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 2970 | static_cast<FwAssertArgType>(portNum), | ||
| 2971 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 2972 | ); | ||
| 2973 | 20 | bool result = false; | |
| 2974 |
1/2✓ Branch 0 taken 20 times.
✗ Branch 1 not taken.
|
20 | switch (portNum) { |
| 2975 | 20 | case 0: | |
| 2976 | 20 | result = true; | |
| 2977 | 20 | break; | |
| 2978 | ✗ | default: | |
| 2979 | ✗ | break; | |
| 2980 | } | ||
| 2981 | 20 | return result; | |
| 2982 | } | ||
| 2983 | |||
| 2984 | #endif | ||
| 2985 | |||
| 2986 | ✗ | bool DpDemoComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const { | |
| 2987 | ✗ | FW_ASSERT( | |
| 2988 | (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS), | ||
| 2989 | static_cast<FwAssertArgType>(portNum), | ||
| 2990 | static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS) | ||
| 2991 | ); | ||
| 2992 | ✗ | bool result = false; | |
| 2993 | ✗ | switch (portNum) { | |
| 2994 | ✗ | case 0: | |
| 2995 | ✗ | result = true; | |
| 2996 | ✗ | break; | |
| 2997 | ✗ | default: | |
| 2998 | ✗ | break; | |
| 2999 | } | ||
| 3000 | ✗ | return result; | |
| 3001 | } | ||
| 3002 | |||
| 3003 | ✗ | bool DpDemoComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const { | |
| 3004 | ✗ | FW_ASSERT( | |
| 3005 | (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS), | ||
| 3006 | static_cast<FwAssertArgType>(portNum), | ||
| 3007 | static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS) | ||
| 3008 | ); | ||
| 3009 | ✗ | bool result = false; | |
| 3010 | ✗ | switch (portNum) { | |
| 3011 | ✗ | case 0: | |
| 3012 | ✗ | result = true; | |
| 3013 | ✗ | break; | |
| 3014 | ✗ | default: | |
| 3015 | ✗ | break; | |
| 3016 | } | ||
| 3017 | ✗ | return result; | |
| 3018 | } | ||
| 3019 | |||
| 3020 | 5 | bool DpDemoComponentBase::isConnected_productGetOut_OutputPort(FwIndexType portNum) const { | |
| 3021 | 5 | FW_ASSERT( | |
| 3022 | (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS), | ||
| 3023 | static_cast<FwAssertArgType>(portNum), | ||
| 3024 | static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS) | ||
| 3025 | ); | ||
| 3026 | 5 | bool result = false; | |
| 3027 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 3028 | 5 | case 0: | |
| 3029 | 5 | result = true; | |
| 3030 | 5 | break; | |
| 3031 | ✗ | default: | |
| 3032 | ✗ | break; | |
| 3033 | } | ||
| 3034 | 5 | return result; | |
| 3035 | } | ||
| 3036 | |||
| 3037 | 5 | bool DpDemoComponentBase::isConnected_productRequestOut_OutputPort(FwIndexType portNum) const { | |
| 3038 | 5 | FW_ASSERT( | |
| 3039 | (0 <= portNum) && (portNum < NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS), | ||
| 3040 | static_cast<FwAssertArgType>(portNum), | ||
| 3041 | static_cast<FwAssertArgType>(NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS) | ||
| 3042 | ); | ||
| 3043 | 5 | bool result = false; | |
| 3044 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 3045 | 5 | case 0: | |
| 3046 | 5 | result = true; | |
| 3047 | 5 | break; | |
| 3048 | ✗ | default: | |
| 3049 | ✗ | break; | |
| 3050 | } | ||
| 3051 | 5 | return result; | |
| 3052 | } | ||
| 3053 | |||
| 3054 | ✗ | bool DpDemoComponentBase::isConnected_productSendOut_OutputPort(FwIndexType portNum) const { | |
| 3055 | ✗ | FW_ASSERT( | |
| 3056 | (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS), | ||
| 3057 | static_cast<FwAssertArgType>(portNum), | ||
| 3058 | static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS) | ||
| 3059 | ); | ||
| 3060 | ✗ | bool result = false; | |
| 3061 | ✗ | switch (portNum) { | |
| 3062 | ✗ | case 0: | |
| 3063 | ✗ | result = true; | |
| 3064 | ✗ | break; | |
| 3065 | ✗ | default: | |
| 3066 | ✗ | break; | |
| 3067 | } | ||
| 3068 | ✗ | return result; | |
| 3069 | } | ||
| 3070 | |||
| 3071 | 25 | bool DpDemoComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 3072 | 25 | FW_ASSERT( | |
| 3073 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 3074 | static_cast<FwAssertArgType>(portNum), | ||
| 3075 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 3076 | ); | ||
| 3077 | 25 | bool result = false; | |
| 3078 |
1/2✓ Branch 0 taken 25 times.
✗ Branch 1 not taken.
|
25 | switch (portNum) { |
| 3079 | 25 | case 0: | |
| 3080 | 25 | result = true; | |
| 3081 | 25 | break; | |
| 3082 | ✗ | default: | |
| 3083 | ✗ | break; | |
| 3084 | } | ||
| 3085 | 25 | return result; | |
| 3086 | } | ||
| 3087 | |||
| 3088 | ✗ | bool DpDemoComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 3089 | ✗ | FW_ASSERT( | |
| 3090 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 3091 | static_cast<FwAssertArgType>(portNum), | ||
| 3092 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 3093 | ); | ||
| 3094 | ✗ | bool result = false; | |
| 3095 | ✗ | switch (portNum) { | |
| 3096 | ✗ | case 0: | |
| 3097 | ✗ | result = true; | |
| 3098 | ✗ | break; | |
| 3099 | ✗ | default: | |
| 3100 | ✗ | break; | |
| 3101 | } | ||
| 3102 | ✗ | return result; | |
| 3103 | } | ||
| 3104 | |||
| 3105 | 2 | void DpDemoComponentBase::cmdRegOut_out( | |
| 3106 | FwIndexType portNum, | ||
| 3107 | FwOpcodeType opCode | ||
| 3108 | ) const { | ||
| 3109 | 2 | FW_ASSERT( | |
| 3110 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 3111 | static_cast<FwAssertArgType>(portNum), | ||
| 3112 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 3113 | ); | ||
| 3114 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 3115 | 2 | case 0: | |
| 3116 | 2 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 3117 | 18, | ||
| 3118 | opCode | ||
| 3119 | ); | ||
| 3120 | 2 | break; | |
| 3121 | ✗ | default: | |
| 3122 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3123 | ✗ | break; | |
| 3124 | } | ||
| 3125 | 2 | } | |
| 3126 | |||
| 3127 | 5 | void DpDemoComponentBase::cmdResponseOut_out( | |
| 3128 | FwIndexType portNum, | ||
| 3129 | FwOpcodeType opCode, | ||
| 3130 | U32 cmdSeq, | ||
| 3131 | const Fw::CmdResponse& response | ||
| 3132 | ) const { | ||
| 3133 | 5 | FW_ASSERT( | |
| 3134 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 3135 | static_cast<FwAssertArgType>(portNum), | ||
| 3136 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 3137 | ); | ||
| 3138 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 3139 | 5 | case 0: | |
| 3140 | 5 | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 3141 | 0, | ||
| 3142 | opCode, | ||
| 3143 | cmdSeq, | ||
| 3144 | response | ||
| 3145 | ); | ||
| 3146 | 5 | break; | |
| 3147 | ✗ | default: | |
| 3148 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3149 | ✗ | break; | |
| 3150 | } | ||
| 3151 | 5 | } | |
| 3152 | |||
| 3153 | 20 | void DpDemoComponentBase::logOut_out( | |
| 3154 | FwIndexType portNum, | ||
| 3155 | FwEventIdType id, | ||
| 3156 | Fw::Time& timeTag, | ||
| 3157 | const Fw::LogSeverity& severity, | ||
| 3158 | Fw::LogBuffer& args | ||
| 3159 | ) const { | ||
| 3160 | 20 | FW_ASSERT( | |
| 3161 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 3162 | static_cast<FwAssertArgType>(portNum), | ||
| 3163 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 3164 | ); | ||
| 3165 |
1/2✓ Branch 0 taken 20 times.
✗ Branch 1 not taken.
|
20 | switch (portNum) { |
| 3166 | 20 | case 0: | |
| 3167 | 20 | CdhCore::events.LogRecv_handlerBase( | |
| 3168 | 0, | ||
| 3169 | id, | ||
| 3170 | timeTag, | ||
| 3171 | severity, | ||
| 3172 | args | ||
| 3173 | ); | ||
| 3174 | 20 | break; | |
| 3175 | ✗ | default: | |
| 3176 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3177 | ✗ | break; | |
| 3178 | } | ||
| 3179 | 20 | } | |
| 3180 | |||
| 3181 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 3182 | |||
| 3183 | 20 | void DpDemoComponentBase::logTextOut_out( | |
| 3184 | FwIndexType portNum, | ||
| 3185 | FwEventIdType id, | ||
| 3186 | Fw::Time& timeTag, | ||
| 3187 | const Fw::LogSeverity& severity, | ||
| 3188 | Fw::TextLogString& text | ||
| 3189 | ) const { | ||
| 3190 | 20 | FW_ASSERT( | |
| 3191 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 3192 | static_cast<FwAssertArgType>(portNum), | ||
| 3193 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 3194 | ); | ||
| 3195 |
1/2✓ Branch 0 taken 20 times.
✗ Branch 1 not taken.
|
20 | switch (portNum) { |
| 3196 | 20 | case 0: | |
| 3197 | 20 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 3198 | 0, | ||
| 3199 | id, | ||
| 3200 | timeTag, | ||
| 3201 | severity, | ||
| 3202 | text | ||
| 3203 | ); | ||
| 3204 | 20 | break; | |
| 3205 | ✗ | default: | |
| 3206 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3207 | ✗ | break; | |
| 3208 | } | ||
| 3209 | 20 | } | |
| 3210 | |||
| 3211 | #endif | ||
| 3212 | |||
| 3213 | 5 | Fw::Success DpDemoComponentBase::productGetOut_out( | |
| 3214 | FwIndexType portNum, | ||
| 3215 | FwDpIdType id, | ||
| 3216 | FwSizeType dataSize, | ||
| 3217 | Fw::Buffer& buffer | ||
| 3218 | ) const { | ||
| 3219 | 5 | FW_ASSERT( | |
| 3220 | (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS), | ||
| 3221 | static_cast<FwAssertArgType>(portNum), | ||
| 3222 | static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS) | ||
| 3223 | ); | ||
| 3224 | 5 | Fw::Success _result = {}; | |
| 3225 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 3226 | 5 | case 0: | |
| 3227 |
1/1✓ Branch 1 taken 5 times.
|
10 | _result = DataProducts::dpMgr.productGetIn_handlerBase( |
| 3228 | 0, | ||
| 3229 | id, | ||
| 3230 | dataSize, | ||
| 3231 | buffer | ||
| 3232 |
1/1✓ Branch 1 taken 5 times.
|
5 | ); |
| 3233 | 5 | break; | |
| 3234 | ✗ | default: | |
| 3235 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3236 | ✗ | break; | |
| 3237 | } | ||
| 3238 | 5 | return _result; | |
| 3239 | ✗ | } | |
| 3240 | |||
| 3241 | ✗ | void DpDemoComponentBase::productRequestOut_out( | |
| 3242 | FwIndexType portNum, | ||
| 3243 | FwDpIdType id, | ||
| 3244 | FwSizeType dataSize | ||
| 3245 | ) const { | ||
| 3246 | ✗ | FW_ASSERT( | |
| 3247 | (0 <= portNum) && (portNum < NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS), | ||
| 3248 | static_cast<FwAssertArgType>(portNum), | ||
| 3249 | static_cast<FwAssertArgType>(NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS) | ||
| 3250 | ); | ||
| 3251 | ✗ | switch (portNum) { | |
| 3252 | ✗ | case 0: | |
| 3253 | ✗ | DataProducts::dpMgr.productRequestIn_handlerBase( | |
| 3254 | 0, | ||
| 3255 | id, | ||
| 3256 | dataSize | ||
| 3257 | ); | ||
| 3258 | ✗ | break; | |
| 3259 | ✗ | default: | |
| 3260 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3261 | ✗ | break; | |
| 3262 | } | ||
| 3263 | ✗ | } | |
| 3264 | |||
| 3265 | 5 | void DpDemoComponentBase::productSendOut_out( | |
| 3266 | FwIndexType portNum, | ||
| 3267 | FwDpIdType id, | ||
| 3268 | const Fw::Buffer& buffer | ||
| 3269 | ) const { | ||
| 3270 | 5 | FW_ASSERT( | |
| 3271 | (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS), | ||
| 3272 | static_cast<FwAssertArgType>(portNum), | ||
| 3273 | static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS) | ||
| 3274 | ); | ||
| 3275 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 3276 | 5 | case 0: | |
| 3277 | 5 | DataProducts::dpMgr.productSendIn_handlerBase( | |
| 3278 | 0, | ||
| 3279 | id, | ||
| 3280 | buffer | ||
| 3281 | ); | ||
| 3282 | 5 | break; | |
| 3283 | ✗ | default: | |
| 3284 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3285 | ✗ | break; | |
| 3286 | } | ||
| 3287 | 5 | } | |
| 3288 | |||
| 3289 | 25 | void DpDemoComponentBase::timeCaller_out( | |
| 3290 | FwIndexType portNum, | ||
| 3291 | Fw::Time& time | ||
| 3292 | ) const { | ||
| 3293 | 25 | FW_ASSERT( | |
| 3294 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 3295 | static_cast<FwAssertArgType>(portNum), | ||
| 3296 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 3297 | ); | ||
| 3298 |
1/2✓ Branch 0 taken 25 times.
✗ Branch 1 not taken.
|
25 | switch (portNum) { |
| 3299 | 25 | case 0: | |
| 3300 | 25 | Ref::posixTime.timeGetPort_handlerBase( | |
| 3301 | 0, | ||
| 3302 | time | ||
| 3303 | ); | ||
| 3304 | 25 | break; | |
| 3305 | ✗ | default: | |
| 3306 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3307 | ✗ | break; | |
| 3308 | } | ||
| 3309 | 25 | } | |
| 3310 | |||
| 3311 | } | ||
| 3312 | |||
| 3313 | namespace Ref { | ||
| 3314 | |||
| 3315 | 1 | bool PingReceiverComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const { | |
| 3316 | 1 | FW_ASSERT( | |
| 3317 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 3318 | static_cast<FwAssertArgType>(portNum), | ||
| 3319 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 3320 | ); | ||
| 3321 | 1 | bool result = false; | |
| 3322 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 3323 | 1 | case 0: | |
| 3324 | 1 | result = true; | |
| 3325 | 1 | break; | |
| 3326 | ✗ | default: | |
| 3327 | ✗ | break; | |
| 3328 | } | ||
| 3329 | 1 | return result; | |
| 3330 | } | ||
| 3331 | |||
| 3332 | ✗ | bool PingReceiverComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const { | |
| 3333 | ✗ | FW_ASSERT( | |
| 3334 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 3335 | static_cast<FwAssertArgType>(portNum), | ||
| 3336 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 3337 | ); | ||
| 3338 | ✗ | bool result = false; | |
| 3339 | ✗ | switch (portNum) { | |
| 3340 | ✗ | case 0: | |
| 3341 | ✗ | result = true; | |
| 3342 | ✗ | break; | |
| 3343 | ✗ | default: | |
| 3344 | ✗ | break; | |
| 3345 | } | ||
| 3346 | ✗ | return result; | |
| 3347 | } | ||
| 3348 | |||
| 3349 | ✗ | bool PingReceiverComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 3350 | ✗ | FW_ASSERT( | |
| 3351 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 3352 | static_cast<FwAssertArgType>(portNum), | ||
| 3353 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 3354 | ); | ||
| 3355 | ✗ | bool result = false; | |
| 3356 | ✗ | switch (portNum) { | |
| 3357 | ✗ | case 0: | |
| 3358 | ✗ | result = true; | |
| 3359 | ✗ | break; | |
| 3360 | ✗ | default: | |
| 3361 | ✗ | break; | |
| 3362 | } | ||
| 3363 | ✗ | return result; | |
| 3364 | } | ||
| 3365 | |||
| 3366 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 3367 | |||
| 3368 | ✗ | bool PingReceiverComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 3369 | ✗ | FW_ASSERT( | |
| 3370 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 3371 | static_cast<FwAssertArgType>(portNum), | ||
| 3372 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 3373 | ); | ||
| 3374 | ✗ | bool result = false; | |
| 3375 | ✗ | switch (portNum) { | |
| 3376 | ✗ | case 0: | |
| 3377 | ✗ | result = true; | |
| 3378 | ✗ | break; | |
| 3379 | ✗ | default: | |
| 3380 | ✗ | break; | |
| 3381 | } | ||
| 3382 | ✗ | return result; | |
| 3383 | } | ||
| 3384 | |||
| 3385 | #endif | ||
| 3386 | |||
| 3387 | ✗ | bool PingReceiverComponentBase::isConnected_PingOut_OutputPort(FwIndexType portNum) const { | |
| 3388 | ✗ | FW_ASSERT( | |
| 3389 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 3390 | static_cast<FwAssertArgType>(portNum), | ||
| 3391 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 3392 | ); | ||
| 3393 | ✗ | bool result = false; | |
| 3394 | ✗ | switch (portNum) { | |
| 3395 | ✗ | case 0: | |
| 3396 | ✗ | result = true; | |
| 3397 | ✗ | break; | |
| 3398 | ✗ | default: | |
| 3399 | ✗ | break; | |
| 3400 | } | ||
| 3401 | ✗ | return result; | |
| 3402 | } | ||
| 3403 | |||
| 3404 | 66 | bool PingReceiverComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 3405 | 66 | FW_ASSERT( | |
| 3406 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 3407 | static_cast<FwAssertArgType>(portNum), | ||
| 3408 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 3409 | ); | ||
| 3410 | 66 | bool result = false; | |
| 3411 |
1/2✓ Branch 0 taken 66 times.
✗ Branch 1 not taken.
|
66 | switch (portNum) { |
| 3412 | 66 | case 0: | |
| 3413 | 66 | result = true; | |
| 3414 | 66 | break; | |
| 3415 | ✗ | default: | |
| 3416 | ✗ | break; | |
| 3417 | } | ||
| 3418 | 66 | return result; | |
| 3419 | } | ||
| 3420 | |||
| 3421 | 132 | bool PingReceiverComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const { | |
| 3422 | 132 | FW_ASSERT( | |
| 3423 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 3424 | static_cast<FwAssertArgType>(portNum), | ||
| 3425 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 3426 | ); | ||
| 3427 | 132 | bool result = false; | |
| 3428 |
1/2✓ Branch 0 taken 132 times.
✗ Branch 1 not taken.
|
132 | switch (portNum) { |
| 3429 | 132 | case 0: | |
| 3430 | 132 | result = true; | |
| 3431 | 132 | break; | |
| 3432 | ✗ | default: | |
| 3433 | ✗ | break; | |
| 3434 | } | ||
| 3435 | 132 | return result; | |
| 3436 | } | ||
| 3437 | |||
| 3438 | 1 | void PingReceiverComponentBase::CmdReg_out( | |
| 3439 | FwIndexType portNum, | ||
| 3440 | FwOpcodeType opCode | ||
| 3441 | ) const { | ||
| 3442 | 1 | FW_ASSERT( | |
| 3443 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 3444 | static_cast<FwAssertArgType>(portNum), | ||
| 3445 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 3446 | ); | ||
| 3447 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 3448 | 1 | case 0: | |
| 3449 | 1 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 3450 | 19, | ||
| 3451 | opCode | ||
| 3452 | ); | ||
| 3453 | 1 | break; | |
| 3454 | ✗ | default: | |
| 3455 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3456 | ✗ | break; | |
| 3457 | } | ||
| 3458 | 1 | } | |
| 3459 | |||
| 3460 | ✗ | void PingReceiverComponentBase::CmdStatus_out( | |
| 3461 | FwIndexType portNum, | ||
| 3462 | FwOpcodeType opCode, | ||
| 3463 | U32 cmdSeq, | ||
| 3464 | const Fw::CmdResponse& response | ||
| 3465 | ) const { | ||
| 3466 | ✗ | FW_ASSERT( | |
| 3467 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 3468 | static_cast<FwAssertArgType>(portNum), | ||
| 3469 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 3470 | ); | ||
| 3471 | ✗ | switch (portNum) { | |
| 3472 | ✗ | case 0: | |
| 3473 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 3474 | 0, | ||
| 3475 | opCode, | ||
| 3476 | cmdSeq, | ||
| 3477 | response | ||
| 3478 | ); | ||
| 3479 | ✗ | break; | |
| 3480 | ✗ | default: | |
| 3481 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3482 | ✗ | break; | |
| 3483 | } | ||
| 3484 | ✗ | } | |
| 3485 | |||
| 3486 | ✗ | void PingReceiverComponentBase::Log_out( | |
| 3487 | FwIndexType portNum, | ||
| 3488 | FwEventIdType id, | ||
| 3489 | Fw::Time& timeTag, | ||
| 3490 | const Fw::LogSeverity& severity, | ||
| 3491 | Fw::LogBuffer& args | ||
| 3492 | ) const { | ||
| 3493 | ✗ | FW_ASSERT( | |
| 3494 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 3495 | static_cast<FwAssertArgType>(portNum), | ||
| 3496 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 3497 | ); | ||
| 3498 | ✗ | switch (portNum) { | |
| 3499 | ✗ | case 0: | |
| 3500 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 3501 | 0, | ||
| 3502 | id, | ||
| 3503 | timeTag, | ||
| 3504 | severity, | ||
| 3505 | args | ||
| 3506 | ); | ||
| 3507 | ✗ | break; | |
| 3508 | ✗ | default: | |
| 3509 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3510 | ✗ | break; | |
| 3511 | } | ||
| 3512 | ✗ | } | |
| 3513 | |||
| 3514 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 3515 | |||
| 3516 | ✗ | void PingReceiverComponentBase::LogText_out( | |
| 3517 | FwIndexType portNum, | ||
| 3518 | FwEventIdType id, | ||
| 3519 | Fw::Time& timeTag, | ||
| 3520 | const Fw::LogSeverity& severity, | ||
| 3521 | Fw::TextLogString& text | ||
| 3522 | ) const { | ||
| 3523 | ✗ | FW_ASSERT( | |
| 3524 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 3525 | static_cast<FwAssertArgType>(portNum), | ||
| 3526 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 3527 | ); | ||
| 3528 | ✗ | switch (portNum) { | |
| 3529 | ✗ | case 0: | |
| 3530 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 3531 | 0, | ||
| 3532 | id, | ||
| 3533 | timeTag, | ||
| 3534 | severity, | ||
| 3535 | text | ||
| 3536 | ); | ||
| 3537 | ✗ | break; | |
| 3538 | ✗ | default: | |
| 3539 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3540 | ✗ | break; | |
| 3541 | } | ||
| 3542 | ✗ | } | |
| 3543 | |||
| 3544 | #endif | ||
| 3545 | |||
| 3546 | 66 | void PingReceiverComponentBase::PingOut_out( | |
| 3547 | FwIndexType portNum, | ||
| 3548 | U32 key | ||
| 3549 | ) const { | ||
| 3550 | 66 | FW_ASSERT( | |
| 3551 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 3552 | static_cast<FwAssertArgType>(portNum), | ||
| 3553 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 3554 | ); | ||
| 3555 |
1/2✓ Branch 0 taken 66 times.
✗ Branch 1 not taken.
|
66 | switch (portNum) { |
| 3556 | 66 | case 0: | |
| 3557 | 66 | CdhCore::health.PingReturn_handlerBase( | |
| 3558 | 11, | ||
| 3559 | key | ||
| 3560 | ); | ||
| 3561 | 66 | break; | |
| 3562 | ✗ | default: | |
| 3563 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3564 | ✗ | break; | |
| 3565 | } | ||
| 3566 | 66 | } | |
| 3567 | |||
| 3568 | 66 | void PingReceiverComponentBase::Time_out( | |
| 3569 | FwIndexType portNum, | ||
| 3570 | Fw::Time& time | ||
| 3571 | ) const { | ||
| 3572 | 66 | FW_ASSERT( | |
| 3573 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 3574 | static_cast<FwAssertArgType>(portNum), | ||
| 3575 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 3576 | ); | ||
| 3577 |
1/2✓ Branch 0 taken 66 times.
✗ Branch 1 not taken.
|
66 | switch (portNum) { |
| 3578 | 66 | case 0: | |
| 3579 | 66 | Ref::posixTime.timeGetPort_handlerBase( | |
| 3580 | 0, | ||
| 3581 | time | ||
| 3582 | ); | ||
| 3583 | 66 | break; | |
| 3584 | ✗ | default: | |
| 3585 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3586 | ✗ | break; | |
| 3587 | } | ||
| 3588 | 66 | } | |
| 3589 | |||
| 3590 | 66 | void PingReceiverComponentBase::Tlm_out( | |
| 3591 | FwIndexType portNum, | ||
| 3592 | FwChanIdType id, | ||
| 3593 | Fw::Time& timeTag, | ||
| 3594 | Fw::TlmBuffer& val | ||
| 3595 | ) const { | ||
| 3596 | 66 | FW_ASSERT( | |
| 3597 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 3598 | static_cast<FwAssertArgType>(portNum), | ||
| 3599 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 3600 | ); | ||
| 3601 |
1/2✓ Branch 0 taken 66 times.
✗ Branch 1 not taken.
|
66 | switch (portNum) { |
| 3602 | 66 | case 0: | |
| 3603 | 66 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 3604 | 0, | ||
| 3605 | id, | ||
| 3606 | timeTag, | ||
| 3607 | val | ||
| 3608 | ); | ||
| 3609 | 66 | break; | |
| 3610 | ✗ | default: | |
| 3611 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3612 | ✗ | break; | |
| 3613 | } | ||
| 3614 | 66 | } | |
| 3615 | |||
| 3616 | } | ||
| 3617 | |||
| 3618 | namespace Ref { | ||
| 3619 | |||
| 3620 | 1 | bool RecvBuffComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const { | |
| 3621 | 1 | FW_ASSERT( | |
| 3622 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 3623 | static_cast<FwAssertArgType>(portNum), | ||
| 3624 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 3625 | ); | ||
| 3626 | 1 | bool result = false; | |
| 3627 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 3628 | 1 | case 0: | |
| 3629 | 1 | result = true; | |
| 3630 | 1 | break; | |
| 3631 | ✗ | default: | |
| 3632 | ✗ | break; | |
| 3633 | } | ||
| 3634 | 1 | return result; | |
| 3635 | } | ||
| 3636 | |||
| 3637 | 6 | bool RecvBuffComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const { | |
| 3638 | 6 | FW_ASSERT( | |
| 3639 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 3640 | static_cast<FwAssertArgType>(portNum), | ||
| 3641 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 3642 | ); | ||
| 3643 | 6 | bool result = false; | |
| 3644 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 3645 | 6 | case 0: | |
| 3646 | 6 | result = true; | |
| 3647 | 6 | break; | |
| 3648 | ✗ | default: | |
| 3649 | ✗ | break; | |
| 3650 | } | ||
| 3651 | 6 | return result; | |
| 3652 | } | ||
| 3653 | |||
| 3654 | 6 | bool RecvBuffComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 3655 | 6 | FW_ASSERT( | |
| 3656 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 3657 | static_cast<FwAssertArgType>(portNum), | ||
| 3658 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 3659 | ); | ||
| 3660 | 6 | bool result = false; | |
| 3661 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 3662 | 6 | case 0: | |
| 3663 | 6 | result = true; | |
| 3664 | 6 | break; | |
| 3665 | ✗ | default: | |
| 3666 | ✗ | break; | |
| 3667 | } | ||
| 3668 | 6 | return result; | |
| 3669 | } | ||
| 3670 | |||
| 3671 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 3672 | |||
| 3673 | 6 | bool RecvBuffComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 3674 | 6 | FW_ASSERT( | |
| 3675 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 3676 | static_cast<FwAssertArgType>(portNum), | ||
| 3677 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 3678 | ); | ||
| 3679 | 6 | bool result = false; | |
| 3680 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 3681 | 6 | case 0: | |
| 3682 | 6 | result = true; | |
| 3683 | 6 | break; | |
| 3684 | ✗ | default: | |
| 3685 | ✗ | break; | |
| 3686 | } | ||
| 3687 | 6 | return result; | |
| 3688 | } | ||
| 3689 | |||
| 3690 | #endif | ||
| 3691 | |||
| 3692 | 1 | bool RecvBuffComponentBase::isConnected_ParamGet_OutputPort(FwIndexType portNum) const { | |
| 3693 | 1 | FW_ASSERT( | |
| 3694 | (0 <= portNum) && (portNum < NUM_PARAMGET_OUTPUT_PORTS), | ||
| 3695 | static_cast<FwAssertArgType>(portNum), | ||
| 3696 | static_cast<FwAssertArgType>(NUM_PARAMGET_OUTPUT_PORTS) | ||
| 3697 | ); | ||
| 3698 | 1 | bool result = false; | |
| 3699 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 3700 | 1 | case 0: | |
| 3701 | 1 | result = true; | |
| 3702 | 1 | break; | |
| 3703 | ✗ | default: | |
| 3704 | ✗ | break; | |
| 3705 | } | ||
| 3706 | 1 | return result; | |
| 3707 | } | ||
| 3708 | |||
| 3709 | 2 | bool RecvBuffComponentBase::isConnected_ParamSet_OutputPort(FwIndexType portNum) const { | |
| 3710 | 2 | FW_ASSERT( | |
| 3711 | (0 <= portNum) && (portNum < NUM_PARAMSET_OUTPUT_PORTS), | ||
| 3712 | static_cast<FwAssertArgType>(portNum), | ||
| 3713 | static_cast<FwAssertArgType>(NUM_PARAMSET_OUTPUT_PORTS) | ||
| 3714 | ); | ||
| 3715 | 2 | bool result = false; | |
| 3716 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 3717 | 2 | case 0: | |
| 3718 | 2 | result = true; | |
| 3719 | 2 | break; | |
| 3720 | ✗ | default: | |
| 3721 | ✗ | break; | |
| 3722 | } | ||
| 3723 | 2 | return result; | |
| 3724 | } | ||
| 3725 | |||
| 3726 | 12 | bool RecvBuffComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 3727 | 12 | FW_ASSERT( | |
| 3728 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 3729 | static_cast<FwAssertArgType>(portNum), | ||
| 3730 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 3731 | ); | ||
| 3732 | 12 | bool result = false; | |
| 3733 |
1/2✓ Branch 0 taken 12 times.
✗ Branch 1 not taken.
|
12 | switch (portNum) { |
| 3734 | 12 | case 0: | |
| 3735 | 12 | result = true; | |
| 3736 | 12 | break; | |
| 3737 | ✗ | default: | |
| 3738 | ✗ | break; | |
| 3739 | } | ||
| 3740 | 12 | return result; | |
| 3741 | } | ||
| 3742 | |||
| 3743 | 12 | bool RecvBuffComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const { | |
| 3744 | 12 | FW_ASSERT( | |
| 3745 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 3746 | static_cast<FwAssertArgType>(portNum), | ||
| 3747 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 3748 | ); | ||
| 3749 | 12 | bool result = false; | |
| 3750 |
1/2✓ Branch 0 taken 12 times.
✗ Branch 1 not taken.
|
12 | switch (portNum) { |
| 3751 | 12 | case 0: | |
| 3752 | 12 | result = true; | |
| 3753 | 12 | break; | |
| 3754 | ✗ | default: | |
| 3755 | ✗ | break; | |
| 3756 | } | ||
| 3757 | 12 | return result; | |
| 3758 | } | ||
| 3759 | |||
| 3760 | 4 | void RecvBuffComponentBase::CmdReg_out( | |
| 3761 | FwIndexType portNum, | ||
| 3762 | FwOpcodeType opCode | ||
| 3763 | ) const { | ||
| 3764 | 4 | FW_ASSERT( | |
| 3765 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 3766 | static_cast<FwAssertArgType>(portNum), | ||
| 3767 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 3768 | ); | ||
| 3769 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 3770 | 4 | case 0: | |
| 3771 | 4 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 3772 | 20, | ||
| 3773 | opCode | ||
| 3774 | ); | ||
| 3775 | 4 | break; | |
| 3776 | ✗ | default: | |
| 3777 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3778 | ✗ | break; | |
| 3779 | } | ||
| 3780 | 4 | } | |
| 3781 | |||
| 3782 | 6 | void RecvBuffComponentBase::CmdStatus_out( | |
| 3783 | FwIndexType portNum, | ||
| 3784 | FwOpcodeType opCode, | ||
| 3785 | U32 cmdSeq, | ||
| 3786 | const Fw::CmdResponse& response | ||
| 3787 | ) const { | ||
| 3788 | 6 | FW_ASSERT( | |
| 3789 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 3790 | static_cast<FwAssertArgType>(portNum), | ||
| 3791 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 3792 | ); | ||
| 3793 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 3794 | 6 | case 0: | |
| 3795 | 6 | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 3796 | 0, | ||
| 3797 | opCode, | ||
| 3798 | cmdSeq, | ||
| 3799 | response | ||
| 3800 | ); | ||
| 3801 | 6 | break; | |
| 3802 | ✗ | default: | |
| 3803 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3804 | ✗ | break; | |
| 3805 | } | ||
| 3806 | 6 | } | |
| 3807 | |||
| 3808 | 6 | void RecvBuffComponentBase::Log_out( | |
| 3809 | FwIndexType portNum, | ||
| 3810 | FwEventIdType id, | ||
| 3811 | Fw::Time& timeTag, | ||
| 3812 | const Fw::LogSeverity& severity, | ||
| 3813 | Fw::LogBuffer& args | ||
| 3814 | ) const { | ||
| 3815 | 6 | FW_ASSERT( | |
| 3816 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 3817 | static_cast<FwAssertArgType>(portNum), | ||
| 3818 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 3819 | ); | ||
| 3820 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 3821 | 6 | case 0: | |
| 3822 | 6 | CdhCore::events.LogRecv_handlerBase( | |
| 3823 | 0, | ||
| 3824 | id, | ||
| 3825 | timeTag, | ||
| 3826 | severity, | ||
| 3827 | args | ||
| 3828 | ); | ||
| 3829 | 6 | break; | |
| 3830 | ✗ | default: | |
| 3831 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3832 | ✗ | break; | |
| 3833 | } | ||
| 3834 | 6 | } | |
| 3835 | |||
| 3836 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 3837 | |||
| 3838 | 6 | void RecvBuffComponentBase::LogText_out( | |
| 3839 | FwIndexType portNum, | ||
| 3840 | FwEventIdType id, | ||
| 3841 | Fw::Time& timeTag, | ||
| 3842 | const Fw::LogSeverity& severity, | ||
| 3843 | Fw::TextLogString& text | ||
| 3844 | ) const { | ||
| 3845 | 6 | FW_ASSERT( | |
| 3846 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 3847 | static_cast<FwAssertArgType>(portNum), | ||
| 3848 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 3849 | ); | ||
| 3850 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 3851 | 6 | case 0: | |
| 3852 | 6 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 3853 | 0, | ||
| 3854 | id, | ||
| 3855 | timeTag, | ||
| 3856 | severity, | ||
| 3857 | text | ||
| 3858 | ); | ||
| 3859 | 6 | break; | |
| 3860 | ✗ | default: | |
| 3861 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3862 | ✗ | break; | |
| 3863 | } | ||
| 3864 | 6 | } | |
| 3865 | |||
| 3866 | #endif | ||
| 3867 | |||
| 3868 | 2 | Fw::ParamValid RecvBuffComponentBase::ParamGet_out( | |
| 3869 | FwIndexType portNum, | ||
| 3870 | FwPrmIdType id, | ||
| 3871 | Fw::ParamBuffer& val | ||
| 3872 | ) const { | ||
| 3873 | 2 | FW_ASSERT( | |
| 3874 | (0 <= portNum) && (portNum < NUM_PARAMGET_OUTPUT_PORTS), | ||
| 3875 | static_cast<FwAssertArgType>(portNum), | ||
| 3876 | static_cast<FwAssertArgType>(NUM_PARAMGET_OUTPUT_PORTS) | ||
| 3877 | ); | ||
| 3878 | 2 | Fw::ParamValid _result = {}; | |
| 3879 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 3880 | 2 | case 0: | |
| 3881 |
1/1✓ Branch 1 taken 2 times.
|
4 | _result = FileHandling::prmDb.getPrm_handlerBase( |
| 3882 | 0, | ||
| 3883 | id, | ||
| 3884 | val | ||
| 3885 |
1/1✓ Branch 1 taken 2 times.
|
2 | ); |
| 3886 | 2 | break; | |
| 3887 | ✗ | default: | |
| 3888 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3889 | ✗ | break; | |
| 3890 | } | ||
| 3891 | 2 | return _result; | |
| 3892 | ✗ | } | |
| 3893 | |||
| 3894 | 2 | void RecvBuffComponentBase::ParamSet_out( | |
| 3895 | FwIndexType portNum, | ||
| 3896 | FwPrmIdType id, | ||
| 3897 | Fw::ParamBuffer& val | ||
| 3898 | ) const { | ||
| 3899 | 2 | FW_ASSERT( | |
| 3900 | (0 <= portNum) && (portNum < NUM_PARAMSET_OUTPUT_PORTS), | ||
| 3901 | static_cast<FwAssertArgType>(portNum), | ||
| 3902 | static_cast<FwAssertArgType>(NUM_PARAMSET_OUTPUT_PORTS) | ||
| 3903 | ); | ||
| 3904 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 3905 | 2 | case 0: | |
| 3906 | 2 | FileHandling::prmDb.setPrm_handlerBase( | |
| 3907 | 0, | ||
| 3908 | id, | ||
| 3909 | val | ||
| 3910 | ); | ||
| 3911 | 2 | break; | |
| 3912 | ✗ | default: | |
| 3913 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3914 | ✗ | break; | |
| 3915 | } | ||
| 3916 | 2 | } | |
| 3917 | |||
| 3918 | 12 | void RecvBuffComponentBase::Time_out( | |
| 3919 | FwIndexType portNum, | ||
| 3920 | Fw::Time& time | ||
| 3921 | ) const { | ||
| 3922 | 12 | FW_ASSERT( | |
| 3923 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 3924 | static_cast<FwAssertArgType>(portNum), | ||
| 3925 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 3926 | ); | ||
| 3927 |
1/2✓ Branch 0 taken 12 times.
✗ Branch 1 not taken.
|
12 | switch (portNum) { |
| 3928 | 12 | case 0: | |
| 3929 | 12 | Ref::posixTime.timeGetPort_handlerBase( | |
| 3930 | 0, | ||
| 3931 | time | ||
| 3932 | ); | ||
| 3933 | 12 | break; | |
| 3934 | ✗ | default: | |
| 3935 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3936 | ✗ | break; | |
| 3937 | } | ||
| 3938 | 12 | } | |
| 3939 | |||
| 3940 | 6 | void RecvBuffComponentBase::Tlm_out( | |
| 3941 | FwIndexType portNum, | ||
| 3942 | FwChanIdType id, | ||
| 3943 | Fw::Time& timeTag, | ||
| 3944 | Fw::TlmBuffer& val | ||
| 3945 | ) const { | ||
| 3946 | 6 | FW_ASSERT( | |
| 3947 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 3948 | static_cast<FwAssertArgType>(portNum), | ||
| 3949 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 3950 | ); | ||
| 3951 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 3952 | 6 | case 0: | |
| 3953 | 6 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 3954 | 0, | ||
| 3955 | id, | ||
| 3956 | timeTag, | ||
| 3957 | val | ||
| 3958 | ); | ||
| 3959 | 6 | break; | |
| 3960 | ✗ | default: | |
| 3961 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 3962 | ✗ | break; | |
| 3963 | } | ||
| 3964 | 6 | } | |
| 3965 | |||
| 3966 | } | ||
| 3967 | |||
| 3968 | namespace Ref { | ||
| 3969 | |||
| 3970 | 1 | bool SendBuffComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const { | |
| 3971 | 1 | FW_ASSERT( | |
| 3972 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 3973 | static_cast<FwAssertArgType>(portNum), | ||
| 3974 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 3975 | ); | ||
| 3976 | 1 | bool result = false; | |
| 3977 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 3978 | 1 | case 0: | |
| 3979 | 1 | result = true; | |
| 3980 | 1 | break; | |
| 3981 | ✗ | default: | |
| 3982 | ✗ | break; | |
| 3983 | } | ||
| 3984 | 1 | return result; | |
| 3985 | } | ||
| 3986 | |||
| 3987 | 6 | bool SendBuffComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const { | |
| 3988 | 6 | FW_ASSERT( | |
| 3989 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 3990 | static_cast<FwAssertArgType>(portNum), | ||
| 3991 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 3992 | ); | ||
| 3993 | 6 | bool result = false; | |
| 3994 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 3995 | 6 | case 0: | |
| 3996 | 6 | result = true; | |
| 3997 | 6 | break; | |
| 3998 | ✗ | default: | |
| 3999 | ✗ | break; | |
| 4000 | } | ||
| 4001 | 6 | return result; | |
| 4002 | } | ||
| 4003 | |||
| 4004 | ✗ | bool SendBuffComponentBase::isConnected_Data_OutputPort(FwIndexType portNum) const { | |
| 4005 | ✗ | FW_ASSERT( | |
| 4006 | (0 <= portNum) && (portNum < NUM_DATA_OUTPUT_PORTS), | ||
| 4007 | static_cast<FwAssertArgType>(portNum), | ||
| 4008 | static_cast<FwAssertArgType>(NUM_DATA_OUTPUT_PORTS) | ||
| 4009 | ); | ||
| 4010 | ✗ | bool result = false; | |
| 4011 | ✗ | switch (portNum) { | |
| 4012 | ✗ | case 0: | |
| 4013 | ✗ | result = true; | |
| 4014 | ✗ | break; | |
| 4015 | ✗ | default: | |
| 4016 | ✗ | break; | |
| 4017 | } | ||
| 4018 | ✗ | return result; | |
| 4019 | } | ||
| 4020 | |||
| 4021 | 6 | bool SendBuffComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 4022 | 6 | FW_ASSERT( | |
| 4023 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 4024 | static_cast<FwAssertArgType>(portNum), | ||
| 4025 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 4026 | ); | ||
| 4027 | 6 | bool result = false; | |
| 4028 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 4029 | 6 | case 0: | |
| 4030 | 6 | result = true; | |
| 4031 | 6 | break; | |
| 4032 | ✗ | default: | |
| 4033 | ✗ | break; | |
| 4034 | } | ||
| 4035 | 6 | return result; | |
| 4036 | } | ||
| 4037 | |||
| 4038 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 4039 | |||
| 4040 | 6 | bool SendBuffComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 4041 | 6 | FW_ASSERT( | |
| 4042 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 4043 | static_cast<FwAssertArgType>(portNum), | ||
| 4044 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 4045 | ); | ||
| 4046 | 6 | bool result = false; | |
| 4047 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 4048 | 6 | case 0: | |
| 4049 | 6 | result = true; | |
| 4050 | 6 | break; | |
| 4051 | ✗ | default: | |
| 4052 | ✗ | break; | |
| 4053 | } | ||
| 4054 | 6 | return result; | |
| 4055 | } | ||
| 4056 | |||
| 4057 | #endif | ||
| 4058 | |||
| 4059 | 1 | bool SendBuffComponentBase::isConnected_ParamGet_OutputPort(FwIndexType portNum) const { | |
| 4060 | 1 | FW_ASSERT( | |
| 4061 | (0 <= portNum) && (portNum < NUM_PARAMGET_OUTPUT_PORTS), | ||
| 4062 | static_cast<FwAssertArgType>(portNum), | ||
| 4063 | static_cast<FwAssertArgType>(NUM_PARAMGET_OUTPUT_PORTS) | ||
| 4064 | ); | ||
| 4065 | 1 | bool result = false; | |
| 4066 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 4067 | 1 | case 0: | |
| 4068 | 1 | result = true; | |
| 4069 | 1 | break; | |
| 4070 | ✗ | default: | |
| 4071 | ✗ | break; | |
| 4072 | } | ||
| 4073 | 1 | return result; | |
| 4074 | } | ||
| 4075 | |||
| 4076 | 2 | bool SendBuffComponentBase::isConnected_ParamSet_OutputPort(FwIndexType portNum) const { | |
| 4077 | 2 | FW_ASSERT( | |
| 4078 | (0 <= portNum) && (portNum < NUM_PARAMSET_OUTPUT_PORTS), | ||
| 4079 | static_cast<FwAssertArgType>(portNum), | ||
| 4080 | static_cast<FwAssertArgType>(NUM_PARAMSET_OUTPUT_PORTS) | ||
| 4081 | ); | ||
| 4082 | 2 | bool result = false; | |
| 4083 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 4084 | 2 | case 0: | |
| 4085 | 2 | result = true; | |
| 4086 | 2 | break; | |
| 4087 | ✗ | default: | |
| 4088 | ✗ | break; | |
| 4089 | } | ||
| 4090 | 2 | return result; | |
| 4091 | } | ||
| 4092 | |||
| 4093 | 143 | bool SendBuffComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 4094 | 143 | FW_ASSERT( | |
| 4095 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 4096 | static_cast<FwAssertArgType>(portNum), | ||
| 4097 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 4098 | ); | ||
| 4099 | 143 | bool result = false; | |
| 4100 |
1/2✓ Branch 0 taken 143 times.
✗ Branch 1 not taken.
|
143 | switch (portNum) { |
| 4101 | 143 | case 0: | |
| 4102 | 143 | result = true; | |
| 4103 | 143 | break; | |
| 4104 | ✗ | default: | |
| 4105 | ✗ | break; | |
| 4106 | } | ||
| 4107 | 143 | return result; | |
| 4108 | } | ||
| 4109 | |||
| 4110 | 274 | bool SendBuffComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const { | |
| 4111 | 274 | FW_ASSERT( | |
| 4112 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 4113 | static_cast<FwAssertArgType>(portNum), | ||
| 4114 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 4115 | ); | ||
| 4116 | 274 | bool result = false; | |
| 4117 |
1/2✓ Branch 0 taken 274 times.
✗ Branch 1 not taken.
|
274 | switch (portNum) { |
| 4118 | 274 | case 0: | |
| 4119 | 274 | result = true; | |
| 4120 | 274 | break; | |
| 4121 | ✗ | default: | |
| 4122 | ✗ | break; | |
| 4123 | } | ||
| 4124 | 274 | return result; | |
| 4125 | } | ||
| 4126 | |||
| 4127 | 8 | void SendBuffComponentBase::CmdReg_out( | |
| 4128 | FwIndexType portNum, | ||
| 4129 | FwOpcodeType opCode | ||
| 4130 | ) const { | ||
| 4131 | 8 | FW_ASSERT( | |
| 4132 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 4133 | static_cast<FwAssertArgType>(portNum), | ||
| 4134 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 4135 | ); | ||
| 4136 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | switch (portNum) { |
| 4137 | 8 | case 0: | |
| 4138 | 8 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 4139 | 21, | ||
| 4140 | opCode | ||
| 4141 | ); | ||
| 4142 | 8 | break; | |
| 4143 | ✗ | default: | |
| 4144 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4145 | ✗ | break; | |
| 4146 | } | ||
| 4147 | 8 | } | |
| 4148 | |||
| 4149 | 6 | void SendBuffComponentBase::CmdStatus_out( | |
| 4150 | FwIndexType portNum, | ||
| 4151 | FwOpcodeType opCode, | ||
| 4152 | U32 cmdSeq, | ||
| 4153 | const Fw::CmdResponse& response | ||
| 4154 | ) const { | ||
| 4155 | 6 | FW_ASSERT( | |
| 4156 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 4157 | static_cast<FwAssertArgType>(portNum), | ||
| 4158 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 4159 | ); | ||
| 4160 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 4161 | 6 | case 0: | |
| 4162 | 6 | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 4163 | 0, | ||
| 4164 | opCode, | ||
| 4165 | cmdSeq, | ||
| 4166 | response | ||
| 4167 | ); | ||
| 4168 | 6 | break; | |
| 4169 | ✗ | default: | |
| 4170 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4171 | ✗ | break; | |
| 4172 | } | ||
| 4173 | 6 | } | |
| 4174 | |||
| 4175 | ✗ | void SendBuffComponentBase::Data_out( | |
| 4176 | FwIndexType portNum, | ||
| 4177 | Drv::DataBuffer& buff | ||
| 4178 | ) const { | ||
| 4179 | ✗ | FW_ASSERT( | |
| 4180 | (0 <= portNum) && (portNum < NUM_DATA_OUTPUT_PORTS), | ||
| 4181 | static_cast<FwAssertArgType>(portNum), | ||
| 4182 | static_cast<FwAssertArgType>(NUM_DATA_OUTPUT_PORTS) | ||
| 4183 | ); | ||
| 4184 | ✗ | switch (portNum) { | |
| 4185 | ✗ | case 0: | |
| 4186 | ✗ | Ref::blockDrv.BufferIn_handlerBase( | |
| 4187 | 0, | ||
| 4188 | buff | ||
| 4189 | ); | ||
| 4190 | ✗ | break; | |
| 4191 | ✗ | default: | |
| 4192 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4193 | ✗ | break; | |
| 4194 | } | ||
| 4195 | ✗ | } | |
| 4196 | |||
| 4197 | 6 | void SendBuffComponentBase::Log_out( | |
| 4198 | FwIndexType portNum, | ||
| 4199 | FwEventIdType id, | ||
| 4200 | Fw::Time& timeTag, | ||
| 4201 | const Fw::LogSeverity& severity, | ||
| 4202 | Fw::LogBuffer& args | ||
| 4203 | ) const { | ||
| 4204 | 6 | FW_ASSERT( | |
| 4205 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 4206 | static_cast<FwAssertArgType>(portNum), | ||
| 4207 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 4208 | ); | ||
| 4209 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 4210 | 6 | case 0: | |
| 4211 | 6 | CdhCore::events.LogRecv_handlerBase( | |
| 4212 | 0, | ||
| 4213 | id, | ||
| 4214 | timeTag, | ||
| 4215 | severity, | ||
| 4216 | args | ||
| 4217 | ); | ||
| 4218 | 6 | break; | |
| 4219 | ✗ | default: | |
| 4220 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4221 | ✗ | break; | |
| 4222 | } | ||
| 4223 | 6 | } | |
| 4224 | |||
| 4225 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 4226 | |||
| 4227 | 6 | void SendBuffComponentBase::LogText_out( | |
| 4228 | FwIndexType portNum, | ||
| 4229 | FwEventIdType id, | ||
| 4230 | Fw::Time& timeTag, | ||
| 4231 | const Fw::LogSeverity& severity, | ||
| 4232 | Fw::TextLogString& text | ||
| 4233 | ) const { | ||
| 4234 | 6 | FW_ASSERT( | |
| 4235 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 4236 | static_cast<FwAssertArgType>(portNum), | ||
| 4237 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 4238 | ); | ||
| 4239 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 4240 | 6 | case 0: | |
| 4241 | 6 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 4242 | 0, | ||
| 4243 | id, | ||
| 4244 | timeTag, | ||
| 4245 | severity, | ||
| 4246 | text | ||
| 4247 | ); | ||
| 4248 | 6 | break; | |
| 4249 | ✗ | default: | |
| 4250 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4251 | ✗ | break; | |
| 4252 | } | ||
| 4253 | 6 | } | |
| 4254 | |||
| 4255 | #endif | ||
| 4256 | |||
| 4257 | 2 | Fw::ParamValid SendBuffComponentBase::ParamGet_out( | |
| 4258 | FwIndexType portNum, | ||
| 4259 | FwPrmIdType id, | ||
| 4260 | Fw::ParamBuffer& val | ||
| 4261 | ) const { | ||
| 4262 | 2 | FW_ASSERT( | |
| 4263 | (0 <= portNum) && (portNum < NUM_PARAMGET_OUTPUT_PORTS), | ||
| 4264 | static_cast<FwAssertArgType>(portNum), | ||
| 4265 | static_cast<FwAssertArgType>(NUM_PARAMGET_OUTPUT_PORTS) | ||
| 4266 | ); | ||
| 4267 | 2 | Fw::ParamValid _result = {}; | |
| 4268 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 4269 | 2 | case 0: | |
| 4270 |
1/1✓ Branch 1 taken 2 times.
|
4 | _result = FileHandling::prmDb.getPrm_handlerBase( |
| 4271 | 0, | ||
| 4272 | id, | ||
| 4273 | val | ||
| 4274 |
1/1✓ Branch 1 taken 2 times.
|
2 | ); |
| 4275 | 2 | break; | |
| 4276 | ✗ | default: | |
| 4277 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4278 | ✗ | break; | |
| 4279 | } | ||
| 4280 | 2 | return _result; | |
| 4281 | ✗ | } | |
| 4282 | |||
| 4283 | 2 | void SendBuffComponentBase::ParamSet_out( | |
| 4284 | FwIndexType portNum, | ||
| 4285 | FwPrmIdType id, | ||
| 4286 | Fw::ParamBuffer& val | ||
| 4287 | ) const { | ||
| 4288 | 2 | FW_ASSERT( | |
| 4289 | (0 <= portNum) && (portNum < NUM_PARAMSET_OUTPUT_PORTS), | ||
| 4290 | static_cast<FwAssertArgType>(portNum), | ||
| 4291 | static_cast<FwAssertArgType>(NUM_PARAMSET_OUTPUT_PORTS) | ||
| 4292 | ); | ||
| 4293 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 4294 | 2 | case 0: | |
| 4295 | 2 | FileHandling::prmDb.setPrm_handlerBase( | |
| 4296 | 0, | ||
| 4297 | id, | ||
| 4298 | val | ||
| 4299 | ); | ||
| 4300 | 2 | break; | |
| 4301 | ✗ | default: | |
| 4302 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4303 | ✗ | break; | |
| 4304 | } | ||
| 4305 | 2 | } | |
| 4306 | |||
| 4307 | 143 | void SendBuffComponentBase::Time_out( | |
| 4308 | FwIndexType portNum, | ||
| 4309 | Fw::Time& time | ||
| 4310 | ) const { | ||
| 4311 | 143 | FW_ASSERT( | |
| 4312 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 4313 | static_cast<FwAssertArgType>(portNum), | ||
| 4314 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 4315 | ); | ||
| 4316 |
1/2✓ Branch 0 taken 143 times.
✗ Branch 1 not taken.
|
143 | switch (portNum) { |
| 4317 | 143 | case 0: | |
| 4318 | 143 | Ref::posixTime.timeGetPort_handlerBase( | |
| 4319 | 0, | ||
| 4320 | time | ||
| 4321 | ); | ||
| 4322 | 143 | break; | |
| 4323 | ✗ | default: | |
| 4324 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4325 | ✗ | break; | |
| 4326 | } | ||
| 4327 | 143 | } | |
| 4328 | |||
| 4329 | 137 | void SendBuffComponentBase::Tlm_out( | |
| 4330 | FwIndexType portNum, | ||
| 4331 | FwChanIdType id, | ||
| 4332 | Fw::Time& timeTag, | ||
| 4333 | Fw::TlmBuffer& val | ||
| 4334 | ) const { | ||
| 4335 | 137 | FW_ASSERT( | |
| 4336 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 4337 | static_cast<FwAssertArgType>(portNum), | ||
| 4338 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 4339 | ); | ||
| 4340 |
1/2✓ Branch 0 taken 137 times.
✗ Branch 1 not taken.
|
137 | switch (portNum) { |
| 4341 | 137 | case 0: | |
| 4342 | 137 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 4343 | 0, | ||
| 4344 | id, | ||
| 4345 | timeTag, | ||
| 4346 | val | ||
| 4347 | ); | ||
| 4348 | 137 | break; | |
| 4349 | ✗ | default: | |
| 4350 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4351 | ✗ | break; | |
| 4352 | } | ||
| 4353 | 137 | } | |
| 4354 | |||
| 4355 | } | ||
| 4356 | |||
| 4357 | namespace Ref { | ||
| 4358 | |||
| 4359 | 5 | bool SignalGenComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const { | |
| 4360 | 5 | FW_ASSERT( | |
| 4361 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 4362 | static_cast<FwAssertArgType>(portNum), | ||
| 4363 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 4364 | ); | ||
| 4365 | 5 | bool result = false; | |
| 4366 | 5 | const auto instance = this->getInstance(); | |
| 4367 |
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) { |
| 4368 | ✗ | default: | |
| 4369 | #ifdef FW_STRICT_ASSERTIONS | ||
| 4370 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 4371 | ✗ | break; | |
| 4372 | #else | ||
| 4373 | // Fall through | ||
| 4374 | #endif | ||
| 4375 | 1 | case ::Ref::InstanceIds::Ref_SG1: | |
| 4376 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 4377 | 1 | case 0: | |
| 4378 | 1 | result = true; | |
| 4379 | 1 | break; | |
| 4380 | ✗ | default: | |
| 4381 | ✗ | break; | |
| 4382 | } | ||
| 4383 | 1 | break; | |
| 4384 | 1 | case ::Ref::InstanceIds::Ref_SG2: | |
| 4385 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 4386 | 1 | case 0: | |
| 4387 | 1 | result = true; | |
| 4388 | 1 | break; | |
| 4389 | ✗ | default: | |
| 4390 | ✗ | break; | |
| 4391 | } | ||
| 4392 | 1 | break; | |
| 4393 | 1 | case ::Ref::InstanceIds::Ref_SG3: | |
| 4394 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 4395 | 1 | case 0: | |
| 4396 | 1 | result = true; | |
| 4397 | 1 | break; | |
| 4398 | ✗ | default: | |
| 4399 | ✗ | break; | |
| 4400 | } | ||
| 4401 | 1 | break; | |
| 4402 | 1 | case ::Ref::InstanceIds::Ref_SG4: | |
| 4403 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 4404 | 1 | case 0: | |
| 4405 | 1 | result = true; | |
| 4406 | 1 | break; | |
| 4407 | ✗ | default: | |
| 4408 | ✗ | break; | |
| 4409 | } | ||
| 4410 | 1 | break; | |
| 4411 | 1 | case ::Ref::InstanceIds::Ref_SG5: | |
| 4412 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 4413 | 1 | case 0: | |
| 4414 | 1 | result = true; | |
| 4415 | 1 | break; | |
| 4416 | ✗ | default: | |
| 4417 | ✗ | break; | |
| 4418 | } | ||
| 4419 | 1 | break; | |
| 4420 | } | ||
| 4421 | 5 | return result; | |
| 4422 | } | ||
| 4423 | |||
| 4424 | 3 | bool SignalGenComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const { | |
| 4425 | 3 | FW_ASSERT( | |
| 4426 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 4427 | static_cast<FwAssertArgType>(portNum), | ||
| 4428 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 4429 | ); | ||
| 4430 | 3 | bool result = false; | |
| 4431 | 3 | const auto instance = this->getInstance(); | |
| 4432 |
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) { |
| 4433 | ✗ | default: | |
| 4434 | #ifdef FW_STRICT_ASSERTIONS | ||
| 4435 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 4436 | ✗ | break; | |
| 4437 | #else | ||
| 4438 | // Fall through | ||
| 4439 | #endif | ||
| 4440 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 4441 | ✗ | switch (portNum) { | |
| 4442 | ✗ | case 0: | |
| 4443 | ✗ | result = true; | |
| 4444 | ✗ | break; | |
| 4445 | ✗ | default: | |
| 4446 | ✗ | break; | |
| 4447 | } | ||
| 4448 | ✗ | break; | |
| 4449 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 4450 | ✗ | switch (portNum) { | |
| 4451 | ✗ | case 0: | |
| 4452 | ✗ | result = true; | |
| 4453 | ✗ | break; | |
| 4454 | ✗ | default: | |
| 4455 | ✗ | break; | |
| 4456 | } | ||
| 4457 | ✗ | break; | |
| 4458 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 4459 | ✗ | switch (portNum) { | |
| 4460 | ✗ | case 0: | |
| 4461 | ✗ | result = true; | |
| 4462 | ✗ | break; | |
| 4463 | ✗ | default: | |
| 4464 | ✗ | break; | |
| 4465 | } | ||
| 4466 | ✗ | break; | |
| 4467 | 3 | case ::Ref::InstanceIds::Ref_SG4: | |
| 4468 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 4469 | 3 | case 0: | |
| 4470 | 3 | result = true; | |
| 4471 | 3 | break; | |
| 4472 | ✗ | default: | |
| 4473 | ✗ | break; | |
| 4474 | } | ||
| 4475 | 3 | break; | |
| 4476 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 4477 | ✗ | switch (portNum) { | |
| 4478 | ✗ | case 0: | |
| 4479 | ✗ | result = true; | |
| 4480 | ✗ | break; | |
| 4481 | ✗ | default: | |
| 4482 | ✗ | break; | |
| 4483 | } | ||
| 4484 | ✗ | break; | |
| 4485 | } | ||
| 4486 | 3 | return result; | |
| 4487 | } | ||
| 4488 | |||
| 4489 | 1 | bool SignalGenComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 4490 | 1 | FW_ASSERT( | |
| 4491 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 4492 | static_cast<FwAssertArgType>(portNum), | ||
| 4493 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 4494 | ); | ||
| 4495 | 1 | bool result = false; | |
| 4496 | 1 | const auto instance = this->getInstance(); | |
| 4497 |
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) { |
| 4498 | ✗ | default: | |
| 4499 | #ifdef FW_STRICT_ASSERTIONS | ||
| 4500 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 4501 | ✗ | break; | |
| 4502 | #else | ||
| 4503 | // Fall through | ||
| 4504 | #endif | ||
| 4505 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 4506 | ✗ | switch (portNum) { | |
| 4507 | ✗ | case 0: | |
| 4508 | ✗ | result = true; | |
| 4509 | ✗ | break; | |
| 4510 | ✗ | default: | |
| 4511 | ✗ | break; | |
| 4512 | } | ||
| 4513 | ✗ | break; | |
| 4514 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 4515 | ✗ | switch (portNum) { | |
| 4516 | ✗ | case 0: | |
| 4517 | ✗ | result = true; | |
| 4518 | ✗ | break; | |
| 4519 | ✗ | default: | |
| 4520 | ✗ | break; | |
| 4521 | } | ||
| 4522 | ✗ | break; | |
| 4523 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 4524 | ✗ | switch (portNum) { | |
| 4525 | ✗ | case 0: | |
| 4526 | ✗ | result = true; | |
| 4527 | ✗ | break; | |
| 4528 | ✗ | default: | |
| 4529 | ✗ | break; | |
| 4530 | } | ||
| 4531 | ✗ | break; | |
| 4532 | 1 | case ::Ref::InstanceIds::Ref_SG4: | |
| 4533 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 4534 | 1 | case 0: | |
| 4535 | 1 | result = true; | |
| 4536 | 1 | break; | |
| 4537 | ✗ | default: | |
| 4538 | ✗ | break; | |
| 4539 | } | ||
| 4540 | 1 | break; | |
| 4541 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 4542 | ✗ | switch (portNum) { | |
| 4543 | ✗ | case 0: | |
| 4544 | ✗ | result = true; | |
| 4545 | ✗ | break; | |
| 4546 | ✗ | default: | |
| 4547 | ✗ | break; | |
| 4548 | } | ||
| 4549 | ✗ | break; | |
| 4550 | } | ||
| 4551 | 1 | return result; | |
| 4552 | } | ||
| 4553 | |||
| 4554 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 4555 | |||
| 4556 | 1 | bool SignalGenComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 4557 | 1 | FW_ASSERT( | |
| 4558 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 4559 | static_cast<FwAssertArgType>(portNum), | ||
| 4560 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 4561 | ); | ||
| 4562 | 1 | bool result = false; | |
| 4563 | 1 | const auto instance = this->getInstance(); | |
| 4564 |
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) { |
| 4565 | ✗ | default: | |
| 4566 | #ifdef FW_STRICT_ASSERTIONS | ||
| 4567 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 4568 | ✗ | break; | |
| 4569 | #else | ||
| 4570 | // Fall through | ||
| 4571 | #endif | ||
| 4572 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 4573 | ✗ | switch (portNum) { | |
| 4574 | ✗ | case 0: | |
| 4575 | ✗ | result = true; | |
| 4576 | ✗ | break; | |
| 4577 | ✗ | default: | |
| 4578 | ✗ | break; | |
| 4579 | } | ||
| 4580 | ✗ | break; | |
| 4581 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 4582 | ✗ | switch (portNum) { | |
| 4583 | ✗ | case 0: | |
| 4584 | ✗ | result = true; | |
| 4585 | ✗ | break; | |
| 4586 | ✗ | default: | |
| 4587 | ✗ | break; | |
| 4588 | } | ||
| 4589 | ✗ | break; | |
| 4590 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 4591 | ✗ | switch (portNum) { | |
| 4592 | ✗ | case 0: | |
| 4593 | ✗ | result = true; | |
| 4594 | ✗ | break; | |
| 4595 | ✗ | default: | |
| 4596 | ✗ | break; | |
| 4597 | } | ||
| 4598 | ✗ | break; | |
| 4599 | 1 | case ::Ref::InstanceIds::Ref_SG4: | |
| 4600 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 4601 | 1 | case 0: | |
| 4602 | 1 | result = true; | |
| 4603 | 1 | break; | |
| 4604 | ✗ | default: | |
| 4605 | ✗ | break; | |
| 4606 | } | ||
| 4607 | 1 | break; | |
| 4608 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 4609 | ✗ | switch (portNum) { | |
| 4610 | ✗ | case 0: | |
| 4611 | ✗ | result = true; | |
| 4612 | ✗ | break; | |
| 4613 | ✗ | default: | |
| 4614 | ✗ | break; | |
| 4615 | } | ||
| 4616 | ✗ | break; | |
| 4617 | } | ||
| 4618 | 1 | return result; | |
| 4619 | } | ||
| 4620 | |||
| 4621 | #endif | ||
| 4622 | |||
| 4623 | ✗ | bool SignalGenComponentBase::isConnected_productGetOut_OutputPort(FwIndexType portNum) const { | |
| 4624 | ✗ | FW_ASSERT( | |
| 4625 | (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS), | ||
| 4626 | static_cast<FwAssertArgType>(portNum), | ||
| 4627 | static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS) | ||
| 4628 | ); | ||
| 4629 | ✗ | bool result = false; | |
| 4630 | ✗ | const auto instance = this->getInstance(); | |
| 4631 | ✗ | switch (instance) { | |
| 4632 | ✗ | default: | |
| 4633 | #ifdef FW_STRICT_ASSERTIONS | ||
| 4634 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 4635 | ✗ | break; | |
| 4636 | #else | ||
| 4637 | // Fall through | ||
| 4638 | #endif | ||
| 4639 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 4640 | ✗ | switch (portNum) { | |
| 4641 | ✗ | case 0: | |
| 4642 | ✗ | result = true; | |
| 4643 | ✗ | break; | |
| 4644 | ✗ | default: | |
| 4645 | ✗ | break; | |
| 4646 | } | ||
| 4647 | ✗ | break; | |
| 4648 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 4649 | ✗ | switch (portNum) { | |
| 4650 | default: | ||
| 4651 | ✗ | break; | |
| 4652 | } | ||
| 4653 | ✗ | break; | |
| 4654 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 4655 | ✗ | switch (portNum) { | |
| 4656 | default: | ||
| 4657 | ✗ | break; | |
| 4658 | } | ||
| 4659 | ✗ | break; | |
| 4660 | ✗ | case ::Ref::InstanceIds::Ref_SG4: | |
| 4661 | ✗ | switch (portNum) { | |
| 4662 | default: | ||
| 4663 | ✗ | break; | |
| 4664 | } | ||
| 4665 | ✗ | break; | |
| 4666 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 4667 | ✗ | switch (portNum) { | |
| 4668 | default: | ||
| 4669 | ✗ | break; | |
| 4670 | } | ||
| 4671 | ✗ | break; | |
| 4672 | } | ||
| 4673 | ✗ | return result; | |
| 4674 | } | ||
| 4675 | |||
| 4676 | ✗ | bool SignalGenComponentBase::isConnected_productRequestOut_OutputPort(FwIndexType portNum) const { | |
| 4677 | ✗ | FW_ASSERT( | |
| 4678 | (0 <= portNum) && (portNum < NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS), | ||
| 4679 | static_cast<FwAssertArgType>(portNum), | ||
| 4680 | static_cast<FwAssertArgType>(NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS) | ||
| 4681 | ); | ||
| 4682 | ✗ | bool result = false; | |
| 4683 | ✗ | const auto instance = this->getInstance(); | |
| 4684 | ✗ | switch (instance) { | |
| 4685 | ✗ | default: | |
| 4686 | #ifdef FW_STRICT_ASSERTIONS | ||
| 4687 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 4688 | ✗ | break; | |
| 4689 | #else | ||
| 4690 | // Fall through | ||
| 4691 | #endif | ||
| 4692 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 4693 | ✗ | switch (portNum) { | |
| 4694 | ✗ | case 0: | |
| 4695 | ✗ | result = true; | |
| 4696 | ✗ | break; | |
| 4697 | ✗ | default: | |
| 4698 | ✗ | break; | |
| 4699 | } | ||
| 4700 | ✗ | break; | |
| 4701 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 4702 | ✗ | switch (portNum) { | |
| 4703 | default: | ||
| 4704 | ✗ | break; | |
| 4705 | } | ||
| 4706 | ✗ | break; | |
| 4707 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 4708 | ✗ | switch (portNum) { | |
| 4709 | default: | ||
| 4710 | ✗ | break; | |
| 4711 | } | ||
| 4712 | ✗ | break; | |
| 4713 | ✗ | case ::Ref::InstanceIds::Ref_SG4: | |
| 4714 | ✗ | switch (portNum) { | |
| 4715 | default: | ||
| 4716 | ✗ | break; | |
| 4717 | } | ||
| 4718 | ✗ | break; | |
| 4719 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 4720 | ✗ | switch (portNum) { | |
| 4721 | default: | ||
| 4722 | ✗ | break; | |
| 4723 | } | ||
| 4724 | ✗ | break; | |
| 4725 | } | ||
| 4726 | ✗ | return result; | |
| 4727 | } | ||
| 4728 | |||
| 4729 | ✗ | bool SignalGenComponentBase::isConnected_productSendOut_OutputPort(FwIndexType portNum) const { | |
| 4730 | ✗ | FW_ASSERT( | |
| 4731 | (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS), | ||
| 4732 | static_cast<FwAssertArgType>(portNum), | ||
| 4733 | static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS) | ||
| 4734 | ); | ||
| 4735 | ✗ | bool result = false; | |
| 4736 | ✗ | const auto instance = this->getInstance(); | |
| 4737 | ✗ | switch (instance) { | |
| 4738 | ✗ | default: | |
| 4739 | #ifdef FW_STRICT_ASSERTIONS | ||
| 4740 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 4741 | ✗ | break; | |
| 4742 | #else | ||
| 4743 | // Fall through | ||
| 4744 | #endif | ||
| 4745 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 4746 | ✗ | switch (portNum) { | |
| 4747 | ✗ | case 0: | |
| 4748 | ✗ | result = true; | |
| 4749 | ✗ | break; | |
| 4750 | ✗ | default: | |
| 4751 | ✗ | break; | |
| 4752 | } | ||
| 4753 | ✗ | break; | |
| 4754 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 4755 | ✗ | switch (portNum) { | |
| 4756 | default: | ||
| 4757 | ✗ | break; | |
| 4758 | } | ||
| 4759 | ✗ | break; | |
| 4760 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 4761 | ✗ | switch (portNum) { | |
| 4762 | default: | ||
| 4763 | ✗ | break; | |
| 4764 | } | ||
| 4765 | ✗ | break; | |
| 4766 | ✗ | case ::Ref::InstanceIds::Ref_SG4: | |
| 4767 | ✗ | switch (portNum) { | |
| 4768 | default: | ||
| 4769 | ✗ | break; | |
| 4770 | } | ||
| 4771 | ✗ | break; | |
| 4772 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 4773 | ✗ | switch (portNum) { | |
| 4774 | default: | ||
| 4775 | ✗ | break; | |
| 4776 | } | ||
| 4777 | ✗ | break; | |
| 4778 | } | ||
| 4779 | ✗ | return result; | |
| 4780 | } | ||
| 4781 | |||
| 4782 | 8 | bool SignalGenComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 4783 | 8 | FW_ASSERT( | |
| 4784 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 4785 | static_cast<FwAssertArgType>(portNum), | ||
| 4786 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 4787 | ); | ||
| 4788 | 8 | bool result = false; | |
| 4789 | 8 | const auto instance = this->getInstance(); | |
| 4790 |
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) { |
| 4791 | ✗ | default: | |
| 4792 | #ifdef FW_STRICT_ASSERTIONS | ||
| 4793 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 4794 | ✗ | break; | |
| 4795 | #else | ||
| 4796 | // Fall through | ||
| 4797 | #endif | ||
| 4798 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 4799 | ✗ | switch (portNum) { | |
| 4800 | ✗ | case 0: | |
| 4801 | ✗ | result = true; | |
| 4802 | ✗ | break; | |
| 4803 | ✗ | default: | |
| 4804 | ✗ | break; | |
| 4805 | } | ||
| 4806 | ✗ | break; | |
| 4807 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 4808 | ✗ | switch (portNum) { | |
| 4809 | ✗ | case 0: | |
| 4810 | ✗ | result = true; | |
| 4811 | ✗ | break; | |
| 4812 | ✗ | default: | |
| 4813 | ✗ | break; | |
| 4814 | } | ||
| 4815 | ✗ | break; | |
| 4816 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 4817 | ✗ | switch (portNum) { | |
| 4818 | ✗ | case 0: | |
| 4819 | ✗ | result = true; | |
| 4820 | ✗ | break; | |
| 4821 | ✗ | default: | |
| 4822 | ✗ | break; | |
| 4823 | } | ||
| 4824 | ✗ | break; | |
| 4825 | 8 | case ::Ref::InstanceIds::Ref_SG4: | |
| 4826 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | switch (portNum) { |
| 4827 | 8 | case 0: | |
| 4828 | 8 | result = true; | |
| 4829 | 8 | break; | |
| 4830 | ✗ | default: | |
| 4831 | ✗ | break; | |
| 4832 | } | ||
| 4833 | 8 | break; | |
| 4834 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 4835 | ✗ | switch (portNum) { | |
| 4836 | ✗ | case 0: | |
| 4837 | ✗ | result = true; | |
| 4838 | ✗ | break; | |
| 4839 | ✗ | default: | |
| 4840 | ✗ | break; | |
| 4841 | } | ||
| 4842 | ✗ | break; | |
| 4843 | } | ||
| 4844 | 8 | return result; | |
| 4845 | } | ||
| 4846 | |||
| 4847 | 14 | bool SignalGenComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 4848 | 14 | FW_ASSERT( | |
| 4849 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 4850 | static_cast<FwAssertArgType>(portNum), | ||
| 4851 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 4852 | ); | ||
| 4853 | 14 | bool result = false; | |
| 4854 | 14 | const auto instance = this->getInstance(); | |
| 4855 |
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) { |
| 4856 | ✗ | default: | |
| 4857 | #ifdef FW_STRICT_ASSERTIONS | ||
| 4858 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 4859 | ✗ | break; | |
| 4860 | #else | ||
| 4861 | // Fall through | ||
| 4862 | #endif | ||
| 4863 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 4864 | ✗ | switch (portNum) { | |
| 4865 | ✗ | case 0: | |
| 4866 | ✗ | result = true; | |
| 4867 | ✗ | break; | |
| 4868 | ✗ | default: | |
| 4869 | ✗ | break; | |
| 4870 | } | ||
| 4871 | ✗ | break; | |
| 4872 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 4873 | ✗ | switch (portNum) { | |
| 4874 | ✗ | case 0: | |
| 4875 | ✗ | result = true; | |
| 4876 | ✗ | break; | |
| 4877 | ✗ | default: | |
| 4878 | ✗ | break; | |
| 4879 | } | ||
| 4880 | ✗ | break; | |
| 4881 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 4882 | ✗ | switch (portNum) { | |
| 4883 | ✗ | case 0: | |
| 4884 | ✗ | result = true; | |
| 4885 | ✗ | break; | |
| 4886 | ✗ | default: | |
| 4887 | ✗ | break; | |
| 4888 | } | ||
| 4889 | ✗ | break; | |
| 4890 | 14 | case ::Ref::InstanceIds::Ref_SG4: | |
| 4891 |
1/2✓ Branch 0 taken 14 times.
✗ Branch 1 not taken.
|
14 | switch (portNum) { |
| 4892 | 14 | case 0: | |
| 4893 | 14 | result = true; | |
| 4894 | 14 | break; | |
| 4895 | ✗ | default: | |
| 4896 | ✗ | break; | |
| 4897 | } | ||
| 4898 | 14 | break; | |
| 4899 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 4900 | ✗ | switch (portNum) { | |
| 4901 | ✗ | case 0: | |
| 4902 | ✗ | result = true; | |
| 4903 | ✗ | break; | |
| 4904 | ✗ | default: | |
| 4905 | ✗ | break; | |
| 4906 | } | ||
| 4907 | ✗ | break; | |
| 4908 | } | ||
| 4909 | 14 | return result; | |
| 4910 | } | ||
| 4911 | |||
| 4912 | 20 | void SignalGenComponentBase::cmdRegOut_out( | |
| 4913 | FwIndexType portNum, | ||
| 4914 | FwOpcodeType opCode | ||
| 4915 | ) const { | ||
| 4916 | 20 | FW_ASSERT( | |
| 4917 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 4918 | static_cast<FwAssertArgType>(portNum), | ||
| 4919 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 4920 | ); | ||
| 4921 | 20 | const auto instance = this->getInstance(); | |
| 4922 |
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) { |
| 4923 | ✗ | default: | |
| 4924 | #ifdef FW_STRICT_ASSERTIONS | ||
| 4925 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 4926 | ✗ | break; | |
| 4927 | #else | ||
| 4928 | // Fall through | ||
| 4929 | #endif | ||
| 4930 | 4 | case ::Ref::InstanceIds::Ref_SG1: | |
| 4931 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 4932 | 4 | case 0: | |
| 4933 | 4 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 4934 | 12, | ||
| 4935 | opCode | ||
| 4936 | ); | ||
| 4937 | 4 | break; | |
| 4938 | ✗ | default: | |
| 4939 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4940 | ✗ | break; | |
| 4941 | } | ||
| 4942 | 4 | break; | |
| 4943 | 4 | case ::Ref::InstanceIds::Ref_SG2: | |
| 4944 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 4945 | 4 | case 0: | |
| 4946 | 4 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 4947 | 13, | ||
| 4948 | opCode | ||
| 4949 | ); | ||
| 4950 | 4 | break; | |
| 4951 | ✗ | default: | |
| 4952 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4953 | ✗ | break; | |
| 4954 | } | ||
| 4955 | 4 | break; | |
| 4956 | 4 | case ::Ref::InstanceIds::Ref_SG3: | |
| 4957 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 4958 | 4 | case 0: | |
| 4959 | 4 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 4960 | 14, | ||
| 4961 | opCode | ||
| 4962 | ); | ||
| 4963 | 4 | break; | |
| 4964 | ✗ | default: | |
| 4965 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4966 | ✗ | break; | |
| 4967 | } | ||
| 4968 | 4 | break; | |
| 4969 | 4 | case ::Ref::InstanceIds::Ref_SG4: | |
| 4970 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 4971 | 4 | case 0: | |
| 4972 | 4 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 4973 | 15, | ||
| 4974 | opCode | ||
| 4975 | ); | ||
| 4976 | 4 | break; | |
| 4977 | ✗ | default: | |
| 4978 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4979 | ✗ | break; | |
| 4980 | } | ||
| 4981 | 4 | break; | |
| 4982 | 4 | case ::Ref::InstanceIds::Ref_SG5: | |
| 4983 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 4984 | 4 | case 0: | |
| 4985 | 4 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 4986 | 16, | ||
| 4987 | opCode | ||
| 4988 | ); | ||
| 4989 | 4 | break; | |
| 4990 | ✗ | default: | |
| 4991 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 4992 | ✗ | break; | |
| 4993 | } | ||
| 4994 | 4 | break; | |
| 4995 | } | ||
| 4996 | 20 | } | |
| 4997 | |||
| 4998 | 3 | void SignalGenComponentBase::cmdResponseOut_out( | |
| 4999 | FwIndexType portNum, | ||
| 5000 | FwOpcodeType opCode, | ||
| 5001 | U32 cmdSeq, | ||
| 5002 | const Fw::CmdResponse& response | ||
| 5003 | ) const { | ||
| 5004 | 3 | FW_ASSERT( | |
| 5005 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 5006 | static_cast<FwAssertArgType>(portNum), | ||
| 5007 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 5008 | ); | ||
| 5009 | 3 | const auto instance = this->getInstance(); | |
| 5010 |
1/6✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 3 times.
✗ Branch 5 not taken.
|
3 | switch (instance) { |
| 5011 | ✗ | default: | |
| 5012 | #ifdef FW_STRICT_ASSERTIONS | ||
| 5013 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 5014 | ✗ | break; | |
| 5015 | #else | ||
| 5016 | // Fall through | ||
| 5017 | #endif | ||
| 5018 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 5019 | ✗ | switch (portNum) { | |
| 5020 | ✗ | case 0: | |
| 5021 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 5022 | 0, | ||
| 5023 | opCode, | ||
| 5024 | cmdSeq, | ||
| 5025 | response | ||
| 5026 | ); | ||
| 5027 | ✗ | break; | |
| 5028 | ✗ | default: | |
| 5029 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5030 | ✗ | break; | |
| 5031 | } | ||
| 5032 | ✗ | break; | |
| 5033 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 5034 | ✗ | switch (portNum) { | |
| 5035 | ✗ | case 0: | |
| 5036 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 5037 | 0, | ||
| 5038 | opCode, | ||
| 5039 | cmdSeq, | ||
| 5040 | response | ||
| 5041 | ); | ||
| 5042 | ✗ | break; | |
| 5043 | ✗ | default: | |
| 5044 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5045 | ✗ | break; | |
| 5046 | } | ||
| 5047 | ✗ | break; | |
| 5048 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 5049 | ✗ | switch (portNum) { | |
| 5050 | ✗ | case 0: | |
| 5051 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 5052 | 0, | ||
| 5053 | opCode, | ||
| 5054 | cmdSeq, | ||
| 5055 | response | ||
| 5056 | ); | ||
| 5057 | ✗ | break; | |
| 5058 | ✗ | default: | |
| 5059 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5060 | ✗ | break; | |
| 5061 | } | ||
| 5062 | ✗ | break; | |
| 5063 | 3 | case ::Ref::InstanceIds::Ref_SG4: | |
| 5064 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 5065 | 3 | case 0: | |
| 5066 | 3 | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 5067 | 0, | ||
| 5068 | opCode, | ||
| 5069 | cmdSeq, | ||
| 5070 | response | ||
| 5071 | ); | ||
| 5072 | 3 | break; | |
| 5073 | ✗ | default: | |
| 5074 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5075 | ✗ | break; | |
| 5076 | } | ||
| 5077 | 3 | break; | |
| 5078 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 5079 | ✗ | switch (portNum) { | |
| 5080 | ✗ | case 0: | |
| 5081 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 5082 | 0, | ||
| 5083 | opCode, | ||
| 5084 | cmdSeq, | ||
| 5085 | response | ||
| 5086 | ); | ||
| 5087 | ✗ | break; | |
| 5088 | ✗ | default: | |
| 5089 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5090 | ✗ | break; | |
| 5091 | } | ||
| 5092 | ✗ | break; | |
| 5093 | } | ||
| 5094 | 3 | } | |
| 5095 | |||
| 5096 | 1 | void SignalGenComponentBase::logOut_out( | |
| 5097 | FwIndexType portNum, | ||
| 5098 | FwEventIdType id, | ||
| 5099 | Fw::Time& timeTag, | ||
| 5100 | const Fw::LogSeverity& severity, | ||
| 5101 | Fw::LogBuffer& args | ||
| 5102 | ) const { | ||
| 5103 | 1 | FW_ASSERT( | |
| 5104 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 5105 | static_cast<FwAssertArgType>(portNum), | ||
| 5106 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 5107 | ); | ||
| 5108 | 1 | const auto instance = this->getInstance(); | |
| 5109 |
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) { |
| 5110 | ✗ | default: | |
| 5111 | #ifdef FW_STRICT_ASSERTIONS | ||
| 5112 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 5113 | ✗ | break; | |
| 5114 | #else | ||
| 5115 | // Fall through | ||
| 5116 | #endif | ||
| 5117 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 5118 | ✗ | switch (portNum) { | |
| 5119 | ✗ | case 0: | |
| 5120 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 5121 | 0, | ||
| 5122 | id, | ||
| 5123 | timeTag, | ||
| 5124 | severity, | ||
| 5125 | args | ||
| 5126 | ); | ||
| 5127 | ✗ | break; | |
| 5128 | ✗ | default: | |
| 5129 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5130 | ✗ | break; | |
| 5131 | } | ||
| 5132 | ✗ | break; | |
| 5133 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 5134 | ✗ | switch (portNum) { | |
| 5135 | ✗ | case 0: | |
| 5136 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 5137 | 0, | ||
| 5138 | id, | ||
| 5139 | timeTag, | ||
| 5140 | severity, | ||
| 5141 | args | ||
| 5142 | ); | ||
| 5143 | ✗ | break; | |
| 5144 | ✗ | default: | |
| 5145 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5146 | ✗ | break; | |
| 5147 | } | ||
| 5148 | ✗ | break; | |
| 5149 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 5150 | ✗ | switch (portNum) { | |
| 5151 | ✗ | case 0: | |
| 5152 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 5153 | 0, | ||
| 5154 | id, | ||
| 5155 | timeTag, | ||
| 5156 | severity, | ||
| 5157 | args | ||
| 5158 | ); | ||
| 5159 | ✗ | break; | |
| 5160 | ✗ | default: | |
| 5161 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5162 | ✗ | break; | |
| 5163 | } | ||
| 5164 | ✗ | break; | |
| 5165 | 1 | case ::Ref::InstanceIds::Ref_SG4: | |
| 5166 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 5167 | 1 | case 0: | |
| 5168 | 1 | CdhCore::events.LogRecv_handlerBase( | |
| 5169 | 0, | ||
| 5170 | id, | ||
| 5171 | timeTag, | ||
| 5172 | severity, | ||
| 5173 | args | ||
| 5174 | ); | ||
| 5175 | 1 | break; | |
| 5176 | ✗ | default: | |
| 5177 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5178 | ✗ | break; | |
| 5179 | } | ||
| 5180 | 1 | break; | |
| 5181 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 5182 | ✗ | switch (portNum) { | |
| 5183 | ✗ | case 0: | |
| 5184 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 5185 | 0, | ||
| 5186 | id, | ||
| 5187 | timeTag, | ||
| 5188 | severity, | ||
| 5189 | args | ||
| 5190 | ); | ||
| 5191 | ✗ | break; | |
| 5192 | ✗ | default: | |
| 5193 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5194 | ✗ | break; | |
| 5195 | } | ||
| 5196 | ✗ | break; | |
| 5197 | } | ||
| 5198 | 1 | } | |
| 5199 | |||
| 5200 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 5201 | |||
| 5202 | 1 | void SignalGenComponentBase::logTextOut_out( | |
| 5203 | FwIndexType portNum, | ||
| 5204 | FwEventIdType id, | ||
| 5205 | Fw::Time& timeTag, | ||
| 5206 | const Fw::LogSeverity& severity, | ||
| 5207 | Fw::TextLogString& text | ||
| 5208 | ) const { | ||
| 5209 | 1 | FW_ASSERT( | |
| 5210 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 5211 | static_cast<FwAssertArgType>(portNum), | ||
| 5212 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 5213 | ); | ||
| 5214 | 1 | const auto instance = this->getInstance(); | |
| 5215 |
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) { |
| 5216 | ✗ | default: | |
| 5217 | #ifdef FW_STRICT_ASSERTIONS | ||
| 5218 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 5219 | ✗ | break; | |
| 5220 | #else | ||
| 5221 | // Fall through | ||
| 5222 | #endif | ||
| 5223 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 5224 | ✗ | switch (portNum) { | |
| 5225 | ✗ | case 0: | |
| 5226 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 5227 | 0, | ||
| 5228 | id, | ||
| 5229 | timeTag, | ||
| 5230 | severity, | ||
| 5231 | text | ||
| 5232 | ); | ||
| 5233 | ✗ | break; | |
| 5234 | ✗ | default: | |
| 5235 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5236 | ✗ | break; | |
| 5237 | } | ||
| 5238 | ✗ | break; | |
| 5239 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 5240 | ✗ | switch (portNum) { | |
| 5241 | ✗ | case 0: | |
| 5242 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 5243 | 0, | ||
| 5244 | id, | ||
| 5245 | timeTag, | ||
| 5246 | severity, | ||
| 5247 | text | ||
| 5248 | ); | ||
| 5249 | ✗ | break; | |
| 5250 | ✗ | default: | |
| 5251 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5252 | ✗ | break; | |
| 5253 | } | ||
| 5254 | ✗ | break; | |
| 5255 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 5256 | ✗ | switch (portNum) { | |
| 5257 | ✗ | case 0: | |
| 5258 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 5259 | 0, | ||
| 5260 | id, | ||
| 5261 | timeTag, | ||
| 5262 | severity, | ||
| 5263 | text | ||
| 5264 | ); | ||
| 5265 | ✗ | break; | |
| 5266 | ✗ | default: | |
| 5267 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5268 | ✗ | break; | |
| 5269 | } | ||
| 5270 | ✗ | break; | |
| 5271 | 1 | case ::Ref::InstanceIds::Ref_SG4: | |
| 5272 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 5273 | 1 | case 0: | |
| 5274 | 1 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 5275 | 0, | ||
| 5276 | id, | ||
| 5277 | timeTag, | ||
| 5278 | severity, | ||
| 5279 | text | ||
| 5280 | ); | ||
| 5281 | 1 | break; | |
| 5282 | ✗ | default: | |
| 5283 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5284 | ✗ | break; | |
| 5285 | } | ||
| 5286 | 1 | break; | |
| 5287 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 5288 | ✗ | switch (portNum) { | |
| 5289 | ✗ | case 0: | |
| 5290 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 5291 | 0, | ||
| 5292 | id, | ||
| 5293 | timeTag, | ||
| 5294 | severity, | ||
| 5295 | text | ||
| 5296 | ); | ||
| 5297 | ✗ | break; | |
| 5298 | ✗ | default: | |
| 5299 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5300 | ✗ | break; | |
| 5301 | } | ||
| 5302 | ✗ | break; | |
| 5303 | } | ||
| 5304 | 1 | } | |
| 5305 | |||
| 5306 | #endif | ||
| 5307 | |||
| 5308 | ✗ | Fw::Success SignalGenComponentBase::productGetOut_out( | |
| 5309 | FwIndexType portNum, | ||
| 5310 | FwDpIdType id, | ||
| 5311 | FwSizeType dataSize, | ||
| 5312 | Fw::Buffer& buffer | ||
| 5313 | ) const { | ||
| 5314 | ✗ | FW_ASSERT( | |
| 5315 | (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS), | ||
| 5316 | static_cast<FwAssertArgType>(portNum), | ||
| 5317 | static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS) | ||
| 5318 | ); | ||
| 5319 | ✗ | Fw::Success _result = {}; | |
| 5320 | ✗ | const auto instance = this->getInstance(); | |
| 5321 | ✗ | switch (instance) { | |
| 5322 | ✗ | default: | |
| 5323 | #ifdef FW_STRICT_ASSERTIONS | ||
| 5324 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 5325 | ✗ | break; | |
| 5326 | #else | ||
| 5327 | // Fall through | ||
| 5328 | #endif | ||
| 5329 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 5330 | ✗ | switch (portNum) { | |
| 5331 | ✗ | case 0: | |
| 5332 | ✗ | _result = DataProducts::dpMgr.productGetIn_handlerBase( | |
| 5333 | 0, | ||
| 5334 | id, | ||
| 5335 | dataSize, | ||
| 5336 | buffer | ||
| 5337 | ✗ | ); | |
| 5338 | ✗ | break; | |
| 5339 | ✗ | default: | |
| 5340 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5341 | ✗ | break; | |
| 5342 | } | ||
| 5343 | ✗ | break; | |
| 5344 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 5345 | ✗ | switch (portNum) { | |
| 5346 | default: | ||
| 5347 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5348 | ✗ | break; | |
| 5349 | } | ||
| 5350 | ✗ | break; | |
| 5351 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 5352 | ✗ | switch (portNum) { | |
| 5353 | default: | ||
| 5354 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5355 | ✗ | break; | |
| 5356 | } | ||
| 5357 | ✗ | break; | |
| 5358 | ✗ | case ::Ref::InstanceIds::Ref_SG4: | |
| 5359 | ✗ | switch (portNum) { | |
| 5360 | default: | ||
| 5361 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5362 | ✗ | break; | |
| 5363 | } | ||
| 5364 | ✗ | break; | |
| 5365 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 5366 | ✗ | switch (portNum) { | |
| 5367 | default: | ||
| 5368 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5369 | ✗ | break; | |
| 5370 | } | ||
| 5371 | ✗ | break; | |
| 5372 | } | ||
| 5373 | ✗ | return _result; | |
| 5374 | ✗ | } | |
| 5375 | |||
| 5376 | ✗ | void SignalGenComponentBase::productRequestOut_out( | |
| 5377 | FwIndexType portNum, | ||
| 5378 | FwDpIdType id, | ||
| 5379 | FwSizeType dataSize | ||
| 5380 | ) const { | ||
| 5381 | ✗ | FW_ASSERT( | |
| 5382 | (0 <= portNum) && (portNum < NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS), | ||
| 5383 | static_cast<FwAssertArgType>(portNum), | ||
| 5384 | static_cast<FwAssertArgType>(NUM_PRODUCTREQUESTOUT_OUTPUT_PORTS) | ||
| 5385 | ); | ||
| 5386 | ✗ | const auto instance = this->getInstance(); | |
| 5387 | ✗ | switch (instance) { | |
| 5388 | ✗ | default: | |
| 5389 | #ifdef FW_STRICT_ASSERTIONS | ||
| 5390 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 5391 | ✗ | break; | |
| 5392 | #else | ||
| 5393 | // Fall through | ||
| 5394 | #endif | ||
| 5395 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 5396 | ✗ | switch (portNum) { | |
| 5397 | ✗ | case 0: | |
| 5398 | ✗ | DataProducts::dpMgr.productRequestIn_handlerBase( | |
| 5399 | 0, | ||
| 5400 | id, | ||
| 5401 | dataSize | ||
| 5402 | ); | ||
| 5403 | ✗ | break; | |
| 5404 | ✗ | default: | |
| 5405 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5406 | ✗ | break; | |
| 5407 | } | ||
| 5408 | ✗ | break; | |
| 5409 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 5410 | ✗ | switch (portNum) { | |
| 5411 | default: | ||
| 5412 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5413 | ✗ | break; | |
| 5414 | } | ||
| 5415 | ✗ | break; | |
| 5416 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 5417 | ✗ | switch (portNum) { | |
| 5418 | default: | ||
| 5419 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5420 | ✗ | break; | |
| 5421 | } | ||
| 5422 | ✗ | break; | |
| 5423 | ✗ | case ::Ref::InstanceIds::Ref_SG4: | |
| 5424 | ✗ | switch (portNum) { | |
| 5425 | default: | ||
| 5426 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5427 | ✗ | break; | |
| 5428 | } | ||
| 5429 | ✗ | break; | |
| 5430 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 5431 | ✗ | switch (portNum) { | |
| 5432 | default: | ||
| 5433 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5434 | ✗ | break; | |
| 5435 | } | ||
| 5436 | ✗ | break; | |
| 5437 | } | ||
| 5438 | ✗ | } | |
| 5439 | |||
| 5440 | ✗ | void SignalGenComponentBase::productSendOut_out( | |
| 5441 | FwIndexType portNum, | ||
| 5442 | FwDpIdType id, | ||
| 5443 | const Fw::Buffer& buffer | ||
| 5444 | ) const { | ||
| 5445 | ✗ | FW_ASSERT( | |
| 5446 | (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS), | ||
| 5447 | static_cast<FwAssertArgType>(portNum), | ||
| 5448 | static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS) | ||
| 5449 | ); | ||
| 5450 | ✗ | const auto instance = this->getInstance(); | |
| 5451 | ✗ | switch (instance) { | |
| 5452 | ✗ | default: | |
| 5453 | #ifdef FW_STRICT_ASSERTIONS | ||
| 5454 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 5455 | ✗ | break; | |
| 5456 | #else | ||
| 5457 | // Fall through | ||
| 5458 | #endif | ||
| 5459 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 5460 | ✗ | switch (portNum) { | |
| 5461 | ✗ | case 0: | |
| 5462 | ✗ | DataProducts::dpMgr.productSendIn_handlerBase( | |
| 5463 | 0, | ||
| 5464 | id, | ||
| 5465 | buffer | ||
| 5466 | ); | ||
| 5467 | ✗ | break; | |
| 5468 | ✗ | default: | |
| 5469 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5470 | ✗ | break; | |
| 5471 | } | ||
| 5472 | ✗ | break; | |
| 5473 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 5474 | ✗ | switch (portNum) { | |
| 5475 | default: | ||
| 5476 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5477 | ✗ | break; | |
| 5478 | } | ||
| 5479 | ✗ | break; | |
| 5480 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 5481 | ✗ | switch (portNum) { | |
| 5482 | default: | ||
| 5483 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5484 | ✗ | break; | |
| 5485 | } | ||
| 5486 | ✗ | break; | |
| 5487 | ✗ | case ::Ref::InstanceIds::Ref_SG4: | |
| 5488 | ✗ | switch (portNum) { | |
| 5489 | default: | ||
| 5490 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5491 | ✗ | break; | |
| 5492 | } | ||
| 5493 | ✗ | break; | |
| 5494 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 5495 | ✗ | switch (portNum) { | |
| 5496 | default: | ||
| 5497 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5498 | ✗ | break; | |
| 5499 | } | ||
| 5500 | ✗ | break; | |
| 5501 | } | ||
| 5502 | ✗ | } | |
| 5503 | |||
| 5504 | 8 | void SignalGenComponentBase::timeCaller_out( | |
| 5505 | FwIndexType portNum, | ||
| 5506 | Fw::Time& time | ||
| 5507 | ) const { | ||
| 5508 | 8 | FW_ASSERT( | |
| 5509 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 5510 | static_cast<FwAssertArgType>(portNum), | ||
| 5511 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 5512 | ); | ||
| 5513 | 8 | const auto instance = this->getInstance(); | |
| 5514 |
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) { |
| 5515 | ✗ | default: | |
| 5516 | #ifdef FW_STRICT_ASSERTIONS | ||
| 5517 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 5518 | ✗ | break; | |
| 5519 | #else | ||
| 5520 | // Fall through | ||
| 5521 | #endif | ||
| 5522 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 5523 | ✗ | switch (portNum) { | |
| 5524 | ✗ | case 0: | |
| 5525 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 5526 | 0, | ||
| 5527 | time | ||
| 5528 | ); | ||
| 5529 | ✗ | break; | |
| 5530 | ✗ | default: | |
| 5531 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5532 | ✗ | break; | |
| 5533 | } | ||
| 5534 | ✗ | break; | |
| 5535 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 5536 | ✗ | switch (portNum) { | |
| 5537 | ✗ | case 0: | |
| 5538 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 5539 | 0, | ||
| 5540 | time | ||
| 5541 | ); | ||
| 5542 | ✗ | break; | |
| 5543 | ✗ | default: | |
| 5544 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5545 | ✗ | break; | |
| 5546 | } | ||
| 5547 | ✗ | break; | |
| 5548 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 5549 | ✗ | switch (portNum) { | |
| 5550 | ✗ | case 0: | |
| 5551 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 5552 | 0, | ||
| 5553 | time | ||
| 5554 | ); | ||
| 5555 | ✗ | break; | |
| 5556 | ✗ | default: | |
| 5557 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5558 | ✗ | break; | |
| 5559 | } | ||
| 5560 | ✗ | break; | |
| 5561 | 8 | case ::Ref::InstanceIds::Ref_SG4: | |
| 5562 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | switch (portNum) { |
| 5563 | 8 | case 0: | |
| 5564 | 8 | Ref::posixTime.timeGetPort_handlerBase( | |
| 5565 | 0, | ||
| 5566 | time | ||
| 5567 | ); | ||
| 5568 | 8 | break; | |
| 5569 | ✗ | default: | |
| 5570 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5571 | ✗ | break; | |
| 5572 | } | ||
| 5573 | 8 | break; | |
| 5574 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 5575 | ✗ | switch (portNum) { | |
| 5576 | ✗ | case 0: | |
| 5577 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 5578 | 0, | ||
| 5579 | time | ||
| 5580 | ); | ||
| 5581 | ✗ | break; | |
| 5582 | ✗ | default: | |
| 5583 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5584 | ✗ | break; | |
| 5585 | } | ||
| 5586 | ✗ | break; | |
| 5587 | } | ||
| 5588 | 8 | } | |
| 5589 | |||
| 5590 | 7 | void SignalGenComponentBase::tlmOut_out( | |
| 5591 | FwIndexType portNum, | ||
| 5592 | FwChanIdType id, | ||
| 5593 | Fw::Time& timeTag, | ||
| 5594 | Fw::TlmBuffer& val | ||
| 5595 | ) const { | ||
| 5596 | 7 | FW_ASSERT( | |
| 5597 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 5598 | static_cast<FwAssertArgType>(portNum), | ||
| 5599 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 5600 | ); | ||
| 5601 | 7 | const auto instance = this->getInstance(); | |
| 5602 |
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) { |
| 5603 | ✗ | default: | |
| 5604 | #ifdef FW_STRICT_ASSERTIONS | ||
| 5605 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 5606 | ✗ | break; | |
| 5607 | #else | ||
| 5608 | // Fall through | ||
| 5609 | #endif | ||
| 5610 | ✗ | case ::Ref::InstanceIds::Ref_SG1: | |
| 5611 | ✗ | switch (portNum) { | |
| 5612 | ✗ | case 0: | |
| 5613 | ✗ | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 5614 | 0, | ||
| 5615 | id, | ||
| 5616 | timeTag, | ||
| 5617 | val | ||
| 5618 | ); | ||
| 5619 | ✗ | break; | |
| 5620 | ✗ | default: | |
| 5621 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5622 | ✗ | break; | |
| 5623 | } | ||
| 5624 | ✗ | break; | |
| 5625 | ✗ | case ::Ref::InstanceIds::Ref_SG2: | |
| 5626 | ✗ | switch (portNum) { | |
| 5627 | ✗ | case 0: | |
| 5628 | ✗ | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 5629 | 0, | ||
| 5630 | id, | ||
| 5631 | timeTag, | ||
| 5632 | val | ||
| 5633 | ); | ||
| 5634 | ✗ | break; | |
| 5635 | ✗ | default: | |
| 5636 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5637 | ✗ | break; | |
| 5638 | } | ||
| 5639 | ✗ | break; | |
| 5640 | ✗ | case ::Ref::InstanceIds::Ref_SG3: | |
| 5641 | ✗ | switch (portNum) { | |
| 5642 | ✗ | case 0: | |
| 5643 | ✗ | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 5644 | 0, | ||
| 5645 | id, | ||
| 5646 | timeTag, | ||
| 5647 | val | ||
| 5648 | ); | ||
| 5649 | ✗ | break; | |
| 5650 | ✗ | default: | |
| 5651 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5652 | ✗ | break; | |
| 5653 | } | ||
| 5654 | ✗ | break; | |
| 5655 | 7 | case ::Ref::InstanceIds::Ref_SG4: | |
| 5656 |
1/2✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
|
7 | switch (portNum) { |
| 5657 | 7 | case 0: | |
| 5658 | 7 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 5659 | 0, | ||
| 5660 | id, | ||
| 5661 | timeTag, | ||
| 5662 | val | ||
| 5663 | ); | ||
| 5664 | 7 | break; | |
| 5665 | ✗ | default: | |
| 5666 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5667 | ✗ | break; | |
| 5668 | } | ||
| 5669 | 7 | break; | |
| 5670 | ✗ | case ::Ref::InstanceIds::Ref_SG5: | |
| 5671 | ✗ | switch (portNum) { | |
| 5672 | ✗ | case 0: | |
| 5673 | ✗ | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 5674 | 0, | ||
| 5675 | id, | ||
| 5676 | timeTag, | ||
| 5677 | val | ||
| 5678 | ); | ||
| 5679 | ✗ | break; | |
| 5680 | ✗ | default: | |
| 5681 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5682 | ✗ | break; | |
| 5683 | } | ||
| 5684 | ✗ | break; | |
| 5685 | } | ||
| 5686 | 7 | } | |
| 5687 | |||
| 5688 | } | ||
| 5689 | |||
| 5690 | namespace Ref { | ||
| 5691 | |||
| 5692 | 1 | bool TypeDemoComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const { | |
| 5693 | 1 | FW_ASSERT( | |
| 5694 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 5695 | static_cast<FwAssertArgType>(portNum), | ||
| 5696 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 5697 | ); | ||
| 5698 | 1 | bool result = false; | |
| 5699 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 5700 | 1 | case 0: | |
| 5701 | 1 | result = true; | |
| 5702 | 1 | break; | |
| 5703 | ✗ | default: | |
| 5704 | ✗ | break; | |
| 5705 | } | ||
| 5706 | 1 | return result; | |
| 5707 | } | ||
| 5708 | |||
| 5709 | 3 | bool TypeDemoComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const { | |
| 5710 | 3 | FW_ASSERT( | |
| 5711 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 5712 | static_cast<FwAssertArgType>(portNum), | ||
| 5713 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 5714 | ); | ||
| 5715 | 3 | bool result = false; | |
| 5716 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 5717 | 3 | case 0: | |
| 5718 | 3 | result = true; | |
| 5719 | 3 | break; | |
| 5720 | ✗ | default: | |
| 5721 | ✗ | break; | |
| 5722 | } | ||
| 5723 | 3 | return result; | |
| 5724 | } | ||
| 5725 | |||
| 5726 | 3 | bool TypeDemoComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 5727 | 3 | FW_ASSERT( | |
| 5728 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 5729 | static_cast<FwAssertArgType>(portNum), | ||
| 5730 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 5731 | ); | ||
| 5732 | 3 | bool result = false; | |
| 5733 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 5734 | 3 | case 0: | |
| 5735 | 3 | result = true; | |
| 5736 | 3 | break; | |
| 5737 | ✗ | default: | |
| 5738 | ✗ | break; | |
| 5739 | } | ||
| 5740 | 3 | return result; | |
| 5741 | } | ||
| 5742 | |||
| 5743 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 5744 | |||
| 5745 | 3 | bool TypeDemoComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 5746 | 3 | FW_ASSERT( | |
| 5747 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 5748 | static_cast<FwAssertArgType>(portNum), | ||
| 5749 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 5750 | ); | ||
| 5751 | 3 | bool result = false; | |
| 5752 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 5753 | 3 | case 0: | |
| 5754 | 3 | result = true; | |
| 5755 | 3 | break; | |
| 5756 | ✗ | default: | |
| 5757 | ✗ | break; | |
| 5758 | } | ||
| 5759 | 3 | return result; | |
| 5760 | } | ||
| 5761 | |||
| 5762 | #endif | ||
| 5763 | |||
| 5764 | 1 | bool TypeDemoComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const { | |
| 5765 | 1 | FW_ASSERT( | |
| 5766 | (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS), | ||
| 5767 | static_cast<FwAssertArgType>(portNum), | ||
| 5768 | static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS) | ||
| 5769 | ); | ||
| 5770 | 1 | bool result = false; | |
| 5771 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 5772 | 1 | case 0: | |
| 5773 | 1 | result = true; | |
| 5774 | 1 | break; | |
| 5775 | ✗ | default: | |
| 5776 | ✗ | break; | |
| 5777 | } | ||
| 5778 | 1 | return result; | |
| 5779 | } | ||
| 5780 | |||
| 5781 | ✗ | bool TypeDemoComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const { | |
| 5782 | ✗ | FW_ASSERT( | |
| 5783 | (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS), | ||
| 5784 | static_cast<FwAssertArgType>(portNum), | ||
| 5785 | static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS) | ||
| 5786 | ); | ||
| 5787 | ✗ | bool result = false; | |
| 5788 | ✗ | switch (portNum) { | |
| 5789 | ✗ | case 0: | |
| 5790 | ✗ | result = true; | |
| 5791 | ✗ | break; | |
| 5792 | ✗ | default: | |
| 5793 | ✗ | break; | |
| 5794 | } | ||
| 5795 | ✗ | return result; | |
| 5796 | } | ||
| 5797 | |||
| 5798 | 6 | bool TypeDemoComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 5799 | 6 | FW_ASSERT( | |
| 5800 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 5801 | static_cast<FwAssertArgType>(portNum), | ||
| 5802 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 5803 | ); | ||
| 5804 | 6 | bool result = false; | |
| 5805 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 5806 | 6 | case 0: | |
| 5807 | 6 | result = true; | |
| 5808 | 6 | break; | |
| 5809 | ✗ | default: | |
| 5810 | ✗ | break; | |
| 5811 | } | ||
| 5812 | 6 | return result; | |
| 5813 | } | ||
| 5814 | |||
| 5815 | 6 | bool TypeDemoComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 5816 | 6 | FW_ASSERT( | |
| 5817 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 5818 | static_cast<FwAssertArgType>(portNum), | ||
| 5819 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 5820 | ); | ||
| 5821 | 6 | bool result = false; | |
| 5822 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 5823 | 6 | case 0: | |
| 5824 | 6 | result = true; | |
| 5825 | 6 | break; | |
| 5826 | ✗ | default: | |
| 5827 | ✗ | break; | |
| 5828 | } | ||
| 5829 | 6 | return result; | |
| 5830 | } | ||
| 5831 | |||
| 5832 | 22 | void TypeDemoComponentBase::cmdRegOut_out( | |
| 5833 | FwIndexType portNum, | ||
| 5834 | FwOpcodeType opCode | ||
| 5835 | ) const { | ||
| 5836 | 22 | FW_ASSERT( | |
| 5837 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 5838 | static_cast<FwAssertArgType>(portNum), | ||
| 5839 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 5840 | ); | ||
| 5841 |
1/2✓ Branch 0 taken 22 times.
✗ Branch 1 not taken.
|
22 | switch (portNum) { |
| 5842 | 22 | case 0: | |
| 5843 | 22 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 5844 | 23, | ||
| 5845 | opCode | ||
| 5846 | ); | ||
| 5847 | 22 | break; | |
| 5848 | ✗ | default: | |
| 5849 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5850 | ✗ | break; | |
| 5851 | } | ||
| 5852 | 22 | } | |
| 5853 | |||
| 5854 | 3 | void TypeDemoComponentBase::cmdResponseOut_out( | |
| 5855 | FwIndexType portNum, | ||
| 5856 | FwOpcodeType opCode, | ||
| 5857 | U32 cmdSeq, | ||
| 5858 | const Fw::CmdResponse& response | ||
| 5859 | ) const { | ||
| 5860 | 3 | FW_ASSERT( | |
| 5861 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 5862 | static_cast<FwAssertArgType>(portNum), | ||
| 5863 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 5864 | ); | ||
| 5865 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 5866 | 3 | case 0: | |
| 5867 | 3 | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 5868 | 0, | ||
| 5869 | opCode, | ||
| 5870 | cmdSeq, | ||
| 5871 | response | ||
| 5872 | ); | ||
| 5873 | 3 | break; | |
| 5874 | ✗ | default: | |
| 5875 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5876 | ✗ | break; | |
| 5877 | } | ||
| 5878 | 3 | } | |
| 5879 | |||
| 5880 | 3 | void TypeDemoComponentBase::logOut_out( | |
| 5881 | FwIndexType portNum, | ||
| 5882 | FwEventIdType id, | ||
| 5883 | Fw::Time& timeTag, | ||
| 5884 | const Fw::LogSeverity& severity, | ||
| 5885 | Fw::LogBuffer& args | ||
| 5886 | ) const { | ||
| 5887 | 3 | FW_ASSERT( | |
| 5888 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 5889 | static_cast<FwAssertArgType>(portNum), | ||
| 5890 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 5891 | ); | ||
| 5892 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 5893 | 3 | case 0: | |
| 5894 | 3 | CdhCore::events.LogRecv_handlerBase( | |
| 5895 | 0, | ||
| 5896 | id, | ||
| 5897 | timeTag, | ||
| 5898 | severity, | ||
| 5899 | args | ||
| 5900 | ); | ||
| 5901 | 3 | break; | |
| 5902 | ✗ | default: | |
| 5903 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5904 | ✗ | break; | |
| 5905 | } | ||
| 5906 | 3 | } | |
| 5907 | |||
| 5908 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 5909 | |||
| 5910 | 3 | void TypeDemoComponentBase::logTextOut_out( | |
| 5911 | FwIndexType portNum, | ||
| 5912 | FwEventIdType id, | ||
| 5913 | Fw::Time& timeTag, | ||
| 5914 | const Fw::LogSeverity& severity, | ||
| 5915 | Fw::TextLogString& text | ||
| 5916 | ) const { | ||
| 5917 | 3 | FW_ASSERT( | |
| 5918 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 5919 | static_cast<FwAssertArgType>(portNum), | ||
| 5920 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 5921 | ); | ||
| 5922 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 5923 | 3 | case 0: | |
| 5924 | 3 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 5925 | 0, | ||
| 5926 | id, | ||
| 5927 | timeTag, | ||
| 5928 | severity, | ||
| 5929 | text | ||
| 5930 | ); | ||
| 5931 | 3 | break; | |
| 5932 | ✗ | default: | |
| 5933 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5934 | ✗ | break; | |
| 5935 | } | ||
| 5936 | 3 | } | |
| 5937 | |||
| 5938 | #endif | ||
| 5939 | |||
| 5940 | 5 | Fw::ParamValid TypeDemoComponentBase::prmGetOut_out( | |
| 5941 | FwIndexType portNum, | ||
| 5942 | FwPrmIdType id, | ||
| 5943 | Fw::ParamBuffer& val | ||
| 5944 | ) const { | ||
| 5945 | 5 | FW_ASSERT( | |
| 5946 | (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS), | ||
| 5947 | static_cast<FwAssertArgType>(portNum), | ||
| 5948 | static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS) | ||
| 5949 | ); | ||
| 5950 | 5 | Fw::ParamValid _result = {}; | |
| 5951 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 5952 | 5 | case 0: | |
| 5953 |
1/1✓ Branch 1 taken 5 times.
|
10 | _result = FileHandling::prmDb.getPrm_handlerBase( |
| 5954 | 0, | ||
| 5955 | id, | ||
| 5956 | val | ||
| 5957 |
1/1✓ Branch 1 taken 5 times.
|
5 | ); |
| 5958 | 5 | break; | |
| 5959 | ✗ | default: | |
| 5960 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5961 | ✗ | break; | |
| 5962 | } | ||
| 5963 | 5 | return _result; | |
| 5964 | ✗ | } | |
| 5965 | |||
| 5966 | ✗ | void TypeDemoComponentBase::prmSetOut_out( | |
| 5967 | FwIndexType portNum, | ||
| 5968 | FwPrmIdType id, | ||
| 5969 | Fw::ParamBuffer& val | ||
| 5970 | ) const { | ||
| 5971 | ✗ | FW_ASSERT( | |
| 5972 | (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS), | ||
| 5973 | static_cast<FwAssertArgType>(portNum), | ||
| 5974 | static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS) | ||
| 5975 | ); | ||
| 5976 | ✗ | switch (portNum) { | |
| 5977 | ✗ | case 0: | |
| 5978 | ✗ | FileHandling::prmDb.setPrm_handlerBase( | |
| 5979 | 0, | ||
| 5980 | id, | ||
| 5981 | val | ||
| 5982 | ); | ||
| 5983 | ✗ | break; | |
| 5984 | ✗ | default: | |
| 5985 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 5986 | ✗ | break; | |
| 5987 | } | ||
| 5988 | ✗ | } | |
| 5989 | |||
| 5990 | 6 | void TypeDemoComponentBase::timeCaller_out( | |
| 5991 | FwIndexType portNum, | ||
| 5992 | Fw::Time& time | ||
| 5993 | ) const { | ||
| 5994 | 6 | FW_ASSERT( | |
| 5995 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 5996 | static_cast<FwAssertArgType>(portNum), | ||
| 5997 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 5998 | ); | ||
| 5999 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 6000 | 6 | case 0: | |
| 6001 | 6 | Ref::posixTime.timeGetPort_handlerBase( | |
| 6002 | 0, | ||
| 6003 | time | ||
| 6004 | ); | ||
| 6005 | 6 | break; | |
| 6006 | ✗ | default: | |
| 6007 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6008 | ✗ | break; | |
| 6009 | } | ||
| 6010 | 6 | } | |
| 6011 | |||
| 6012 | 3 | void TypeDemoComponentBase::tlmOut_out( | |
| 6013 | FwIndexType portNum, | ||
| 6014 | FwChanIdType id, | ||
| 6015 | Fw::Time& timeTag, | ||
| 6016 | Fw::TlmBuffer& val | ||
| 6017 | ) const { | ||
| 6018 | 3 | FW_ASSERT( | |
| 6019 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 6020 | static_cast<FwAssertArgType>(portNum), | ||
| 6021 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 6022 | ); | ||
| 6023 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 6024 | 3 | case 0: | |
| 6025 | 3 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 6026 | 0, | ||
| 6027 | id, | ||
| 6028 | timeTag, | ||
| 6029 | val | ||
| 6030 | ); | ||
| 6031 | 3 | break; | |
| 6032 | ✗ | default: | |
| 6033 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6034 | ✗ | break; | |
| 6035 | } | ||
| 6036 | 3 | } | |
| 6037 | |||
| 6038 | } | ||
| 6039 | |||
| 6040 | namespace Svc { | ||
| 6041 | |||
| 6042 | 3 | bool ActiveRateGroupComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 6043 | 3 | FW_ASSERT( | |
| 6044 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 6045 | static_cast<FwAssertArgType>(portNum), | ||
| 6046 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 6047 | ); | ||
| 6048 | 3 | bool result = false; | |
| 6049 | 3 | const auto instance = this->getInstance(); | |
| 6050 |
3/4✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 1 times.
|
3 | switch (instance) { |
| 6051 | ✗ | default: | |
| 6052 | #ifdef FW_STRICT_ASSERTIONS | ||
| 6053 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 6054 | ✗ | break; | |
| 6055 | #else | ||
| 6056 | // Fall through | ||
| 6057 | #endif | ||
| 6058 | 1 | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 6059 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 6060 | 1 | case 0: | |
| 6061 | 1 | result = true; | |
| 6062 | 1 | break; | |
| 6063 | ✗ | default: | |
| 6064 | ✗ | break; | |
| 6065 | } | ||
| 6066 | 1 | break; | |
| 6067 | 1 | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6068 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 6069 | 1 | case 0: | |
| 6070 | 1 | result = true; | |
| 6071 | 1 | break; | |
| 6072 | ✗ | default: | |
| 6073 | ✗ | break; | |
| 6074 | } | ||
| 6075 | 1 | break; | |
| 6076 | 1 | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6077 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 6078 | 1 | case 0: | |
| 6079 | 1 | result = true; | |
| 6080 | 1 | break; | |
| 6081 | ✗ | default: | |
| 6082 | ✗ | break; | |
| 6083 | } | ||
| 6084 | 1 | break; | |
| 6085 | } | ||
| 6086 | 3 | return result; | |
| 6087 | } | ||
| 6088 | |||
| 6089 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 6090 | |||
| 6091 | 3 | bool ActiveRateGroupComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 6092 | 3 | FW_ASSERT( | |
| 6093 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 6094 | static_cast<FwAssertArgType>(portNum), | ||
| 6095 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 6096 | ); | ||
| 6097 | 3 | bool result = false; | |
| 6098 | 3 | const auto instance = this->getInstance(); | |
| 6099 |
3/4✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 1 times.
|
3 | switch (instance) { |
| 6100 | ✗ | default: | |
| 6101 | #ifdef FW_STRICT_ASSERTIONS | ||
| 6102 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 6103 | ✗ | break; | |
| 6104 | #else | ||
| 6105 | // Fall through | ||
| 6106 | #endif | ||
| 6107 | 1 | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 6108 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 6109 | 1 | case 0: | |
| 6110 | 1 | result = true; | |
| 6111 | 1 | break; | |
| 6112 | ✗ | default: | |
| 6113 | ✗ | break; | |
| 6114 | } | ||
| 6115 | 1 | break; | |
| 6116 | 1 | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6117 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 6118 | 1 | case 0: | |
| 6119 | 1 | result = true; | |
| 6120 | 1 | break; | |
| 6121 | ✗ | default: | |
| 6122 | ✗ | break; | |
| 6123 | } | ||
| 6124 | 1 | break; | |
| 6125 | 1 | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6126 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 6127 | 1 | case 0: | |
| 6128 | 1 | result = true; | |
| 6129 | 1 | break; | |
| 6130 | ✗ | default: | |
| 6131 | ✗ | break; | |
| 6132 | } | ||
| 6133 | 1 | break; | |
| 6134 | } | ||
| 6135 | 3 | return result; | |
| 6136 | } | ||
| 6137 | |||
| 6138 | #endif | ||
| 6139 | |||
| 6140 | ✗ | bool ActiveRateGroupComponentBase::isConnected_PingOut_OutputPort(FwIndexType portNum) const { | |
| 6141 | ✗ | FW_ASSERT( | |
| 6142 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 6143 | static_cast<FwAssertArgType>(portNum), | ||
| 6144 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 6145 | ); | ||
| 6146 | ✗ | bool result = false; | |
| 6147 | ✗ | const auto instance = this->getInstance(); | |
| 6148 | ✗ | switch (instance) { | |
| 6149 | ✗ | default: | |
| 6150 | #ifdef FW_STRICT_ASSERTIONS | ||
| 6151 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 6152 | ✗ | break; | |
| 6153 | #else | ||
| 6154 | // Fall through | ||
| 6155 | #endif | ||
| 6156 | ✗ | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 6157 | ✗ | switch (portNum) { | |
| 6158 | ✗ | case 0: | |
| 6159 | ✗ | result = true; | |
| 6160 | ✗ | break; | |
| 6161 | ✗ | default: | |
| 6162 | ✗ | break; | |
| 6163 | } | ||
| 6164 | ✗ | break; | |
| 6165 | ✗ | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6166 | ✗ | switch (portNum) { | |
| 6167 | ✗ | case 0: | |
| 6168 | ✗ | result = true; | |
| 6169 | ✗ | break; | |
| 6170 | ✗ | default: | |
| 6171 | ✗ | break; | |
| 6172 | } | ||
| 6173 | ✗ | break; | |
| 6174 | ✗ | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6175 | ✗ | switch (portNum) { | |
| 6176 | ✗ | case 0: | |
| 6177 | ✗ | result = true; | |
| 6178 | ✗ | break; | |
| 6179 | ✗ | default: | |
| 6180 | ✗ | break; | |
| 6181 | } | ||
| 6182 | ✗ | break; | |
| 6183 | } | ||
| 6184 | ✗ | return result; | |
| 6185 | } | ||
| 6186 | |||
| 6187 | 4588 | bool ActiveRateGroupComponentBase::isConnected_RateGroupMemberOut_OutputPort(FwIndexType portNum) const { | |
| 6188 | 4588 | FW_ASSERT( | |
| 6189 | (0 <= portNum) && (portNum < NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS), | ||
| 6190 | static_cast<FwAssertArgType>(portNum), | ||
| 6191 | static_cast<FwAssertArgType>(NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS) | ||
| 6192 | ); | ||
| 6193 | 4588 | bool result = false; | |
| 6194 | 4588 | const auto instance = this->getInstance(); | |
| 6195 |
3/4✗ Branch 0 not taken.
✓ Branch 1 taken 2620 times.
✓ Branch 2 taken 1310 times.
✓ Branch 3 taken 660 times.
|
4507 | switch (instance) { |
| 6196 | ✗ | default: | |
| 6197 | #ifdef FW_STRICT_ASSERTIONS | ||
| 6198 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 6199 | ✗ | break; | |
| 6200 | #else | ||
| 6201 | // Fall through | ||
| 6202 | #endif | ||
| 6203 | 2620 | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 6204 |
9/9✓ Branch 0 taken 262 times.
✓ Branch 1 taken 262 times.
✓ Branch 2 taken 262 times.
✓ Branch 3 taken 262 times.
✓ Branch 4 taken 262 times.
✓ Branch 5 taken 262 times.
✓ Branch 6 taken 262 times.
✓ Branch 7 taken 262 times.
✓ Branch 8 taken 524 times.
|
2620 | switch (portNum) { |
| 6205 | 262 | case 0: | |
| 6206 | 262 | result = true; | |
| 6207 | 262 | break; | |
| 6208 | 262 | case 1: | |
| 6209 | 262 | result = true; | |
| 6210 | 262 | break; | |
| 6211 | 262 | case 2: | |
| 6212 | 262 | result = true; | |
| 6213 | 262 | break; | |
| 6214 | 262 | case 3: | |
| 6215 | 262 | result = true; | |
| 6216 | 262 | break; | |
| 6217 | 262 | case 4: | |
| 6218 | 262 | result = true; | |
| 6219 | 262 | break; | |
| 6220 | 262 | case 5: | |
| 6221 | 262 | result = true; | |
| 6222 | 262 | break; | |
| 6223 | 262 | case 6: | |
| 6224 | 262 | result = true; | |
| 6225 | 262 | break; | |
| 6226 | 262 | case 7: | |
| 6227 | 262 | result = true; | |
| 6228 | 262 | break; | |
| 6229 | 524 | default: | |
| 6230 | 524 | break; | |
| 6231 | } | ||
| 6232 | 2620 | break; | |
| 6233 | 1310 | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6234 |
9/9✓ Branch 0 taken 131 times.
✓ Branch 1 taken 131 times.
✓ Branch 2 taken 131 times.
✓ Branch 3 taken 131 times.
✓ Branch 4 taken 131 times.
✓ Branch 5 taken 131 times.
✓ Branch 6 taken 131 times.
✓ Branch 7 taken 131 times.
✓ Branch 8 taken 262 times.
|
1310 | switch (portNum) { |
| 6235 | 131 | case 0: | |
| 6236 | 131 | result = true; | |
| 6237 | 131 | break; | |
| 6238 | 131 | case 1: | |
| 6239 | 131 | result = true; | |
| 6240 | 131 | break; | |
| 6241 | 131 | case 2: | |
| 6242 | 131 | result = true; | |
| 6243 | 131 | break; | |
| 6244 | 131 | case 3: | |
| 6245 | 131 | result = true; | |
| 6246 | 131 | break; | |
| 6247 | 131 | case 4: | |
| 6248 | 131 | result = true; | |
| 6249 | 131 | break; | |
| 6250 | 131 | case 5: | |
| 6251 | 131 | result = true; | |
| 6252 | 131 | break; | |
| 6253 | 131 | case 6: | |
| 6254 | 131 | result = true; | |
| 6255 | 131 | break; | |
| 6256 | 131 | case 7: | |
| 6257 | 131 | result = true; | |
| 6258 | 131 | break; | |
| 6259 | 262 | default: | |
| 6260 | 262 | break; | |
| 6261 | } | ||
| 6262 | 1310 | break; | |
| 6263 | 660 | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6264 |
9/9✓ Branch 0 taken 66 times.
✓ Branch 1 taken 66 times.
✓ Branch 2 taken 66 times.
✓ Branch 3 taken 66 times.
✓ Branch 4 taken 66 times.
✓ Branch 5 taken 66 times.
✓ Branch 6 taken 66 times.
✓ Branch 7 taken 66 times.
✓ Branch 8 taken 132 times.
|
660 | switch (portNum) { |
| 6265 | 66 | case 0: | |
| 6266 | 66 | result = true; | |
| 6267 | 66 | break; | |
| 6268 | 66 | case 1: | |
| 6269 | 66 | result = true; | |
| 6270 | 66 | break; | |
| 6271 | 66 | case 2: | |
| 6272 | 66 | result = true; | |
| 6273 | 66 | break; | |
| 6274 | 66 | case 3: | |
| 6275 | 66 | result = true; | |
| 6276 | 66 | break; | |
| 6277 | 66 | case 4: | |
| 6278 | 66 | result = true; | |
| 6279 | 66 | break; | |
| 6280 | 66 | case 5: | |
| 6281 | 66 | result = true; | |
| 6282 | 66 | break; | |
| 6283 | 66 | case 6: | |
| 6284 | 66 | result = true; | |
| 6285 | 66 | break; | |
| 6286 | 66 | case 7: | |
| 6287 | 66 | result = true; | |
| 6288 | 66 | break; | |
| 6289 | 132 | default: | |
| 6290 | 132 | break; | |
| 6291 | } | ||
| 6292 | 660 | break; | |
| 6293 | } | ||
| 6294 | 4590 | return result; | |
| 6295 | } | ||
| 6296 | |||
| 6297 | 12 | bool ActiveRateGroupComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 6298 | 12 | FW_ASSERT( | |
| 6299 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 6300 | static_cast<FwAssertArgType>(portNum), | ||
| 6301 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 6302 | ); | ||
| 6303 | 12 | bool result = false; | |
| 6304 | 12 | const auto instance = this->getInstance(); | |
| 6305 |
3/4✗ Branch 0 not taken.
✓ Branch 1 taken 5 times.
✓ Branch 2 taken 3 times.
✓ Branch 3 taken 4 times.
|
12 | switch (instance) { |
| 6306 | ✗ | default: | |
| 6307 | #ifdef FW_STRICT_ASSERTIONS | ||
| 6308 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 6309 | ✗ | break; | |
| 6310 | #else | ||
| 6311 | // Fall through | ||
| 6312 | #endif | ||
| 6313 | 5 | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 6314 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 6315 | 5 | case 0: | |
| 6316 | 5 | result = true; | |
| 6317 | 5 | break; | |
| 6318 | ✗ | default: | |
| 6319 | ✗ | break; | |
| 6320 | } | ||
| 6321 | 5 | break; | |
| 6322 | 3 | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6323 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 6324 | 3 | case 0: | |
| 6325 | 3 | result = true; | |
| 6326 | 3 | break; | |
| 6327 | ✗ | default: | |
| 6328 | ✗ | break; | |
| 6329 | } | ||
| 6330 | 3 | break; | |
| 6331 | 4 | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6332 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 6333 | 4 | case 0: | |
| 6334 | 4 | result = true; | |
| 6335 | 4 | break; | |
| 6336 | ✗ | default: | |
| 6337 | ✗ | break; | |
| 6338 | } | ||
| 6339 | 4 | break; | |
| 6340 | } | ||
| 6341 | 12 | return result; | |
| 6342 | } | ||
| 6343 | |||
| 6344 | 18 | bool ActiveRateGroupComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const { | |
| 6345 | 18 | FW_ASSERT( | |
| 6346 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 6347 | static_cast<FwAssertArgType>(portNum), | ||
| 6348 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 6349 | ); | ||
| 6350 | 18 | bool result = false; | |
| 6351 | 18 | const auto instance = this->getInstance(); | |
| 6352 |
3/4✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
✓ Branch 2 taken 4 times.
✓ Branch 3 taken 6 times.
|
18 | switch (instance) { |
| 6353 | ✗ | default: | |
| 6354 | #ifdef FW_STRICT_ASSERTIONS | ||
| 6355 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 6356 | ✗ | break; | |
| 6357 | #else | ||
| 6358 | // Fall through | ||
| 6359 | #endif | ||
| 6360 | 8 | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 6361 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | switch (portNum) { |
| 6362 | 8 | case 0: | |
| 6363 | 8 | result = true; | |
| 6364 | 8 | break; | |
| 6365 | ✗ | default: | |
| 6366 | ✗ | break; | |
| 6367 | } | ||
| 6368 | 8 | break; | |
| 6369 | 4 | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6370 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 6371 | 4 | case 0: | |
| 6372 | 4 | result = true; | |
| 6373 | 4 | break; | |
| 6374 | ✗ | default: | |
| 6375 | ✗ | break; | |
| 6376 | } | ||
| 6377 | 4 | break; | |
| 6378 | 6 | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6379 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 6380 | 6 | case 0: | |
| 6381 | 6 | result = true; | |
| 6382 | 6 | break; | |
| 6383 | ✗ | default: | |
| 6384 | ✗ | break; | |
| 6385 | } | ||
| 6386 | 6 | break; | |
| 6387 | } | ||
| 6388 | 18 | return result; | |
| 6389 | } | ||
| 6390 | |||
| 6391 | 3 | void ActiveRateGroupComponentBase::Log_out( | |
| 6392 | FwIndexType portNum, | ||
| 6393 | FwEventIdType id, | ||
| 6394 | Fw::Time& timeTag, | ||
| 6395 | const Fw::LogSeverity& severity, | ||
| 6396 | Fw::LogBuffer& args | ||
| 6397 | ) const { | ||
| 6398 | 3 | FW_ASSERT( | |
| 6399 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 6400 | static_cast<FwAssertArgType>(portNum), | ||
| 6401 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 6402 | ); | ||
| 6403 | 3 | const auto instance = this->getInstance(); | |
| 6404 |
3/4✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 1 times.
|
3 | switch (instance) { |
| 6405 | ✗ | default: | |
| 6406 | #ifdef FW_STRICT_ASSERTIONS | ||
| 6407 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 6408 | ✗ | break; | |
| 6409 | #else | ||
| 6410 | // Fall through | ||
| 6411 | #endif | ||
| 6412 | 1 | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 6413 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 6414 | 1 | case 0: | |
| 6415 | 1 | CdhCore::events.LogRecv_handlerBase( | |
| 6416 | 0, | ||
| 6417 | id, | ||
| 6418 | timeTag, | ||
| 6419 | severity, | ||
| 6420 | args | ||
| 6421 | ); | ||
| 6422 | 1 | break; | |
| 6423 | ✗ | default: | |
| 6424 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6425 | ✗ | break; | |
| 6426 | } | ||
| 6427 | 1 | break; | |
| 6428 | 1 | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6429 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 6430 | 1 | case 0: | |
| 6431 | 1 | CdhCore::events.LogRecv_handlerBase( | |
| 6432 | 0, | ||
| 6433 | id, | ||
| 6434 | timeTag, | ||
| 6435 | severity, | ||
| 6436 | args | ||
| 6437 | ); | ||
| 6438 | 1 | break; | |
| 6439 | ✗ | default: | |
| 6440 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6441 | ✗ | break; | |
| 6442 | } | ||
| 6443 | 1 | break; | |
| 6444 | 1 | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6445 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 6446 | 1 | case 0: | |
| 6447 | 1 | CdhCore::events.LogRecv_handlerBase( | |
| 6448 | 0, | ||
| 6449 | id, | ||
| 6450 | timeTag, | ||
| 6451 | severity, | ||
| 6452 | args | ||
| 6453 | ); | ||
| 6454 | 1 | break; | |
| 6455 | ✗ | default: | |
| 6456 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6457 | ✗ | break; | |
| 6458 | } | ||
| 6459 | 1 | break; | |
| 6460 | } | ||
| 6461 | 3 | } | |
| 6462 | |||
| 6463 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 6464 | |||
| 6465 | 3 | void ActiveRateGroupComponentBase::LogText_out( | |
| 6466 | FwIndexType portNum, | ||
| 6467 | FwEventIdType id, | ||
| 6468 | Fw::Time& timeTag, | ||
| 6469 | const Fw::LogSeverity& severity, | ||
| 6470 | Fw::TextLogString& text | ||
| 6471 | ) const { | ||
| 6472 | 3 | FW_ASSERT( | |
| 6473 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 6474 | static_cast<FwAssertArgType>(portNum), | ||
| 6475 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 6476 | ); | ||
| 6477 | 3 | const auto instance = this->getInstance(); | |
| 6478 |
3/4✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 1 times.
|
3 | switch (instance) { |
| 6479 | ✗ | default: | |
| 6480 | #ifdef FW_STRICT_ASSERTIONS | ||
| 6481 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 6482 | ✗ | break; | |
| 6483 | #else | ||
| 6484 | // Fall through | ||
| 6485 | #endif | ||
| 6486 | 1 | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 6487 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 6488 | 1 | case 0: | |
| 6489 | 1 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 6490 | 0, | ||
| 6491 | id, | ||
| 6492 | timeTag, | ||
| 6493 | severity, | ||
| 6494 | text | ||
| 6495 | ); | ||
| 6496 | 1 | break; | |
| 6497 | ✗ | default: | |
| 6498 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6499 | ✗ | break; | |
| 6500 | } | ||
| 6501 | 1 | break; | |
| 6502 | 1 | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6503 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 6504 | 1 | case 0: | |
| 6505 | 1 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 6506 | 0, | ||
| 6507 | id, | ||
| 6508 | timeTag, | ||
| 6509 | severity, | ||
| 6510 | text | ||
| 6511 | ); | ||
| 6512 | 1 | break; | |
| 6513 | ✗ | default: | |
| 6514 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6515 | ✗ | break; | |
| 6516 | } | ||
| 6517 | 1 | break; | |
| 6518 | 1 | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6519 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 6520 | 1 | case 0: | |
| 6521 | 1 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 6522 | 0, | ||
| 6523 | id, | ||
| 6524 | timeTag, | ||
| 6525 | severity, | ||
| 6526 | text | ||
| 6527 | ); | ||
| 6528 | 1 | break; | |
| 6529 | ✗ | default: | |
| 6530 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6531 | ✗ | break; | |
| 6532 | } | ||
| 6533 | 1 | break; | |
| 6534 | } | ||
| 6535 | 3 | } | |
| 6536 | |||
| 6537 | #endif | ||
| 6538 | |||
| 6539 | 198 | void ActiveRateGroupComponentBase::PingOut_out( | |
| 6540 | FwIndexType portNum, | ||
| 6541 | U32 key | ||
| 6542 | ) const { | ||
| 6543 | 198 | FW_ASSERT( | |
| 6544 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 6545 | static_cast<FwAssertArgType>(portNum), | ||
| 6546 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 6547 | ); | ||
| 6548 | 198 | const auto instance = this->getInstance(); | |
| 6549 |
3/4✗ Branch 0 not taken.
✓ Branch 1 taken 66 times.
✓ Branch 2 taken 66 times.
✓ Branch 3 taken 66 times.
|
198 | switch (instance) { |
| 6550 | ✗ | default: | |
| 6551 | #ifdef FW_STRICT_ASSERTIONS | ||
| 6552 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 6553 | ✗ | break; | |
| 6554 | #else | ||
| 6555 | // Fall through | ||
| 6556 | #endif | ||
| 6557 | 66 | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 6558 |
1/2✓ Branch 0 taken 66 times.
✗ Branch 1 not taken.
|
66 | switch (portNum) { |
| 6559 | 66 | case 0: | |
| 6560 | 66 | CdhCore::health.PingReturn_handlerBase( | |
| 6561 | 12, | ||
| 6562 | key | ||
| 6563 | ); | ||
| 6564 | 66 | break; | |
| 6565 | ✗ | default: | |
| 6566 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6567 | ✗ | break; | |
| 6568 | } | ||
| 6569 | 66 | break; | |
| 6570 | 66 | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6571 |
1/2✓ Branch 0 taken 66 times.
✗ Branch 1 not taken.
|
66 | switch (portNum) { |
| 6572 | 66 | case 0: | |
| 6573 | 66 | CdhCore::health.PingReturn_handlerBase( | |
| 6574 | 13, | ||
| 6575 | key | ||
| 6576 | ); | ||
| 6577 | 66 | break; | |
| 6578 | ✗ | default: | |
| 6579 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6580 | ✗ | break; | |
| 6581 | } | ||
| 6582 | 66 | break; | |
| 6583 | 66 | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6584 |
1/2✓ Branch 0 taken 66 times.
✗ Branch 1 not taken.
|
66 | switch (portNum) { |
| 6585 | 66 | case 0: | |
| 6586 | 66 | CdhCore::health.PingReturn_handlerBase( | |
| 6587 | 14, | ||
| 6588 | key | ||
| 6589 | ); | ||
| 6590 | 66 | break; | |
| 6591 | ✗ | default: | |
| 6592 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6593 | ✗ | break; | |
| 6594 | } | ||
| 6595 | 66 | break; | |
| 6596 | } | ||
| 6597 | 198 | } | |
| 6598 | |||
| 6599 | 3644 | void ActiveRateGroupComponentBase::RateGroupMemberOut_out( | |
| 6600 | FwIndexType portNum, | ||
| 6601 | U32 context | ||
| 6602 | ) const { | ||
| 6603 | 3644 | FW_ASSERT( | |
| 6604 | (0 <= portNum) && (portNum < NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS), | ||
| 6605 | static_cast<FwAssertArgType>(portNum), | ||
| 6606 | static_cast<FwAssertArgType>(NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS) | ||
| 6607 | ); | ||
| 6608 | 3644 | const auto instance = this->getInstance(); | |
| 6609 |
3/4✗ Branch 0 not taken.
✓ Branch 1 taken 2096 times.
✓ Branch 2 taken 1048 times.
✓ Branch 3 taken 528 times.
|
3618 | switch (instance) { |
| 6610 | ✗ | default: | |
| 6611 | #ifdef FW_STRICT_ASSERTIONS | ||
| 6612 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 6613 | ✗ | break; | |
| 6614 | #else | ||
| 6615 | // Fall through | ||
| 6616 | #endif | ||
| 6617 | 2096 | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 6618 |
8/9✓ Branch 0 taken 262 times.
✓ Branch 1 taken 262 times.
✓ Branch 2 taken 262 times.
✓ Branch 3 taken 262 times.
✓ Branch 4 taken 262 times.
✓ Branch 5 taken 262 times.
✓ Branch 6 taken 262 times.
✓ Branch 7 taken 262 times.
✗ Branch 8 not taken.
|
2096 | switch (portNum) { |
| 6619 | 262 | case 0: | |
| 6620 | 262 | Ref::SG1.schedIn_handlerBase( | |
| 6621 | 0, | ||
| 6622 | context | ||
| 6623 | ); | ||
| 6624 | 262 | break; | |
| 6625 | 262 | case 1: | |
| 6626 | 262 | Ref::SG2.schedIn_handlerBase( | |
| 6627 | 0, | ||
| 6628 | context | ||
| 6629 | ); | ||
| 6630 | 262 | break; | |
| 6631 | 262 | case 2: | |
| 6632 | 262 | CdhCore::tlmSend.Run_handlerBase( | |
| 6633 | 0, | ||
| 6634 | context | ||
| 6635 | ); | ||
| 6636 | 262 | break; | |
| 6637 | 262 | case 3: | |
| 6638 | 262 | FileHandling::fileDownlink.Run_handlerBase( | |
| 6639 | 0, | ||
| 6640 | context | ||
| 6641 | ); | ||
| 6642 | 262 | break; | |
| 6643 | 262 | case 4: | |
| 6644 | 262 | Ref::systemResources.run_handlerBase( | |
| 6645 | 0, | ||
| 6646 | context | ||
| 6647 | ); | ||
| 6648 | 262 | break; | |
| 6649 | 262 | case 5: | |
| 6650 | 262 | ComCcsds::comQueue.run_handlerBase( | |
| 6651 | 0, | ||
| 6652 | context | ||
| 6653 | ); | ||
| 6654 | 262 | break; | |
| 6655 | 262 | case 6: | |
| 6656 | 262 | CdhCore::cmdDisp.run_handlerBase( | |
| 6657 | 0, | ||
| 6658 | context | ||
| 6659 | ); | ||
| 6660 | 262 | break; | |
| 6661 | 262 | case 7: | |
| 6662 | 262 | ComCcsds::aggregator.timeout_handlerBase( | |
| 6663 | 0, | ||
| 6664 | context | ||
| 6665 | ); | ||
| 6666 | 262 | break; | |
| 6667 | ✗ | default: | |
| 6668 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6669 | ✗ | break; | |
| 6670 | } | ||
| 6671 | 2096 | break; | |
| 6672 | 1048 | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6673 |
8/9✓ Branch 0 taken 131 times.
✓ Branch 1 taken 131 times.
✓ Branch 2 taken 131 times.
✓ Branch 3 taken 131 times.
✓ Branch 4 taken 131 times.
✓ Branch 5 taken 131 times.
✓ Branch 6 taken 131 times.
✓ Branch 7 taken 131 times.
✗ Branch 8 not taken.
|
1048 | switch (portNum) { |
| 6674 | 131 | case 0: | |
| 6675 | 131 | Ref::cmdSeq.schedIn_handlerBase( | |
| 6676 | 0, | ||
| 6677 | context | ||
| 6678 | ); | ||
| 6679 | 131 | break; | |
| 6680 | 131 | case 1: | |
| 6681 | 131 | Ref::sendBuffComp.SchedIn_handlerBase( | |
| 6682 | 0, | ||
| 6683 | context | ||
| 6684 | ); | ||
| 6685 | 131 | break; | |
| 6686 | 131 | case 2: | |
| 6687 | 131 | Ref::SG3.schedIn_handlerBase( | |
| 6688 | 0, | ||
| 6689 | context | ||
| 6690 | ); | ||
| 6691 | 131 | break; | |
| 6692 | 131 | case 3: | |
| 6693 | 131 | Ref::SG4.schedIn_handlerBase( | |
| 6694 | 0, | ||
| 6695 | context | ||
| 6696 | ); | ||
| 6697 | 131 | break; | |
| 6698 | 131 | case 4: | |
| 6699 | 131 | Ref::dpDemo.run_handlerBase( | |
| 6700 | 0, | ||
| 6701 | context | ||
| 6702 | ); | ||
| 6703 | 131 | break; | |
| 6704 | 131 | case 5: | |
| 6705 | 131 | FileHandling::fileManager.schedIn_handlerBase( | |
| 6706 | 0, | ||
| 6707 | context | ||
| 6708 | ); | ||
| 6709 | 131 | break; | |
| 6710 | 131 | case 6: | |
| 6711 | 131 | Ref::wasmSeq.checkTimers_handlerBase( | |
| 6712 | 0, | ||
| 6713 | context | ||
| 6714 | ); | ||
| 6715 | 131 | break; | |
| 6716 | 131 | case 7: | |
| 6717 | 131 | Ref::wasmSeq.writeTelemetry_handlerBase( | |
| 6718 | 0, | ||
| 6719 | context | ||
| 6720 | ); | ||
| 6721 | 131 | break; | |
| 6722 | ✗ | default: | |
| 6723 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6724 | ✗ | break; | |
| 6725 | } | ||
| 6726 | 1048 | break; | |
| 6727 | 528 | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6728 |
8/9✓ Branch 0 taken 66 times.
✓ Branch 1 taken 66 times.
✓ Branch 2 taken 66 times.
✓ Branch 3 taken 66 times.
✓ Branch 4 taken 66 times.
✓ Branch 5 taken 66 times.
✓ Branch 6 taken 66 times.
✓ Branch 7 taken 66 times.
✗ Branch 8 not taken.
|
528 | switch (portNum) { |
| 6729 | 66 | case 0: | |
| 6730 | 66 | CdhCore::health.Run_handlerBase( | |
| 6731 | 0, | ||
| 6732 | context | ||
| 6733 | ); | ||
| 6734 | 66 | break; | |
| 6735 | 66 | case 1: | |
| 6736 | 66 | Ref::SG5.schedIn_handlerBase( | |
| 6737 | 0, | ||
| 6738 | context | ||
| 6739 | ); | ||
| 6740 | 66 | break; | |
| 6741 | 66 | case 2: | |
| 6742 | 66 | Ref::blockDrv.Sched_handlerBase( | |
| 6743 | 0, | ||
| 6744 | context | ||
| 6745 | ); | ||
| 6746 | 66 | break; | |
| 6747 | 66 | case 3: | |
| 6748 | 66 | ComCcsds::commsBufferManager.schedIn_handlerBase( | |
| 6749 | 0, | ||
| 6750 | context | ||
| 6751 | ); | ||
| 6752 | 66 | break; | |
| 6753 | 66 | case 4: | |
| 6754 | 66 | DataProducts::dpBufferManager.schedIn_handlerBase( | |
| 6755 | 0, | ||
| 6756 | context | ||
| 6757 | ); | ||
| 6758 | 66 | break; | |
| 6759 | 66 | case 5: | |
| 6760 | 66 | DataProducts::dpWriter.schedIn_handlerBase( | |
| 6761 | 0, | ||
| 6762 | context | ||
| 6763 | ); | ||
| 6764 | 66 | break; | |
| 6765 | 66 | case 6: | |
| 6766 | 66 | DataProducts::dpMgr.schedIn_handlerBase( | |
| 6767 | 0, | ||
| 6768 | context | ||
| 6769 | ); | ||
| 6770 | 66 | break; | |
| 6771 | 66 | case 7: | |
| 6772 | 66 | CdhCore::events.run_handlerBase( | |
| 6773 | 0, | ||
| 6774 | context | ||
| 6775 | ); | ||
| 6776 | 66 | break; | |
| 6777 | ✗ | default: | |
| 6778 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6779 | ✗ | break; | |
| 6780 | } | ||
| 6781 | 528 | break; | |
| 6782 | } | ||
| 6783 | 3672 | } | |
| 6784 | |||
| 6785 | 12 | void ActiveRateGroupComponentBase::Time_out( | |
| 6786 | FwIndexType portNum, | ||
| 6787 | Fw::Time& time | ||
| 6788 | ) const { | ||
| 6789 | 12 | FW_ASSERT( | |
| 6790 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 6791 | static_cast<FwAssertArgType>(portNum), | ||
| 6792 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 6793 | ); | ||
| 6794 | 12 | const auto instance = this->getInstance(); | |
| 6795 |
3/4✗ Branch 0 not taken.
✓ Branch 1 taken 5 times.
✓ Branch 2 taken 3 times.
✓ Branch 3 taken 4 times.
|
12 | switch (instance) { |
| 6796 | ✗ | default: | |
| 6797 | #ifdef FW_STRICT_ASSERTIONS | ||
| 6798 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 6799 | ✗ | break; | |
| 6800 | #else | ||
| 6801 | // Fall through | ||
| 6802 | #endif | ||
| 6803 | 5 | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 6804 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 6805 | 5 | case 0: | |
| 6806 | 5 | Ref::posixTime.timeGetPort_handlerBase( | |
| 6807 | 0, | ||
| 6808 | time | ||
| 6809 | ); | ||
| 6810 | 5 | break; | |
| 6811 | ✗ | default: | |
| 6812 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6813 | ✗ | break; | |
| 6814 | } | ||
| 6815 | 5 | break; | |
| 6816 | 3 | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6817 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 6818 | 3 | case 0: | |
| 6819 | 3 | Ref::posixTime.timeGetPort_handlerBase( | |
| 6820 | 0, | ||
| 6821 | time | ||
| 6822 | ); | ||
| 6823 | 3 | break; | |
| 6824 | ✗ | default: | |
| 6825 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6826 | ✗ | break; | |
| 6827 | } | ||
| 6828 | 3 | break; | |
| 6829 | 4 | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6830 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 6831 | 4 | case 0: | |
| 6832 | 4 | Ref::posixTime.timeGetPort_handlerBase( | |
| 6833 | 0, | ||
| 6834 | time | ||
| 6835 | ); | ||
| 6836 | 4 | break; | |
| 6837 | ✗ | default: | |
| 6838 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6839 | ✗ | break; | |
| 6840 | } | ||
| 6841 | 4 | break; | |
| 6842 | } | ||
| 6843 | 12 | } | |
| 6844 | |||
| 6845 | 9 | void ActiveRateGroupComponentBase::Tlm_out( | |
| 6846 | FwIndexType portNum, | ||
| 6847 | FwChanIdType id, | ||
| 6848 | Fw::Time& timeTag, | ||
| 6849 | Fw::TlmBuffer& val | ||
| 6850 | ) const { | ||
| 6851 | 9 | FW_ASSERT( | |
| 6852 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 6853 | static_cast<FwAssertArgType>(portNum), | ||
| 6854 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 6855 | ); | ||
| 6856 | 9 | const auto instance = this->getInstance(); | |
| 6857 |
3/4✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
✓ Branch 2 taken 2 times.
✓ Branch 3 taken 3 times.
|
9 | switch (instance) { |
| 6858 | ✗ | default: | |
| 6859 | #ifdef FW_STRICT_ASSERTIONS | ||
| 6860 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 6861 | ✗ | break; | |
| 6862 | #else | ||
| 6863 | // Fall through | ||
| 6864 | #endif | ||
| 6865 | 4 | case ::Ref::InstanceIds::Ref_rateGroup1Comp: | |
| 6866 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 6867 | 4 | case 0: | |
| 6868 | 4 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 6869 | 0, | ||
| 6870 | id, | ||
| 6871 | timeTag, | ||
| 6872 | val | ||
| 6873 | ); | ||
| 6874 | 4 | break; | |
| 6875 | ✗ | default: | |
| 6876 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6877 | ✗ | break; | |
| 6878 | } | ||
| 6879 | 4 | break; | |
| 6880 | 2 | case ::Ref::InstanceIds::Ref_rateGroup2Comp: | |
| 6881 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 6882 | 2 | case 0: | |
| 6883 | 2 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 6884 | 0, | ||
| 6885 | id, | ||
| 6886 | timeTag, | ||
| 6887 | val | ||
| 6888 | ); | ||
| 6889 | 2 | break; | |
| 6890 | ✗ | default: | |
| 6891 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6892 | ✗ | break; | |
| 6893 | } | ||
| 6894 | 2 | break; | |
| 6895 | 3 | case ::Ref::InstanceIds::Ref_rateGroup3Comp: | |
| 6896 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 6897 | 3 | case 0: | |
| 6898 | 3 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 6899 | 0, | ||
| 6900 | id, | ||
| 6901 | timeTag, | ||
| 6902 | val | ||
| 6903 | ); | ||
| 6904 | 3 | break; | |
| 6905 | ✗ | default: | |
| 6906 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6907 | ✗ | break; | |
| 6908 | } | ||
| 6909 | 3 | break; | |
| 6910 | } | ||
| 6911 | 9 | } | |
| 6912 | |||
| 6913 | } | ||
| 6914 | |||
| 6915 | namespace Svc { | ||
| 6916 | |||
| 6917 | ✗ | bool AssertFatalAdapterComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 6918 | ✗ | FW_ASSERT( | |
| 6919 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 6920 | static_cast<FwAssertArgType>(portNum), | ||
| 6921 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 6922 | ); | ||
| 6923 | ✗ | bool result = false; | |
| 6924 | ✗ | switch (portNum) { | |
| 6925 | ✗ | case 0: | |
| 6926 | ✗ | result = true; | |
| 6927 | ✗ | break; | |
| 6928 | ✗ | default: | |
| 6929 | ✗ | break; | |
| 6930 | } | ||
| 6931 | ✗ | return result; | |
| 6932 | } | ||
| 6933 | |||
| 6934 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 6935 | |||
| 6936 | ✗ | bool AssertFatalAdapterComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 6937 | ✗ | FW_ASSERT( | |
| 6938 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 6939 | static_cast<FwAssertArgType>(portNum), | ||
| 6940 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 6941 | ); | ||
| 6942 | ✗ | bool result = false; | |
| 6943 | ✗ | switch (portNum) { | |
| 6944 | ✗ | case 0: | |
| 6945 | ✗ | result = true; | |
| 6946 | ✗ | break; | |
| 6947 | ✗ | default: | |
| 6948 | ✗ | break; | |
| 6949 | } | ||
| 6950 | ✗ | return result; | |
| 6951 | } | ||
| 6952 | |||
| 6953 | #endif | ||
| 6954 | |||
| 6955 | ✗ | bool AssertFatalAdapterComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 6956 | ✗ | FW_ASSERT( | |
| 6957 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 6958 | static_cast<FwAssertArgType>(portNum), | ||
| 6959 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 6960 | ); | ||
| 6961 | ✗ | bool result = false; | |
| 6962 | ✗ | switch (portNum) { | |
| 6963 | ✗ | case 0: | |
| 6964 | ✗ | result = true; | |
| 6965 | ✗ | break; | |
| 6966 | ✗ | default: | |
| 6967 | ✗ | break; | |
| 6968 | } | ||
| 6969 | ✗ | return result; | |
| 6970 | } | ||
| 6971 | |||
| 6972 | ✗ | void AssertFatalAdapterComponentBase::Log_out( | |
| 6973 | FwIndexType portNum, | ||
| 6974 | FwEventIdType id, | ||
| 6975 | Fw::Time& timeTag, | ||
| 6976 | const Fw::LogSeverity& severity, | ||
| 6977 | Fw::LogBuffer& args | ||
| 6978 | ) const { | ||
| 6979 | ✗ | FW_ASSERT( | |
| 6980 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 6981 | static_cast<FwAssertArgType>(portNum), | ||
| 6982 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 6983 | ); | ||
| 6984 | ✗ | switch (portNum) { | |
| 6985 | ✗ | case 0: | |
| 6986 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 6987 | 0, | ||
| 6988 | id, | ||
| 6989 | timeTag, | ||
| 6990 | severity, | ||
| 6991 | args | ||
| 6992 | ); | ||
| 6993 | ✗ | break; | |
| 6994 | ✗ | default: | |
| 6995 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 6996 | ✗ | break; | |
| 6997 | } | ||
| 6998 | ✗ | } | |
| 6999 | |||
| 7000 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 7001 | |||
| 7002 | ✗ | void AssertFatalAdapterComponentBase::LogText_out( | |
| 7003 | FwIndexType portNum, | ||
| 7004 | FwEventIdType id, | ||
| 7005 | Fw::Time& timeTag, | ||
| 7006 | const Fw::LogSeverity& severity, | ||
| 7007 | Fw::TextLogString& text | ||
| 7008 | ) const { | ||
| 7009 | ✗ | FW_ASSERT( | |
| 7010 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 7011 | static_cast<FwAssertArgType>(portNum), | ||
| 7012 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 7013 | ); | ||
| 7014 | ✗ | switch (portNum) { | |
| 7015 | ✗ | case 0: | |
| 7016 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 7017 | 0, | ||
| 7018 | id, | ||
| 7019 | timeTag, | ||
| 7020 | severity, | ||
| 7021 | text | ||
| 7022 | ); | ||
| 7023 | ✗ | break; | |
| 7024 | ✗ | default: | |
| 7025 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7026 | ✗ | break; | |
| 7027 | } | ||
| 7028 | ✗ | } | |
| 7029 | |||
| 7030 | #endif | ||
| 7031 | |||
| 7032 | ✗ | void AssertFatalAdapterComponentBase::Time_out( | |
| 7033 | FwIndexType portNum, | ||
| 7034 | Fw::Time& time | ||
| 7035 | ) const { | ||
| 7036 | ✗ | FW_ASSERT( | |
| 7037 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 7038 | static_cast<FwAssertArgType>(portNum), | ||
| 7039 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 7040 | ); | ||
| 7041 | ✗ | switch (portNum) { | |
| 7042 | ✗ | case 0: | |
| 7043 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 7044 | 0, | ||
| 7045 | time | ||
| 7046 | ); | ||
| 7047 | ✗ | break; | |
| 7048 | ✗ | default: | |
| 7049 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7050 | ✗ | break; | |
| 7051 | } | ||
| 7052 | ✗ | } | |
| 7053 | |||
| 7054 | } | ||
| 7055 | |||
| 7056 | namespace Svc { | ||
| 7057 | |||
| 7058 | ✗ | bool BufferAccumulatorComponentBase::isConnected_bufferSendOutDrain_OutputPort(FwIndexType portNum) const { | |
| 7059 | ✗ | FW_ASSERT( | |
| 7060 | (0 <= portNum) && (portNum < NUM_BUFFERSENDOUTDRAIN_OUTPUT_PORTS), | ||
| 7061 | static_cast<FwAssertArgType>(portNum), | ||
| 7062 | static_cast<FwAssertArgType>(NUM_BUFFERSENDOUTDRAIN_OUTPUT_PORTS) | ||
| 7063 | ); | ||
| 7064 | ✗ | bool result = false; | |
| 7065 | ✗ | switch (portNum) { | |
| 7066 | ✗ | case 0: | |
| 7067 | ✗ | result = true; | |
| 7068 | ✗ | break; | |
| 7069 | ✗ | default: | |
| 7070 | ✗ | break; | |
| 7071 | } | ||
| 7072 | ✗ | return result; | |
| 7073 | } | ||
| 7074 | |||
| 7075 | ✗ | bool BufferAccumulatorComponentBase::isConnected_bufferSendOutReturn_OutputPort(FwIndexType portNum) const { | |
| 7076 | ✗ | FW_ASSERT( | |
| 7077 | (0 <= portNum) && (portNum < NUM_BUFFERSENDOUTRETURN_OUTPUT_PORTS), | ||
| 7078 | static_cast<FwAssertArgType>(portNum), | ||
| 7079 | static_cast<FwAssertArgType>(NUM_BUFFERSENDOUTRETURN_OUTPUT_PORTS) | ||
| 7080 | ); | ||
| 7081 | ✗ | bool result = false; | |
| 7082 | ✗ | switch (portNum) { | |
| 7083 | ✗ | case 0: | |
| 7084 | ✗ | result = true; | |
| 7085 | ✗ | break; | |
| 7086 | ✗ | default: | |
| 7087 | ✗ | break; | |
| 7088 | } | ||
| 7089 | ✗ | return result; | |
| 7090 | } | ||
| 7091 | |||
| 7092 | 1 | bool BufferAccumulatorComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const { | |
| 7093 | 1 | FW_ASSERT( | |
| 7094 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 7095 | static_cast<FwAssertArgType>(portNum), | ||
| 7096 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 7097 | ); | ||
| 7098 | 1 | bool result = false; | |
| 7099 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 7100 | 1 | case 0: | |
| 7101 | 1 | result = true; | |
| 7102 | 1 | break; | |
| 7103 | ✗ | default: | |
| 7104 | ✗ | break; | |
| 7105 | } | ||
| 7106 | 1 | return result; | |
| 7107 | } | ||
| 7108 | |||
| 7109 | ✗ | bool BufferAccumulatorComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const { | |
| 7110 | ✗ | FW_ASSERT( | |
| 7111 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 7112 | static_cast<FwAssertArgType>(portNum), | ||
| 7113 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 7114 | ); | ||
| 7115 | ✗ | bool result = false; | |
| 7116 | ✗ | switch (portNum) { | |
| 7117 | ✗ | case 0: | |
| 7118 | ✗ | result = true; | |
| 7119 | ✗ | break; | |
| 7120 | ✗ | default: | |
| 7121 | ✗ | break; | |
| 7122 | } | ||
| 7123 | ✗ | return result; | |
| 7124 | } | ||
| 7125 | |||
| 7126 | ✗ | bool BufferAccumulatorComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const { | |
| 7127 | ✗ | FW_ASSERT( | |
| 7128 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 7129 | static_cast<FwAssertArgType>(portNum), | ||
| 7130 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 7131 | ); | ||
| 7132 | ✗ | bool result = false; | |
| 7133 | ✗ | switch (portNum) { | |
| 7134 | ✗ | case 0: | |
| 7135 | ✗ | result = true; | |
| 7136 | ✗ | break; | |
| 7137 | ✗ | default: | |
| 7138 | ✗ | break; | |
| 7139 | } | ||
| 7140 | ✗ | return result; | |
| 7141 | } | ||
| 7142 | |||
| 7143 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 7144 | |||
| 7145 | ✗ | bool BufferAccumulatorComponentBase::isConnected_eventOutText_OutputPort(FwIndexType portNum) const { | |
| 7146 | ✗ | FW_ASSERT( | |
| 7147 | (0 <= portNum) && (portNum < NUM_EVENTOUTTEXT_OUTPUT_PORTS), | ||
| 7148 | static_cast<FwAssertArgType>(portNum), | ||
| 7149 | static_cast<FwAssertArgType>(NUM_EVENTOUTTEXT_OUTPUT_PORTS) | ||
| 7150 | ); | ||
| 7151 | ✗ | bool result = false; | |
| 7152 | ✗ | switch (portNum) { | |
| 7153 | ✗ | case 0: | |
| 7154 | ✗ | result = true; | |
| 7155 | ✗ | break; | |
| 7156 | ✗ | default: | |
| 7157 | ✗ | break; | |
| 7158 | } | ||
| 7159 | ✗ | return result; | |
| 7160 | } | ||
| 7161 | |||
| 7162 | #endif | ||
| 7163 | |||
| 7164 | ✗ | bool BufferAccumulatorComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const { | |
| 7165 | ✗ | FW_ASSERT( | |
| 7166 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 7167 | static_cast<FwAssertArgType>(portNum), | ||
| 7168 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 7169 | ); | ||
| 7170 | ✗ | bool result = false; | |
| 7171 | ✗ | switch (portNum) { | |
| 7172 | ✗ | case 0: | |
| 7173 | ✗ | result = true; | |
| 7174 | ✗ | break; | |
| 7175 | ✗ | default: | |
| 7176 | ✗ | break; | |
| 7177 | } | ||
| 7178 | ✗ | return result; | |
| 7179 | } | ||
| 7180 | |||
| 7181 | 15 | bool BufferAccumulatorComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 7182 | 15 | FW_ASSERT( | |
| 7183 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 7184 | static_cast<FwAssertArgType>(portNum), | ||
| 7185 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 7186 | ); | ||
| 7187 | 15 | bool result = false; | |
| 7188 |
1/2✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
|
15 | switch (portNum) { |
| 7189 | 15 | case 0: | |
| 7190 | 15 | result = true; | |
| 7191 | 15 | break; | |
| 7192 | ✗ | default: | |
| 7193 | ✗ | break; | |
| 7194 | } | ||
| 7195 | 15 | return result; | |
| 7196 | } | ||
| 7197 | |||
| 7198 | 30 | bool BufferAccumulatorComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 7199 | 30 | FW_ASSERT( | |
| 7200 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 7201 | static_cast<FwAssertArgType>(portNum), | ||
| 7202 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 7203 | ); | ||
| 7204 | 30 | bool result = false; | |
| 7205 |
1/2✓ Branch 0 taken 30 times.
✗ Branch 1 not taken.
|
30 | switch (portNum) { |
| 7206 | 30 | case 0: | |
| 7207 | 30 | result = true; | |
| 7208 | 30 | break; | |
| 7209 | ✗ | default: | |
| 7210 | ✗ | break; | |
| 7211 | } | ||
| 7212 | 30 | return result; | |
| 7213 | } | ||
| 7214 | |||
| 7215 | 5 | void BufferAccumulatorComponentBase::bufferSendOutDrain_out( | |
| 7216 | FwIndexType portNum, | ||
| 7217 | Fw::Buffer& fwBuffer | ||
| 7218 | ) const { | ||
| 7219 | 5 | FW_ASSERT( | |
| 7220 | (0 <= portNum) && (portNum < NUM_BUFFERSENDOUTDRAIN_OUTPUT_PORTS), | ||
| 7221 | static_cast<FwAssertArgType>(portNum), | ||
| 7222 | static_cast<FwAssertArgType>(NUM_BUFFERSENDOUTDRAIN_OUTPUT_PORTS) | ||
| 7223 | ); | ||
| 7224 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 7225 | 5 | case 0: | |
| 7226 | 5 | DataProducts::dpWriter.bufferSendIn_handlerBase( | |
| 7227 | 0, | ||
| 7228 | fwBuffer | ||
| 7229 | ); | ||
| 7230 | 5 | break; | |
| 7231 | ✗ | default: | |
| 7232 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7233 | ✗ | break; | |
| 7234 | } | ||
| 7235 | 5 | } | |
| 7236 | |||
| 7237 | 5 | void BufferAccumulatorComponentBase::bufferSendOutReturn_out( | |
| 7238 | FwIndexType portNum, | ||
| 7239 | Fw::Buffer& fwBuffer | ||
| 7240 | ) const { | ||
| 7241 | 5 | FW_ASSERT( | |
| 7242 | (0 <= portNum) && (portNum < NUM_BUFFERSENDOUTRETURN_OUTPUT_PORTS), | ||
| 7243 | static_cast<FwAssertArgType>(portNum), | ||
| 7244 | static_cast<FwAssertArgType>(NUM_BUFFERSENDOUTRETURN_OUTPUT_PORTS) | ||
| 7245 | ); | ||
| 7246 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 7247 | 5 | case 0: | |
| 7248 | 5 | DataProducts::dpBufferManager.bufferSendIn_handlerBase( | |
| 7249 | 0, | ||
| 7250 | fwBuffer | ||
| 7251 | ); | ||
| 7252 | 5 | break; | |
| 7253 | ✗ | default: | |
| 7254 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7255 | ✗ | break; | |
| 7256 | } | ||
| 7257 | 5 | } | |
| 7258 | |||
| 7259 | 2 | void BufferAccumulatorComponentBase::cmdRegOut_out( | |
| 7260 | FwIndexType portNum, | ||
| 7261 | FwOpcodeType opCode | ||
| 7262 | ) const { | ||
| 7263 | 2 | FW_ASSERT( | |
| 7264 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 7265 | static_cast<FwAssertArgType>(portNum), | ||
| 7266 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 7267 | ); | ||
| 7268 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 7269 | 2 | case 0: | |
| 7270 | 2 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 7271 | 5, | ||
| 7272 | opCode | ||
| 7273 | ); | ||
| 7274 | 2 | break; | |
| 7275 | ✗ | default: | |
| 7276 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7277 | ✗ | break; | |
| 7278 | } | ||
| 7279 | 2 | } | |
| 7280 | |||
| 7281 | ✗ | void BufferAccumulatorComponentBase::cmdResponseOut_out( | |
| 7282 | FwIndexType portNum, | ||
| 7283 | FwOpcodeType opCode, | ||
| 7284 | U32 cmdSeq, | ||
| 7285 | const Fw::CmdResponse& response | ||
| 7286 | ) const { | ||
| 7287 | ✗ | FW_ASSERT( | |
| 7288 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 7289 | static_cast<FwAssertArgType>(portNum), | ||
| 7290 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 7291 | ); | ||
| 7292 | ✗ | switch (portNum) { | |
| 7293 | ✗ | case 0: | |
| 7294 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 7295 | 0, | ||
| 7296 | opCode, | ||
| 7297 | cmdSeq, | ||
| 7298 | response | ||
| 7299 | ); | ||
| 7300 | ✗ | break; | |
| 7301 | ✗ | default: | |
| 7302 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7303 | ✗ | break; | |
| 7304 | } | ||
| 7305 | ✗ | } | |
| 7306 | |||
| 7307 | ✗ | void BufferAccumulatorComponentBase::eventOut_out( | |
| 7308 | FwIndexType portNum, | ||
| 7309 | FwEventIdType id, | ||
| 7310 | Fw::Time& timeTag, | ||
| 7311 | const Fw::LogSeverity& severity, | ||
| 7312 | Fw::LogBuffer& args | ||
| 7313 | ) const { | ||
| 7314 | ✗ | FW_ASSERT( | |
| 7315 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 7316 | static_cast<FwAssertArgType>(portNum), | ||
| 7317 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 7318 | ); | ||
| 7319 | ✗ | switch (portNum) { | |
| 7320 | ✗ | case 0: | |
| 7321 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 7322 | 0, | ||
| 7323 | id, | ||
| 7324 | timeTag, | ||
| 7325 | severity, | ||
| 7326 | args | ||
| 7327 | ); | ||
| 7328 | ✗ | break; | |
| 7329 | ✗ | default: | |
| 7330 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7331 | ✗ | break; | |
| 7332 | } | ||
| 7333 | ✗ | } | |
| 7334 | |||
| 7335 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 7336 | |||
| 7337 | ✗ | void BufferAccumulatorComponentBase::eventOutText_out( | |
| 7338 | FwIndexType portNum, | ||
| 7339 | FwEventIdType id, | ||
| 7340 | Fw::Time& timeTag, | ||
| 7341 | const Fw::LogSeverity& severity, | ||
| 7342 | Fw::TextLogString& text | ||
| 7343 | ) const { | ||
| 7344 | ✗ | FW_ASSERT( | |
| 7345 | (0 <= portNum) && (portNum < NUM_EVENTOUTTEXT_OUTPUT_PORTS), | ||
| 7346 | static_cast<FwAssertArgType>(portNum), | ||
| 7347 | static_cast<FwAssertArgType>(NUM_EVENTOUTTEXT_OUTPUT_PORTS) | ||
| 7348 | ); | ||
| 7349 | ✗ | switch (portNum) { | |
| 7350 | ✗ | case 0: | |
| 7351 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 7352 | 0, | ||
| 7353 | id, | ||
| 7354 | timeTag, | ||
| 7355 | severity, | ||
| 7356 | text | ||
| 7357 | ); | ||
| 7358 | ✗ | break; | |
| 7359 | ✗ | default: | |
| 7360 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7361 | ✗ | break; | |
| 7362 | } | ||
| 7363 | ✗ | } | |
| 7364 | |||
| 7365 | #endif | ||
| 7366 | |||
| 7367 | 66 | void BufferAccumulatorComponentBase::pingOut_out( | |
| 7368 | FwIndexType portNum, | ||
| 7369 | U32 key | ||
| 7370 | ) const { | ||
| 7371 | 66 | FW_ASSERT( | |
| 7372 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 7373 | static_cast<FwAssertArgType>(portNum), | ||
| 7374 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 7375 | ); | ||
| 7376 |
1/2✓ Branch 0 taken 66 times.
✗ Branch 1 not taken.
|
66 | switch (portNum) { |
| 7377 | 66 | case 0: | |
| 7378 | 66 | CdhCore::health.PingReturn_handlerBase( | |
| 7379 | 3, | ||
| 7380 | key | ||
| 7381 | ); | ||
| 7382 | 66 | break; | |
| 7383 | ✗ | default: | |
| 7384 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7385 | ✗ | break; | |
| 7386 | } | ||
| 7387 | 66 | } | |
| 7388 | |||
| 7389 | 15 | void BufferAccumulatorComponentBase::timeCaller_out( | |
| 7390 | FwIndexType portNum, | ||
| 7391 | Fw::Time& time | ||
| 7392 | ) const { | ||
| 7393 | 15 | FW_ASSERT( | |
| 7394 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 7395 | static_cast<FwAssertArgType>(portNum), | ||
| 7396 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 7397 | ); | ||
| 7398 |
1/2✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
|
15 | switch (portNum) { |
| 7399 | 15 | case 0: | |
| 7400 | 15 | Ref::posixTime.timeGetPort_handlerBase( | |
| 7401 | 0, | ||
| 7402 | time | ||
| 7403 | ); | ||
| 7404 | 15 | break; | |
| 7405 | ✗ | default: | |
| 7406 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7407 | ✗ | break; | |
| 7408 | } | ||
| 7409 | 15 | } | |
| 7410 | |||
| 7411 | 15 | void BufferAccumulatorComponentBase::tlmOut_out( | |
| 7412 | FwIndexType portNum, | ||
| 7413 | FwChanIdType id, | ||
| 7414 | Fw::Time& timeTag, | ||
| 7415 | Fw::TlmBuffer& val | ||
| 7416 | ) const { | ||
| 7417 | 15 | FW_ASSERT( | |
| 7418 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 7419 | static_cast<FwAssertArgType>(portNum), | ||
| 7420 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 7421 | ); | ||
| 7422 |
1/2✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
|
15 | switch (portNum) { |
| 7423 | 15 | case 0: | |
| 7424 | 15 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 7425 | 0, | ||
| 7426 | id, | ||
| 7427 | timeTag, | ||
| 7428 | val | ||
| 7429 | ); | ||
| 7430 | 15 | break; | |
| 7431 | ✗ | default: | |
| 7432 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7433 | ✗ | break; | |
| 7434 | } | ||
| 7435 | 15 | } | |
| 7436 | |||
| 7437 | } | ||
| 7438 | |||
| 7439 | namespace Svc { | ||
| 7440 | |||
| 7441 | ✗ | bool BufferManagerComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const { | |
| 7442 | ✗ | FW_ASSERT( | |
| 7443 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 7444 | static_cast<FwAssertArgType>(portNum), | ||
| 7445 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 7446 | ); | ||
| 7447 | ✗ | bool result = false; | |
| 7448 | ✗ | const auto instance = this->getInstance(); | |
| 7449 | ✗ | switch (instance) { | |
| 7450 | ✗ | default: | |
| 7451 | #ifdef FW_STRICT_ASSERTIONS | ||
| 7452 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 7453 | ✗ | break; | |
| 7454 | #else | ||
| 7455 | // Fall through | ||
| 7456 | #endif | ||
| 7457 | ✗ | case ::Ref::InstanceIds::ComCcsds_commsBufferManager: | |
| 7458 | ✗ | switch (portNum) { | |
| 7459 | ✗ | case 0: | |
| 7460 | ✗ | result = true; | |
| 7461 | ✗ | break; | |
| 7462 | ✗ | default: | |
| 7463 | ✗ | break; | |
| 7464 | } | ||
| 7465 | ✗ | break; | |
| 7466 | ✗ | case ::Ref::InstanceIds::DataProducts_dpBufferManager: | |
| 7467 | ✗ | switch (portNum) { | |
| 7468 | ✗ | case 0: | |
| 7469 | ✗ | result = true; | |
| 7470 | ✗ | break; | |
| 7471 | ✗ | default: | |
| 7472 | ✗ | break; | |
| 7473 | } | ||
| 7474 | ✗ | break; | |
| 7475 | } | ||
| 7476 | ✗ | return result; | |
| 7477 | } | ||
| 7478 | |||
| 7479 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 7480 | |||
| 7481 | ✗ | bool BufferManagerComponentBase::isConnected_textEventOut_OutputPort(FwIndexType portNum) const { | |
| 7482 | ✗ | FW_ASSERT( | |
| 7483 | (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS), | ||
| 7484 | static_cast<FwAssertArgType>(portNum), | ||
| 7485 | static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS) | ||
| 7486 | ); | ||
| 7487 | ✗ | bool result = false; | |
| 7488 | ✗ | const auto instance = this->getInstance(); | |
| 7489 | ✗ | switch (instance) { | |
| 7490 | ✗ | default: | |
| 7491 | #ifdef FW_STRICT_ASSERTIONS | ||
| 7492 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 7493 | ✗ | break; | |
| 7494 | #else | ||
| 7495 | // Fall through | ||
| 7496 | #endif | ||
| 7497 | ✗ | case ::Ref::InstanceIds::ComCcsds_commsBufferManager: | |
| 7498 | ✗ | switch (portNum) { | |
| 7499 | ✗ | case 0: | |
| 7500 | ✗ | result = true; | |
| 7501 | ✗ | break; | |
| 7502 | ✗ | default: | |
| 7503 | ✗ | break; | |
| 7504 | } | ||
| 7505 | ✗ | break; | |
| 7506 | ✗ | case ::Ref::InstanceIds::DataProducts_dpBufferManager: | |
| 7507 | ✗ | switch (portNum) { | |
| 7508 | ✗ | case 0: | |
| 7509 | ✗ | result = true; | |
| 7510 | ✗ | break; | |
| 7511 | ✗ | default: | |
| 7512 | ✗ | break; | |
| 7513 | } | ||
| 7514 | ✗ | break; | |
| 7515 | } | ||
| 7516 | ✗ | return result; | |
| 7517 | } | ||
| 7518 | |||
| 7519 | #endif | ||
| 7520 | |||
| 7521 | 34 | bool BufferManagerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 7522 | 34 | FW_ASSERT( | |
| 7523 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 7524 | static_cast<FwAssertArgType>(portNum), | ||
| 7525 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 7526 | ); | ||
| 7527 | 34 | bool result = false; | |
| 7528 | 34 | const auto instance = this->getInstance(); | |
| 7529 |
2/3✗ Branch 0 not taken.
✓ Branch 1 taken 24 times.
✓ Branch 2 taken 10 times.
|
34 | switch (instance) { |
| 7530 | ✗ | default: | |
| 7531 | #ifdef FW_STRICT_ASSERTIONS | ||
| 7532 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 7533 | ✗ | break; | |
| 7534 | #else | ||
| 7535 | // Fall through | ||
| 7536 | #endif | ||
| 7537 | 24 | case ::Ref::InstanceIds::ComCcsds_commsBufferManager: | |
| 7538 |
1/2✓ Branch 0 taken 24 times.
✗ Branch 1 not taken.
|
24 | switch (portNum) { |
| 7539 | 24 | case 0: | |
| 7540 | 24 | result = true; | |
| 7541 | 24 | break; | |
| 7542 | ✗ | default: | |
| 7543 | ✗ | break; | |
| 7544 | } | ||
| 7545 | 24 | break; | |
| 7546 | 10 | case ::Ref::InstanceIds::DataProducts_dpBufferManager: | |
| 7547 |
1/2✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
|
10 | switch (portNum) { |
| 7548 | 10 | case 0: | |
| 7549 | 10 | result = true; | |
| 7550 | 10 | break; | |
| 7551 | ✗ | default: | |
| 7552 | ✗ | break; | |
| 7553 | } | ||
| 7554 | 10 | break; | |
| 7555 | } | ||
| 7556 | 34 | return result; | |
| 7557 | } | ||
| 7558 | |||
| 7559 | 68 | bool BufferManagerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 7560 | 68 | FW_ASSERT( | |
| 7561 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 7562 | static_cast<FwAssertArgType>(portNum), | ||
| 7563 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 7564 | ); | ||
| 7565 | 68 | bool result = false; | |
| 7566 | 68 | const auto instance = this->getInstance(); | |
| 7567 |
2/3✗ Branch 0 not taken.
✓ Branch 1 taken 48 times.
✓ Branch 2 taken 20 times.
|
68 | switch (instance) { |
| 7568 | ✗ | default: | |
| 7569 | #ifdef FW_STRICT_ASSERTIONS | ||
| 7570 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 7571 | ✗ | break; | |
| 7572 | #else | ||
| 7573 | // Fall through | ||
| 7574 | #endif | ||
| 7575 | 48 | case ::Ref::InstanceIds::ComCcsds_commsBufferManager: | |
| 7576 |
1/2✓ Branch 0 taken 48 times.
✗ Branch 1 not taken.
|
48 | switch (portNum) { |
| 7577 | 48 | case 0: | |
| 7578 | 48 | result = true; | |
| 7579 | 48 | break; | |
| 7580 | ✗ | default: | |
| 7581 | ✗ | break; | |
| 7582 | } | ||
| 7583 | 48 | break; | |
| 7584 | 20 | case ::Ref::InstanceIds::DataProducts_dpBufferManager: | |
| 7585 |
1/2✓ Branch 0 taken 20 times.
✗ Branch 1 not taken.
|
20 | switch (portNum) { |
| 7586 | 20 | case 0: | |
| 7587 | 20 | result = true; | |
| 7588 | 20 | break; | |
| 7589 | ✗ | default: | |
| 7590 | ✗ | break; | |
| 7591 | } | ||
| 7592 | 20 | break; | |
| 7593 | } | ||
| 7594 | 68 | return result; | |
| 7595 | } | ||
| 7596 | |||
| 7597 | ✗ | void BufferManagerComponentBase::eventOut_out( | |
| 7598 | FwIndexType portNum, | ||
| 7599 | FwEventIdType id, | ||
| 7600 | Fw::Time& timeTag, | ||
| 7601 | const Fw::LogSeverity& severity, | ||
| 7602 | Fw::LogBuffer& args | ||
| 7603 | ) const { | ||
| 7604 | ✗ | FW_ASSERT( | |
| 7605 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 7606 | static_cast<FwAssertArgType>(portNum), | ||
| 7607 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 7608 | ); | ||
| 7609 | ✗ | const auto instance = this->getInstance(); | |
| 7610 | ✗ | switch (instance) { | |
| 7611 | ✗ | default: | |
| 7612 | #ifdef FW_STRICT_ASSERTIONS | ||
| 7613 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 7614 | ✗ | break; | |
| 7615 | #else | ||
| 7616 | // Fall through | ||
| 7617 | #endif | ||
| 7618 | ✗ | case ::Ref::InstanceIds::ComCcsds_commsBufferManager: | |
| 7619 | ✗ | switch (portNum) { | |
| 7620 | ✗ | case 0: | |
| 7621 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 7622 | 0, | ||
| 7623 | id, | ||
| 7624 | timeTag, | ||
| 7625 | severity, | ||
| 7626 | args | ||
| 7627 | ); | ||
| 7628 | ✗ | break; | |
| 7629 | ✗ | default: | |
| 7630 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7631 | ✗ | break; | |
| 7632 | } | ||
| 7633 | ✗ | break; | |
| 7634 | ✗ | case ::Ref::InstanceIds::DataProducts_dpBufferManager: | |
| 7635 | ✗ | switch (portNum) { | |
| 7636 | ✗ | case 0: | |
| 7637 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 7638 | 0, | ||
| 7639 | id, | ||
| 7640 | timeTag, | ||
| 7641 | severity, | ||
| 7642 | args | ||
| 7643 | ); | ||
| 7644 | ✗ | break; | |
| 7645 | ✗ | default: | |
| 7646 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7647 | ✗ | break; | |
| 7648 | } | ||
| 7649 | ✗ | break; | |
| 7650 | } | ||
| 7651 | ✗ | } | |
| 7652 | |||
| 7653 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 7654 | |||
| 7655 | ✗ | void BufferManagerComponentBase::textEventOut_out( | |
| 7656 | FwIndexType portNum, | ||
| 7657 | FwEventIdType id, | ||
| 7658 | Fw::Time& timeTag, | ||
| 7659 | const Fw::LogSeverity& severity, | ||
| 7660 | Fw::TextLogString& text | ||
| 7661 | ) const { | ||
| 7662 | ✗ | FW_ASSERT( | |
| 7663 | (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS), | ||
| 7664 | static_cast<FwAssertArgType>(portNum), | ||
| 7665 | static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS) | ||
| 7666 | ); | ||
| 7667 | ✗ | const auto instance = this->getInstance(); | |
| 7668 | ✗ | switch (instance) { | |
| 7669 | ✗ | default: | |
| 7670 | #ifdef FW_STRICT_ASSERTIONS | ||
| 7671 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 7672 | ✗ | break; | |
| 7673 | #else | ||
| 7674 | // Fall through | ||
| 7675 | #endif | ||
| 7676 | ✗ | case ::Ref::InstanceIds::ComCcsds_commsBufferManager: | |
| 7677 | ✗ | switch (portNum) { | |
| 7678 | ✗ | case 0: | |
| 7679 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 7680 | 0, | ||
| 7681 | id, | ||
| 7682 | timeTag, | ||
| 7683 | severity, | ||
| 7684 | text | ||
| 7685 | ); | ||
| 7686 | ✗ | break; | |
| 7687 | ✗ | default: | |
| 7688 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7689 | ✗ | break; | |
| 7690 | } | ||
| 7691 | ✗ | break; | |
| 7692 | ✗ | case ::Ref::InstanceIds::DataProducts_dpBufferManager: | |
| 7693 | ✗ | switch (portNum) { | |
| 7694 | ✗ | case 0: | |
| 7695 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 7696 | 0, | ||
| 7697 | id, | ||
| 7698 | timeTag, | ||
| 7699 | severity, | ||
| 7700 | text | ||
| 7701 | ); | ||
| 7702 | ✗ | break; | |
| 7703 | ✗ | default: | |
| 7704 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7705 | ✗ | break; | |
| 7706 | } | ||
| 7707 | ✗ | break; | |
| 7708 | } | ||
| 7709 | ✗ | } | |
| 7710 | |||
| 7711 | #endif | ||
| 7712 | |||
| 7713 | 34 | void BufferManagerComponentBase::timeCaller_out( | |
| 7714 | FwIndexType portNum, | ||
| 7715 | Fw::Time& time | ||
| 7716 | ) const { | ||
| 7717 | 34 | FW_ASSERT( | |
| 7718 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 7719 | static_cast<FwAssertArgType>(portNum), | ||
| 7720 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 7721 | ); | ||
| 7722 | 34 | const auto instance = this->getInstance(); | |
| 7723 |
2/3✗ Branch 0 not taken.
✓ Branch 1 taken 24 times.
✓ Branch 2 taken 10 times.
|
34 | switch (instance) { |
| 7724 | ✗ | default: | |
| 7725 | #ifdef FW_STRICT_ASSERTIONS | ||
| 7726 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 7727 | ✗ | break; | |
| 7728 | #else | ||
| 7729 | // Fall through | ||
| 7730 | #endif | ||
| 7731 | 24 | case ::Ref::InstanceIds::ComCcsds_commsBufferManager: | |
| 7732 |
1/2✓ Branch 0 taken 24 times.
✗ Branch 1 not taken.
|
24 | switch (portNum) { |
| 7733 | 24 | case 0: | |
| 7734 | 24 | Ref::posixTime.timeGetPort_handlerBase( | |
| 7735 | 0, | ||
| 7736 | time | ||
| 7737 | ); | ||
| 7738 | 24 | break; | |
| 7739 | ✗ | default: | |
| 7740 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7741 | ✗ | break; | |
| 7742 | } | ||
| 7743 | 24 | break; | |
| 7744 | 10 | case ::Ref::InstanceIds::DataProducts_dpBufferManager: | |
| 7745 |
1/2✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
|
10 | switch (portNum) { |
| 7746 | 10 | case 0: | |
| 7747 | 10 | Ref::posixTime.timeGetPort_handlerBase( | |
| 7748 | 0, | ||
| 7749 | time | ||
| 7750 | ); | ||
| 7751 | 10 | break; | |
| 7752 | ✗ | default: | |
| 7753 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7754 | ✗ | break; | |
| 7755 | } | ||
| 7756 | 10 | break; | |
| 7757 | } | ||
| 7758 | 34 | } | |
| 7759 | |||
| 7760 | 34 | void BufferManagerComponentBase::tlmOut_out( | |
| 7761 | FwIndexType portNum, | ||
| 7762 | FwChanIdType id, | ||
| 7763 | Fw::Time& timeTag, | ||
| 7764 | Fw::TlmBuffer& val | ||
| 7765 | ) const { | ||
| 7766 | 34 | FW_ASSERT( | |
| 7767 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 7768 | static_cast<FwAssertArgType>(portNum), | ||
| 7769 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 7770 | ); | ||
| 7771 | 34 | const auto instance = this->getInstance(); | |
| 7772 |
2/3✗ Branch 0 not taken.
✓ Branch 1 taken 24 times.
✓ Branch 2 taken 10 times.
|
34 | switch (instance) { |
| 7773 | ✗ | default: | |
| 7774 | #ifdef FW_STRICT_ASSERTIONS | ||
| 7775 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(instance)); | |
| 7776 | ✗ | break; | |
| 7777 | #else | ||
| 7778 | // Fall through | ||
| 7779 | #endif | ||
| 7780 | 24 | case ::Ref::InstanceIds::ComCcsds_commsBufferManager: | |
| 7781 |
1/2✓ Branch 0 taken 24 times.
✗ Branch 1 not taken.
|
24 | switch (portNum) { |
| 7782 | 24 | case 0: | |
| 7783 | 24 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 7784 | 0, | ||
| 7785 | id, | ||
| 7786 | timeTag, | ||
| 7787 | val | ||
| 7788 | ); | ||
| 7789 | 24 | break; | |
| 7790 | ✗ | default: | |
| 7791 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7792 | ✗ | break; | |
| 7793 | } | ||
| 7794 | 24 | break; | |
| 7795 | 10 | case ::Ref::InstanceIds::DataProducts_dpBufferManager: | |
| 7796 |
1/2✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
|
10 | switch (portNum) { |
| 7797 | 10 | case 0: | |
| 7798 | 10 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 7799 | 0, | ||
| 7800 | id, | ||
| 7801 | timeTag, | ||
| 7802 | val | ||
| 7803 | ); | ||
| 7804 | 10 | break; | |
| 7805 | ✗ | default: | |
| 7806 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7807 | ✗ | break; | |
| 7808 | } | ||
| 7809 | 10 | break; | |
| 7810 | } | ||
| 7811 | 34 | } | |
| 7812 | |||
| 7813 | } | ||
| 7814 | |||
| 7815 | namespace Svc { | ||
| 7816 | namespace Ccsds { | ||
| 7817 | |||
| 7818 | ✗ | bool ApidManagerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 7819 | ✗ | FW_ASSERT( | |
| 7820 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 7821 | static_cast<FwAssertArgType>(portNum), | ||
| 7822 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 7823 | ); | ||
| 7824 | ✗ | bool result = false; | |
| 7825 | ✗ | switch (portNum) { | |
| 7826 | ✗ | case 0: | |
| 7827 | ✗ | result = true; | |
| 7828 | ✗ | break; | |
| 7829 | ✗ | default: | |
| 7830 | ✗ | break; | |
| 7831 | } | ||
| 7832 | ✗ | return result; | |
| 7833 | } | ||
| 7834 | |||
| 7835 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 7836 | |||
| 7837 | ✗ | bool ApidManagerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 7838 | ✗ | FW_ASSERT( | |
| 7839 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 7840 | static_cast<FwAssertArgType>(portNum), | ||
| 7841 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 7842 | ); | ||
| 7843 | ✗ | bool result = false; | |
| 7844 | ✗ | switch (portNum) { | |
| 7845 | ✗ | case 0: | |
| 7846 | ✗ | result = true; | |
| 7847 | ✗ | break; | |
| 7848 | ✗ | default: | |
| 7849 | ✗ | break; | |
| 7850 | } | ||
| 7851 | ✗ | return result; | |
| 7852 | } | ||
| 7853 | |||
| 7854 | #endif | ||
| 7855 | |||
| 7856 | ✗ | bool ApidManagerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 7857 | ✗ | FW_ASSERT( | |
| 7858 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 7859 | static_cast<FwAssertArgType>(portNum), | ||
| 7860 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 7861 | ); | ||
| 7862 | ✗ | bool result = false; | |
| 7863 | ✗ | switch (portNum) { | |
| 7864 | ✗ | case 0: | |
| 7865 | ✗ | result = true; | |
| 7866 | ✗ | break; | |
| 7867 | ✗ | default: | |
| 7868 | ✗ | break; | |
| 7869 | } | ||
| 7870 | ✗ | return result; | |
| 7871 | } | ||
| 7872 | |||
| 7873 | ✗ | void ApidManagerComponentBase::logOut_out( | |
| 7874 | FwIndexType portNum, | ||
| 7875 | FwEventIdType id, | ||
| 7876 | Fw::Time& timeTag, | ||
| 7877 | const Fw::LogSeverity& severity, | ||
| 7878 | Fw::LogBuffer& args | ||
| 7879 | ) const { | ||
| 7880 | ✗ | FW_ASSERT( | |
| 7881 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 7882 | static_cast<FwAssertArgType>(portNum), | ||
| 7883 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 7884 | ); | ||
| 7885 | ✗ | switch (portNum) { | |
| 7886 | ✗ | case 0: | |
| 7887 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 7888 | 0, | ||
| 7889 | id, | ||
| 7890 | timeTag, | ||
| 7891 | severity, | ||
| 7892 | args | ||
| 7893 | ); | ||
| 7894 | ✗ | break; | |
| 7895 | ✗ | default: | |
| 7896 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7897 | ✗ | break; | |
| 7898 | } | ||
| 7899 | ✗ | } | |
| 7900 | |||
| 7901 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 7902 | |||
| 7903 | ✗ | void ApidManagerComponentBase::logTextOut_out( | |
| 7904 | FwIndexType portNum, | ||
| 7905 | FwEventIdType id, | ||
| 7906 | Fw::Time& timeTag, | ||
| 7907 | const Fw::LogSeverity& severity, | ||
| 7908 | Fw::TextLogString& text | ||
| 7909 | ) const { | ||
| 7910 | ✗ | FW_ASSERT( | |
| 7911 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 7912 | static_cast<FwAssertArgType>(portNum), | ||
| 7913 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 7914 | ); | ||
| 7915 | ✗ | switch (portNum) { | |
| 7916 | ✗ | case 0: | |
| 7917 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 7918 | 0, | ||
| 7919 | id, | ||
| 7920 | timeTag, | ||
| 7921 | severity, | ||
| 7922 | text | ||
| 7923 | ); | ||
| 7924 | ✗ | break; | |
| 7925 | ✗ | default: | |
| 7926 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7927 | ✗ | break; | |
| 7928 | } | ||
| 7929 | ✗ | } | |
| 7930 | |||
| 7931 | #endif | ||
| 7932 | |||
| 7933 | ✗ | void ApidManagerComponentBase::timeCaller_out( | |
| 7934 | FwIndexType portNum, | ||
| 7935 | Fw::Time& time | ||
| 7936 | ) const { | ||
| 7937 | ✗ | FW_ASSERT( | |
| 7938 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 7939 | static_cast<FwAssertArgType>(portNum), | ||
| 7940 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 7941 | ); | ||
| 7942 | ✗ | switch (portNum) { | |
| 7943 | ✗ | case 0: | |
| 7944 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 7945 | 0, | ||
| 7946 | time | ||
| 7947 | ); | ||
| 7948 | ✗ | break; | |
| 7949 | ✗ | default: | |
| 7950 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 7951 | ✗ | break; | |
| 7952 | } | ||
| 7953 | ✗ | } | |
| 7954 | |||
| 7955 | } | ||
| 7956 | } | ||
| 7957 | |||
| 7958 | namespace Svc { | ||
| 7959 | namespace Ccsds { | ||
| 7960 | |||
| 7961 | ✗ | bool SpacePacketDeframerComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const { | |
| 7962 | ✗ | FW_ASSERT( | |
| 7963 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 7964 | static_cast<FwAssertArgType>(portNum), | ||
| 7965 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 7966 | ); | ||
| 7967 | ✗ | bool result = false; | |
| 7968 | ✗ | switch (portNum) { | |
| 7969 | ✗ | case 0: | |
| 7970 | ✗ | result = true; | |
| 7971 | ✗ | break; | |
| 7972 | ✗ | default: | |
| 7973 | ✗ | break; | |
| 7974 | } | ||
| 7975 | ✗ | return result; | |
| 7976 | } | ||
| 7977 | |||
| 7978 | ✗ | bool SpacePacketDeframerComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const { | |
| 7979 | ✗ | FW_ASSERT( | |
| 7980 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 7981 | static_cast<FwAssertArgType>(portNum), | ||
| 7982 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 7983 | ); | ||
| 7984 | ✗ | bool result = false; | |
| 7985 | ✗ | switch (portNum) { | |
| 7986 | ✗ | case 0: | |
| 7987 | ✗ | result = true; | |
| 7988 | ✗ | break; | |
| 7989 | ✗ | default: | |
| 7990 | ✗ | break; | |
| 7991 | } | ||
| 7992 | ✗ | return result; | |
| 7993 | } | ||
| 7994 | |||
| 7995 | ✗ | bool SpacePacketDeframerComponentBase::isConnected_errorNotify_OutputPort(FwIndexType portNum) const { | |
| 7996 | ✗ | FW_ASSERT( | |
| 7997 | (0 <= portNum) && (portNum < NUM_ERRORNOTIFY_OUTPUT_PORTS), | ||
| 7998 | static_cast<FwAssertArgType>(portNum), | ||
| 7999 | static_cast<FwAssertArgType>(NUM_ERRORNOTIFY_OUTPUT_PORTS) | ||
| 8000 | ); | ||
| 8001 | ✗ | bool result = false; | |
| 8002 | ✗ | switch (portNum) { | |
| 8003 | default: | ||
| 8004 | ✗ | break; | |
| 8005 | } | ||
| 8006 | ✗ | return result; | |
| 8007 | } | ||
| 8008 | |||
| 8009 | ✗ | bool SpacePacketDeframerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 8010 | ✗ | FW_ASSERT( | |
| 8011 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 8012 | static_cast<FwAssertArgType>(portNum), | ||
| 8013 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 8014 | ); | ||
| 8015 | ✗ | bool result = false; | |
| 8016 | ✗ | switch (portNum) { | |
| 8017 | ✗ | case 0: | |
| 8018 | ✗ | result = true; | |
| 8019 | ✗ | break; | |
| 8020 | ✗ | default: | |
| 8021 | ✗ | break; | |
| 8022 | } | ||
| 8023 | ✗ | return result; | |
| 8024 | } | ||
| 8025 | |||
| 8026 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 8027 | |||
| 8028 | ✗ | bool SpacePacketDeframerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 8029 | ✗ | FW_ASSERT( | |
| 8030 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 8031 | static_cast<FwAssertArgType>(portNum), | ||
| 8032 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 8033 | ); | ||
| 8034 | ✗ | bool result = false; | |
| 8035 | ✗ | switch (portNum) { | |
| 8036 | ✗ | case 0: | |
| 8037 | ✗ | result = true; | |
| 8038 | ✗ | break; | |
| 8039 | ✗ | default: | |
| 8040 | ✗ | break; | |
| 8041 | } | ||
| 8042 | ✗ | return result; | |
| 8043 | } | ||
| 8044 | |||
| 8045 | #endif | ||
| 8046 | |||
| 8047 | ✗ | bool SpacePacketDeframerComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const { | |
| 8048 | ✗ | FW_ASSERT( | |
| 8049 | (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS), | ||
| 8050 | static_cast<FwAssertArgType>(portNum), | ||
| 8051 | static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS) | ||
| 8052 | ); | ||
| 8053 | ✗ | bool result = false; | |
| 8054 | ✗ | switch (portNum) { | |
| 8055 | ✗ | case 0: | |
| 8056 | ✗ | result = true; | |
| 8057 | ✗ | break; | |
| 8058 | ✗ | default: | |
| 8059 | ✗ | break; | |
| 8060 | } | ||
| 8061 | ✗ | return result; | |
| 8062 | } | ||
| 8063 | |||
| 8064 | ✗ | bool SpacePacketDeframerComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const { | |
| 8065 | ✗ | FW_ASSERT( | |
| 8066 | (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS), | ||
| 8067 | static_cast<FwAssertArgType>(portNum), | ||
| 8068 | static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS) | ||
| 8069 | ); | ||
| 8070 | ✗ | bool result = false; | |
| 8071 | ✗ | switch (portNum) { | |
| 8072 | ✗ | case 0: | |
| 8073 | ✗ | result = true; | |
| 8074 | ✗ | break; | |
| 8075 | ✗ | default: | |
| 8076 | ✗ | break; | |
| 8077 | } | ||
| 8078 | ✗ | return result; | |
| 8079 | } | ||
| 8080 | |||
| 8081 | ✗ | bool SpacePacketDeframerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 8082 | ✗ | FW_ASSERT( | |
| 8083 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 8084 | static_cast<FwAssertArgType>(portNum), | ||
| 8085 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 8086 | ); | ||
| 8087 | ✗ | bool result = false; | |
| 8088 | ✗ | switch (portNum) { | |
| 8089 | ✗ | case 0: | |
| 8090 | ✗ | result = true; | |
| 8091 | ✗ | break; | |
| 8092 | ✗ | default: | |
| 8093 | ✗ | break; | |
| 8094 | } | ||
| 8095 | ✗ | return result; | |
| 8096 | } | ||
| 8097 | |||
| 8098 | ✗ | bool SpacePacketDeframerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 8099 | ✗ | FW_ASSERT( | |
| 8100 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 8101 | static_cast<FwAssertArgType>(portNum), | ||
| 8102 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 8103 | ); | ||
| 8104 | ✗ | bool result = false; | |
| 8105 | ✗ | switch (portNum) { | |
| 8106 | ✗ | case 0: | |
| 8107 | ✗ | result = true; | |
| 8108 | ✗ | break; | |
| 8109 | ✗ | default: | |
| 8110 | ✗ | break; | |
| 8111 | } | ||
| 8112 | ✗ | return result; | |
| 8113 | } | ||
| 8114 | |||
| 8115 | ✗ | bool SpacePacketDeframerComponentBase::isConnected_validateApidSeqCount_OutputPort(FwIndexType portNum) const { | |
| 8116 | ✗ | FW_ASSERT( | |
| 8117 | (0 <= portNum) && (portNum < NUM_VALIDATEAPIDSEQCOUNT_OUTPUT_PORTS), | ||
| 8118 | static_cast<FwAssertArgType>(portNum), | ||
| 8119 | static_cast<FwAssertArgType>(NUM_VALIDATEAPIDSEQCOUNT_OUTPUT_PORTS) | ||
| 8120 | ); | ||
| 8121 | ✗ | bool result = false; | |
| 8122 | ✗ | switch (portNum) { | |
| 8123 | ✗ | case 0: | |
| 8124 | ✗ | result = true; | |
| 8125 | ✗ | break; | |
| 8126 | ✗ | default: | |
| 8127 | ✗ | break; | |
| 8128 | } | ||
| 8129 | ✗ | return result; | |
| 8130 | } | ||
| 8131 | |||
| 8132 | 162 | void SpacePacketDeframerComponentBase::dataOut_out( | |
| 8133 | FwIndexType portNum, | ||
| 8134 | Fw::Buffer& data, | ||
| 8135 | const ComCfg::FrameContext& context | ||
| 8136 | ) const { | ||
| 8137 | 162 | FW_ASSERT( | |
| 8138 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 8139 | static_cast<FwAssertArgType>(portNum), | ||
| 8140 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 8141 | ); | ||
| 8142 |
1/2✓ Branch 0 taken 162 times.
✗ Branch 1 not taken.
|
162 | switch (portNum) { |
| 8143 | 162 | case 0: | |
| 8144 | 162 | ComCcsds::fprimeRouter.dataIn_handlerBase( | |
| 8145 | 0, | ||
| 8146 | data, | ||
| 8147 | context | ||
| 8148 | ); | ||
| 8149 | 162 | break; | |
| 8150 | ✗ | default: | |
| 8151 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8152 | ✗ | break; | |
| 8153 | } | ||
| 8154 | 162 | } | |
| 8155 | |||
| 8156 | 162 | void SpacePacketDeframerComponentBase::dataReturnOut_out( | |
| 8157 | FwIndexType portNum, | ||
| 8158 | Fw::Buffer& data, | ||
| 8159 | const ComCfg::FrameContext& context | ||
| 8160 | ) const { | ||
| 8161 | 162 | FW_ASSERT( | |
| 8162 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 8163 | static_cast<FwAssertArgType>(portNum), | ||
| 8164 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 8165 | ); | ||
| 8166 |
1/2✓ Branch 0 taken 162 times.
✗ Branch 1 not taken.
|
162 | switch (portNum) { |
| 8167 | 162 | case 0: | |
| 8168 | 162 | ComCcsds::tcDeframer.dataReturnIn_handlerBase( | |
| 8169 | 0, | ||
| 8170 | data, | ||
| 8171 | context | ||
| 8172 | ); | ||
| 8173 | 162 | break; | |
| 8174 | ✗ | default: | |
| 8175 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8176 | ✗ | break; | |
| 8177 | } | ||
| 8178 | 162 | } | |
| 8179 | |||
| 8180 | ✗ | void SpacePacketDeframerComponentBase::errorNotify_out( | |
| 8181 | FwIndexType portNum, | ||
| 8182 | const Svc::Ccsds::FrameError& errorCode | ||
| 8183 | ) const { | ||
| 8184 | ✗ | FW_ASSERT( | |
| 8185 | (0 <= portNum) && (portNum < NUM_ERRORNOTIFY_OUTPUT_PORTS), | ||
| 8186 | static_cast<FwAssertArgType>(portNum), | ||
| 8187 | static_cast<FwAssertArgType>(NUM_ERRORNOTIFY_OUTPUT_PORTS) | ||
| 8188 | ); | ||
| 8189 | ✗ | switch (portNum) { | |
| 8190 | default: | ||
| 8191 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8192 | ✗ | break; | |
| 8193 | } | ||
| 8194 | ✗ | } | |
| 8195 | |||
| 8196 | ✗ | void SpacePacketDeframerComponentBase::logOut_out( | |
| 8197 | FwIndexType portNum, | ||
| 8198 | FwEventIdType id, | ||
| 8199 | Fw::Time& timeTag, | ||
| 8200 | const Fw::LogSeverity& severity, | ||
| 8201 | Fw::LogBuffer& args | ||
| 8202 | ) const { | ||
| 8203 | ✗ | FW_ASSERT( | |
| 8204 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 8205 | static_cast<FwAssertArgType>(portNum), | ||
| 8206 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 8207 | ); | ||
| 8208 | ✗ | switch (portNum) { | |
| 8209 | ✗ | case 0: | |
| 8210 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 8211 | 0, | ||
| 8212 | id, | ||
| 8213 | timeTag, | ||
| 8214 | severity, | ||
| 8215 | args | ||
| 8216 | ); | ||
| 8217 | ✗ | break; | |
| 8218 | ✗ | default: | |
| 8219 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8220 | ✗ | break; | |
| 8221 | } | ||
| 8222 | ✗ | } | |
| 8223 | |||
| 8224 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 8225 | |||
| 8226 | ✗ | void SpacePacketDeframerComponentBase::logTextOut_out( | |
| 8227 | FwIndexType portNum, | ||
| 8228 | FwEventIdType id, | ||
| 8229 | Fw::Time& timeTag, | ||
| 8230 | const Fw::LogSeverity& severity, | ||
| 8231 | Fw::TextLogString& text | ||
| 8232 | ) const { | ||
| 8233 | ✗ | FW_ASSERT( | |
| 8234 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 8235 | static_cast<FwAssertArgType>(portNum), | ||
| 8236 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 8237 | ); | ||
| 8238 | ✗ | switch (portNum) { | |
| 8239 | ✗ | case 0: | |
| 8240 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 8241 | 0, | ||
| 8242 | id, | ||
| 8243 | timeTag, | ||
| 8244 | severity, | ||
| 8245 | text | ||
| 8246 | ); | ||
| 8247 | ✗ | break; | |
| 8248 | ✗ | default: | |
| 8249 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8250 | ✗ | break; | |
| 8251 | } | ||
| 8252 | ✗ | } | |
| 8253 | |||
| 8254 | #endif | ||
| 8255 | |||
| 8256 | ✗ | void SpacePacketDeframerComponentBase::timeCaller_out( | |
| 8257 | FwIndexType portNum, | ||
| 8258 | Fw::Time& time | ||
| 8259 | ) const { | ||
| 8260 | ✗ | FW_ASSERT( | |
| 8261 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 8262 | static_cast<FwAssertArgType>(portNum), | ||
| 8263 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 8264 | ); | ||
| 8265 | ✗ | switch (portNum) { | |
| 8266 | ✗ | case 0: | |
| 8267 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 8268 | 0, | ||
| 8269 | time | ||
| 8270 | ); | ||
| 8271 | ✗ | break; | |
| 8272 | ✗ | default: | |
| 8273 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8274 | ✗ | break; | |
| 8275 | } | ||
| 8276 | ✗ | } | |
| 8277 | |||
| 8278 | 162 | U16 SpacePacketDeframerComponentBase::validateApidSeqCount_out( | |
| 8279 | FwIndexType portNum, | ||
| 8280 | const ComCfg::Apid& apid, | ||
| 8281 | U16 sequenceCount | ||
| 8282 | ) const { | ||
| 8283 | 162 | FW_ASSERT( | |
| 8284 | (0 <= portNum) && (portNum < NUM_VALIDATEAPIDSEQCOUNT_OUTPUT_PORTS), | ||
| 8285 | static_cast<FwAssertArgType>(portNum), | ||
| 8286 | static_cast<FwAssertArgType>(NUM_VALIDATEAPIDSEQCOUNT_OUTPUT_PORTS) | ||
| 8287 | ); | ||
| 8288 | 162 | U16 _result = {}; | |
| 8289 |
1/2✓ Branch 0 taken 162 times.
✗ Branch 1 not taken.
|
162 | switch (portNum) { |
| 8290 | 162 | case 0: | |
| 8291 | 162 | _result = ComCcsds::apidManager.validateApidSeqCountIn_handlerBase( | |
| 8292 | 0, | ||
| 8293 | apid, | ||
| 8294 | sequenceCount | ||
| 8295 | ); | ||
| 8296 | 162 | break; | |
| 8297 | ✗ | default: | |
| 8298 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8299 | ✗ | break; | |
| 8300 | } | ||
| 8301 | 162 | return _result; | |
| 8302 | } | ||
| 8303 | |||
| 8304 | } | ||
| 8305 | } | ||
| 8306 | |||
| 8307 | namespace Svc { | ||
| 8308 | namespace Ccsds { | ||
| 8309 | |||
| 8310 | ✗ | bool SpacePacketFramerComponentBase::isConnected_bufferAllocate_OutputPort(FwIndexType portNum) const { | |
| 8311 | ✗ | FW_ASSERT( | |
| 8312 | (0 <= portNum) && (portNum < NUM_BUFFERALLOCATE_OUTPUT_PORTS), | ||
| 8313 | static_cast<FwAssertArgType>(portNum), | ||
| 8314 | static_cast<FwAssertArgType>(NUM_BUFFERALLOCATE_OUTPUT_PORTS) | ||
| 8315 | ); | ||
| 8316 | ✗ | bool result = false; | |
| 8317 | ✗ | switch (portNum) { | |
| 8318 | ✗ | case 0: | |
| 8319 | ✗ | result = true; | |
| 8320 | ✗ | break; | |
| 8321 | ✗ | default: | |
| 8322 | ✗ | break; | |
| 8323 | } | ||
| 8324 | ✗ | return result; | |
| 8325 | } | ||
| 8326 | |||
| 8327 | ✗ | bool SpacePacketFramerComponentBase::isConnected_bufferDeallocate_OutputPort(FwIndexType portNum) const { | |
| 8328 | ✗ | FW_ASSERT( | |
| 8329 | (0 <= portNum) && (portNum < NUM_BUFFERDEALLOCATE_OUTPUT_PORTS), | ||
| 8330 | static_cast<FwAssertArgType>(portNum), | ||
| 8331 | static_cast<FwAssertArgType>(NUM_BUFFERDEALLOCATE_OUTPUT_PORTS) | ||
| 8332 | ); | ||
| 8333 | ✗ | bool result = false; | |
| 8334 | ✗ | switch (portNum) { | |
| 8335 | ✗ | case 0: | |
| 8336 | ✗ | result = true; | |
| 8337 | ✗ | break; | |
| 8338 | ✗ | default: | |
| 8339 | ✗ | break; | |
| 8340 | } | ||
| 8341 | ✗ | return result; | |
| 8342 | } | ||
| 8343 | |||
| 8344 | 853 | bool SpacePacketFramerComponentBase::isConnected_comStatusOut_OutputPort(FwIndexType portNum) const { | |
| 8345 | 853 | FW_ASSERT( | |
| 8346 | (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS), | ||
| 8347 | static_cast<FwAssertArgType>(portNum), | ||
| 8348 | static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS) | ||
| 8349 | ); | ||
| 8350 | 853 | bool result = false; | |
| 8351 |
1/2✓ Branch 0 taken 853 times.
✗ Branch 1 not taken.
|
853 | switch (portNum) { |
| 8352 | 853 | case 0: | |
| 8353 | 853 | result = true; | |
| 8354 | 853 | break; | |
| 8355 | ✗ | default: | |
| 8356 | ✗ | break; | |
| 8357 | } | ||
| 8358 | 853 | return result; | |
| 8359 | } | ||
| 8360 | |||
| 8361 | ✗ | bool SpacePacketFramerComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const { | |
| 8362 | ✗ | FW_ASSERT( | |
| 8363 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 8364 | static_cast<FwAssertArgType>(portNum), | ||
| 8365 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 8366 | ); | ||
| 8367 | ✗ | bool result = false; | |
| 8368 | ✗ | switch (portNum) { | |
| 8369 | ✗ | case 0: | |
| 8370 | ✗ | result = true; | |
| 8371 | ✗ | break; | |
| 8372 | ✗ | default: | |
| 8373 | ✗ | break; | |
| 8374 | } | ||
| 8375 | ✗ | return result; | |
| 8376 | } | ||
| 8377 | |||
| 8378 | ✗ | bool SpacePacketFramerComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const { | |
| 8379 | ✗ | FW_ASSERT( | |
| 8380 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 8381 | static_cast<FwAssertArgType>(portNum), | ||
| 8382 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 8383 | ); | ||
| 8384 | ✗ | bool result = false; | |
| 8385 | ✗ | switch (portNum) { | |
| 8386 | ✗ | case 0: | |
| 8387 | ✗ | result = true; | |
| 8388 | ✗ | break; | |
| 8389 | ✗ | default: | |
| 8390 | ✗ | break; | |
| 8391 | } | ||
| 8392 | ✗ | return result; | |
| 8393 | } | ||
| 8394 | |||
| 8395 | ✗ | bool SpacePacketFramerComponentBase::isConnected_getApidSeqCount_OutputPort(FwIndexType portNum) const { | |
| 8396 | ✗ | FW_ASSERT( | |
| 8397 | (0 <= portNum) && (portNum < NUM_GETAPIDSEQCOUNT_OUTPUT_PORTS), | ||
| 8398 | static_cast<FwAssertArgType>(portNum), | ||
| 8399 | static_cast<FwAssertArgType>(NUM_GETAPIDSEQCOUNT_OUTPUT_PORTS) | ||
| 8400 | ); | ||
| 8401 | ✗ | bool result = false; | |
| 8402 | ✗ | switch (portNum) { | |
| 8403 | ✗ | case 0: | |
| 8404 | ✗ | result = true; | |
| 8405 | ✗ | break; | |
| 8406 | ✗ | default: | |
| 8407 | ✗ | break; | |
| 8408 | } | ||
| 8409 | ✗ | return result; | |
| 8410 | } | ||
| 8411 | |||
| 8412 | ✗ | bool SpacePacketFramerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 8413 | ✗ | FW_ASSERT( | |
| 8414 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 8415 | static_cast<FwAssertArgType>(portNum), | ||
| 8416 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 8417 | ); | ||
| 8418 | ✗ | bool result = false; | |
| 8419 | ✗ | switch (portNum) { | |
| 8420 | ✗ | case 0: | |
| 8421 | ✗ | result = true; | |
| 8422 | ✗ | break; | |
| 8423 | ✗ | default: | |
| 8424 | ✗ | break; | |
| 8425 | } | ||
| 8426 | ✗ | return result; | |
| 8427 | } | ||
| 8428 | |||
| 8429 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 8430 | |||
| 8431 | ✗ | bool SpacePacketFramerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 8432 | ✗ | FW_ASSERT( | |
| 8433 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 8434 | static_cast<FwAssertArgType>(portNum), | ||
| 8435 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 8436 | ); | ||
| 8437 | ✗ | bool result = false; | |
| 8438 | ✗ | switch (portNum) { | |
| 8439 | ✗ | case 0: | |
| 8440 | ✗ | result = true; | |
| 8441 | ✗ | break; | |
| 8442 | ✗ | default: | |
| 8443 | ✗ | break; | |
| 8444 | } | ||
| 8445 | ✗ | return result; | |
| 8446 | } | ||
| 8447 | |||
| 8448 | #endif | ||
| 8449 | |||
| 8450 | ✗ | bool SpacePacketFramerComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const { | |
| 8451 | ✗ | FW_ASSERT( | |
| 8452 | (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS), | ||
| 8453 | static_cast<FwAssertArgType>(portNum), | ||
| 8454 | static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS) | ||
| 8455 | ); | ||
| 8456 | ✗ | bool result = false; | |
| 8457 | ✗ | switch (portNum) { | |
| 8458 | ✗ | case 0: | |
| 8459 | ✗ | result = true; | |
| 8460 | ✗ | break; | |
| 8461 | ✗ | default: | |
| 8462 | ✗ | break; | |
| 8463 | } | ||
| 8464 | ✗ | return result; | |
| 8465 | } | ||
| 8466 | |||
| 8467 | ✗ | bool SpacePacketFramerComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const { | |
| 8468 | ✗ | FW_ASSERT( | |
| 8469 | (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS), | ||
| 8470 | static_cast<FwAssertArgType>(portNum), | ||
| 8471 | static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS) | ||
| 8472 | ); | ||
| 8473 | ✗ | bool result = false; | |
| 8474 | ✗ | switch (portNum) { | |
| 8475 | ✗ | case 0: | |
| 8476 | ✗ | result = true; | |
| 8477 | ✗ | break; | |
| 8478 | ✗ | default: | |
| 8479 | ✗ | break; | |
| 8480 | } | ||
| 8481 | ✗ | return result; | |
| 8482 | } | ||
| 8483 | |||
| 8484 | ✗ | bool SpacePacketFramerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 8485 | ✗ | FW_ASSERT( | |
| 8486 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 8487 | static_cast<FwAssertArgType>(portNum), | ||
| 8488 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 8489 | ); | ||
| 8490 | ✗ | bool result = false; | |
| 8491 | ✗ | switch (portNum) { | |
| 8492 | ✗ | case 0: | |
| 8493 | ✗ | result = true; | |
| 8494 | ✗ | break; | |
| 8495 | ✗ | default: | |
| 8496 | ✗ | break; | |
| 8497 | } | ||
| 8498 | ✗ | return result; | |
| 8499 | } | ||
| 8500 | |||
| 8501 | ✗ | bool SpacePacketFramerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 8502 | ✗ | FW_ASSERT( | |
| 8503 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 8504 | static_cast<FwAssertArgType>(portNum), | ||
| 8505 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 8506 | ); | ||
| 8507 | ✗ | bool result = false; | |
| 8508 | ✗ | switch (portNum) { | |
| 8509 | ✗ | case 0: | |
| 8510 | ✗ | result = true; | |
| 8511 | ✗ | break; | |
| 8512 | ✗ | default: | |
| 8513 | ✗ | break; | |
| 8514 | } | ||
| 8515 | ✗ | return result; | |
| 8516 | } | ||
| 8517 | |||
| 8518 | 852 | Fw::Buffer SpacePacketFramerComponentBase::bufferAllocate_out( | |
| 8519 | FwIndexType portNum, | ||
| 8520 | FwSizeType size | ||
| 8521 | ) const { | ||
| 8522 | 852 | FW_ASSERT( | |
| 8523 | (0 <= portNum) && (portNum < NUM_BUFFERALLOCATE_OUTPUT_PORTS), | ||
| 8524 | static_cast<FwAssertArgType>(portNum), | ||
| 8525 | static_cast<FwAssertArgType>(NUM_BUFFERALLOCATE_OUTPUT_PORTS) | ||
| 8526 | ); | ||
| 8527 | 852 | Fw::Buffer _result = {}; | |
| 8528 |
1/2✓ Branch 0 taken 852 times.
✗ Branch 1 not taken.
|
852 | switch (portNum) { |
| 8529 | 852 | case 0: | |
| 8530 |
1/1✓ Branch 1 taken 852 times.
|
1704 | _result = ComCcsds::commsBufferManager.bufferGetCallee_handlerBase( |
| 8531 | 0, | ||
| 8532 | size | ||
| 8533 |
1/1✓ Branch 1 taken 852 times.
|
852 | ); |
| 8534 | 852 | break; | |
| 8535 | ✗ | default: | |
| 8536 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8537 | ✗ | break; | |
| 8538 | } | ||
| 8539 | 852 | return _result; | |
| 8540 | ✗ | } | |
| 8541 | |||
| 8542 | 852 | void SpacePacketFramerComponentBase::bufferDeallocate_out( | |
| 8543 | FwIndexType portNum, | ||
| 8544 | Fw::Buffer& fwBuffer | ||
| 8545 | ) const { | ||
| 8546 | 852 | FW_ASSERT( | |
| 8547 | (0 <= portNum) && (portNum < NUM_BUFFERDEALLOCATE_OUTPUT_PORTS), | ||
| 8548 | static_cast<FwAssertArgType>(portNum), | ||
| 8549 | static_cast<FwAssertArgType>(NUM_BUFFERDEALLOCATE_OUTPUT_PORTS) | ||
| 8550 | ); | ||
| 8551 |
1/2✓ Branch 0 taken 852 times.
✗ Branch 1 not taken.
|
852 | switch (portNum) { |
| 8552 | 852 | case 0: | |
| 8553 | 852 | ComCcsds::commsBufferManager.bufferSendIn_handlerBase( | |
| 8554 | 0, | ||
| 8555 | fwBuffer | ||
| 8556 | ); | ||
| 8557 | 852 | break; | |
| 8558 | ✗ | default: | |
| 8559 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8560 | ✗ | break; | |
| 8561 | } | ||
| 8562 | 852 | } | |
| 8563 | |||
| 8564 | 853 | void SpacePacketFramerComponentBase::comStatusOut_out( | |
| 8565 | FwIndexType portNum, | ||
| 8566 | Fw::Success& condition | ||
| 8567 | ) const { | ||
| 8568 | 853 | FW_ASSERT( | |
| 8569 | (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS), | ||
| 8570 | static_cast<FwAssertArgType>(portNum), | ||
| 8571 | static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS) | ||
| 8572 | ); | ||
| 8573 |
1/2✓ Branch 0 taken 853 times.
✗ Branch 1 not taken.
|
853 | switch (portNum) { |
| 8574 | 853 | case 0: | |
| 8575 | 853 | ComCcsds::comQueue.comStatusIn_handlerBase( | |
| 8576 | 0, | ||
| 8577 | condition | ||
| 8578 | ); | ||
| 8579 | 853 | break; | |
| 8580 | ✗ | default: | |
| 8581 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8582 | ✗ | break; | |
| 8583 | } | ||
| 8584 | 853 | } | |
| 8585 | |||
| 8586 | 852 | void SpacePacketFramerComponentBase::dataOut_out( | |
| 8587 | FwIndexType portNum, | ||
| 8588 | Fw::Buffer& data, | ||
| 8589 | const ComCfg::FrameContext& context | ||
| 8590 | ) const { | ||
| 8591 | 852 | FW_ASSERT( | |
| 8592 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 8593 | static_cast<FwAssertArgType>(portNum), | ||
| 8594 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 8595 | ); | ||
| 8596 |
1/2✓ Branch 0 taken 852 times.
✗ Branch 1 not taken.
|
852 | switch (portNum) { |
| 8597 | 852 | case 0: | |
| 8598 | 852 | ComCcsds::aggregator.dataIn_handlerBase( | |
| 8599 | 0, | ||
| 8600 | data, | ||
| 8601 | context | ||
| 8602 | ); | ||
| 8603 | 852 | break; | |
| 8604 | ✗ | default: | |
| 8605 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8606 | ✗ | break; | |
| 8607 | } | ||
| 8608 | 852 | } | |
| 8609 | |||
| 8610 | 852 | void SpacePacketFramerComponentBase::dataReturnOut_out( | |
| 8611 | FwIndexType portNum, | ||
| 8612 | Fw::Buffer& data, | ||
| 8613 | const ComCfg::FrameContext& context | ||
| 8614 | ) const { | ||
| 8615 | 852 | FW_ASSERT( | |
| 8616 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 8617 | static_cast<FwAssertArgType>(portNum), | ||
| 8618 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 8619 | ); | ||
| 8620 |
1/2✓ Branch 0 taken 852 times.
✗ Branch 1 not taken.
|
852 | switch (portNum) { |
| 8621 | 852 | case 0: | |
| 8622 | 852 | ComCcsds::comQueue.dataReturnIn_handlerBase( | |
| 8623 | 0, | ||
| 8624 | data, | ||
| 8625 | context | ||
| 8626 | ); | ||
| 8627 | 852 | break; | |
| 8628 | ✗ | default: | |
| 8629 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8630 | ✗ | break; | |
| 8631 | } | ||
| 8632 | 852 | } | |
| 8633 | |||
| 8634 | 852 | U16 SpacePacketFramerComponentBase::getApidSeqCount_out( | |
| 8635 | FwIndexType portNum, | ||
| 8636 | const ComCfg::Apid& apid, | ||
| 8637 | U16 sequenceCount | ||
| 8638 | ) const { | ||
| 8639 | 852 | FW_ASSERT( | |
| 8640 | (0 <= portNum) && (portNum < NUM_GETAPIDSEQCOUNT_OUTPUT_PORTS), | ||
| 8641 | static_cast<FwAssertArgType>(portNum), | ||
| 8642 | static_cast<FwAssertArgType>(NUM_GETAPIDSEQCOUNT_OUTPUT_PORTS) | ||
| 8643 | ); | ||
| 8644 | 852 | U16 _result = {}; | |
| 8645 |
1/2✓ Branch 0 taken 852 times.
✗ Branch 1 not taken.
|
852 | switch (portNum) { |
| 8646 | 852 | case 0: | |
| 8647 | 852 | _result = ComCcsds::apidManager.getApidSeqCountIn_handlerBase( | |
| 8648 | 0, | ||
| 8649 | apid, | ||
| 8650 | sequenceCount | ||
| 8651 | ); | ||
| 8652 | 852 | break; | |
| 8653 | ✗ | default: | |
| 8654 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8655 | ✗ | break; | |
| 8656 | } | ||
| 8657 | 852 | return _result; | |
| 8658 | } | ||
| 8659 | |||
| 8660 | ✗ | void SpacePacketFramerComponentBase::logOut_out( | |
| 8661 | FwIndexType portNum, | ||
| 8662 | FwEventIdType id, | ||
| 8663 | Fw::Time& timeTag, | ||
| 8664 | const Fw::LogSeverity& severity, | ||
| 8665 | Fw::LogBuffer& args | ||
| 8666 | ) const { | ||
| 8667 | ✗ | FW_ASSERT( | |
| 8668 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 8669 | static_cast<FwAssertArgType>(portNum), | ||
| 8670 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 8671 | ); | ||
| 8672 | ✗ | switch (portNum) { | |
| 8673 | ✗ | case 0: | |
| 8674 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 8675 | 0, | ||
| 8676 | id, | ||
| 8677 | timeTag, | ||
| 8678 | severity, | ||
| 8679 | args | ||
| 8680 | ); | ||
| 8681 | ✗ | break; | |
| 8682 | ✗ | default: | |
| 8683 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8684 | ✗ | break; | |
| 8685 | } | ||
| 8686 | ✗ | } | |
| 8687 | |||
| 8688 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 8689 | |||
| 8690 | ✗ | void SpacePacketFramerComponentBase::logTextOut_out( | |
| 8691 | FwIndexType portNum, | ||
| 8692 | FwEventIdType id, | ||
| 8693 | Fw::Time& timeTag, | ||
| 8694 | const Fw::LogSeverity& severity, | ||
| 8695 | Fw::TextLogString& text | ||
| 8696 | ) const { | ||
| 8697 | ✗ | FW_ASSERT( | |
| 8698 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 8699 | static_cast<FwAssertArgType>(portNum), | ||
| 8700 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 8701 | ); | ||
| 8702 | ✗ | switch (portNum) { | |
| 8703 | ✗ | case 0: | |
| 8704 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 8705 | 0, | ||
| 8706 | id, | ||
| 8707 | timeTag, | ||
| 8708 | severity, | ||
| 8709 | text | ||
| 8710 | ); | ||
| 8711 | ✗ | break; | |
| 8712 | ✗ | default: | |
| 8713 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8714 | ✗ | break; | |
| 8715 | } | ||
| 8716 | ✗ | } | |
| 8717 | |||
| 8718 | #endif | ||
| 8719 | |||
| 8720 | ✗ | void SpacePacketFramerComponentBase::timeCaller_out( | |
| 8721 | FwIndexType portNum, | ||
| 8722 | Fw::Time& time | ||
| 8723 | ) const { | ||
| 8724 | ✗ | FW_ASSERT( | |
| 8725 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 8726 | static_cast<FwAssertArgType>(portNum), | ||
| 8727 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 8728 | ); | ||
| 8729 | ✗ | switch (portNum) { | |
| 8730 | ✗ | case 0: | |
| 8731 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 8732 | 0, | ||
| 8733 | time | ||
| 8734 | ); | ||
| 8735 | ✗ | break; | |
| 8736 | ✗ | default: | |
| 8737 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8738 | ✗ | break; | |
| 8739 | } | ||
| 8740 | ✗ | } | |
| 8741 | |||
| 8742 | } | ||
| 8743 | } | ||
| 8744 | |||
| 8745 | namespace Svc { | ||
| 8746 | namespace Ccsds { | ||
| 8747 | |||
| 8748 | ✗ | bool TcDeframerComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const { | |
| 8749 | ✗ | FW_ASSERT( | |
| 8750 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 8751 | static_cast<FwAssertArgType>(portNum), | ||
| 8752 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 8753 | ); | ||
| 8754 | ✗ | bool result = false; | |
| 8755 | ✗ | switch (portNum) { | |
| 8756 | ✗ | case 0: | |
| 8757 | ✗ | result = true; | |
| 8758 | ✗ | break; | |
| 8759 | ✗ | default: | |
| 8760 | ✗ | break; | |
| 8761 | } | ||
| 8762 | ✗ | return result; | |
| 8763 | } | ||
| 8764 | |||
| 8765 | ✗ | bool TcDeframerComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const { | |
| 8766 | ✗ | FW_ASSERT( | |
| 8767 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 8768 | static_cast<FwAssertArgType>(portNum), | ||
| 8769 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 8770 | ); | ||
| 8771 | ✗ | bool result = false; | |
| 8772 | ✗ | switch (portNum) { | |
| 8773 | ✗ | case 0: | |
| 8774 | ✗ | result = true; | |
| 8775 | ✗ | break; | |
| 8776 | ✗ | default: | |
| 8777 | ✗ | break; | |
| 8778 | } | ||
| 8779 | ✗ | return result; | |
| 8780 | } | ||
| 8781 | |||
| 8782 | ✗ | bool TcDeframerComponentBase::isConnected_errorNotify_OutputPort(FwIndexType portNum) const { | |
| 8783 | ✗ | FW_ASSERT( | |
| 8784 | (0 <= portNum) && (portNum < NUM_ERRORNOTIFY_OUTPUT_PORTS), | ||
| 8785 | static_cast<FwAssertArgType>(portNum), | ||
| 8786 | static_cast<FwAssertArgType>(NUM_ERRORNOTIFY_OUTPUT_PORTS) | ||
| 8787 | ); | ||
| 8788 | ✗ | bool result = false; | |
| 8789 | ✗ | switch (portNum) { | |
| 8790 | default: | ||
| 8791 | ✗ | break; | |
| 8792 | } | ||
| 8793 | ✗ | return result; | |
| 8794 | } | ||
| 8795 | |||
| 8796 | ✗ | bool TcDeframerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 8797 | ✗ | FW_ASSERT( | |
| 8798 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 8799 | static_cast<FwAssertArgType>(portNum), | ||
| 8800 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 8801 | ); | ||
| 8802 | ✗ | bool result = false; | |
| 8803 | ✗ | switch (portNum) { | |
| 8804 | ✗ | case 0: | |
| 8805 | ✗ | result = true; | |
| 8806 | ✗ | break; | |
| 8807 | ✗ | default: | |
| 8808 | ✗ | break; | |
| 8809 | } | ||
| 8810 | ✗ | return result; | |
| 8811 | } | ||
| 8812 | |||
| 8813 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 8814 | |||
| 8815 | ✗ | bool TcDeframerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 8816 | ✗ | FW_ASSERT( | |
| 8817 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 8818 | static_cast<FwAssertArgType>(portNum), | ||
| 8819 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 8820 | ); | ||
| 8821 | ✗ | bool result = false; | |
| 8822 | ✗ | switch (portNum) { | |
| 8823 | ✗ | case 0: | |
| 8824 | ✗ | result = true; | |
| 8825 | ✗ | break; | |
| 8826 | ✗ | default: | |
| 8827 | ✗ | break; | |
| 8828 | } | ||
| 8829 | ✗ | return result; | |
| 8830 | } | ||
| 8831 | |||
| 8832 | #endif | ||
| 8833 | |||
| 8834 | ✗ | bool TcDeframerComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const { | |
| 8835 | ✗ | FW_ASSERT( | |
| 8836 | (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS), | ||
| 8837 | static_cast<FwAssertArgType>(portNum), | ||
| 8838 | static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS) | ||
| 8839 | ); | ||
| 8840 | ✗ | bool result = false; | |
| 8841 | ✗ | switch (portNum) { | |
| 8842 | ✗ | case 0: | |
| 8843 | ✗ | result = true; | |
| 8844 | ✗ | break; | |
| 8845 | ✗ | default: | |
| 8846 | ✗ | break; | |
| 8847 | } | ||
| 8848 | ✗ | return result; | |
| 8849 | } | ||
| 8850 | |||
| 8851 | ✗ | bool TcDeframerComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const { | |
| 8852 | ✗ | FW_ASSERT( | |
| 8853 | (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS), | ||
| 8854 | static_cast<FwAssertArgType>(portNum), | ||
| 8855 | static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS) | ||
| 8856 | ); | ||
| 8857 | ✗ | bool result = false; | |
| 8858 | ✗ | switch (portNum) { | |
| 8859 | ✗ | case 0: | |
| 8860 | ✗ | result = true; | |
| 8861 | ✗ | break; | |
| 8862 | ✗ | default: | |
| 8863 | ✗ | break; | |
| 8864 | } | ||
| 8865 | ✗ | return result; | |
| 8866 | } | ||
| 8867 | |||
| 8868 | ✗ | bool TcDeframerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 8869 | ✗ | FW_ASSERT( | |
| 8870 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 8871 | static_cast<FwAssertArgType>(portNum), | ||
| 8872 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 8873 | ); | ||
| 8874 | ✗ | bool result = false; | |
| 8875 | ✗ | switch (portNum) { | |
| 8876 | ✗ | case 0: | |
| 8877 | ✗ | result = true; | |
| 8878 | ✗ | break; | |
| 8879 | ✗ | default: | |
| 8880 | ✗ | break; | |
| 8881 | } | ||
| 8882 | ✗ | return result; | |
| 8883 | } | ||
| 8884 | |||
| 8885 | ✗ | bool TcDeframerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 8886 | ✗ | FW_ASSERT( | |
| 8887 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 8888 | static_cast<FwAssertArgType>(portNum), | ||
| 8889 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 8890 | ); | ||
| 8891 | ✗ | bool result = false; | |
| 8892 | ✗ | switch (portNum) { | |
| 8893 | ✗ | case 0: | |
| 8894 | ✗ | result = true; | |
| 8895 | ✗ | break; | |
| 8896 | ✗ | default: | |
| 8897 | ✗ | break; | |
| 8898 | } | ||
| 8899 | ✗ | return result; | |
| 8900 | } | ||
| 8901 | |||
| 8902 | 162 | void TcDeframerComponentBase::dataOut_out( | |
| 8903 | FwIndexType portNum, | ||
| 8904 | Fw::Buffer& data, | ||
| 8905 | const ComCfg::FrameContext& context | ||
| 8906 | ) const { | ||
| 8907 | 162 | FW_ASSERT( | |
| 8908 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 8909 | static_cast<FwAssertArgType>(portNum), | ||
| 8910 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 8911 | ); | ||
| 8912 |
1/2✓ Branch 0 taken 162 times.
✗ Branch 1 not taken.
|
162 | switch (portNum) { |
| 8913 | 162 | case 0: | |
| 8914 | 162 | ComCcsds::spacePacketDeframer.dataIn_handlerBase( | |
| 8915 | 0, | ||
| 8916 | data, | ||
| 8917 | context | ||
| 8918 | ); | ||
| 8919 | 162 | break; | |
| 8920 | ✗ | default: | |
| 8921 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8922 | ✗ | break; | |
| 8923 | } | ||
| 8924 | 162 | } | |
| 8925 | |||
| 8926 | 162 | void TcDeframerComponentBase::dataReturnOut_out( | |
| 8927 | FwIndexType portNum, | ||
| 8928 | Fw::Buffer& data, | ||
| 8929 | const ComCfg::FrameContext& context | ||
| 8930 | ) const { | ||
| 8931 | 162 | FW_ASSERT( | |
| 8932 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 8933 | static_cast<FwAssertArgType>(portNum), | ||
| 8934 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 8935 | ); | ||
| 8936 |
1/2✓ Branch 0 taken 162 times.
✗ Branch 1 not taken.
|
162 | switch (portNum) { |
| 8937 | 162 | case 0: | |
| 8938 | 162 | ComCcsds::frameAccumulator.dataReturnIn_handlerBase( | |
| 8939 | 0, | ||
| 8940 | data, | ||
| 8941 | context | ||
| 8942 | ); | ||
| 8943 | 162 | break; | |
| 8944 | ✗ | default: | |
| 8945 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8946 | ✗ | break; | |
| 8947 | } | ||
| 8948 | 162 | } | |
| 8949 | |||
| 8950 | ✗ | void TcDeframerComponentBase::errorNotify_out( | |
| 8951 | FwIndexType portNum, | ||
| 8952 | const Svc::Ccsds::FrameError& errorCode | ||
| 8953 | ) const { | ||
| 8954 | ✗ | FW_ASSERT( | |
| 8955 | (0 <= portNum) && (portNum < NUM_ERRORNOTIFY_OUTPUT_PORTS), | ||
| 8956 | static_cast<FwAssertArgType>(portNum), | ||
| 8957 | static_cast<FwAssertArgType>(NUM_ERRORNOTIFY_OUTPUT_PORTS) | ||
| 8958 | ); | ||
| 8959 | ✗ | switch (portNum) { | |
| 8960 | default: | ||
| 8961 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8962 | ✗ | break; | |
| 8963 | } | ||
| 8964 | ✗ | } | |
| 8965 | |||
| 8966 | ✗ | void TcDeframerComponentBase::logOut_out( | |
| 8967 | FwIndexType portNum, | ||
| 8968 | FwEventIdType id, | ||
| 8969 | Fw::Time& timeTag, | ||
| 8970 | const Fw::LogSeverity& severity, | ||
| 8971 | Fw::LogBuffer& args | ||
| 8972 | ) const { | ||
| 8973 | ✗ | FW_ASSERT( | |
| 8974 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 8975 | static_cast<FwAssertArgType>(portNum), | ||
| 8976 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 8977 | ); | ||
| 8978 | ✗ | switch (portNum) { | |
| 8979 | ✗ | case 0: | |
| 8980 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 8981 | 0, | ||
| 8982 | id, | ||
| 8983 | timeTag, | ||
| 8984 | severity, | ||
| 8985 | args | ||
| 8986 | ); | ||
| 8987 | ✗ | break; | |
| 8988 | ✗ | default: | |
| 8989 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 8990 | ✗ | break; | |
| 8991 | } | ||
| 8992 | ✗ | } | |
| 8993 | |||
| 8994 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 8995 | |||
| 8996 | ✗ | void TcDeframerComponentBase::logTextOut_out( | |
| 8997 | FwIndexType portNum, | ||
| 8998 | FwEventIdType id, | ||
| 8999 | Fw::Time& timeTag, | ||
| 9000 | const Fw::LogSeverity& severity, | ||
| 9001 | Fw::TextLogString& text | ||
| 9002 | ) const { | ||
| 9003 | ✗ | FW_ASSERT( | |
| 9004 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 9005 | static_cast<FwAssertArgType>(portNum), | ||
| 9006 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 9007 | ); | ||
| 9008 | ✗ | switch (portNum) { | |
| 9009 | ✗ | case 0: | |
| 9010 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 9011 | 0, | ||
| 9012 | id, | ||
| 9013 | timeTag, | ||
| 9014 | severity, | ||
| 9015 | text | ||
| 9016 | ); | ||
| 9017 | ✗ | break; | |
| 9018 | ✗ | default: | |
| 9019 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9020 | ✗ | break; | |
| 9021 | } | ||
| 9022 | ✗ | } | |
| 9023 | |||
| 9024 | #endif | ||
| 9025 | |||
| 9026 | ✗ | void TcDeframerComponentBase::timeCaller_out( | |
| 9027 | FwIndexType portNum, | ||
| 9028 | Fw::Time& time | ||
| 9029 | ) const { | ||
| 9030 | ✗ | FW_ASSERT( | |
| 9031 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 9032 | static_cast<FwAssertArgType>(portNum), | ||
| 9033 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 9034 | ); | ||
| 9035 | ✗ | switch (portNum) { | |
| 9036 | ✗ | case 0: | |
| 9037 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 9038 | 0, | ||
| 9039 | time | ||
| 9040 | ); | ||
| 9041 | ✗ | break; | |
| 9042 | ✗ | default: | |
| 9043 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9044 | ✗ | break; | |
| 9045 | } | ||
| 9046 | ✗ | } | |
| 9047 | |||
| 9048 | } | ||
| 9049 | } | ||
| 9050 | |||
| 9051 | namespace Svc { | ||
| 9052 | namespace Ccsds { | ||
| 9053 | |||
| 9054 | 280 | bool TmFramerComponentBase::isConnected_comStatusOut_OutputPort(FwIndexType portNum) const { | |
| 9055 | 280 | FW_ASSERT( | |
| 9056 | (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS), | ||
| 9057 | static_cast<FwAssertArgType>(portNum), | ||
| 9058 | static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS) | ||
| 9059 | ); | ||
| 9060 | 280 | bool result = false; | |
| 9061 |
1/2✓ Branch 0 taken 280 times.
✗ Branch 1 not taken.
|
280 | switch (portNum) { |
| 9062 | 280 | case 0: | |
| 9063 | 280 | result = true; | |
| 9064 | 280 | break; | |
| 9065 | ✗ | default: | |
| 9066 | ✗ | break; | |
| 9067 | } | ||
| 9068 | 280 | return result; | |
| 9069 | } | ||
| 9070 | |||
| 9071 | ✗ | bool TmFramerComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const { | |
| 9072 | ✗ | FW_ASSERT( | |
| 9073 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 9074 | static_cast<FwAssertArgType>(portNum), | ||
| 9075 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 9076 | ); | ||
| 9077 | ✗ | bool result = false; | |
| 9078 | ✗ | switch (portNum) { | |
| 9079 | ✗ | case 0: | |
| 9080 | ✗ | result = true; | |
| 9081 | ✗ | break; | |
| 9082 | ✗ | default: | |
| 9083 | ✗ | break; | |
| 9084 | } | ||
| 9085 | ✗ | return result; | |
| 9086 | } | ||
| 9087 | |||
| 9088 | ✗ | bool TmFramerComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const { | |
| 9089 | ✗ | FW_ASSERT( | |
| 9090 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 9091 | static_cast<FwAssertArgType>(portNum), | ||
| 9092 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 9093 | ); | ||
| 9094 | ✗ | bool result = false; | |
| 9095 | ✗ | switch (portNum) { | |
| 9096 | ✗ | case 0: | |
| 9097 | ✗ | result = true; | |
| 9098 | ✗ | break; | |
| 9099 | ✗ | default: | |
| 9100 | ✗ | break; | |
| 9101 | } | ||
| 9102 | ✗ | return result; | |
| 9103 | } | ||
| 9104 | |||
| 9105 | ✗ | bool TmFramerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 9106 | ✗ | FW_ASSERT( | |
| 9107 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 9108 | static_cast<FwAssertArgType>(portNum), | ||
| 9109 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 9110 | ); | ||
| 9111 | ✗ | bool result = false; | |
| 9112 | ✗ | switch (portNum) { | |
| 9113 | ✗ | case 0: | |
| 9114 | ✗ | result = true; | |
| 9115 | ✗ | break; | |
| 9116 | ✗ | default: | |
| 9117 | ✗ | break; | |
| 9118 | } | ||
| 9119 | ✗ | return result; | |
| 9120 | } | ||
| 9121 | |||
| 9122 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 9123 | |||
| 9124 | ✗ | bool TmFramerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 9125 | ✗ | FW_ASSERT( | |
| 9126 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 9127 | static_cast<FwAssertArgType>(portNum), | ||
| 9128 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 9129 | ); | ||
| 9130 | ✗ | bool result = false; | |
| 9131 | ✗ | switch (portNum) { | |
| 9132 | ✗ | case 0: | |
| 9133 | ✗ | result = true; | |
| 9134 | ✗ | break; | |
| 9135 | ✗ | default: | |
| 9136 | ✗ | break; | |
| 9137 | } | ||
| 9138 | ✗ | return result; | |
| 9139 | } | ||
| 9140 | |||
| 9141 | #endif | ||
| 9142 | |||
| 9143 | ✗ | bool TmFramerComponentBase::isConnected_prmGetOut_OutputPort(FwIndexType portNum) const { | |
| 9144 | ✗ | FW_ASSERT( | |
| 9145 | (0 <= portNum) && (portNum < NUM_PRMGETOUT_OUTPUT_PORTS), | ||
| 9146 | static_cast<FwAssertArgType>(portNum), | ||
| 9147 | static_cast<FwAssertArgType>(NUM_PRMGETOUT_OUTPUT_PORTS) | ||
| 9148 | ); | ||
| 9149 | ✗ | bool result = false; | |
| 9150 | ✗ | switch (portNum) { | |
| 9151 | ✗ | case 0: | |
| 9152 | ✗ | result = true; | |
| 9153 | ✗ | break; | |
| 9154 | ✗ | default: | |
| 9155 | ✗ | break; | |
| 9156 | } | ||
| 9157 | ✗ | return result; | |
| 9158 | } | ||
| 9159 | |||
| 9160 | ✗ | bool TmFramerComponentBase::isConnected_prmSetOut_OutputPort(FwIndexType portNum) const { | |
| 9161 | ✗ | FW_ASSERT( | |
| 9162 | (0 <= portNum) && (portNum < NUM_PRMSETOUT_OUTPUT_PORTS), | ||
| 9163 | static_cast<FwAssertArgType>(portNum), | ||
| 9164 | static_cast<FwAssertArgType>(NUM_PRMSETOUT_OUTPUT_PORTS) | ||
| 9165 | ); | ||
| 9166 | ✗ | bool result = false; | |
| 9167 | ✗ | switch (portNum) { | |
| 9168 | ✗ | case 0: | |
| 9169 | ✗ | result = true; | |
| 9170 | ✗ | break; | |
| 9171 | ✗ | default: | |
| 9172 | ✗ | break; | |
| 9173 | } | ||
| 9174 | ✗ | return result; | |
| 9175 | } | ||
| 9176 | |||
| 9177 | ✗ | bool TmFramerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 9178 | ✗ | FW_ASSERT( | |
| 9179 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 9180 | static_cast<FwAssertArgType>(portNum), | ||
| 9181 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 9182 | ); | ||
| 9183 | ✗ | bool result = false; | |
| 9184 | ✗ | switch (portNum) { | |
| 9185 | ✗ | case 0: | |
| 9186 | ✗ | result = true; | |
| 9187 | ✗ | break; | |
| 9188 | ✗ | default: | |
| 9189 | ✗ | break; | |
| 9190 | } | ||
| 9191 | ✗ | return result; | |
| 9192 | } | ||
| 9193 | |||
| 9194 | ✗ | bool TmFramerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 9195 | ✗ | FW_ASSERT( | |
| 9196 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 9197 | static_cast<FwAssertArgType>(portNum), | ||
| 9198 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 9199 | ); | ||
| 9200 | ✗ | bool result = false; | |
| 9201 | ✗ | switch (portNum) { | |
| 9202 | ✗ | case 0: | |
| 9203 | ✗ | result = true; | |
| 9204 | ✗ | break; | |
| 9205 | ✗ | default: | |
| 9206 | ✗ | break; | |
| 9207 | } | ||
| 9208 | ✗ | return result; | |
| 9209 | } | ||
| 9210 | |||
| 9211 | 280 | void TmFramerComponentBase::comStatusOut_out( | |
| 9212 | FwIndexType portNum, | ||
| 9213 | Fw::Success& condition | ||
| 9214 | ) const { | ||
| 9215 | 280 | FW_ASSERT( | |
| 9216 | (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS), | ||
| 9217 | static_cast<FwAssertArgType>(portNum), | ||
| 9218 | static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS) | ||
| 9219 | ); | ||
| 9220 |
1/2✓ Branch 0 taken 280 times.
✗ Branch 1 not taken.
|
280 | switch (portNum) { |
| 9221 | 280 | case 0: | |
| 9222 | 280 | ComCcsds::aggregator.comStatusIn_handlerBase( | |
| 9223 | 0, | ||
| 9224 | condition | ||
| 9225 | ); | ||
| 9226 | 280 | break; | |
| 9227 | ✗ | default: | |
| 9228 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9229 | ✗ | break; | |
| 9230 | } | ||
| 9231 | 280 | } | |
| 9232 | |||
| 9233 | 279 | void TmFramerComponentBase::dataOut_out( | |
| 9234 | FwIndexType portNum, | ||
| 9235 | Fw::Buffer& data, | ||
| 9236 | const ComCfg::FrameContext& context | ||
| 9237 | ) const { | ||
| 9238 | 279 | FW_ASSERT( | |
| 9239 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 9240 | static_cast<FwAssertArgType>(portNum), | ||
| 9241 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 9242 | ); | ||
| 9243 |
1/2✓ Branch 0 taken 279 times.
✗ Branch 1 not taken.
|
279 | switch (portNum) { |
| 9244 | 279 | case 0: | |
| 9245 | 279 | ComCcsds::comStub.dataIn_handlerBase( | |
| 9246 | 0, | ||
| 9247 | data, | ||
| 9248 | context | ||
| 9249 | ); | ||
| 9250 | 279 | break; | |
| 9251 | ✗ | default: | |
| 9252 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9253 | ✗ | break; | |
| 9254 | } | ||
| 9255 | 279 | } | |
| 9256 | |||
| 9257 | 279 | void TmFramerComponentBase::dataReturnOut_out( | |
| 9258 | FwIndexType portNum, | ||
| 9259 | Fw::Buffer& data, | ||
| 9260 | const ComCfg::FrameContext& context | ||
| 9261 | ) const { | ||
| 9262 | 279 | FW_ASSERT( | |
| 9263 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 9264 | static_cast<FwAssertArgType>(portNum), | ||
| 9265 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 9266 | ); | ||
| 9267 |
1/2✓ Branch 0 taken 279 times.
✗ Branch 1 not taken.
|
279 | switch (portNum) { |
| 9268 | 279 | case 0: | |
| 9269 | 279 | ComCcsds::aggregator.dataReturnIn_handlerBase( | |
| 9270 | 0, | ||
| 9271 | data, | ||
| 9272 | context | ||
| 9273 | ); | ||
| 9274 | 279 | break; | |
| 9275 | ✗ | default: | |
| 9276 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9277 | ✗ | break; | |
| 9278 | } | ||
| 9279 | 279 | } | |
| 9280 | |||
| 9281 | ✗ | void TmFramerComponentBase::timeCaller_out( | |
| 9282 | FwIndexType portNum, | ||
| 9283 | Fw::Time& time | ||
| 9284 | ) const { | ||
| 9285 | ✗ | FW_ASSERT( | |
| 9286 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 9287 | static_cast<FwAssertArgType>(portNum), | ||
| 9288 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 9289 | ); | ||
| 9290 | ✗ | switch (portNum) { | |
| 9291 | ✗ | case 0: | |
| 9292 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 9293 | 0, | ||
| 9294 | time | ||
| 9295 | ); | ||
| 9296 | ✗ | break; | |
| 9297 | ✗ | default: | |
| 9298 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9299 | ✗ | break; | |
| 9300 | } | ||
| 9301 | ✗ | } | |
| 9302 | |||
| 9303 | } | ||
| 9304 | } | ||
| 9305 | |||
| 9306 | namespace Svc { | ||
| 9307 | |||
| 9308 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 9309 | |||
| 9310 | 9 | bool CmdSequencerComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 9311 | 9 | FW_ASSERT( | |
| 9312 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 9313 | static_cast<FwAssertArgType>(portNum), | ||
| 9314 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 9315 | ); | ||
| 9316 | 9 | bool result = false; | |
| 9317 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | switch (portNum) { |
| 9318 | 9 | case 0: | |
| 9319 | 9 | result = true; | |
| 9320 | 9 | break; | |
| 9321 | ✗ | default: | |
| 9322 | ✗ | break; | |
| 9323 | } | ||
| 9324 | 9 | return result; | |
| 9325 | } | ||
| 9326 | |||
| 9327 | #endif | ||
| 9328 | |||
| 9329 | 1 | bool CmdSequencerComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const { | |
| 9330 | 1 | FW_ASSERT( | |
| 9331 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 9332 | static_cast<FwAssertArgType>(portNum), | ||
| 9333 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 9334 | ); | ||
| 9335 | 1 | bool result = false; | |
| 9336 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 9337 | 1 | case 0: | |
| 9338 | 1 | result = true; | |
| 9339 | 1 | break; | |
| 9340 | ✗ | default: | |
| 9341 | ✗ | break; | |
| 9342 | } | ||
| 9343 | 1 | return result; | |
| 9344 | } | ||
| 9345 | |||
| 9346 | 2 | bool CmdSequencerComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const { | |
| 9347 | 2 | FW_ASSERT( | |
| 9348 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 9349 | static_cast<FwAssertArgType>(portNum), | ||
| 9350 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 9351 | ); | ||
| 9352 | 2 | bool result = false; | |
| 9353 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 9354 | 2 | case 0: | |
| 9355 | 2 | result = true; | |
| 9356 | 2 | break; | |
| 9357 | ✗ | default: | |
| 9358 | ✗ | break; | |
| 9359 | } | ||
| 9360 | 2 | return result; | |
| 9361 | } | ||
| 9362 | |||
| 9363 | ✗ | bool CmdSequencerComponentBase::isConnected_comCmdOut_OutputPort(FwIndexType portNum) const { | |
| 9364 | ✗ | FW_ASSERT( | |
| 9365 | (0 <= portNum) && (portNum < NUM_COMCMDOUT_OUTPUT_PORTS), | ||
| 9366 | static_cast<FwAssertArgType>(portNum), | ||
| 9367 | static_cast<FwAssertArgType>(NUM_COMCMDOUT_OUTPUT_PORTS) | ||
| 9368 | ); | ||
| 9369 | ✗ | bool result = false; | |
| 9370 | ✗ | switch (portNum) { | |
| 9371 | ✗ | case 0: | |
| 9372 | ✗ | result = true; | |
| 9373 | ✗ | break; | |
| 9374 | ✗ | default: | |
| 9375 | ✗ | break; | |
| 9376 | } | ||
| 9377 | ✗ | return result; | |
| 9378 | } | ||
| 9379 | |||
| 9380 | 9 | bool CmdSequencerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 9381 | 9 | FW_ASSERT( | |
| 9382 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 9383 | static_cast<FwAssertArgType>(portNum), | ||
| 9384 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 9385 | ); | ||
| 9386 | 9 | bool result = false; | |
| 9387 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | switch (portNum) { |
| 9388 | 9 | case 0: | |
| 9389 | 9 | result = true; | |
| 9390 | 9 | break; | |
| 9391 | ✗ | default: | |
| 9392 | ✗ | break; | |
| 9393 | } | ||
| 9394 | 9 | return result; | |
| 9395 | } | ||
| 9396 | |||
| 9397 | ✗ | bool CmdSequencerComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const { | |
| 9398 | ✗ | FW_ASSERT( | |
| 9399 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 9400 | static_cast<FwAssertArgType>(portNum), | ||
| 9401 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 9402 | ); | ||
| 9403 | ✗ | bool result = false; | |
| 9404 | ✗ | switch (portNum) { | |
| 9405 | ✗ | case 0: | |
| 9406 | ✗ | result = true; | |
| 9407 | ✗ | break; | |
| 9408 | ✗ | default: | |
| 9409 | ✗ | break; | |
| 9410 | } | ||
| 9411 | ✗ | return result; | |
| 9412 | } | ||
| 9413 | |||
| 9414 | 2 | bool CmdSequencerComponentBase::isConnected_seqDone_OutputPort(FwIndexType portNum) const { | |
| 9415 | 2 | FW_ASSERT( | |
| 9416 | (0 <= portNum) && (portNum < NUM_SEQDONE_OUTPUT_PORTS), | ||
| 9417 | static_cast<FwAssertArgType>(portNum), | ||
| 9418 | static_cast<FwAssertArgType>(NUM_SEQDONE_OUTPUT_PORTS) | ||
| 9419 | ); | ||
| 9420 | 2 | bool result = false; | |
| 9421 | 2 | switch (portNum) { | |
| 9422 | default: | ||
| 9423 | 2 | break; | |
| 9424 | } | ||
| 9425 | 2 | return result; | |
| 9426 | } | ||
| 9427 | |||
| 9428 | 2 | bool CmdSequencerComponentBase::isConnected_seqStartOut_OutputPort(FwIndexType portNum) const { | |
| 9429 | 2 | FW_ASSERT( | |
| 9430 | (0 <= portNum) && (portNum < NUM_SEQSTARTOUT_OUTPUT_PORTS), | ||
| 9431 | static_cast<FwAssertArgType>(portNum), | ||
| 9432 | static_cast<FwAssertArgType>(NUM_SEQSTARTOUT_OUTPUT_PORTS) | ||
| 9433 | ); | ||
| 9434 | 2 | bool result = false; | |
| 9435 | 2 | switch (portNum) { | |
| 9436 | default: | ||
| 9437 | 2 | break; | |
| 9438 | } | ||
| 9439 | 2 | return result; | |
| 9440 | } | ||
| 9441 | |||
| 9442 | 290 | bool CmdSequencerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 9443 | 290 | FW_ASSERT( | |
| 9444 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 9445 | static_cast<FwAssertArgType>(portNum), | ||
| 9446 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 9447 | ); | ||
| 9448 | 290 | bool result = false; | |
| 9449 |
1/2✓ Branch 0 taken 290 times.
✗ Branch 1 not taken.
|
290 | switch (portNum) { |
| 9450 | 290 | case 0: | |
| 9451 | 290 | result = true; | |
| 9452 | 290 | break; | |
| 9453 | ✗ | default: | |
| 9454 | ✗ | break; | |
| 9455 | } | ||
| 9456 | 290 | return result; | |
| 9457 | } | ||
| 9458 | |||
| 9459 | 26 | bool CmdSequencerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 9460 | 26 | FW_ASSERT( | |
| 9461 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 9462 | static_cast<FwAssertArgType>(portNum), | ||
| 9463 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 9464 | ); | ||
| 9465 | 26 | bool result = false; | |
| 9466 |
1/2✓ Branch 0 taken 26 times.
✗ Branch 1 not taken.
|
26 | switch (portNum) { |
| 9467 | 26 | case 0: | |
| 9468 | 26 | result = true; | |
| 9469 | 26 | break; | |
| 9470 | ✗ | default: | |
| 9471 | ✗ | break; | |
| 9472 | } | ||
| 9473 | 26 | return result; | |
| 9474 | } | ||
| 9475 | |||
| 9476 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 9477 | |||
| 9478 | 9 | void CmdSequencerComponentBase::LogText_out( | |
| 9479 | FwIndexType portNum, | ||
| 9480 | FwEventIdType id, | ||
| 9481 | Fw::Time& timeTag, | ||
| 9482 | const Fw::LogSeverity& severity, | ||
| 9483 | Fw::TextLogString& text | ||
| 9484 | ) const { | ||
| 9485 | 9 | FW_ASSERT( | |
| 9486 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 9487 | static_cast<FwAssertArgType>(portNum), | ||
| 9488 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 9489 | ); | ||
| 9490 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | switch (portNum) { |
| 9491 | 9 | case 0: | |
| 9492 | 9 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 9493 | 0, | ||
| 9494 | id, | ||
| 9495 | timeTag, | ||
| 9496 | severity, | ||
| 9497 | text | ||
| 9498 | ); | ||
| 9499 | 9 | break; | |
| 9500 | ✗ | default: | |
| 9501 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9502 | ✗ | break; | |
| 9503 | } | ||
| 9504 | 9 | } | |
| 9505 | |||
| 9506 | #endif | ||
| 9507 | |||
| 9508 | 8 | void CmdSequencerComponentBase::cmdRegOut_out( | |
| 9509 | FwIndexType portNum, | ||
| 9510 | FwOpcodeType opCode | ||
| 9511 | ) const { | ||
| 9512 | 8 | FW_ASSERT( | |
| 9513 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 9514 | static_cast<FwAssertArgType>(portNum), | ||
| 9515 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 9516 | ); | ||
| 9517 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | switch (portNum) { |
| 9518 | 8 | case 0: | |
| 9519 | 8 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 9520 | 17, | ||
| 9521 | opCode | ||
| 9522 | ); | ||
| 9523 | 8 | break; | |
| 9524 | ✗ | default: | |
| 9525 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9526 | ✗ | break; | |
| 9527 | } | ||
| 9528 | 8 | } | |
| 9529 | |||
| 9530 | 2 | void CmdSequencerComponentBase::cmdResponseOut_out( | |
| 9531 | FwIndexType portNum, | ||
| 9532 | FwOpcodeType opCode, | ||
| 9533 | U32 cmdSeq, | ||
| 9534 | const Fw::CmdResponse& response | ||
| 9535 | ) const { | ||
| 9536 | 2 | FW_ASSERT( | |
| 9537 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 9538 | static_cast<FwAssertArgType>(portNum), | ||
| 9539 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 9540 | ); | ||
| 9541 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 9542 | 2 | case 0: | |
| 9543 | 2 | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 9544 | 0, | ||
| 9545 | opCode, | ||
| 9546 | cmdSeq, | ||
| 9547 | response | ||
| 9548 | ); | ||
| 9549 | 2 | break; | |
| 9550 | ✗ | default: | |
| 9551 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9552 | ✗ | break; | |
| 9553 | } | ||
| 9554 | 2 | } | |
| 9555 | |||
| 9556 | 5 | void CmdSequencerComponentBase::comCmdOut_out( | |
| 9557 | FwIndexType portNum, | ||
| 9558 | Fw::ComBuffer& data, | ||
| 9559 | U32 context | ||
| 9560 | ) const { | ||
| 9561 | 5 | FW_ASSERT( | |
| 9562 | (0 <= portNum) && (portNum < NUM_COMCMDOUT_OUTPUT_PORTS), | ||
| 9563 | static_cast<FwAssertArgType>(portNum), | ||
| 9564 | static_cast<FwAssertArgType>(NUM_COMCMDOUT_OUTPUT_PORTS) | ||
| 9565 | ); | ||
| 9566 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 9567 | 5 | case 0: | |
| 9568 | 5 | CdhCore::cmdDisp.seqCmdBuff_handlerBase( | |
| 9569 | 1, | ||
| 9570 | data, | ||
| 9571 | context | ||
| 9572 | ); | ||
| 9573 | 5 | break; | |
| 9574 | ✗ | default: | |
| 9575 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9576 | ✗ | break; | |
| 9577 | } | ||
| 9578 | 5 | } | |
| 9579 | |||
| 9580 | 9 | void CmdSequencerComponentBase::logOut_out( | |
| 9581 | FwIndexType portNum, | ||
| 9582 | FwEventIdType id, | ||
| 9583 | Fw::Time& timeTag, | ||
| 9584 | const Fw::LogSeverity& severity, | ||
| 9585 | Fw::LogBuffer& args | ||
| 9586 | ) const { | ||
| 9587 | 9 | FW_ASSERT( | |
| 9588 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 9589 | static_cast<FwAssertArgType>(portNum), | ||
| 9590 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 9591 | ); | ||
| 9592 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | switch (portNum) { |
| 9593 | 9 | case 0: | |
| 9594 | 9 | CdhCore::events.LogRecv_handlerBase( | |
| 9595 | 0, | ||
| 9596 | id, | ||
| 9597 | timeTag, | ||
| 9598 | severity, | ||
| 9599 | args | ||
| 9600 | ); | ||
| 9601 | 9 | break; | |
| 9602 | ✗ | default: | |
| 9603 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9604 | ✗ | break; | |
| 9605 | } | ||
| 9606 | 9 | } | |
| 9607 | |||
| 9608 | 66 | void CmdSequencerComponentBase::pingOut_out( | |
| 9609 | FwIndexType portNum, | ||
| 9610 | U32 key | ||
| 9611 | ) const { | ||
| 9612 | 66 | FW_ASSERT( | |
| 9613 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 9614 | static_cast<FwAssertArgType>(portNum), | ||
| 9615 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 9616 | ); | ||
| 9617 |
1/2✓ Branch 0 taken 66 times.
✗ Branch 1 not taken.
|
66 | switch (portNum) { |
| 9618 | 66 | case 0: | |
| 9619 | 66 | CdhCore::health.PingReturn_handlerBase( | |
| 9620 | 10, | ||
| 9621 | key | ||
| 9622 | ); | ||
| 9623 | 66 | break; | |
| 9624 | ✗ | default: | |
| 9625 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9626 | ✗ | break; | |
| 9627 | } | ||
| 9628 | 66 | } | |
| 9629 | |||
| 9630 | ✗ | void CmdSequencerComponentBase::seqDone_out( | |
| 9631 | FwIndexType portNum, | ||
| 9632 | FwOpcodeType opCode, | ||
| 9633 | U32 cmdSeq, | ||
| 9634 | const Fw::CmdResponse& response | ||
| 9635 | ) const { | ||
| 9636 | ✗ | FW_ASSERT( | |
| 9637 | (0 <= portNum) && (portNum < NUM_SEQDONE_OUTPUT_PORTS), | ||
| 9638 | static_cast<FwAssertArgType>(portNum), | ||
| 9639 | static_cast<FwAssertArgType>(NUM_SEQDONE_OUTPUT_PORTS) | ||
| 9640 | ); | ||
| 9641 | ✗ | switch (portNum) { | |
| 9642 | default: | ||
| 9643 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9644 | ✗ | break; | |
| 9645 | } | ||
| 9646 | ✗ | } | |
| 9647 | |||
| 9648 | ✗ | void CmdSequencerComponentBase::seqStartOut_out( | |
| 9649 | FwIndexType portNum, | ||
| 9650 | const Fw::StringBase& filename, | ||
| 9651 | const Svc::SeqArgs& args | ||
| 9652 | ) const { | ||
| 9653 | ✗ | FW_ASSERT( | |
| 9654 | (0 <= portNum) && (portNum < NUM_SEQSTARTOUT_OUTPUT_PORTS), | ||
| 9655 | static_cast<FwAssertArgType>(portNum), | ||
| 9656 | static_cast<FwAssertArgType>(NUM_SEQSTARTOUT_OUTPUT_PORTS) | ||
| 9657 | ); | ||
| 9658 | ✗ | switch (portNum) { | |
| 9659 | default: | ||
| 9660 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9661 | ✗ | break; | |
| 9662 | } | ||
| 9663 | ✗ | } | |
| 9664 | |||
| 9665 | 290 | void CmdSequencerComponentBase::timeCaller_out( | |
| 9666 | FwIndexType portNum, | ||
| 9667 | Fw::Time& time | ||
| 9668 | ) const { | ||
| 9669 | 290 | FW_ASSERT( | |
| 9670 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 9671 | static_cast<FwAssertArgType>(portNum), | ||
| 9672 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 9673 | ); | ||
| 9674 |
1/2✓ Branch 0 taken 290 times.
✗ Branch 1 not taken.
|
290 | switch (portNum) { |
| 9675 | 290 | case 0: | |
| 9676 | 290 | Ref::posixTime.timeGetPort_handlerBase( | |
| 9677 | 0, | ||
| 9678 | time | ||
| 9679 | ); | ||
| 9680 | 290 | break; | |
| 9681 | ✗ | default: | |
| 9682 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9683 | ✗ | break; | |
| 9684 | } | ||
| 9685 | 290 | } | |
| 9686 | |||
| 9687 | 13 | void CmdSequencerComponentBase::tlmOut_out( | |
| 9688 | FwIndexType portNum, | ||
| 9689 | FwChanIdType id, | ||
| 9690 | Fw::Time& timeTag, | ||
| 9691 | Fw::TlmBuffer& val | ||
| 9692 | ) const { | ||
| 9693 | 13 | FW_ASSERT( | |
| 9694 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 9695 | static_cast<FwAssertArgType>(portNum), | ||
| 9696 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 9697 | ); | ||
| 9698 |
1/2✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
|
13 | switch (portNum) { |
| 9699 | 13 | case 0: | |
| 9700 | 13 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 9701 | 0, | ||
| 9702 | id, | ||
| 9703 | timeTag, | ||
| 9704 | val | ||
| 9705 | ); | ||
| 9706 | 13 | break; | |
| 9707 | ✗ | default: | |
| 9708 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9709 | ✗ | break; | |
| 9710 | } | ||
| 9711 | 13 | } | |
| 9712 | |||
| 9713 | } | ||
| 9714 | |||
| 9715 | namespace Svc { | ||
| 9716 | |||
| 9717 | ✗ | bool ComAggregatorComponentBase::isConnected_comStatusOut_OutputPort(FwIndexType portNum) const { | |
| 9718 | ✗ | FW_ASSERT( | |
| 9719 | (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS), | ||
| 9720 | static_cast<FwAssertArgType>(portNum), | ||
| 9721 | static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS) | ||
| 9722 | ); | ||
| 9723 | ✗ | bool result = false; | |
| 9724 | ✗ | switch (portNum) { | |
| 9725 | ✗ | case 0: | |
| 9726 | ✗ | result = true; | |
| 9727 | ✗ | break; | |
| 9728 | ✗ | default: | |
| 9729 | ✗ | break; | |
| 9730 | } | ||
| 9731 | ✗ | return result; | |
| 9732 | } | ||
| 9733 | |||
| 9734 | ✗ | bool ComAggregatorComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const { | |
| 9735 | ✗ | FW_ASSERT( | |
| 9736 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 9737 | static_cast<FwAssertArgType>(portNum), | ||
| 9738 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 9739 | ); | ||
| 9740 | ✗ | bool result = false; | |
| 9741 | ✗ | switch (portNum) { | |
| 9742 | ✗ | case 0: | |
| 9743 | ✗ | result = true; | |
| 9744 | ✗ | break; | |
| 9745 | ✗ | default: | |
| 9746 | ✗ | break; | |
| 9747 | } | ||
| 9748 | ✗ | return result; | |
| 9749 | } | ||
| 9750 | |||
| 9751 | ✗ | bool ComAggregatorComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const { | |
| 9752 | ✗ | FW_ASSERT( | |
| 9753 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 9754 | static_cast<FwAssertArgType>(portNum), | ||
| 9755 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 9756 | ); | ||
| 9757 | ✗ | bool result = false; | |
| 9758 | ✗ | switch (portNum) { | |
| 9759 | ✗ | case 0: | |
| 9760 | ✗ | result = true; | |
| 9761 | ✗ | break; | |
| 9762 | ✗ | default: | |
| 9763 | ✗ | break; | |
| 9764 | } | ||
| 9765 | ✗ | return result; | |
| 9766 | } | ||
| 9767 | |||
| 9768 | 853 | void ComAggregatorComponentBase::comStatusOut_out( | |
| 9769 | FwIndexType portNum, | ||
| 9770 | Fw::Success& condition | ||
| 9771 | ) const { | ||
| 9772 | 853 | FW_ASSERT( | |
| 9773 | (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS), | ||
| 9774 | static_cast<FwAssertArgType>(portNum), | ||
| 9775 | static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS) | ||
| 9776 | ); | ||
| 9777 |
1/2✓ Branch 0 taken 853 times.
✗ Branch 1 not taken.
|
853 | switch (portNum) { |
| 9778 | 853 | case 0: | |
| 9779 | 853 | ComCcsds::spacePacketFramer.comStatusIn_handlerBase( | |
| 9780 | 0, | ||
| 9781 | condition | ||
| 9782 | ); | ||
| 9783 | 853 | break; | |
| 9784 | ✗ | default: | |
| 9785 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9786 | ✗ | break; | |
| 9787 | } | ||
| 9788 | 853 | } | |
| 9789 | |||
| 9790 | 279 | void ComAggregatorComponentBase::dataOut_out( | |
| 9791 | FwIndexType portNum, | ||
| 9792 | Fw::Buffer& data, | ||
| 9793 | const ComCfg::FrameContext& context | ||
| 9794 | ) const { | ||
| 9795 | 279 | FW_ASSERT( | |
| 9796 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 9797 | static_cast<FwAssertArgType>(portNum), | ||
| 9798 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 9799 | ); | ||
| 9800 |
1/2✓ Branch 0 taken 279 times.
✗ Branch 1 not taken.
|
279 | switch (portNum) { |
| 9801 | 279 | case 0: | |
| 9802 | 279 | ComCcsds::framer.dataIn_handlerBase( | |
| 9803 | 0, | ||
| 9804 | data, | ||
| 9805 | context | ||
| 9806 | ); | ||
| 9807 | 279 | break; | |
| 9808 | ✗ | default: | |
| 9809 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9810 | ✗ | break; | |
| 9811 | } | ||
| 9812 | 279 | } | |
| 9813 | |||
| 9814 | 852 | void ComAggregatorComponentBase::dataReturnOut_out( | |
| 9815 | FwIndexType portNum, | ||
| 9816 | Fw::Buffer& data, | ||
| 9817 | const ComCfg::FrameContext& context | ||
| 9818 | ) const { | ||
| 9819 | 852 | FW_ASSERT( | |
| 9820 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 9821 | static_cast<FwAssertArgType>(portNum), | ||
| 9822 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 9823 | ); | ||
| 9824 |
1/2✓ Branch 0 taken 852 times.
✗ Branch 1 not taken.
|
852 | switch (portNum) { |
| 9825 | 852 | case 0: | |
| 9826 | 852 | ComCcsds::spacePacketFramer.dataReturnIn_handlerBase( | |
| 9827 | 0, | ||
| 9828 | data, | ||
| 9829 | context | ||
| 9830 | ); | ||
| 9831 | 852 | break; | |
| 9832 | ✗ | default: | |
| 9833 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 9834 | ✗ | break; | |
| 9835 | } | ||
| 9836 | 852 | } | |
| 9837 | |||
| 9838 | } | ||
| 9839 | |||
| 9840 | namespace Svc { | ||
| 9841 | |||
| 9842 | 1 | bool ComQueueComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const { | |
| 9843 | 1 | FW_ASSERT( | |
| 9844 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 9845 | static_cast<FwAssertArgType>(portNum), | ||
| 9846 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 9847 | ); | ||
| 9848 | 1 | bool result = false; | |
| 9849 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 9850 | 1 | case 0: | |
| 9851 | 1 | result = true; | |
| 9852 | 1 | break; | |
| 9853 | ✗ | default: | |
| 9854 | ✗ | break; | |
| 9855 | } | ||
| 9856 | 1 | return result; | |
| 9857 | } | ||
| 9858 | |||
| 9859 | ✗ | bool ComQueueComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const { | |
| 9860 | ✗ | FW_ASSERT( | |
| 9861 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 9862 | static_cast<FwAssertArgType>(portNum), | ||
| 9863 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 9864 | ); | ||
| 9865 | ✗ | bool result = false; | |
| 9866 | ✗ | switch (portNum) { | |
| 9867 | ✗ | case 0: | |
| 9868 | ✗ | result = true; | |
| 9869 | ✗ | break; | |
| 9870 | ✗ | default: | |
| 9871 | ✗ | break; | |
| 9872 | } | ||
| 9873 | ✗ | return result; | |
| 9874 | } | ||
| 9875 | |||
| 9876 | ✗ | bool ComQueueComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 9877 | ✗ | FW_ASSERT( | |
| 9878 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 9879 | static_cast<FwAssertArgType>(portNum), | ||
| 9880 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 9881 | ); | ||
| 9882 | ✗ | bool result = false; | |
| 9883 | ✗ | switch (portNum) { | |
| 9884 | ✗ | case 0: | |
| 9885 | ✗ | result = true; | |
| 9886 | ✗ | break; | |
| 9887 | ✗ | default: | |
| 9888 | ✗ | break; | |
| 9889 | } | ||
| 9890 | ✗ | return result; | |
| 9891 | } | ||
| 9892 | |||
| 9893 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 9894 | |||
| 9895 | ✗ | bool ComQueueComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 9896 | ✗ | FW_ASSERT( | |
| 9897 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 9898 | static_cast<FwAssertArgType>(portNum), | ||
| 9899 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 9900 | ); | ||
| 9901 | ✗ | bool result = false; | |
| 9902 | ✗ | switch (portNum) { | |
| 9903 | ✗ | case 0: | |
| 9904 | ✗ | result = true; | |
| 9905 | ✗ | break; | |
| 9906 | ✗ | default: | |
| 9907 | ✗ | break; | |
| 9908 | } | ||
| 9909 | ✗ | return result; | |
| 9910 | } | ||
| 9911 | |||
| 9912 | #endif | ||
| 9913 | |||
| 9914 | 528 | bool ComQueueComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 9915 | 528 | FW_ASSERT( | |
| 9916 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 9917 | static_cast<FwAssertArgType>(portNum), | ||
| 9918 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 9919 | ); | ||
| 9920 | 528 | bool result = false; | |
| 9921 |
1/2✓ Branch 0 taken 528 times.
✗ Branch 1 not taken.
|
528 | switch (portNum) { |
| 9922 | 528 | case 0: | |
| 9923 | 528 | result = true; | |
| 9924 | 528 | break; | |
| 9925 | ✗ | default: | |
| 9926 | ✗ | break; | |
| 9927 | } | ||
| 9928 | 528 | return result; | |
| 9929 | } | ||
| 9930 | |||
| 9931 | 1056 | bool ComQueueComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const { | |
| 9932 | 1056 | FW_ASSERT( | |
| 9933 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 9934 | static_cast<FwAssertArgType>(portNum), | ||
| 9935 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 9936 | ); | ||
| 9937 | 1056 | bool result = false; | |
| 9938 |
1/2✓ Branch 0 taken 1056 times.
✗ Branch 1 not taken.
|
1056 | switch (portNum) { |
| 9939 | 1056 | case 0: | |
| 9940 | 1056 | result = true; | |
| 9941 | 1056 | break; | |
| 9942 | ✗ | default: | |
| 9943 | ✗ | break; | |
| 9944 | } | ||
| 9945 | 1056 | return result; | |
| 9946 | } | ||
| 9947 | |||
| 9948 | 30 | bool ComQueueComponentBase::isConnected_bufferReturnOut_OutputPort(FwIndexType portNum) const { | |
| 9949 | 30 | FW_ASSERT( | |
| 9950 | (0 <= portNum) && (portNum < NUM_BUFFERRETURNOUT_OUTPUT_PORTS), | ||
| 9951 | static_cast<FwAssertArgType>(portNum), | ||
| 9952 | static_cast<FwAssertArgType>(NUM_BUFFERRETURNOUT_OUTPUT_PORTS) | ||
| 9953 | ); | ||
| 9954 | 30 | bool result = false; | |
| 9955 |
1/2✓ Branch 0 taken 30 times.
✗ Branch 1 not taken.
|
30 | switch (portNum) { |
| 9956 | 30 | case 0: | |
| 9957 | 30 | result = true; | |
| 9958 | 30 | break; | |
| 9959 | ✗ | default: | |
| 9960 | ✗ | break; | |
| 9961 | } | ||
| 9962 | 30 | return result; | |
| 9963 | } | ||
| 9964 | |||
| 9965 | ✗ | bool ComQueueComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const { | |
| 9966 | ✗ | FW_ASSERT( | |
| 9967 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 9968 | static_cast<FwAssertArgType>(portNum), | ||
| 9969 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 9970 | ); | ||
| 9971 | ✗ | bool result = false; | |
| 9972 | ✗ | switch (portNum) { | |
| 9973 | ✗ | case 0: | |
| 9974 | ✗ | result = true; | |
| 9975 | ✗ | break; | |
| 9976 | ✗ | default: | |
| 9977 | ✗ | break; | |
| 9978 | } | ||
| 9979 | ✗ | return result; | |
| 9980 | } | ||
| 9981 | |||
| 9982 | 3 | void ComQueueComponentBase::CmdReg_out( | |
| 9983 | FwIndexType portNum, | ||
| 9984 | FwOpcodeType opCode | ||
| 9985 | ) const { | ||
| 9986 | 3 | FW_ASSERT( | |
| 9987 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 9988 | static_cast<FwAssertArgType>(portNum), | ||
| 9989 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 9990 | ); | ||
| 9991 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 9992 | 3 | case 0: | |
| 9993 | 3 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 9994 | 4, | ||
| 9995 | opCode | ||
| 9996 | ); | ||
| 9997 | 3 | break; | |
| 9998 | ✗ | default: | |
| 9999 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10000 | ✗ | break; | |
| 10001 | } | ||
| 10002 | 3 | } | |
| 10003 | |||
| 10004 | ✗ | void ComQueueComponentBase::CmdStatus_out( | |
| 10005 | FwIndexType portNum, | ||
| 10006 | FwOpcodeType opCode, | ||
| 10007 | U32 cmdSeq, | ||
| 10008 | const Fw::CmdResponse& response | ||
| 10009 | ) const { | ||
| 10010 | ✗ | FW_ASSERT( | |
| 10011 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 10012 | static_cast<FwAssertArgType>(portNum), | ||
| 10013 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 10014 | ); | ||
| 10015 | ✗ | switch (portNum) { | |
| 10016 | ✗ | case 0: | |
| 10017 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 10018 | 0, | ||
| 10019 | opCode, | ||
| 10020 | cmdSeq, | ||
| 10021 | response | ||
| 10022 | ); | ||
| 10023 | ✗ | break; | |
| 10024 | ✗ | default: | |
| 10025 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10026 | ✗ | break; | |
| 10027 | } | ||
| 10028 | ✗ | } | |
| 10029 | |||
| 10030 | ✗ | void ComQueueComponentBase::Log_out( | |
| 10031 | FwIndexType portNum, | ||
| 10032 | FwEventIdType id, | ||
| 10033 | Fw::Time& timeTag, | ||
| 10034 | const Fw::LogSeverity& severity, | ||
| 10035 | Fw::LogBuffer& args | ||
| 10036 | ) const { | ||
| 10037 | ✗ | FW_ASSERT( | |
| 10038 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 10039 | static_cast<FwAssertArgType>(portNum), | ||
| 10040 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 10041 | ); | ||
| 10042 | ✗ | switch (portNum) { | |
| 10043 | ✗ | case 0: | |
| 10044 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 10045 | 0, | ||
| 10046 | id, | ||
| 10047 | timeTag, | ||
| 10048 | severity, | ||
| 10049 | args | ||
| 10050 | ); | ||
| 10051 | ✗ | break; | |
| 10052 | ✗ | default: | |
| 10053 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10054 | ✗ | break; | |
| 10055 | } | ||
| 10056 | ✗ | } | |
| 10057 | |||
| 10058 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 10059 | |||
| 10060 | ✗ | void ComQueueComponentBase::LogText_out( | |
| 10061 | FwIndexType portNum, | ||
| 10062 | FwEventIdType id, | ||
| 10063 | Fw::Time& timeTag, | ||
| 10064 | const Fw::LogSeverity& severity, | ||
| 10065 | Fw::TextLogString& text | ||
| 10066 | ) const { | ||
| 10067 | ✗ | FW_ASSERT( | |
| 10068 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 10069 | static_cast<FwAssertArgType>(portNum), | ||
| 10070 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 10071 | ); | ||
| 10072 | ✗ | switch (portNum) { | |
| 10073 | ✗ | case 0: | |
| 10074 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 10075 | 0, | ||
| 10076 | id, | ||
| 10077 | timeTag, | ||
| 10078 | severity, | ||
| 10079 | text | ||
| 10080 | ); | ||
| 10081 | ✗ | break; | |
| 10082 | ✗ | default: | |
| 10083 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10084 | ✗ | break; | |
| 10085 | } | ||
| 10086 | ✗ | } | |
| 10087 | |||
| 10088 | #endif | ||
| 10089 | |||
| 10090 | 528 | void ComQueueComponentBase::Time_out( | |
| 10091 | FwIndexType portNum, | ||
| 10092 | Fw::Time& time | ||
| 10093 | ) const { | ||
| 10094 | 528 | FW_ASSERT( | |
| 10095 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 10096 | static_cast<FwAssertArgType>(portNum), | ||
| 10097 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 10098 | ); | ||
| 10099 |
1/2✓ Branch 0 taken 528 times.
✗ Branch 1 not taken.
|
528 | switch (portNum) { |
| 10100 | 528 | case 0: | |
| 10101 | 528 | Ref::posixTime.timeGetPort_handlerBase( | |
| 10102 | 0, | ||
| 10103 | time | ||
| 10104 | ); | ||
| 10105 | 528 | break; | |
| 10106 | ✗ | default: | |
| 10107 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10108 | ✗ | break; | |
| 10109 | } | ||
| 10110 | 528 | } | |
| 10111 | |||
| 10112 | 528 | void ComQueueComponentBase::Tlm_out( | |
| 10113 | FwIndexType portNum, | ||
| 10114 | FwChanIdType id, | ||
| 10115 | Fw::Time& timeTag, | ||
| 10116 | Fw::TlmBuffer& val | ||
| 10117 | ) const { | ||
| 10118 | 528 | FW_ASSERT( | |
| 10119 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 10120 | static_cast<FwAssertArgType>(portNum), | ||
| 10121 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 10122 | ); | ||
| 10123 |
1/2✓ Branch 0 taken 528 times.
✗ Branch 1 not taken.
|
528 | switch (portNum) { |
| 10124 | 528 | case 0: | |
| 10125 | 528 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 10126 | 0, | ||
| 10127 | id, | ||
| 10128 | timeTag, | ||
| 10129 | val | ||
| 10130 | ); | ||
| 10131 | 528 | break; | |
| 10132 | ✗ | default: | |
| 10133 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10134 | ✗ | break; | |
| 10135 | } | ||
| 10136 | 528 | } | |
| 10137 | |||
| 10138 | 30 | void ComQueueComponentBase::bufferReturnOut_out( | |
| 10139 | FwIndexType portNum, | ||
| 10140 | Fw::Buffer& fwBuffer | ||
| 10141 | ) const { | ||
| 10142 | 30 | FW_ASSERT( | |
| 10143 | (0 <= portNum) && (portNum < NUM_BUFFERRETURNOUT_OUTPUT_PORTS), | ||
| 10144 | static_cast<FwAssertArgType>(portNum), | ||
| 10145 | static_cast<FwAssertArgType>(NUM_BUFFERRETURNOUT_OUTPUT_PORTS) | ||
| 10146 | ); | ||
| 10147 |
1/2✓ Branch 0 taken 30 times.
✗ Branch 1 not taken.
|
30 | switch (portNum) { |
| 10148 | 30 | case 0: | |
| 10149 | 30 | FileHandling::fileDownlink.bufferReturn_handlerBase( | |
| 10150 | 0, | ||
| 10151 | fwBuffer | ||
| 10152 | ); | ||
| 10153 | 30 | break; | |
| 10154 | ✗ | default: | |
| 10155 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10156 | ✗ | break; | |
| 10157 | } | ||
| 10158 | 30 | } | |
| 10159 | |||
| 10160 | 852 | void ComQueueComponentBase::dataOut_out( | |
| 10161 | FwIndexType portNum, | ||
| 10162 | Fw::Buffer& data, | ||
| 10163 | const ComCfg::FrameContext& context | ||
| 10164 | ) const { | ||
| 10165 | 852 | FW_ASSERT( | |
| 10166 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 10167 | static_cast<FwAssertArgType>(portNum), | ||
| 10168 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 10169 | ); | ||
| 10170 |
1/2✓ Branch 0 taken 852 times.
✗ Branch 1 not taken.
|
852 | switch (portNum) { |
| 10171 | 852 | case 0: | |
| 10172 | 852 | ComCcsds::spacePacketFramer.dataIn_handlerBase( | |
| 10173 | 0, | ||
| 10174 | data, | ||
| 10175 | context | ||
| 10176 | ); | ||
| 10177 | 852 | break; | |
| 10178 | ✗ | default: | |
| 10179 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10180 | ✗ | break; | |
| 10181 | } | ||
| 10182 | 852 | } | |
| 10183 | |||
| 10184 | } | ||
| 10185 | |||
| 10186 | namespace Svc { | ||
| 10187 | |||
| 10188 | 1 | bool ComStubComponentBase::isConnected_comStatusOut_OutputPort(FwIndexType portNum) const { | |
| 10189 | 1 | FW_ASSERT( | |
| 10190 | (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS), | ||
| 10191 | static_cast<FwAssertArgType>(portNum), | ||
| 10192 | static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS) | ||
| 10193 | ); | ||
| 10194 | 1 | bool result = false; | |
| 10195 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 10196 | 1 | case 0: | |
| 10197 | 1 | result = true; | |
| 10198 | 1 | break; | |
| 10199 | ✗ | default: | |
| 10200 | ✗ | break; | |
| 10201 | } | ||
| 10202 | 1 | return result; | |
| 10203 | } | ||
| 10204 | |||
| 10205 | ✗ | bool ComStubComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const { | |
| 10206 | ✗ | FW_ASSERT( | |
| 10207 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 10208 | static_cast<FwAssertArgType>(portNum), | ||
| 10209 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 10210 | ); | ||
| 10211 | ✗ | bool result = false; | |
| 10212 | ✗ | switch (portNum) { | |
| 10213 | ✗ | case 0: | |
| 10214 | ✗ | result = true; | |
| 10215 | ✗ | break; | |
| 10216 | ✗ | default: | |
| 10217 | ✗ | break; | |
| 10218 | } | ||
| 10219 | ✗ | return result; | |
| 10220 | } | ||
| 10221 | |||
| 10222 | ✗ | bool ComStubComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const { | |
| 10223 | ✗ | FW_ASSERT( | |
| 10224 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 10225 | static_cast<FwAssertArgType>(portNum), | ||
| 10226 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 10227 | ); | ||
| 10228 | ✗ | bool result = false; | |
| 10229 | ✗ | switch (portNum) { | |
| 10230 | ✗ | case 0: | |
| 10231 | ✗ | result = true; | |
| 10232 | ✗ | break; | |
| 10233 | ✗ | default: | |
| 10234 | ✗ | break; | |
| 10235 | } | ||
| 10236 | ✗ | return result; | |
| 10237 | } | ||
| 10238 | |||
| 10239 | ✗ | bool ComStubComponentBase::isConnected_drvAsyncSendOut_OutputPort(FwIndexType portNum) const { | |
| 10240 | ✗ | FW_ASSERT( | |
| 10241 | (0 <= portNum) && (portNum < NUM_DRVASYNCSENDOUT_OUTPUT_PORTS), | ||
| 10242 | static_cast<FwAssertArgType>(portNum), | ||
| 10243 | static_cast<FwAssertArgType>(NUM_DRVASYNCSENDOUT_OUTPUT_PORTS) | ||
| 10244 | ); | ||
| 10245 | ✗ | bool result = false; | |
| 10246 | ✗ | switch (portNum) { | |
| 10247 | default: | ||
| 10248 | ✗ | break; | |
| 10249 | } | ||
| 10250 | ✗ | return result; | |
| 10251 | } | ||
| 10252 | |||
| 10253 | ✗ | bool ComStubComponentBase::isConnected_drvReceiveReturnOut_OutputPort(FwIndexType portNum) const { | |
| 10254 | ✗ | FW_ASSERT( | |
| 10255 | (0 <= portNum) && (portNum < NUM_DRVRECEIVERETURNOUT_OUTPUT_PORTS), | ||
| 10256 | static_cast<FwAssertArgType>(portNum), | ||
| 10257 | static_cast<FwAssertArgType>(NUM_DRVRECEIVERETURNOUT_OUTPUT_PORTS) | ||
| 10258 | ); | ||
| 10259 | ✗ | bool result = false; | |
| 10260 | ✗ | switch (portNum) { | |
| 10261 | ✗ | case 0: | |
| 10262 | ✗ | result = true; | |
| 10263 | ✗ | break; | |
| 10264 | ✗ | default: | |
| 10265 | ✗ | break; | |
| 10266 | } | ||
| 10267 | ✗ | return result; | |
| 10268 | } | ||
| 10269 | |||
| 10270 | 279 | bool ComStubComponentBase::isConnected_drvSendOut_OutputPort(FwIndexType portNum) const { | |
| 10271 | 279 | FW_ASSERT( | |
| 10272 | (0 <= portNum) && (portNum < NUM_DRVSENDOUT_OUTPUT_PORTS), | ||
| 10273 | static_cast<FwAssertArgType>(portNum), | ||
| 10274 | static_cast<FwAssertArgType>(NUM_DRVSENDOUT_OUTPUT_PORTS) | ||
| 10275 | ); | ||
| 10276 | 279 | bool result = false; | |
| 10277 |
1/2✓ Branch 0 taken 279 times.
✗ Branch 1 not taken.
|
279 | switch (portNum) { |
| 10278 | 279 | case 0: | |
| 10279 | 279 | result = true; | |
| 10280 | 279 | break; | |
| 10281 | ✗ | default: | |
| 10282 | ✗ | break; | |
| 10283 | } | ||
| 10284 | 279 | return result; | |
| 10285 | } | ||
| 10286 | |||
| 10287 | 280 | void ComStubComponentBase::comStatusOut_out( | |
| 10288 | FwIndexType portNum, | ||
| 10289 | Fw::Success& condition | ||
| 10290 | ) const { | ||
| 10291 | 280 | FW_ASSERT( | |
| 10292 | (0 <= portNum) && (portNum < NUM_COMSTATUSOUT_OUTPUT_PORTS), | ||
| 10293 | static_cast<FwAssertArgType>(portNum), | ||
| 10294 | static_cast<FwAssertArgType>(NUM_COMSTATUSOUT_OUTPUT_PORTS) | ||
| 10295 | ); | ||
| 10296 |
1/2✓ Branch 0 taken 280 times.
✗ Branch 1 not taken.
|
280 | switch (portNum) { |
| 10297 | 280 | case 0: | |
| 10298 | 280 | ComCcsds::framer.comStatusIn_handlerBase( | |
| 10299 | 0, | ||
| 10300 | condition | ||
| 10301 | ); | ||
| 10302 | 280 | break; | |
| 10303 | ✗ | default: | |
| 10304 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10305 | ✗ | break; | |
| 10306 | } | ||
| 10307 | 280 | } | |
| 10308 | |||
| 10309 | 679 | void ComStubComponentBase::dataOut_out( | |
| 10310 | FwIndexType portNum, | ||
| 10311 | Fw::Buffer& data, | ||
| 10312 | const ComCfg::FrameContext& context | ||
| 10313 | ) const { | ||
| 10314 | 679 | FW_ASSERT( | |
| 10315 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 10316 | static_cast<FwAssertArgType>(portNum), | ||
| 10317 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 10318 | ); | ||
| 10319 |
1/2✓ Branch 0 taken 679 times.
✗ Branch 1 not taken.
|
679 | switch (portNum) { |
| 10320 | 679 | case 0: | |
| 10321 | 679 | ComCcsds::frameAccumulator.dataIn_handlerBase( | |
| 10322 | 0, | ||
| 10323 | data, | ||
| 10324 | context | ||
| 10325 | ); | ||
| 10326 | 679 | break; | |
| 10327 | ✗ | default: | |
| 10328 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10329 | ✗ | break; | |
| 10330 | } | ||
| 10331 | 679 | } | |
| 10332 | |||
| 10333 | 279 | void ComStubComponentBase::dataReturnOut_out( | |
| 10334 | FwIndexType portNum, | ||
| 10335 | Fw::Buffer& data, | ||
| 10336 | const ComCfg::FrameContext& context | ||
| 10337 | ) const { | ||
| 10338 | 279 | FW_ASSERT( | |
| 10339 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 10340 | static_cast<FwAssertArgType>(portNum), | ||
| 10341 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 10342 | ); | ||
| 10343 |
1/2✓ Branch 0 taken 279 times.
✗ Branch 1 not taken.
|
279 | switch (portNum) { |
| 10344 | 279 | case 0: | |
| 10345 | 279 | ComCcsds::framer.dataReturnIn_handlerBase( | |
| 10346 | 0, | ||
| 10347 | data, | ||
| 10348 | context | ||
| 10349 | ); | ||
| 10350 | 279 | break; | |
| 10351 | ✗ | default: | |
| 10352 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10353 | ✗ | break; | |
| 10354 | } | ||
| 10355 | 279 | } | |
| 10356 | |||
| 10357 | ✗ | void ComStubComponentBase::drvAsyncSendOut_out( | |
| 10358 | FwIndexType portNum, | ||
| 10359 | Fw::Buffer& fwBuffer | ||
| 10360 | ) const { | ||
| 10361 | ✗ | FW_ASSERT( | |
| 10362 | (0 <= portNum) && (portNum < NUM_DRVASYNCSENDOUT_OUTPUT_PORTS), | ||
| 10363 | static_cast<FwAssertArgType>(portNum), | ||
| 10364 | static_cast<FwAssertArgType>(NUM_DRVASYNCSENDOUT_OUTPUT_PORTS) | ||
| 10365 | ); | ||
| 10366 | ✗ | switch (portNum) { | |
| 10367 | default: | ||
| 10368 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10369 | ✗ | break; | |
| 10370 | } | ||
| 10371 | ✗ | } | |
| 10372 | |||
| 10373 | 680 | void ComStubComponentBase::drvReceiveReturnOut_out( | |
| 10374 | FwIndexType portNum, | ||
| 10375 | Fw::Buffer& fwBuffer | ||
| 10376 | ) const { | ||
| 10377 | 680 | FW_ASSERT( | |
| 10378 | (0 <= portNum) && (portNum < NUM_DRVRECEIVERETURNOUT_OUTPUT_PORTS), | ||
| 10379 | static_cast<FwAssertArgType>(portNum), | ||
| 10380 | static_cast<FwAssertArgType>(NUM_DRVRECEIVERETURNOUT_OUTPUT_PORTS) | ||
| 10381 | ); | ||
| 10382 |
1/2✓ Branch 0 taken 680 times.
✗ Branch 1 not taken.
|
680 | switch (portNum) { |
| 10383 | 680 | case 0: | |
| 10384 | 680 | Ref::comDriver.recvReturnIn_handlerBase( | |
| 10385 | 0, | ||
| 10386 | fwBuffer | ||
| 10387 | ); | ||
| 10388 | 680 | break; | |
| 10389 | ✗ | default: | |
| 10390 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10391 | ✗ | break; | |
| 10392 | } | ||
| 10393 | 680 | } | |
| 10394 | |||
| 10395 | 279 | Drv::ByteStreamStatus ComStubComponentBase::drvSendOut_out( | |
| 10396 | FwIndexType portNum, | ||
| 10397 | Fw::Buffer& sendBuffer | ||
| 10398 | ) const { | ||
| 10399 | 279 | FW_ASSERT( | |
| 10400 | (0 <= portNum) && (portNum < NUM_DRVSENDOUT_OUTPUT_PORTS), | ||
| 10401 | static_cast<FwAssertArgType>(portNum), | ||
| 10402 | static_cast<FwAssertArgType>(NUM_DRVSENDOUT_OUTPUT_PORTS) | ||
| 10403 | ); | ||
| 10404 | 279 | Drv::ByteStreamStatus _result = {}; | |
| 10405 |
1/2✓ Branch 0 taken 279 times.
✗ Branch 1 not taken.
|
279 | switch (portNum) { |
| 10406 | 279 | case 0: | |
| 10407 |
1/1✓ Branch 1 taken 279 times.
|
558 | _result = Ref::comDriver.send_handlerBase( |
| 10408 | 0, | ||
| 10409 | sendBuffer | ||
| 10410 |
1/1✓ Branch 1 taken 279 times.
|
279 | ); |
| 10411 | 279 | break; | |
| 10412 | ✗ | default: | |
| 10413 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10414 | ✗ | break; | |
| 10415 | } | ||
| 10416 | 279 | return _result; | |
| 10417 | ✗ | } | |
| 10418 | |||
| 10419 | } | ||
| 10420 | |||
| 10421 | namespace Svc { | ||
| 10422 | |||
| 10423 | 1 | bool CommandDispatcherComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const { | |
| 10424 | 1 | FW_ASSERT( | |
| 10425 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 10426 | static_cast<FwAssertArgType>(portNum), | ||
| 10427 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 10428 | ); | ||
| 10429 | 1 | bool result = false; | |
| 10430 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 10431 | 1 | case 0: | |
| 10432 | 1 | result = true; | |
| 10433 | 1 | break; | |
| 10434 | ✗ | default: | |
| 10435 | ✗ | break; | |
| 10436 | } | ||
| 10437 | 1 | return result; | |
| 10438 | } | ||
| 10439 | |||
| 10440 | 110 | bool CommandDispatcherComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const { | |
| 10441 | 110 | FW_ASSERT( | |
| 10442 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 10443 | static_cast<FwAssertArgType>(portNum), | ||
| 10444 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 10445 | ); | ||
| 10446 | 110 | bool result = false; | |
| 10447 |
1/2✓ Branch 0 taken 110 times.
✗ Branch 1 not taken.
|
110 | switch (portNum) { |
| 10448 | 110 | case 0: | |
| 10449 | 110 | result = true; | |
| 10450 | 110 | break; | |
| 10451 | ✗ | default: | |
| 10452 | ✗ | break; | |
| 10453 | } | ||
| 10454 | 110 | return result; | |
| 10455 | } | ||
| 10456 | |||
| 10457 | 556 | bool CommandDispatcherComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 10458 | 556 | FW_ASSERT( | |
| 10459 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 10460 | static_cast<FwAssertArgType>(portNum), | ||
| 10461 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 10462 | ); | ||
| 10463 | 556 | bool result = false; | |
| 10464 |
1/2✓ Branch 0 taken 556 times.
✗ Branch 1 not taken.
|
556 | switch (portNum) { |
| 10465 | 556 | case 0: | |
| 10466 | 556 | result = true; | |
| 10467 | 556 | break; | |
| 10468 | ✗ | default: | |
| 10469 | ✗ | break; | |
| 10470 | } | ||
| 10471 | 556 | return result; | |
| 10472 | } | ||
| 10473 | |||
| 10474 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 10475 | |||
| 10476 | 556 | bool CommandDispatcherComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 10477 | 556 | FW_ASSERT( | |
| 10478 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 10479 | static_cast<FwAssertArgType>(portNum), | ||
| 10480 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 10481 | ); | ||
| 10482 | 556 | bool result = false; | |
| 10483 |
1/2✓ Branch 0 taken 556 times.
✗ Branch 1 not taken.
|
556 | switch (portNum) { |
| 10484 | 556 | case 0: | |
| 10485 | 556 | result = true; | |
| 10486 | 556 | break; | |
| 10487 | ✗ | default: | |
| 10488 | ✗ | break; | |
| 10489 | } | ||
| 10490 | 556 | return result; | |
| 10491 | } | ||
| 10492 | |||
| 10493 | #endif | ||
| 10494 | |||
| 10495 | 706 | bool CommandDispatcherComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 10496 | 706 | FW_ASSERT( | |
| 10497 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 10498 | static_cast<FwAssertArgType>(portNum), | ||
| 10499 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 10500 | ); | ||
| 10501 | 706 | bool result = false; | |
| 10502 |
1/2✓ Branch 0 taken 706 times.
✗ Branch 1 not taken.
|
706 | switch (portNum) { |
| 10503 | 706 | case 0: | |
| 10504 | 706 | result = true; | |
| 10505 | 706 | break; | |
| 10506 | ✗ | default: | |
| 10507 | ✗ | break; | |
| 10508 | } | ||
| 10509 | 706 | return result; | |
| 10510 | } | ||
| 10511 | |||
| 10512 | 300 | bool CommandDispatcherComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const { | |
| 10513 | 300 | FW_ASSERT( | |
| 10514 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 10515 | static_cast<FwAssertArgType>(portNum), | ||
| 10516 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 10517 | ); | ||
| 10518 | 300 | bool result = false; | |
| 10519 |
1/2✓ Branch 0 taken 300 times.
✗ Branch 1 not taken.
|
300 | switch (portNum) { |
| 10520 | 300 | case 0: | |
| 10521 | 300 | result = true; | |
| 10522 | 300 | break; | |
| 10523 | ✗ | default: | |
| 10524 | ✗ | break; | |
| 10525 | } | ||
| 10526 | 300 | return result; | |
| 10527 | } | ||
| 10528 | |||
| 10529 | 161 | bool CommandDispatcherComponentBase::isConnected_compCmdSend_OutputPort(FwIndexType portNum) const { | |
| 10530 | 161 | FW_ASSERT( | |
| 10531 | (0 <= portNum) && (portNum < NUM_COMPCMDSEND_OUTPUT_PORTS), | ||
| 10532 | static_cast<FwAssertArgType>(portNum), | ||
| 10533 | static_cast<FwAssertArgType>(NUM_COMPCMDSEND_OUTPUT_PORTS) | ||
| 10534 | ); | ||
| 10535 | 161 | bool result = false; | |
| 10536 |
11/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 taken 8 times.
✗ 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 5 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.
|
161 | switch (portNum) { |
| 10537 | 110 | case 0: | |
| 10538 | 110 | result = true; | |
| 10539 | 110 | break; | |
| 10540 | 13 | case 1: | |
| 10541 | 13 | result = true; | |
| 10542 | 13 | break; | |
| 10543 | ✗ | case 2: | |
| 10544 | ✗ | result = true; | |
| 10545 | ✗ | break; | |
| 10546 | ✗ | case 3: | |
| 10547 | ✗ | result = true; | |
| 10548 | ✗ | break; | |
| 10549 | ✗ | case 4: | |
| 10550 | ✗ | result = true; | |
| 10551 | ✗ | break; | |
| 10552 | ✗ | case 5: | |
| 10553 | ✗ | result = true; | |
| 10554 | ✗ | break; | |
| 10555 | 8 | case 6: | |
| 10556 | 8 | result = true; | |
| 10557 | 8 | break; | |
| 10558 | ✗ | case 7: | |
| 10559 | ✗ | result = true; | |
| 10560 | ✗ | break; | |
| 10561 | ✗ | case 8: | |
| 10562 | ✗ | result = true; | |
| 10563 | ✗ | break; | |
| 10564 | ✗ | case 9: | |
| 10565 | ✗ | result = true; | |
| 10566 | ✗ | break; | |
| 10567 | 1 | case 10: | |
| 10568 | 1 | result = true; | |
| 10569 | 1 | break; | |
| 10570 | 4 | case 11: | |
| 10571 | 4 | result = true; | |
| 10572 | 4 | break; | |
| 10573 | ✗ | case 12: | |
| 10574 | ✗ | result = true; | |
| 10575 | ✗ | break; | |
| 10576 | ✗ | case 13: | |
| 10577 | ✗ | result = true; | |
| 10578 | ✗ | break; | |
| 10579 | ✗ | case 14: | |
| 10580 | ✗ | result = true; | |
| 10581 | ✗ | break; | |
| 10582 | 3 | case 15: | |
| 10583 | 3 | result = true; | |
| 10584 | 3 | break; | |
| 10585 | ✗ | case 16: | |
| 10586 | ✗ | result = true; | |
| 10587 | ✗ | break; | |
| 10588 | 2 | case 17: | |
| 10589 | 2 | result = true; | |
| 10590 | 2 | break; | |
| 10591 | 5 | case 18: | |
| 10592 | 5 | result = true; | |
| 10593 | 5 | break; | |
| 10594 | ✗ | case 19: | |
| 10595 | ✗ | result = true; | |
| 10596 | ✗ | break; | |
| 10597 | 6 | case 20: | |
| 10598 | 6 | result = true; | |
| 10599 | 6 | break; | |
| 10600 | 6 | case 21: | |
| 10601 | 6 | result = true; | |
| 10602 | 6 | break; | |
| 10603 | ✗ | case 22: | |
| 10604 | ✗ | result = true; | |
| 10605 | ✗ | break; | |
| 10606 | 3 | case 23: | |
| 10607 | 3 | result = true; | |
| 10608 | 3 | break; | |
| 10609 | ✗ | case 24: | |
| 10610 | ✗ | result = true; | |
| 10611 | ✗ | break; | |
| 10612 | ✗ | default: | |
| 10613 | ✗ | break; | |
| 10614 | } | ||
| 10615 | 161 | return result; | |
| 10616 | } | ||
| 10617 | |||
| 10618 | ✗ | bool CommandDispatcherComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const { | |
| 10619 | ✗ | FW_ASSERT( | |
| 10620 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 10621 | static_cast<FwAssertArgType>(portNum), | ||
| 10622 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 10623 | ); | ||
| 10624 | ✗ | bool result = false; | |
| 10625 | ✗ | switch (portNum) { | |
| 10626 | ✗ | case 0: | |
| 10627 | ✗ | result = true; | |
| 10628 | ✗ | break; | |
| 10629 | ✗ | default: | |
| 10630 | ✗ | break; | |
| 10631 | } | ||
| 10632 | ✗ | return result; | |
| 10633 | } | ||
| 10634 | |||
| 10635 | 322 | bool CommandDispatcherComponentBase::isConnected_seqCmdStatus_OutputPort(FwIndexType portNum) const { | |
| 10636 | 322 | FW_ASSERT( | |
| 10637 | (0 <= portNum) && (portNum < NUM_SEQCMDSTATUS_OUTPUT_PORTS), | ||
| 10638 | static_cast<FwAssertArgType>(portNum), | ||
| 10639 | static_cast<FwAssertArgType>(NUM_SEQCMDSTATUS_OUTPUT_PORTS) | ||
| 10640 | ); | ||
| 10641 | 322 | bool result = false; | |
| 10642 |
2/4✓ Branch 0 taken 312 times.
✓ Branch 1 taken 10 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
|
322 | switch (portNum) { |
| 10643 | 312 | case 0: | |
| 10644 | 312 | result = true; | |
| 10645 | 312 | break; | |
| 10646 | 10 | case 1: | |
| 10647 | 10 | result = true; | |
| 10648 | 10 | break; | |
| 10649 | ✗ | case 2: | |
| 10650 | ✗ | result = true; | |
| 10651 | ✗ | break; | |
| 10652 | ✗ | default: | |
| 10653 | ✗ | break; | |
| 10654 | } | ||
| 10655 | 322 | return result; | |
| 10656 | } | ||
| 10657 | |||
| 10658 | 4 | void CommandDispatcherComponentBase::CmdReg_out( | |
| 10659 | FwIndexType portNum, | ||
| 10660 | FwOpcodeType opCode | ||
| 10661 | ) const { | ||
| 10662 | 4 | FW_ASSERT( | |
| 10663 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 10664 | static_cast<FwAssertArgType>(portNum), | ||
| 10665 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 10666 | ); | ||
| 10667 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 10668 | 4 | case 0: | |
| 10669 | 4 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 10670 | 0, | ||
| 10671 | opCode | ||
| 10672 | ); | ||
| 10673 | 4 | break; | |
| 10674 | ✗ | default: | |
| 10675 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10676 | ✗ | break; | |
| 10677 | } | ||
| 10678 | 4 | } | |
| 10679 | |||
| 10680 | 110 | void CommandDispatcherComponentBase::CmdStatus_out( | |
| 10681 | FwIndexType portNum, | ||
| 10682 | FwOpcodeType opCode, | ||
| 10683 | U32 cmdSeq, | ||
| 10684 | const Fw::CmdResponse& response | ||
| 10685 | ) const { | ||
| 10686 | 110 | FW_ASSERT( | |
| 10687 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 10688 | static_cast<FwAssertArgType>(portNum), | ||
| 10689 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 10690 | ); | ||
| 10691 |
1/2✓ Branch 0 taken 110 times.
✗ Branch 1 not taken.
|
110 | switch (portNum) { |
| 10692 | 110 | case 0: | |
| 10693 | 110 | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 10694 | 0, | ||
| 10695 | opCode, | ||
| 10696 | cmdSeq, | ||
| 10697 | response | ||
| 10698 | ); | ||
| 10699 | 110 | break; | |
| 10700 | ✗ | default: | |
| 10701 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10702 | ✗ | break; | |
| 10703 | } | ||
| 10704 | 110 | } | |
| 10705 | |||
| 10706 | 556 | void CommandDispatcherComponentBase::Log_out( | |
| 10707 | FwIndexType portNum, | ||
| 10708 | FwEventIdType id, | ||
| 10709 | Fw::Time& timeTag, | ||
| 10710 | const Fw::LogSeverity& severity, | ||
| 10711 | Fw::LogBuffer& args | ||
| 10712 | ) const { | ||
| 10713 | 556 | FW_ASSERT( | |
| 10714 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 10715 | static_cast<FwAssertArgType>(portNum), | ||
| 10716 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 10717 | ); | ||
| 10718 |
1/2✓ Branch 0 taken 556 times.
✗ Branch 1 not taken.
|
556 | switch (portNum) { |
| 10719 | 556 | case 0: | |
| 10720 | 556 | CdhCore::events.LogRecv_handlerBase( | |
| 10721 | 0, | ||
| 10722 | id, | ||
| 10723 | timeTag, | ||
| 10724 | severity, | ||
| 10725 | args | ||
| 10726 | ); | ||
| 10727 | 556 | break; | |
| 10728 | ✗ | default: | |
| 10729 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10730 | ✗ | break; | |
| 10731 | } | ||
| 10732 | 556 | } | |
| 10733 | |||
| 10734 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 10735 | |||
| 10736 | 556 | void CommandDispatcherComponentBase::LogText_out( | |
| 10737 | FwIndexType portNum, | ||
| 10738 | FwEventIdType id, | ||
| 10739 | Fw::Time& timeTag, | ||
| 10740 | const Fw::LogSeverity& severity, | ||
| 10741 | Fw::TextLogString& text | ||
| 10742 | ) const { | ||
| 10743 | 556 | FW_ASSERT( | |
| 10744 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 10745 | static_cast<FwAssertArgType>(portNum), | ||
| 10746 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 10747 | ); | ||
| 10748 |
1/2✓ Branch 0 taken 556 times.
✗ Branch 1 not taken.
|
556 | switch (portNum) { |
| 10749 | 556 | case 0: | |
| 10750 | 556 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 10751 | 0, | ||
| 10752 | id, | ||
| 10753 | timeTag, | ||
| 10754 | severity, | ||
| 10755 | text | ||
| 10756 | ); | ||
| 10757 | 556 | break; | |
| 10758 | ✗ | default: | |
| 10759 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10760 | ✗ | break; | |
| 10761 | } | ||
| 10762 | 556 | } | |
| 10763 | |||
| 10764 | #endif | ||
| 10765 | |||
| 10766 | 706 | void CommandDispatcherComponentBase::Time_out( | |
| 10767 | FwIndexType portNum, | ||
| 10768 | Fw::Time& time | ||
| 10769 | ) const { | ||
| 10770 | 706 | FW_ASSERT( | |
| 10771 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 10772 | static_cast<FwAssertArgType>(portNum), | ||
| 10773 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 10774 | ); | ||
| 10775 |
1/2✓ Branch 0 taken 706 times.
✗ Branch 1 not taken.
|
706 | switch (portNum) { |
| 10776 | 706 | case 0: | |
| 10777 | 706 | Ref::posixTime.timeGetPort_handlerBase( | |
| 10778 | 0, | ||
| 10779 | time | ||
| 10780 | ); | ||
| 10781 | 706 | break; | |
| 10782 | ✗ | default: | |
| 10783 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10784 | ✗ | break; | |
| 10785 | } | ||
| 10786 | 706 | } | |
| 10787 | |||
| 10788 | 150 | void CommandDispatcherComponentBase::Tlm_out( | |
| 10789 | FwIndexType portNum, | ||
| 10790 | FwChanIdType id, | ||
| 10791 | Fw::Time& timeTag, | ||
| 10792 | Fw::TlmBuffer& val | ||
| 10793 | ) const { | ||
| 10794 | 150 | FW_ASSERT( | |
| 10795 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 10796 | static_cast<FwAssertArgType>(portNum), | ||
| 10797 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 10798 | ); | ||
| 10799 |
1/2✓ Branch 0 taken 150 times.
✗ Branch 1 not taken.
|
150 | switch (portNum) { |
| 10800 | 150 | case 0: | |
| 10801 | 150 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 10802 | 0, | ||
| 10803 | id, | ||
| 10804 | timeTag, | ||
| 10805 | val | ||
| 10806 | ); | ||
| 10807 | 150 | break; | |
| 10808 | ✗ | default: | |
| 10809 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 10810 | ✗ | break; | |
| 10811 | } | ||
| 10812 | 150 | } | |
| 10813 | |||
| 10814 | 161 | void CommandDispatcherComponentBase::compCmdSend_out( | |
| 10815 | FwIndexType portNum, | ||
| 10816 | FwOpcodeType opCode, | ||
| 10817 | U32 cmdSeq, | ||
| 10818 | Fw::CmdArgBuffer& args | ||
| 10819 | ) const { | ||
| 10820 | 161 | FW_ASSERT( | |
| 10821 | (0 <= portNum) && (portNum < NUM_COMPCMDSEND_OUTPUT_PORTS), | ||
| 10822 | static_cast<FwAssertArgType>(portNum), | ||
| 10823 | static_cast<FwAssertArgType>(NUM_COMPCMDSEND_OUTPUT_PORTS) | ||
| 10824 | ); | ||
| 10825 |
11/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 taken 8 times.
✗ 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 5 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.
|
161 | switch (portNum) { |
| 10826 | 110 | case 0: | |
| 10827 | 110 | CdhCore::cmdDisp.CmdDisp_handlerBase( | |
| 10828 | 0, | ||
| 10829 | opCode, | ||
| 10830 | cmdSeq, | ||
| 10831 | args | ||
| 10832 | ); | ||
| 10833 | 110 | break; | |
| 10834 | 13 | case 1: | |
| 10835 | 13 | CdhCore::events.CmdDisp_handlerBase( | |
| 10836 | 0, | ||
| 10837 | opCode, | ||
| 10838 | cmdSeq, | ||
| 10839 | args | ||
| 10840 | ); | ||
| 10841 | 13 | break; | |
| 10842 | ✗ | case 2: | |
| 10843 | ✗ | CdhCore::health.CmdDisp_handlerBase( | |
| 10844 | 0, | ||
| 10845 | opCode, | ||
| 10846 | cmdSeq, | ||
| 10847 | args | ||
| 10848 | ); | ||
| 10849 | ✗ | break; | |
| 10850 | ✗ | case 3: | |
| 10851 | ✗ | CdhCore::version.cmdIn_handlerBase( | |
| 10852 | 0, | ||
| 10853 | opCode, | ||
| 10854 | cmdSeq, | ||
| 10855 | args | ||
| 10856 | ); | ||
| 10857 | ✗ | break; | |
| 10858 | ✗ | case 4: | |
| 10859 | ✗ | ComCcsds::comQueue.CmdDisp_handlerBase( | |
| 10860 | 0, | ||
| 10861 | opCode, | ||
| 10862 | cmdSeq, | ||
| 10863 | args | ||
| 10864 | ); | ||
| 10865 | ✗ | break; | |
| 10866 | ✗ | case 5: | |
| 10867 | ✗ | DataProducts::dpBufferAccumulator.cmdIn_handlerBase( | |
| 10868 | 0, | ||
| 10869 | opCode, | ||
| 10870 | cmdSeq, | ||
| 10871 | args | ||
| 10872 | ); | ||
| 10873 | ✗ | break; | |
| 10874 | 8 | case 6: | |
| 10875 | 8 | DataProducts::dpCat.CmdDisp_handlerBase( | |
| 10876 | 0, | ||
| 10877 | opCode, | ||
| 10878 | cmdSeq, | ||
| 10879 | args | ||
| 10880 | ); | ||
| 10881 | 8 | break; | |
| 10882 | ✗ | case 7: | |
| 10883 | ✗ | DataProducts::dpMgr.cmdIn_handlerBase( | |
| 10884 | 0, | ||
| 10885 | opCode, | ||
| 10886 | cmdSeq, | ||
| 10887 | args | ||
| 10888 | ); | ||
| 10889 | ✗ | break; | |
| 10890 | ✗ | case 8: | |
| 10891 | ✗ | DataProducts::dpWriter.cmdIn_handlerBase( | |
| 10892 | 0, | ||
| 10893 | opCode, | ||
| 10894 | cmdSeq, | ||
| 10895 | args | ||
| 10896 | ); | ||
| 10897 | ✗ | break; | |
| 10898 | ✗ | case 9: | |
| 10899 | ✗ | FileHandling::fileDownlink.cmdIn_handlerBase( | |
| 10900 | 0, | ||
| 10901 | opCode, | ||
| 10902 | cmdSeq, | ||
| 10903 | args | ||
| 10904 | ); | ||
| 10905 | ✗ | break; | |
| 10906 | 1 | case 10: | |
| 10907 | 1 | FileHandling::fileManager.cmdIn_handlerBase( | |
| 10908 | 0, | ||
| 10909 | opCode, | ||
| 10910 | cmdSeq, | ||
| 10911 | args | ||
| 10912 | ); | ||
| 10913 | 1 | break; | |
| 10914 | 4 | case 11: | |
| 10915 | 4 | FileHandling::prmDb.CmdDisp_handlerBase( | |
| 10916 | 0, | ||
| 10917 | opCode, | ||
| 10918 | cmdSeq, | ||
| 10919 | args | ||
| 10920 | ); | ||
| 10921 | 4 | break; | |
| 10922 | ✗ | case 12: | |
| 10923 | ✗ | Ref::SG1.cmdIn_handlerBase( | |
| 10924 | 0, | ||
| 10925 | opCode, | ||
| 10926 | cmdSeq, | ||
| 10927 | args | ||
| 10928 | ); | ||
| 10929 | ✗ | break; | |
| 10930 | ✗ | case 13: | |
| 10931 | ✗ | Ref::SG2.cmdIn_handlerBase( | |
| 10932 | 0, | ||
| 10933 | opCode, | ||
| 10934 | cmdSeq, | ||
| 10935 | args | ||
| 10936 | ); | ||
| 10937 | ✗ | break; | |
| 10938 | ✗ | case 14: | |
| 10939 | ✗ | Ref::SG3.cmdIn_handlerBase( | |
| 10940 | 0, | ||
| 10941 | opCode, | ||
| 10942 | cmdSeq, | ||
| 10943 | args | ||
| 10944 | ); | ||
| 10945 | ✗ | break; | |
| 10946 | 3 | case 15: | |
| 10947 | 3 | Ref::SG4.cmdIn_handlerBase( | |
| 10948 | 0, | ||
| 10949 | opCode, | ||
| 10950 | cmdSeq, | ||
| 10951 | args | ||
| 10952 | ); | ||
| 10953 | 3 | break; | |
| 10954 | ✗ | case 16: | |
| 10955 | ✗ | Ref::SG5.cmdIn_handlerBase( | |
| 10956 | 0, | ||
| 10957 | opCode, | ||
| 10958 | cmdSeq, | ||
| 10959 | args | ||
| 10960 | ); | ||
| 10961 | ✗ | break; | |
| 10962 | 2 | case 17: | |
| 10963 | 2 | Ref::cmdSeq.cmdIn_handlerBase( | |
| 10964 | 0, | ||
| 10965 | opCode, | ||
| 10966 | cmdSeq, | ||
| 10967 | args | ||
| 10968 | ); | ||
| 10969 | 2 | break; | |
| 10970 | 5 | case 18: | |
| 10971 | 5 | Ref::dpDemo.cmdIn_handlerBase( | |
| 10972 | 0, | ||
| 10973 | opCode, | ||
| 10974 | cmdSeq, | ||
| 10975 | args | ||
| 10976 | ); | ||
| 10977 | 5 | break; | |
| 10978 | ✗ | case 19: | |
| 10979 | ✗ | Ref::pingRcvr.CmdDisp_handlerBase( | |
| 10980 | 0, | ||
| 10981 | opCode, | ||
| 10982 | cmdSeq, | ||
| 10983 | args | ||
| 10984 | ); | ||
| 10985 | ✗ | break; | |
| 10986 | 6 | case 20: | |
| 10987 | 6 | Ref::recvBuffComp.CmdDisp_handlerBase( | |
| 10988 | 0, | ||
| 10989 | opCode, | ||
| 10990 | cmdSeq, | ||
| 10991 | args | ||
| 10992 | ); | ||
| 10993 | 6 | break; | |
| 10994 | 6 | case 21: | |
| 10995 | 6 | Ref::sendBuffComp.CmdDisp_handlerBase( | |
| 10996 | 0, | ||
| 10997 | opCode, | ||
| 10998 | cmdSeq, | ||
| 10999 | args | ||
| 11000 | ); | ||
| 11001 | 6 | break; | |
| 11002 | ✗ | case 22: | |
| 11003 | ✗ | Ref::systemResources.CmdDisp_handlerBase( | |
| 11004 | 0, | ||
| 11005 | opCode, | ||
| 11006 | cmdSeq, | ||
| 11007 | args | ||
| 11008 | ); | ||
| 11009 | ✗ | break; | |
| 11010 | 3 | case 23: | |
| 11011 | 3 | Ref::typeDemo.cmdIn_handlerBase( | |
| 11012 | 0, | ||
| 11013 | opCode, | ||
| 11014 | cmdSeq, | ||
| 11015 | args | ||
| 11016 | ); | ||
| 11017 | 3 | break; | |
| 11018 | ✗ | case 24: | |
| 11019 | ✗ | Ref::wasmSeq.cmdIn_handlerBase( | |
| 11020 | 0, | ||
| 11021 | opCode, | ||
| 11022 | cmdSeq, | ||
| 11023 | args | ||
| 11024 | ); | ||
| 11025 | ✗ | break; | |
| 11026 | ✗ | default: | |
| 11027 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11028 | ✗ | break; | |
| 11029 | } | ||
| 11030 | 161 | } | |
| 11031 | |||
| 11032 | 66 | void CommandDispatcherComponentBase::pingOut_out( | |
| 11033 | FwIndexType portNum, | ||
| 11034 | U32 key | ||
| 11035 | ) const { | ||
| 11036 | 66 | FW_ASSERT( | |
| 11037 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 11038 | static_cast<FwAssertArgType>(portNum), | ||
| 11039 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 11040 | ); | ||
| 11041 |
1/2✓ Branch 0 taken 66 times.
✗ Branch 1 not taken.
|
66 | switch (portNum) { |
| 11042 | 66 | case 0: | |
| 11043 | 66 | CdhCore::health.PingReturn_handlerBase( | |
| 11044 | 0, | ||
| 11045 | key | ||
| 11046 | ); | ||
| 11047 | 66 | break; | |
| 11048 | ✗ | default: | |
| 11049 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11050 | ✗ | break; | |
| 11051 | } | ||
| 11052 | 66 | } | |
| 11053 | |||
| 11054 | 161 | void CommandDispatcherComponentBase::seqCmdStatus_out( | |
| 11055 | FwIndexType portNum, | ||
| 11056 | FwOpcodeType opCode, | ||
| 11057 | U32 cmdSeq, | ||
| 11058 | const Fw::CmdResponse& response | ||
| 11059 | ) const { | ||
| 11060 | 161 | FW_ASSERT( | |
| 11061 | (0 <= portNum) && (portNum < NUM_SEQCMDSTATUS_OUTPUT_PORTS), | ||
| 11062 | static_cast<FwAssertArgType>(portNum), | ||
| 11063 | static_cast<FwAssertArgType>(NUM_SEQCMDSTATUS_OUTPUT_PORTS) | ||
| 11064 | ); | ||
| 11065 |
2/4✓ Branch 0 taken 156 times.
✓ Branch 1 taken 5 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
|
161 | switch (portNum) { |
| 11066 | 156 | case 0: | |
| 11067 | 156 | ComCcsds::fprimeRouter.cmdResponseIn_handlerBase( | |
| 11068 | 0, | ||
| 11069 | opCode, | ||
| 11070 | cmdSeq, | ||
| 11071 | response | ||
| 11072 | ); | ||
| 11073 | 156 | break; | |
| 11074 | 5 | case 1: | |
| 11075 | 5 | Ref::cmdSeq.cmdResponseIn_handlerBase( | |
| 11076 | 0, | ||
| 11077 | opCode, | ||
| 11078 | cmdSeq, | ||
| 11079 | response | ||
| 11080 | ); | ||
| 11081 | 5 | break; | |
| 11082 | ✗ | case 2: | |
| 11083 | ✗ | Ref::wasmSeq.cmdResponseIn_handlerBase( | |
| 11084 | 0, | ||
| 11085 | opCode, | ||
| 11086 | cmdSeq, | ||
| 11087 | response | ||
| 11088 | ); | ||
| 11089 | ✗ | break; | |
| 11090 | ✗ | default: | |
| 11091 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11092 | ✗ | break; | |
| 11093 | } | ||
| 11094 | 161 | } | |
| 11095 | |||
| 11096 | } | ||
| 11097 | |||
| 11098 | namespace Svc { | ||
| 11099 | |||
| 11100 | 1 | bool DpCatalogComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const { | |
| 11101 | 1 | FW_ASSERT( | |
| 11102 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 11103 | static_cast<FwAssertArgType>(portNum), | ||
| 11104 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 11105 | ); | ||
| 11106 | 1 | bool result = false; | |
| 11107 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 11108 | 1 | case 0: | |
| 11109 | 1 | result = true; | |
| 11110 | 1 | break; | |
| 11111 | ✗ | default: | |
| 11112 | ✗ | break; | |
| 11113 | } | ||
| 11114 | 1 | return result; | |
| 11115 | } | ||
| 11116 | |||
| 11117 | 8 | bool DpCatalogComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const { | |
| 11118 | 8 | FW_ASSERT( | |
| 11119 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 11120 | static_cast<FwAssertArgType>(portNum), | ||
| 11121 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 11122 | ); | ||
| 11123 | 8 | bool result = false; | |
| 11124 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | switch (portNum) { |
| 11125 | 8 | case 0: | |
| 11126 | 8 | result = true; | |
| 11127 | 8 | break; | |
| 11128 | ✗ | default: | |
| 11129 | ✗ | break; | |
| 11130 | } | ||
| 11131 | 8 | return result; | |
| 11132 | } | ||
| 11133 | |||
| 11134 | 49 | bool DpCatalogComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 11135 | 49 | FW_ASSERT( | |
| 11136 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 11137 | static_cast<FwAssertArgType>(portNum), | ||
| 11138 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 11139 | ); | ||
| 11140 | 49 | bool result = false; | |
| 11141 |
1/2✓ Branch 0 taken 49 times.
✗ Branch 1 not taken.
|
49 | switch (portNum) { |
| 11142 | 49 | case 0: | |
| 11143 | 49 | result = true; | |
| 11144 | 49 | break; | |
| 11145 | ✗ | default: | |
| 11146 | ✗ | break; | |
| 11147 | } | ||
| 11148 | 49 | return result; | |
| 11149 | } | ||
| 11150 | |||
| 11151 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 11152 | |||
| 11153 | 49 | bool DpCatalogComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 11154 | 49 | FW_ASSERT( | |
| 11155 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 11156 | static_cast<FwAssertArgType>(portNum), | ||
| 11157 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 11158 | ); | ||
| 11159 | 49 | bool result = false; | |
| 11160 |
1/2✓ Branch 0 taken 49 times.
✗ Branch 1 not taken.
|
49 | switch (portNum) { |
| 11161 | 49 | case 0: | |
| 11162 | 49 | result = true; | |
| 11163 | 49 | break; | |
| 11164 | ✗ | default: | |
| 11165 | ✗ | break; | |
| 11166 | } | ||
| 11167 | 49 | return result; | |
| 11168 | } | ||
| 11169 | |||
| 11170 | #endif | ||
| 11171 | |||
| 11172 | 49 | bool DpCatalogComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 11173 | 49 | FW_ASSERT( | |
| 11174 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 11175 | static_cast<FwAssertArgType>(portNum), | ||
| 11176 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 11177 | ); | ||
| 11178 | 49 | bool result = false; | |
| 11179 |
1/2✓ Branch 0 taken 49 times.
✗ Branch 1 not taken.
|
49 | switch (portNum) { |
| 11180 | 49 | case 0: | |
| 11181 | 49 | result = true; | |
| 11182 | 49 | break; | |
| 11183 | ✗ | default: | |
| 11184 | ✗ | break; | |
| 11185 | } | ||
| 11186 | 49 | return result; | |
| 11187 | } | ||
| 11188 | |||
| 11189 | ✗ | bool DpCatalogComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const { | |
| 11190 | ✗ | FW_ASSERT( | |
| 11191 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 11192 | static_cast<FwAssertArgType>(portNum), | ||
| 11193 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 11194 | ); | ||
| 11195 | ✗ | bool result = false; | |
| 11196 | ✗ | switch (portNum) { | |
| 11197 | ✗ | case 0: | |
| 11198 | ✗ | result = true; | |
| 11199 | ✗ | break; | |
| 11200 | ✗ | default: | |
| 11201 | ✗ | break; | |
| 11202 | } | ||
| 11203 | ✗ | return result; | |
| 11204 | } | ||
| 11205 | |||
| 11206 | ✗ | bool DpCatalogComponentBase::isConnected_fileOut_OutputPort(FwIndexType portNum) const { | |
| 11207 | ✗ | FW_ASSERT( | |
| 11208 | (0 <= portNum) && (portNum < NUM_FILEOUT_OUTPUT_PORTS), | ||
| 11209 | static_cast<FwAssertArgType>(portNum), | ||
| 11210 | static_cast<FwAssertArgType>(NUM_FILEOUT_OUTPUT_PORTS) | ||
| 11211 | ); | ||
| 11212 | ✗ | bool result = false; | |
| 11213 | ✗ | switch (portNum) { | |
| 11214 | ✗ | case 0: | |
| 11215 | ✗ | result = true; | |
| 11216 | ✗ | break; | |
| 11217 | ✗ | default: | |
| 11218 | ✗ | break; | |
| 11219 | } | ||
| 11220 | ✗ | return result; | |
| 11221 | } | ||
| 11222 | |||
| 11223 | ✗ | bool DpCatalogComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const { | |
| 11224 | ✗ | FW_ASSERT( | |
| 11225 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 11226 | static_cast<FwAssertArgType>(portNum), | ||
| 11227 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 11228 | ); | ||
| 11229 | ✗ | bool result = false; | |
| 11230 | ✗ | switch (portNum) { | |
| 11231 | ✗ | case 0: | |
| 11232 | ✗ | result = true; | |
| 11233 | ✗ | break; | |
| 11234 | ✗ | default: | |
| 11235 | ✗ | break; | |
| 11236 | } | ||
| 11237 | ✗ | return result; | |
| 11238 | } | ||
| 11239 | |||
| 11240 | 6 | void DpCatalogComponentBase::CmdReg_out( | |
| 11241 | FwIndexType portNum, | ||
| 11242 | FwOpcodeType opCode | ||
| 11243 | ) const { | ||
| 11244 | 6 | FW_ASSERT( | |
| 11245 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 11246 | static_cast<FwAssertArgType>(portNum), | ||
| 11247 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 11248 | ); | ||
| 11249 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 11250 | 6 | case 0: | |
| 11251 | 6 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 11252 | 6, | ||
| 11253 | opCode | ||
| 11254 | ); | ||
| 11255 | 6 | break; | |
| 11256 | ✗ | default: | |
| 11257 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11258 | ✗ | break; | |
| 11259 | } | ||
| 11260 | 6 | } | |
| 11261 | |||
| 11262 | 8 | void DpCatalogComponentBase::CmdStatus_out( | |
| 11263 | FwIndexType portNum, | ||
| 11264 | FwOpcodeType opCode, | ||
| 11265 | U32 cmdSeq, | ||
| 11266 | const Fw::CmdResponse& response | ||
| 11267 | ) const { | ||
| 11268 | 8 | FW_ASSERT( | |
| 11269 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 11270 | static_cast<FwAssertArgType>(portNum), | ||
| 11271 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 11272 | ); | ||
| 11273 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | switch (portNum) { |
| 11274 | 8 | case 0: | |
| 11275 | 8 | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 11276 | 0, | ||
| 11277 | opCode, | ||
| 11278 | cmdSeq, | ||
| 11279 | response | ||
| 11280 | ); | ||
| 11281 | 8 | break; | |
| 11282 | ✗ | default: | |
| 11283 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11284 | ✗ | break; | |
| 11285 | } | ||
| 11286 | 8 | } | |
| 11287 | |||
| 11288 | 49 | void DpCatalogComponentBase::Log_out( | |
| 11289 | FwIndexType portNum, | ||
| 11290 | FwEventIdType id, | ||
| 11291 | Fw::Time& timeTag, | ||
| 11292 | const Fw::LogSeverity& severity, | ||
| 11293 | Fw::LogBuffer& args | ||
| 11294 | ) const { | ||
| 11295 | 49 | FW_ASSERT( | |
| 11296 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 11297 | static_cast<FwAssertArgType>(portNum), | ||
| 11298 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 11299 | ); | ||
| 11300 |
1/2✓ Branch 0 taken 49 times.
✗ Branch 1 not taken.
|
49 | switch (portNum) { |
| 11301 | 49 | case 0: | |
| 11302 | 49 | CdhCore::events.LogRecv_handlerBase( | |
| 11303 | 0, | ||
| 11304 | id, | ||
| 11305 | timeTag, | ||
| 11306 | severity, | ||
| 11307 | args | ||
| 11308 | ); | ||
| 11309 | 49 | break; | |
| 11310 | ✗ | default: | |
| 11311 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11312 | ✗ | break; | |
| 11313 | } | ||
| 11314 | 49 | } | |
| 11315 | |||
| 11316 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 11317 | |||
| 11318 | 49 | void DpCatalogComponentBase::LogText_out( | |
| 11319 | FwIndexType portNum, | ||
| 11320 | FwEventIdType id, | ||
| 11321 | Fw::Time& timeTag, | ||
| 11322 | const Fw::LogSeverity& severity, | ||
| 11323 | Fw::TextLogString& text | ||
| 11324 | ) const { | ||
| 11325 | 49 | FW_ASSERT( | |
| 11326 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 11327 | static_cast<FwAssertArgType>(portNum), | ||
| 11328 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 11329 | ); | ||
| 11330 |
1/2✓ Branch 0 taken 49 times.
✗ Branch 1 not taken.
|
49 | switch (portNum) { |
| 11331 | 49 | case 0: | |
| 11332 | 49 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 11333 | 0, | ||
| 11334 | id, | ||
| 11335 | timeTag, | ||
| 11336 | severity, | ||
| 11337 | text | ||
| 11338 | ); | ||
| 11339 | 49 | break; | |
| 11340 | ✗ | default: | |
| 11341 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11342 | ✗ | break; | |
| 11343 | } | ||
| 11344 | 49 | } | |
| 11345 | |||
| 11346 | #endif | ||
| 11347 | |||
| 11348 | 49 | void DpCatalogComponentBase::Time_out( | |
| 11349 | FwIndexType portNum, | ||
| 11350 | Fw::Time& time | ||
| 11351 | ) const { | ||
| 11352 | 49 | FW_ASSERT( | |
| 11353 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 11354 | static_cast<FwAssertArgType>(portNum), | ||
| 11355 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 11356 | ); | ||
| 11357 |
1/2✓ Branch 0 taken 49 times.
✗ Branch 1 not taken.
|
49 | switch (portNum) { |
| 11358 | 49 | case 0: | |
| 11359 | 49 | Ref::posixTime.timeGetPort_handlerBase( | |
| 11360 | 0, | ||
| 11361 | time | ||
| 11362 | ); | ||
| 11363 | 49 | break; | |
| 11364 | ✗ | default: | |
| 11365 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11366 | ✗ | break; | |
| 11367 | } | ||
| 11368 | 49 | } | |
| 11369 | |||
| 11370 | ✗ | void DpCatalogComponentBase::Tlm_out( | |
| 11371 | FwIndexType portNum, | ||
| 11372 | FwChanIdType id, | ||
| 11373 | Fw::Time& timeTag, | ||
| 11374 | Fw::TlmBuffer& val | ||
| 11375 | ) const { | ||
| 11376 | ✗ | FW_ASSERT( | |
| 11377 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 11378 | static_cast<FwAssertArgType>(portNum), | ||
| 11379 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 11380 | ); | ||
| 11381 | ✗ | switch (portNum) { | |
| 11382 | ✗ | case 0: | |
| 11383 | ✗ | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 11384 | 0, | ||
| 11385 | id, | ||
| 11386 | timeTag, | ||
| 11387 | val | ||
| 11388 | ); | ||
| 11389 | ✗ | break; | |
| 11390 | ✗ | default: | |
| 11391 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11392 | ✗ | break; | |
| 11393 | } | ||
| 11394 | ✗ | } | |
| 11395 | |||
| 11396 | 5 | Svc::SendFileResponse DpCatalogComponentBase::fileOut_out( | |
| 11397 | FwIndexType portNum, | ||
| 11398 | const Fw::StringBase& sourceFileName, | ||
| 11399 | const Fw::StringBase& destFileName, | ||
| 11400 | U32 offset, | ||
| 11401 | U32 length | ||
| 11402 | ) const { | ||
| 11403 | 5 | FW_ASSERT( | |
| 11404 | (0 <= portNum) && (portNum < NUM_FILEOUT_OUTPUT_PORTS), | ||
| 11405 | static_cast<FwAssertArgType>(portNum), | ||
| 11406 | static_cast<FwAssertArgType>(NUM_FILEOUT_OUTPUT_PORTS) | ||
| 11407 | ); | ||
| 11408 | 5 | Svc::SendFileResponse _result = {}; | |
| 11409 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 11410 | 5 | case 0: | |
| 11411 |
1/1✓ Branch 1 taken 5 times.
|
10 | _result = FileHandling::fileDownlink.SendFile_handlerBase( |
| 11412 | 0, | ||
| 11413 | sourceFileName, | ||
| 11414 | destFileName, | ||
| 11415 | offset, | ||
| 11416 | length | ||
| 11417 |
1/1✓ Branch 1 taken 5 times.
|
5 | ); |
| 11418 | 5 | break; | |
| 11419 | ✗ | default: | |
| 11420 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11421 | ✗ | break; | |
| 11422 | } | ||
| 11423 | 5 | return _result; | |
| 11424 | ✗ | } | |
| 11425 | |||
| 11426 | 66 | void DpCatalogComponentBase::pingOut_out( | |
| 11427 | FwIndexType portNum, | ||
| 11428 | U32 key | ||
| 11429 | ) const { | ||
| 11430 | 66 | FW_ASSERT( | |
| 11431 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 11432 | static_cast<FwAssertArgType>(portNum), | ||
| 11433 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 11434 | ); | ||
| 11435 |
1/2✓ Branch 0 taken 66 times.
✗ Branch 1 not taken.
|
66 | switch (portNum) { |
| 11436 | 66 | case 0: | |
| 11437 | 66 | CdhCore::health.PingReturn_handlerBase( | |
| 11438 | 4, | ||
| 11439 | key | ||
| 11440 | ); | ||
| 11441 | 66 | break; | |
| 11442 | ✗ | default: | |
| 11443 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11444 | ✗ | break; | |
| 11445 | } | ||
| 11446 | 66 | } | |
| 11447 | |||
| 11448 | } | ||
| 11449 | |||
| 11450 | namespace Svc { | ||
| 11451 | |||
| 11452 | ✗ | bool DpManagerComponentBase::isConnected_bufferGetOut_OutputPort(FwIndexType portNum) const { | |
| 11453 | ✗ | FW_ASSERT( | |
| 11454 | (0 <= portNum) && (portNum < NUM_BUFFERGETOUT_OUTPUT_PORTS), | ||
| 11455 | static_cast<FwAssertArgType>(portNum), | ||
| 11456 | static_cast<FwAssertArgType>(NUM_BUFFERGETOUT_OUTPUT_PORTS) | ||
| 11457 | ); | ||
| 11458 | ✗ | bool result = false; | |
| 11459 | ✗ | switch (portNum) { | |
| 11460 | ✗ | case 0: | |
| 11461 | ✗ | result = true; | |
| 11462 | ✗ | break; | |
| 11463 | ✗ | default: | |
| 11464 | ✗ | break; | |
| 11465 | } | ||
| 11466 | ✗ | return result; | |
| 11467 | } | ||
| 11468 | |||
| 11469 | 1 | bool DpManagerComponentBase::isConnected_cmdRegIn_OutputPort(FwIndexType portNum) const { | |
| 11470 | 1 | FW_ASSERT( | |
| 11471 | (0 <= portNum) && (portNum < NUM_CMDREGIN_OUTPUT_PORTS), | ||
| 11472 | static_cast<FwAssertArgType>(portNum), | ||
| 11473 | static_cast<FwAssertArgType>(NUM_CMDREGIN_OUTPUT_PORTS) | ||
| 11474 | ); | ||
| 11475 | 1 | bool result = false; | |
| 11476 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 11477 | 1 | case 0: | |
| 11478 | 1 | result = true; | |
| 11479 | 1 | break; | |
| 11480 | ✗ | default: | |
| 11481 | ✗ | break; | |
| 11482 | } | ||
| 11483 | 1 | return result; | |
| 11484 | } | ||
| 11485 | |||
| 11486 | ✗ | bool DpManagerComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const { | |
| 11487 | ✗ | FW_ASSERT( | |
| 11488 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 11489 | static_cast<FwAssertArgType>(portNum), | ||
| 11490 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 11491 | ); | ||
| 11492 | ✗ | bool result = false; | |
| 11493 | ✗ | switch (portNum) { | |
| 11494 | ✗ | case 0: | |
| 11495 | ✗ | result = true; | |
| 11496 | ✗ | break; | |
| 11497 | ✗ | default: | |
| 11498 | ✗ | break; | |
| 11499 | } | ||
| 11500 | ✗ | return result; | |
| 11501 | } | ||
| 11502 | |||
| 11503 | ✗ | bool DpManagerComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const { | |
| 11504 | ✗ | FW_ASSERT( | |
| 11505 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 11506 | static_cast<FwAssertArgType>(portNum), | ||
| 11507 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 11508 | ); | ||
| 11509 | ✗ | bool result = false; | |
| 11510 | ✗ | switch (portNum) { | |
| 11511 | ✗ | case 0: | |
| 11512 | ✗ | result = true; | |
| 11513 | ✗ | break; | |
| 11514 | ✗ | default: | |
| 11515 | ✗ | break; | |
| 11516 | } | ||
| 11517 | ✗ | return result; | |
| 11518 | } | ||
| 11519 | |||
| 11520 | ✗ | bool DpManagerComponentBase::isConnected_productResponseOut_OutputPort(FwIndexType portNum) const { | |
| 11521 | ✗ | FW_ASSERT( | |
| 11522 | (0 <= portNum) && (portNum < NUM_PRODUCTRESPONSEOUT_OUTPUT_PORTS), | ||
| 11523 | static_cast<FwAssertArgType>(portNum), | ||
| 11524 | static_cast<FwAssertArgType>(NUM_PRODUCTRESPONSEOUT_OUTPUT_PORTS) | ||
| 11525 | ); | ||
| 11526 | ✗ | bool result = false; | |
| 11527 | ✗ | switch (portNum) { | |
| 11528 | ✗ | case 0: | |
| 11529 | ✗ | result = true; | |
| 11530 | ✗ | break; | |
| 11531 | ✗ | case 1: | |
| 11532 | ✗ | result = true; | |
| 11533 | ✗ | break; | |
| 11534 | ✗ | default: | |
| 11535 | ✗ | break; | |
| 11536 | } | ||
| 11537 | ✗ | return result; | |
| 11538 | } | ||
| 11539 | |||
| 11540 | ✗ | bool DpManagerComponentBase::isConnected_productSendOut_OutputPort(FwIndexType portNum) const { | |
| 11541 | ✗ | FW_ASSERT( | |
| 11542 | (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS), | ||
| 11543 | static_cast<FwAssertArgType>(portNum), | ||
| 11544 | static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS) | ||
| 11545 | ); | ||
| 11546 | ✗ | bool result = false; | |
| 11547 | ✗ | switch (portNum) { | |
| 11548 | ✗ | case 0: | |
| 11549 | ✗ | result = true; | |
| 11550 | ✗ | break; | |
| 11551 | ✗ | default: | |
| 11552 | ✗ | break; | |
| 11553 | } | ||
| 11554 | ✗ | return result; | |
| 11555 | } | ||
| 11556 | |||
| 11557 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 11558 | |||
| 11559 | ✗ | bool DpManagerComponentBase::isConnected_textEventOut_OutputPort(FwIndexType portNum) const { | |
| 11560 | ✗ | FW_ASSERT( | |
| 11561 | (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS), | ||
| 11562 | static_cast<FwAssertArgType>(portNum), | ||
| 11563 | static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS) | ||
| 11564 | ); | ||
| 11565 | ✗ | bool result = false; | |
| 11566 | ✗ | switch (portNum) { | |
| 11567 | ✗ | case 0: | |
| 11568 | ✗ | result = true; | |
| 11569 | ✗ | break; | |
| 11570 | ✗ | default: | |
| 11571 | ✗ | break; | |
| 11572 | } | ||
| 11573 | ✗ | return result; | |
| 11574 | } | ||
| 11575 | |||
| 11576 | #endif | ||
| 11577 | |||
| 11578 | 13 | bool DpManagerComponentBase::isConnected_timeGetOut_OutputPort(FwIndexType portNum) const { | |
| 11579 | 13 | FW_ASSERT( | |
| 11580 | (0 <= portNum) && (portNum < NUM_TIMEGETOUT_OUTPUT_PORTS), | ||
| 11581 | static_cast<FwAssertArgType>(portNum), | ||
| 11582 | static_cast<FwAssertArgType>(NUM_TIMEGETOUT_OUTPUT_PORTS) | ||
| 11583 | ); | ||
| 11584 | 13 | bool result = false; | |
| 11585 |
1/2✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
|
13 | switch (portNum) { |
| 11586 | 13 | case 0: | |
| 11587 | 13 | result = true; | |
| 11588 | 13 | break; | |
| 11589 | ✗ | default: | |
| 11590 | ✗ | break; | |
| 11591 | } | ||
| 11592 | 13 | return result; | |
| 11593 | } | ||
| 11594 | |||
| 11595 | 26 | bool DpManagerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 11596 | 26 | FW_ASSERT( | |
| 11597 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 11598 | static_cast<FwAssertArgType>(portNum), | ||
| 11599 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 11600 | ); | ||
| 11601 | 26 | bool result = false; | |
| 11602 |
1/2✓ Branch 0 taken 26 times.
✗ Branch 1 not taken.
|
26 | switch (portNum) { |
| 11603 | 26 | case 0: | |
| 11604 | 26 | result = true; | |
| 11605 | 26 | break; | |
| 11606 | ✗ | default: | |
| 11607 | ✗ | break; | |
| 11608 | } | ||
| 11609 | 26 | return result; | |
| 11610 | } | ||
| 11611 | |||
| 11612 | 5 | Fw::Buffer DpManagerComponentBase::bufferGetOut_out( | |
| 11613 | FwIndexType portNum, | ||
| 11614 | FwSizeType size | ||
| 11615 | ) const { | ||
| 11616 | 5 | FW_ASSERT( | |
| 11617 | (0 <= portNum) && (portNum < NUM_BUFFERGETOUT_OUTPUT_PORTS), | ||
| 11618 | static_cast<FwAssertArgType>(portNum), | ||
| 11619 | static_cast<FwAssertArgType>(NUM_BUFFERGETOUT_OUTPUT_PORTS) | ||
| 11620 | ); | ||
| 11621 | 5 | Fw::Buffer _result = {}; | |
| 11622 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 11623 | 5 | case 0: | |
| 11624 |
1/1✓ Branch 1 taken 5 times.
|
10 | _result = DataProducts::dpBufferManager.bufferGetCallee_handlerBase( |
| 11625 | 0, | ||
| 11626 | size | ||
| 11627 |
1/1✓ Branch 1 taken 5 times.
|
5 | ); |
| 11628 | 5 | break; | |
| 11629 | ✗ | default: | |
| 11630 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11631 | ✗ | break; | |
| 11632 | } | ||
| 11633 | 5 | return _result; | |
| 11634 | ✗ | } | |
| 11635 | |||
| 11636 | 1 | void DpManagerComponentBase::cmdRegIn_out( | |
| 11637 | FwIndexType portNum, | ||
| 11638 | FwOpcodeType opCode | ||
| 11639 | ) const { | ||
| 11640 | 1 | FW_ASSERT( | |
| 11641 | (0 <= portNum) && (portNum < NUM_CMDREGIN_OUTPUT_PORTS), | ||
| 11642 | static_cast<FwAssertArgType>(portNum), | ||
| 11643 | static_cast<FwAssertArgType>(NUM_CMDREGIN_OUTPUT_PORTS) | ||
| 11644 | ); | ||
| 11645 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 11646 | 1 | case 0: | |
| 11647 | 1 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 11648 | 7, | ||
| 11649 | opCode | ||
| 11650 | ); | ||
| 11651 | 1 | break; | |
| 11652 | ✗ | default: | |
| 11653 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11654 | ✗ | break; | |
| 11655 | } | ||
| 11656 | 1 | } | |
| 11657 | |||
| 11658 | ✗ | void DpManagerComponentBase::cmdResponseOut_out( | |
| 11659 | FwIndexType portNum, | ||
| 11660 | FwOpcodeType opCode, | ||
| 11661 | U32 cmdSeq, | ||
| 11662 | const Fw::CmdResponse& response | ||
| 11663 | ) const { | ||
| 11664 | ✗ | FW_ASSERT( | |
| 11665 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 11666 | static_cast<FwAssertArgType>(portNum), | ||
| 11667 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 11668 | ); | ||
| 11669 | ✗ | switch (portNum) { | |
| 11670 | ✗ | case 0: | |
| 11671 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 11672 | 0, | ||
| 11673 | opCode, | ||
| 11674 | cmdSeq, | ||
| 11675 | response | ||
| 11676 | ); | ||
| 11677 | ✗ | break; | |
| 11678 | ✗ | default: | |
| 11679 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11680 | ✗ | break; | |
| 11681 | } | ||
| 11682 | ✗ | } | |
| 11683 | |||
| 11684 | ✗ | void DpManagerComponentBase::eventOut_out( | |
| 11685 | FwIndexType portNum, | ||
| 11686 | FwEventIdType id, | ||
| 11687 | Fw::Time& timeTag, | ||
| 11688 | const Fw::LogSeverity& severity, | ||
| 11689 | Fw::LogBuffer& args | ||
| 11690 | ) const { | ||
| 11691 | ✗ | FW_ASSERT( | |
| 11692 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 11693 | static_cast<FwAssertArgType>(portNum), | ||
| 11694 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 11695 | ); | ||
| 11696 | ✗ | switch (portNum) { | |
| 11697 | ✗ | case 0: | |
| 11698 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 11699 | 0, | ||
| 11700 | id, | ||
| 11701 | timeTag, | ||
| 11702 | severity, | ||
| 11703 | args | ||
| 11704 | ); | ||
| 11705 | ✗ | break; | |
| 11706 | ✗ | default: | |
| 11707 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11708 | ✗ | break; | |
| 11709 | } | ||
| 11710 | ✗ | } | |
| 11711 | |||
| 11712 | ✗ | void DpManagerComponentBase::productResponseOut_out( | |
| 11713 | FwIndexType portNum, | ||
| 11714 | FwDpIdType id, | ||
| 11715 | const Fw::Buffer& buffer, | ||
| 11716 | const Fw::Success& status | ||
| 11717 | ) const { | ||
| 11718 | ✗ | FW_ASSERT( | |
| 11719 | (0 <= portNum) && (portNum < NUM_PRODUCTRESPONSEOUT_OUTPUT_PORTS), | ||
| 11720 | static_cast<FwAssertArgType>(portNum), | ||
| 11721 | static_cast<FwAssertArgType>(NUM_PRODUCTRESPONSEOUT_OUTPUT_PORTS) | ||
| 11722 | ); | ||
| 11723 | ✗ | switch (portNum) { | |
| 11724 | ✗ | case 0: | |
| 11725 | ✗ | Ref::SG1.productRecvIn_handlerBase( | |
| 11726 | 0, | ||
| 11727 | id, | ||
| 11728 | buffer, | ||
| 11729 | status | ||
| 11730 | ); | ||
| 11731 | ✗ | break; | |
| 11732 | ✗ | case 1: | |
| 11733 | ✗ | Ref::dpDemo.productRecvIn_handlerBase( | |
| 11734 | 0, | ||
| 11735 | id, | ||
| 11736 | buffer, | ||
| 11737 | status | ||
| 11738 | ); | ||
| 11739 | ✗ | break; | |
| 11740 | ✗ | default: | |
| 11741 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11742 | ✗ | break; | |
| 11743 | } | ||
| 11744 | ✗ | } | |
| 11745 | |||
| 11746 | 5 | void DpManagerComponentBase::productSendOut_out( | |
| 11747 | FwIndexType portNum, | ||
| 11748 | Fw::Buffer& fwBuffer | ||
| 11749 | ) const { | ||
| 11750 | 5 | FW_ASSERT( | |
| 11751 | (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS), | ||
| 11752 | static_cast<FwAssertArgType>(portNum), | ||
| 11753 | static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS) | ||
| 11754 | ); | ||
| 11755 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 11756 | 5 | case 0: | |
| 11757 | 5 | DataProducts::dpBufferAccumulator.bufferSendInFill_handlerBase( | |
| 11758 | 0, | ||
| 11759 | fwBuffer | ||
| 11760 | ); | ||
| 11761 | 5 | break; | |
| 11762 | ✗ | default: | |
| 11763 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11764 | ✗ | break; | |
| 11765 | } | ||
| 11766 | 5 | } | |
| 11767 | |||
| 11768 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 11769 | |||
| 11770 | ✗ | void DpManagerComponentBase::textEventOut_out( | |
| 11771 | FwIndexType portNum, | ||
| 11772 | FwEventIdType id, | ||
| 11773 | Fw::Time& timeTag, | ||
| 11774 | const Fw::LogSeverity& severity, | ||
| 11775 | Fw::TextLogString& text | ||
| 11776 | ) const { | ||
| 11777 | ✗ | FW_ASSERT( | |
| 11778 | (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS), | ||
| 11779 | static_cast<FwAssertArgType>(portNum), | ||
| 11780 | static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS) | ||
| 11781 | ); | ||
| 11782 | ✗ | switch (portNum) { | |
| 11783 | ✗ | case 0: | |
| 11784 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 11785 | 0, | ||
| 11786 | id, | ||
| 11787 | timeTag, | ||
| 11788 | severity, | ||
| 11789 | text | ||
| 11790 | ); | ||
| 11791 | ✗ | break; | |
| 11792 | ✗ | default: | |
| 11793 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11794 | ✗ | break; | |
| 11795 | } | ||
| 11796 | ✗ | } | |
| 11797 | |||
| 11798 | #endif | ||
| 11799 | |||
| 11800 | 13 | void DpManagerComponentBase::timeGetOut_out( | |
| 11801 | FwIndexType portNum, | ||
| 11802 | Fw::Time& time | ||
| 11803 | ) const { | ||
| 11804 | 13 | FW_ASSERT( | |
| 11805 | (0 <= portNum) && (portNum < NUM_TIMEGETOUT_OUTPUT_PORTS), | ||
| 11806 | static_cast<FwAssertArgType>(portNum), | ||
| 11807 | static_cast<FwAssertArgType>(NUM_TIMEGETOUT_OUTPUT_PORTS) | ||
| 11808 | ); | ||
| 11809 |
1/2✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
|
13 | switch (portNum) { |
| 11810 | 13 | case 0: | |
| 11811 | 13 | Ref::posixTime.timeGetPort_handlerBase( | |
| 11812 | 0, | ||
| 11813 | time | ||
| 11814 | ); | ||
| 11815 | 13 | break; | |
| 11816 | ✗ | default: | |
| 11817 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11818 | ✗ | break; | |
| 11819 | } | ||
| 11820 | 13 | } | |
| 11821 | |||
| 11822 | 13 | void DpManagerComponentBase::tlmOut_out( | |
| 11823 | FwIndexType portNum, | ||
| 11824 | FwChanIdType id, | ||
| 11825 | Fw::Time& timeTag, | ||
| 11826 | Fw::TlmBuffer& val | ||
| 11827 | ) const { | ||
| 11828 | 13 | FW_ASSERT( | |
| 11829 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 11830 | static_cast<FwAssertArgType>(portNum), | ||
| 11831 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 11832 | ); | ||
| 11833 |
1/2✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
|
13 | switch (portNum) { |
| 11834 | 13 | case 0: | |
| 11835 | 13 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 11836 | 0, | ||
| 11837 | id, | ||
| 11838 | timeTag, | ||
| 11839 | val | ||
| 11840 | ); | ||
| 11841 | 13 | break; | |
| 11842 | ✗ | default: | |
| 11843 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 11844 | ✗ | break; | |
| 11845 | } | ||
| 11846 | 13 | } | |
| 11847 | |||
| 11848 | } | ||
| 11849 | |||
| 11850 | namespace Svc { | ||
| 11851 | |||
| 11852 | 1 | bool DpWriterComponentBase::isConnected_cmdRegIn_OutputPort(FwIndexType portNum) const { | |
| 11853 | 1 | FW_ASSERT( | |
| 11854 | (0 <= portNum) && (portNum < NUM_CMDREGIN_OUTPUT_PORTS), | ||
| 11855 | static_cast<FwAssertArgType>(portNum), | ||
| 11856 | static_cast<FwAssertArgType>(NUM_CMDREGIN_OUTPUT_PORTS) | ||
| 11857 | ); | ||
| 11858 | 1 | bool result = false; | |
| 11859 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 11860 | 1 | case 0: | |
| 11861 | 1 | result = true; | |
| 11862 | 1 | break; | |
| 11863 | ✗ | default: | |
| 11864 | ✗ | break; | |
| 11865 | } | ||
| 11866 | 1 | return result; | |
| 11867 | } | ||
| 11868 | |||
| 11869 | ✗ | bool DpWriterComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const { | |
| 11870 | ✗ | FW_ASSERT( | |
| 11871 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 11872 | static_cast<FwAssertArgType>(portNum), | ||
| 11873 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 11874 | ); | ||
| 11875 | ✗ | bool result = false; | |
| 11876 | ✗ | switch (portNum) { | |
| 11877 | ✗ | case 0: | |
| 11878 | ✗ | result = true; | |
| 11879 | ✗ | break; | |
| 11880 | ✗ | default: | |
| 11881 | ✗ | break; | |
| 11882 | } | ||
| 11883 | ✗ | return result; | |
| 11884 | } | ||
| 11885 | |||
| 11886 | ✗ | bool DpWriterComponentBase::isConnected_deallocBufferSendOut_OutputPort(FwIndexType portNum) const { | |
| 11887 | ✗ | FW_ASSERT( | |
| 11888 | (0 <= portNum) && (portNum < NUM_DEALLOCBUFFERSENDOUT_OUTPUT_PORTS), | ||
| 11889 | static_cast<FwAssertArgType>(portNum), | ||
| 11890 | static_cast<FwAssertArgType>(NUM_DEALLOCBUFFERSENDOUT_OUTPUT_PORTS) | ||
| 11891 | ); | ||
| 11892 | ✗ | bool result = false; | |
| 11893 | ✗ | switch (portNum) { | |
| 11894 | ✗ | case 0: | |
| 11895 | ✗ | result = true; | |
| 11896 | ✗ | break; | |
| 11897 | ✗ | default: | |
| 11898 | ✗ | break; | |
| 11899 | } | ||
| 11900 | ✗ | return result; | |
| 11901 | } | ||
| 11902 | |||
| 11903 | 5 | bool DpWriterComponentBase::isConnected_dpWrittenOut_OutputPort(FwIndexType portNum) const { | |
| 11904 | 5 | FW_ASSERT( | |
| 11905 | (0 <= portNum) && (portNum < NUM_DPWRITTENOUT_OUTPUT_PORTS), | ||
| 11906 | static_cast<FwAssertArgType>(portNum), | ||
| 11907 | static_cast<FwAssertArgType>(NUM_DPWRITTENOUT_OUTPUT_PORTS) | ||
| 11908 | ); | ||
| 11909 | 5 | bool result = false; | |
| 11910 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 11911 | 5 | case 0: | |
| 11912 | 5 | result = true; | |
| 11913 | 5 | break; | |
| 11914 | ✗ | default: | |
| 11915 | ✗ | break; | |
| 11916 | } | ||
| 11917 | 5 | return result; | |
| 11918 | } | ||
| 11919 | |||
| 11920 | 5 | bool DpWriterComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const { | |
| 11921 | 5 | FW_ASSERT( | |
| 11922 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 11923 | static_cast<FwAssertArgType>(portNum), | ||
| 11924 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 11925 | ); | ||
| 11926 | 5 | bool result = false; | |
| 11927 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 11928 | 5 | case 0: | |
| 11929 | 5 | result = true; | |
| 11930 | 5 | break; | |
| 11931 | ✗ | default: | |
| 11932 | ✗ | break; | |
| 11933 | } | ||
| 11934 | 5 | return result; | |
| 11935 | } | ||
| 11936 | |||
| 11937 | ✗ | bool DpWriterComponentBase::isConnected_procBufferSendOut_OutputPort(FwIndexType portNum) const { | |
| 11938 | ✗ | FW_ASSERT( | |
| 11939 | (0 <= portNum) && (portNum < NUM_PROCBUFFERSENDOUT_OUTPUT_PORTS), | ||
| 11940 | static_cast<FwAssertArgType>(portNum), | ||
| 11941 | static_cast<FwAssertArgType>(NUM_PROCBUFFERSENDOUT_OUTPUT_PORTS) | ||
| 11942 | ); | ||
| 11943 | ✗ | bool result = false; | |
| 11944 | ✗ | switch (portNum) { | |
| 11945 | default: | ||
| 11946 | ✗ | break; | |
| 11947 | } | ||
| 11948 | ✗ | return result; | |
| 11949 | } | ||
| 11950 | |||
| 11951 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 11952 | |||
| 11953 | 5 | bool DpWriterComponentBase::isConnected_textEventOut_OutputPort(FwIndexType portNum) const { | |
| 11954 | 5 | FW_ASSERT( | |
| 11955 | (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS), | ||
| 11956 | static_cast<FwAssertArgType>(portNum), | ||
| 11957 | static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS) | ||
| 11958 | ); | ||
| 11959 | 5 | bool result = false; | |
| 11960 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 11961 | 5 | case 0: | |
| 11962 | 5 | result = true; | |
| 11963 | 5 | break; | |
| 11964 | ✗ | default: | |
| 11965 | ✗ | break; | |
| 11966 | } | ||
| 11967 | 5 | return result; | |
| 11968 | } | ||
| 11969 | |||
| 11970 | #endif | ||
| 11971 | |||
| 11972 | 22 | bool DpWriterComponentBase::isConnected_timeGetOut_OutputPort(FwIndexType portNum) const { | |
| 11973 | 22 | FW_ASSERT( | |
| 11974 | (0 <= portNum) && (portNum < NUM_TIMEGETOUT_OUTPUT_PORTS), | ||
| 11975 | static_cast<FwAssertArgType>(portNum), | ||
| 11976 | static_cast<FwAssertArgType>(NUM_TIMEGETOUT_OUTPUT_PORTS) | ||
| 11977 | ); | ||
| 11978 | 22 | bool result = false; | |
| 11979 |
1/2✓ Branch 0 taken 22 times.
✗ Branch 1 not taken.
|
22 | switch (portNum) { |
| 11980 | 22 | case 0: | |
| 11981 | 22 | result = true; | |
| 11982 | 22 | break; | |
| 11983 | ✗ | default: | |
| 11984 | ✗ | break; | |
| 11985 | } | ||
| 11986 | 22 | return result; | |
| 11987 | } | ||
| 11988 | |||
| 11989 | 34 | bool DpWriterComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 11990 | 34 | FW_ASSERT( | |
| 11991 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 11992 | static_cast<FwAssertArgType>(portNum), | ||
| 11993 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 11994 | ); | ||
| 11995 | 34 | bool result = false; | |
| 11996 |
1/2✓ Branch 0 taken 34 times.
✗ Branch 1 not taken.
|
34 | switch (portNum) { |
| 11997 | 34 | case 0: | |
| 11998 | 34 | result = true; | |
| 11999 | 34 | break; | |
| 12000 | ✗ | default: | |
| 12001 | ✗ | break; | |
| 12002 | } | ||
| 12003 | 34 | return result; | |
| 12004 | } | ||
| 12005 | |||
| 12006 | 1 | void DpWriterComponentBase::cmdRegIn_out( | |
| 12007 | FwIndexType portNum, | ||
| 12008 | FwOpcodeType opCode | ||
| 12009 | ) const { | ||
| 12010 | 1 | FW_ASSERT( | |
| 12011 | (0 <= portNum) && (portNum < NUM_CMDREGIN_OUTPUT_PORTS), | ||
| 12012 | static_cast<FwAssertArgType>(portNum), | ||
| 12013 | static_cast<FwAssertArgType>(NUM_CMDREGIN_OUTPUT_PORTS) | ||
| 12014 | ); | ||
| 12015 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 12016 | 1 | case 0: | |
| 12017 | 1 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 12018 | 8, | ||
| 12019 | opCode | ||
| 12020 | ); | ||
| 12021 | 1 | break; | |
| 12022 | ✗ | default: | |
| 12023 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12024 | ✗ | break; | |
| 12025 | } | ||
| 12026 | 1 | } | |
| 12027 | |||
| 12028 | ✗ | void DpWriterComponentBase::cmdResponseOut_out( | |
| 12029 | FwIndexType portNum, | ||
| 12030 | FwOpcodeType opCode, | ||
| 12031 | U32 cmdSeq, | ||
| 12032 | const Fw::CmdResponse& response | ||
| 12033 | ) const { | ||
| 12034 | ✗ | FW_ASSERT( | |
| 12035 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 12036 | static_cast<FwAssertArgType>(portNum), | ||
| 12037 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 12038 | ); | ||
| 12039 | ✗ | switch (portNum) { | |
| 12040 | ✗ | case 0: | |
| 12041 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 12042 | 0, | ||
| 12043 | opCode, | ||
| 12044 | cmdSeq, | ||
| 12045 | response | ||
| 12046 | ); | ||
| 12047 | ✗ | break; | |
| 12048 | ✗ | default: | |
| 12049 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12050 | ✗ | break; | |
| 12051 | } | ||
| 12052 | ✗ | } | |
| 12053 | |||
| 12054 | 5 | void DpWriterComponentBase::deallocBufferSendOut_out( | |
| 12055 | FwIndexType portNum, | ||
| 12056 | Fw::Buffer& fwBuffer | ||
| 12057 | ) const { | ||
| 12058 | 5 | FW_ASSERT( | |
| 12059 | (0 <= portNum) && (portNum < NUM_DEALLOCBUFFERSENDOUT_OUTPUT_PORTS), | ||
| 12060 | static_cast<FwAssertArgType>(portNum), | ||
| 12061 | static_cast<FwAssertArgType>(NUM_DEALLOCBUFFERSENDOUT_OUTPUT_PORTS) | ||
| 12062 | ); | ||
| 12063 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 12064 | 5 | case 0: | |
| 12065 | 5 | DataProducts::dpBufferAccumulator.bufferSendInReturn_handlerBase( | |
| 12066 | 0, | ||
| 12067 | fwBuffer | ||
| 12068 | ); | ||
| 12069 | 5 | break; | |
| 12070 | ✗ | default: | |
| 12071 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12072 | ✗ | break; | |
| 12073 | } | ||
| 12074 | 5 | } | |
| 12075 | |||
| 12076 | 5 | void DpWriterComponentBase::dpWrittenOut_out( | |
| 12077 | FwIndexType portNum, | ||
| 12078 | const Fw::StringBase& fileName, | ||
| 12079 | FwDpPriorityType priority, | ||
| 12080 | FwSizeType size | ||
| 12081 | ) const { | ||
| 12082 | 5 | FW_ASSERT( | |
| 12083 | (0 <= portNum) && (portNum < NUM_DPWRITTENOUT_OUTPUT_PORTS), | ||
| 12084 | static_cast<FwAssertArgType>(portNum), | ||
| 12085 | static_cast<FwAssertArgType>(NUM_DPWRITTENOUT_OUTPUT_PORTS) | ||
| 12086 | ); | ||
| 12087 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 12088 | 5 | case 0: | |
| 12089 | 5 | DataProducts::dpCat.addToCat_handlerBase( | |
| 12090 | 0, | ||
| 12091 | fileName, | ||
| 12092 | priority, | ||
| 12093 | size | ||
| 12094 | ); | ||
| 12095 | 5 | break; | |
| 12096 | ✗ | default: | |
| 12097 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12098 | ✗ | break; | |
| 12099 | } | ||
| 12100 | 5 | } | |
| 12101 | |||
| 12102 | 5 | void DpWriterComponentBase::eventOut_out( | |
| 12103 | FwIndexType portNum, | ||
| 12104 | FwEventIdType id, | ||
| 12105 | Fw::Time& timeTag, | ||
| 12106 | const Fw::LogSeverity& severity, | ||
| 12107 | Fw::LogBuffer& args | ||
| 12108 | ) const { | ||
| 12109 | 5 | FW_ASSERT( | |
| 12110 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 12111 | static_cast<FwAssertArgType>(portNum), | ||
| 12112 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 12113 | ); | ||
| 12114 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 12115 | 5 | case 0: | |
| 12116 | 5 | CdhCore::events.LogRecv_handlerBase( | |
| 12117 | 0, | ||
| 12118 | id, | ||
| 12119 | timeTag, | ||
| 12120 | severity, | ||
| 12121 | args | ||
| 12122 | ); | ||
| 12123 | 5 | break; | |
| 12124 | ✗ | default: | |
| 12125 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12126 | ✗ | break; | |
| 12127 | } | ||
| 12128 | 5 | } | |
| 12129 | |||
| 12130 | ✗ | void DpWriterComponentBase::procBufferSendOut_out( | |
| 12131 | FwIndexType portNum, | ||
| 12132 | Fw::Buffer& fwBuffer | ||
| 12133 | ) const { | ||
| 12134 | ✗ | FW_ASSERT( | |
| 12135 | (0 <= portNum) && (portNum < NUM_PROCBUFFERSENDOUT_OUTPUT_PORTS), | ||
| 12136 | static_cast<FwAssertArgType>(portNum), | ||
| 12137 | static_cast<FwAssertArgType>(NUM_PROCBUFFERSENDOUT_OUTPUT_PORTS) | ||
| 12138 | ); | ||
| 12139 | ✗ | switch (portNum) { | |
| 12140 | default: | ||
| 12141 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12142 | ✗ | break; | |
| 12143 | } | ||
| 12144 | ✗ | } | |
| 12145 | |||
| 12146 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 12147 | |||
| 12148 | 5 | void DpWriterComponentBase::textEventOut_out( | |
| 12149 | FwIndexType portNum, | ||
| 12150 | FwEventIdType id, | ||
| 12151 | Fw::Time& timeTag, | ||
| 12152 | const Fw::LogSeverity& severity, | ||
| 12153 | Fw::TextLogString& text | ||
| 12154 | ) const { | ||
| 12155 | 5 | FW_ASSERT( | |
| 12156 | (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS), | ||
| 12157 | static_cast<FwAssertArgType>(portNum), | ||
| 12158 | static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS) | ||
| 12159 | ); | ||
| 12160 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 12161 | 5 | case 0: | |
| 12162 | 5 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 12163 | 0, | ||
| 12164 | id, | ||
| 12165 | timeTag, | ||
| 12166 | severity, | ||
| 12167 | text | ||
| 12168 | ); | ||
| 12169 | 5 | break; | |
| 12170 | ✗ | default: | |
| 12171 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12172 | ✗ | break; | |
| 12173 | } | ||
| 12174 | 5 | } | |
| 12175 | |||
| 12176 | #endif | ||
| 12177 | |||
| 12178 | 22 | void DpWriterComponentBase::timeGetOut_out( | |
| 12179 | FwIndexType portNum, | ||
| 12180 | Fw::Time& time | ||
| 12181 | ) const { | ||
| 12182 | 22 | FW_ASSERT( | |
| 12183 | (0 <= portNum) && (portNum < NUM_TIMEGETOUT_OUTPUT_PORTS), | ||
| 12184 | static_cast<FwAssertArgType>(portNum), | ||
| 12185 | static_cast<FwAssertArgType>(NUM_TIMEGETOUT_OUTPUT_PORTS) | ||
| 12186 | ); | ||
| 12187 |
1/2✓ Branch 0 taken 22 times.
✗ Branch 1 not taken.
|
22 | switch (portNum) { |
| 12188 | 22 | case 0: | |
| 12189 | 22 | Ref::posixTime.timeGetPort_handlerBase( | |
| 12190 | 0, | ||
| 12191 | time | ||
| 12192 | ); | ||
| 12193 | 22 | break; | |
| 12194 | ✗ | default: | |
| 12195 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12196 | ✗ | break; | |
| 12197 | } | ||
| 12198 | 22 | } | |
| 12199 | |||
| 12200 | 17 | void DpWriterComponentBase::tlmOut_out( | |
| 12201 | FwIndexType portNum, | ||
| 12202 | FwChanIdType id, | ||
| 12203 | Fw::Time& timeTag, | ||
| 12204 | Fw::TlmBuffer& val | ||
| 12205 | ) const { | ||
| 12206 | 17 | FW_ASSERT( | |
| 12207 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 12208 | static_cast<FwAssertArgType>(portNum), | ||
| 12209 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 12210 | ); | ||
| 12211 |
1/2✓ Branch 0 taken 17 times.
✗ Branch 1 not taken.
|
17 | switch (portNum) { |
| 12212 | 17 | case 0: | |
| 12213 | 17 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 12214 | 0, | ||
| 12215 | id, | ||
| 12216 | timeTag, | ||
| 12217 | val | ||
| 12218 | ); | ||
| 12219 | 17 | break; | |
| 12220 | ✗ | default: | |
| 12221 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12222 | ✗ | break; | |
| 12223 | } | ||
| 12224 | 17 | } | |
| 12225 | |||
| 12226 | } | ||
| 12227 | |||
| 12228 | namespace Svc { | ||
| 12229 | |||
| 12230 | 1 | bool EventManagerComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const { | |
| 12231 | 1 | FW_ASSERT( | |
| 12232 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 12233 | static_cast<FwAssertArgType>(portNum), | ||
| 12234 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 12235 | ); | ||
| 12236 | 1 | bool result = false; | |
| 12237 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 12238 | 1 | case 0: | |
| 12239 | 1 | result = true; | |
| 12240 | 1 | break; | |
| 12241 | ✗ | default: | |
| 12242 | ✗ | break; | |
| 12243 | } | ||
| 12244 | 1 | return result; | |
| 12245 | } | ||
| 12246 | |||
| 12247 | 13 | bool EventManagerComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const { | |
| 12248 | 13 | FW_ASSERT( | |
| 12249 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 12250 | static_cast<FwAssertArgType>(portNum), | ||
| 12251 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 12252 | ); | ||
| 12253 | 13 | bool result = false; | |
| 12254 |
1/2✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
|
13 | switch (portNum) { |
| 12255 | 13 | case 0: | |
| 12256 | 13 | result = true; | |
| 12257 | 13 | break; | |
| 12258 | ✗ | default: | |
| 12259 | ✗ | break; | |
| 12260 | } | ||
| 12261 | 13 | return result; | |
| 12262 | } | ||
| 12263 | |||
| 12264 | ✗ | bool EventManagerComponentBase::isConnected_FatalAnnounce_OutputPort(FwIndexType portNum) const { | |
| 12265 | ✗ | FW_ASSERT( | |
| 12266 | (0 <= portNum) && (portNum < NUM_FATALANNOUNCE_OUTPUT_PORTS), | ||
| 12267 | static_cast<FwAssertArgType>(portNum), | ||
| 12268 | static_cast<FwAssertArgType>(NUM_FATALANNOUNCE_OUTPUT_PORTS) | ||
| 12269 | ); | ||
| 12270 | ✗ | bool result = false; | |
| 12271 | ✗ | switch (portNum) { | |
| 12272 | ✗ | case 0: | |
| 12273 | ✗ | result = true; | |
| 12274 | ✗ | break; | |
| 12275 | ✗ | default: | |
| 12276 | ✗ | break; | |
| 12277 | } | ||
| 12278 | ✗ | return result; | |
| 12279 | } | ||
| 12280 | |||
| 12281 | ✗ | bool EventManagerComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 12282 | ✗ | FW_ASSERT( | |
| 12283 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 12284 | static_cast<FwAssertArgType>(portNum), | ||
| 12285 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 12286 | ); | ||
| 12287 | ✗ | bool result = false; | |
| 12288 | ✗ | switch (portNum) { | |
| 12289 | ✗ | case 0: | |
| 12290 | ✗ | result = true; | |
| 12291 | ✗ | break; | |
| 12292 | ✗ | default: | |
| 12293 | ✗ | break; | |
| 12294 | } | ||
| 12295 | ✗ | return result; | |
| 12296 | } | ||
| 12297 | |||
| 12298 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 12299 | |||
| 12300 | ✗ | bool EventManagerComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 12301 | ✗ | FW_ASSERT( | |
| 12302 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 12303 | static_cast<FwAssertArgType>(portNum), | ||
| 12304 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 12305 | ); | ||
| 12306 | ✗ | bool result = false; | |
| 12307 | ✗ | switch (portNum) { | |
| 12308 | ✗ | case 0: | |
| 12309 | ✗ | result = true; | |
| 12310 | ✗ | break; | |
| 12311 | ✗ | default: | |
| 12312 | ✗ | break; | |
| 12313 | } | ||
| 12314 | ✗ | return result; | |
| 12315 | } | ||
| 12316 | |||
| 12317 | #endif | ||
| 12318 | |||
| 12319 | 558 | bool EventManagerComponentBase::isConnected_PktSend_OutputPort(FwIndexType portNum) const { | |
| 12320 | 558 | FW_ASSERT( | |
| 12321 | (0 <= portNum) && (portNum < NUM_PKTSEND_OUTPUT_PORTS), | ||
| 12322 | static_cast<FwAssertArgType>(portNum), | ||
| 12323 | static_cast<FwAssertArgType>(NUM_PKTSEND_OUTPUT_PORTS) | ||
| 12324 | ); | ||
| 12325 | 558 | bool result = false; | |
| 12326 |
1/2✓ Branch 0 taken 558 times.
✗ Branch 1 not taken.
|
558 | switch (portNum) { |
| 12327 | 558 | case 0: | |
| 12328 | 558 | result = true; | |
| 12329 | 558 | break; | |
| 12330 | ✗ | default: | |
| 12331 | ✗ | break; | |
| 12332 | } | ||
| 12333 | 558 | return result; | |
| 12334 | } | ||
| 12335 | |||
| 12336 | 1 | bool EventManagerComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 12337 | 1 | FW_ASSERT( | |
| 12338 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 12339 | static_cast<FwAssertArgType>(portNum), | ||
| 12340 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 12341 | ); | ||
| 12342 | 1 | bool result = false; | |
| 12343 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 12344 | 1 | case 0: | |
| 12345 | 1 | result = true; | |
| 12346 | 1 | break; | |
| 12347 | ✗ | default: | |
| 12348 | ✗ | break; | |
| 12349 | } | ||
| 12350 | 1 | return result; | |
| 12351 | } | ||
| 12352 | |||
| 12353 | 2 | bool EventManagerComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const { | |
| 12354 | 2 | FW_ASSERT( | |
| 12355 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 12356 | static_cast<FwAssertArgType>(portNum), | ||
| 12357 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 12358 | ); | ||
| 12359 | 2 | bool result = false; | |
| 12360 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 12361 | 2 | case 0: | |
| 12362 | 2 | result = true; | |
| 12363 | 2 | break; | |
| 12364 | ✗ | default: | |
| 12365 | ✗ | break; | |
| 12366 | } | ||
| 12367 | 2 | return result; | |
| 12368 | } | ||
| 12369 | |||
| 12370 | ✗ | bool EventManagerComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const { | |
| 12371 | ✗ | FW_ASSERT( | |
| 12372 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 12373 | static_cast<FwAssertArgType>(portNum), | ||
| 12374 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 12375 | ); | ||
| 12376 | ✗ | bool result = false; | |
| 12377 | ✗ | switch (portNum) { | |
| 12378 | ✗ | case 0: | |
| 12379 | ✗ | result = true; | |
| 12380 | ✗ | break; | |
| 12381 | ✗ | default: | |
| 12382 | ✗ | break; | |
| 12383 | } | ||
| 12384 | ✗ | return result; | |
| 12385 | } | ||
| 12386 | |||
| 12387 | 3 | void EventManagerComponentBase::CmdReg_out( | |
| 12388 | FwIndexType portNum, | ||
| 12389 | FwOpcodeType opCode | ||
| 12390 | ) const { | ||
| 12391 | 3 | FW_ASSERT( | |
| 12392 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 12393 | static_cast<FwAssertArgType>(portNum), | ||
| 12394 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 12395 | ); | ||
| 12396 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 12397 | 3 | case 0: | |
| 12398 | 3 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 12399 | 1, | ||
| 12400 | opCode | ||
| 12401 | ); | ||
| 12402 | 3 | break; | |
| 12403 | ✗ | default: | |
| 12404 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12405 | ✗ | break; | |
| 12406 | } | ||
| 12407 | 3 | } | |
| 12408 | |||
| 12409 | 13 | void EventManagerComponentBase::CmdStatus_out( | |
| 12410 | FwIndexType portNum, | ||
| 12411 | FwOpcodeType opCode, | ||
| 12412 | U32 cmdSeq, | ||
| 12413 | const Fw::CmdResponse& response | ||
| 12414 | ) const { | ||
| 12415 | 13 | FW_ASSERT( | |
| 12416 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 12417 | static_cast<FwAssertArgType>(portNum), | ||
| 12418 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 12419 | ); | ||
| 12420 |
1/2✓ Branch 0 taken 13 times.
✗ Branch 1 not taken.
|
13 | switch (portNum) { |
| 12421 | 13 | case 0: | |
| 12422 | 13 | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 12423 | 0, | ||
| 12424 | opCode, | ||
| 12425 | cmdSeq, | ||
| 12426 | response | ||
| 12427 | ); | ||
| 12428 | 13 | break; | |
| 12429 | ✗ | default: | |
| 12430 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12431 | ✗ | break; | |
| 12432 | } | ||
| 12433 | 13 | } | |
| 12434 | |||
| 12435 | ✗ | void EventManagerComponentBase::FatalAnnounce_out( | |
| 12436 | FwIndexType portNum, | ||
| 12437 | FwEventIdType Id | ||
| 12438 | ) const { | ||
| 12439 | ✗ | FW_ASSERT( | |
| 12440 | (0 <= portNum) && (portNum < NUM_FATALANNOUNCE_OUTPUT_PORTS), | ||
| 12441 | static_cast<FwAssertArgType>(portNum), | ||
| 12442 | static_cast<FwAssertArgType>(NUM_FATALANNOUNCE_OUTPUT_PORTS) | ||
| 12443 | ); | ||
| 12444 | ✗ | switch (portNum) { | |
| 12445 | ✗ | case 0: | |
| 12446 | ✗ | CdhCore::fatalHandler.FatalReceive_handlerBase( | |
| 12447 | 0, | ||
| 12448 | Id | ||
| 12449 | ); | ||
| 12450 | ✗ | break; | |
| 12451 | ✗ | default: | |
| 12452 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12453 | ✗ | break; | |
| 12454 | } | ||
| 12455 | ✗ | } | |
| 12456 | |||
| 12457 | ✗ | void EventManagerComponentBase::Log_out( | |
| 12458 | FwIndexType portNum, | ||
| 12459 | FwEventIdType id, | ||
| 12460 | Fw::Time& timeTag, | ||
| 12461 | const Fw::LogSeverity& severity, | ||
| 12462 | Fw::LogBuffer& args | ||
| 12463 | ) const { | ||
| 12464 | ✗ | FW_ASSERT( | |
| 12465 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 12466 | static_cast<FwAssertArgType>(portNum), | ||
| 12467 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 12468 | ); | ||
| 12469 | ✗ | switch (portNum) { | |
| 12470 | ✗ | case 0: | |
| 12471 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 12472 | 0, | ||
| 12473 | id, | ||
| 12474 | timeTag, | ||
| 12475 | severity, | ||
| 12476 | args | ||
| 12477 | ); | ||
| 12478 | ✗ | break; | |
| 12479 | ✗ | default: | |
| 12480 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12481 | ✗ | break; | |
| 12482 | } | ||
| 12483 | ✗ | } | |
| 12484 | |||
| 12485 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 12486 | |||
| 12487 | ✗ | void EventManagerComponentBase::LogText_out( | |
| 12488 | FwIndexType portNum, | ||
| 12489 | FwEventIdType id, | ||
| 12490 | Fw::Time& timeTag, | ||
| 12491 | const Fw::LogSeverity& severity, | ||
| 12492 | Fw::TextLogString& text | ||
| 12493 | ) const { | ||
| 12494 | ✗ | FW_ASSERT( | |
| 12495 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 12496 | static_cast<FwAssertArgType>(portNum), | ||
| 12497 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 12498 | ); | ||
| 12499 | ✗ | switch (portNum) { | |
| 12500 | ✗ | case 0: | |
| 12501 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 12502 | 0, | ||
| 12503 | id, | ||
| 12504 | timeTag, | ||
| 12505 | severity, | ||
| 12506 | text | ||
| 12507 | ); | ||
| 12508 | ✗ | break; | |
| 12509 | ✗ | default: | |
| 12510 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12511 | ✗ | break; | |
| 12512 | } | ||
| 12513 | ✗ | } | |
| 12514 | |||
| 12515 | #endif | ||
| 12516 | |||
| 12517 | 558 | void EventManagerComponentBase::PktSend_out( | |
| 12518 | FwIndexType portNum, | ||
| 12519 | Fw::ComBuffer& data, | ||
| 12520 | U32 context | ||
| 12521 | ) const { | ||
| 12522 | 558 | FW_ASSERT( | |
| 12523 | (0 <= portNum) && (portNum < NUM_PKTSEND_OUTPUT_PORTS), | ||
| 12524 | static_cast<FwAssertArgType>(portNum), | ||
| 12525 | static_cast<FwAssertArgType>(NUM_PKTSEND_OUTPUT_PORTS) | ||
| 12526 | ); | ||
| 12527 |
1/2✓ Branch 0 taken 558 times.
✗ Branch 1 not taken.
|
558 | switch (portNum) { |
| 12528 | 558 | case 0: | |
| 12529 | 558 | ComCcsds::comQueue.comPacketQueueIn_handlerBase( | |
| 12530 | 0, | ||
| 12531 | data, | ||
| 12532 | context | ||
| 12533 | ); | ||
| 12534 | 558 | break; | |
| 12535 | ✗ | default: | |
| 12536 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12537 | ✗ | break; | |
| 12538 | } | ||
| 12539 | 558 | } | |
| 12540 | |||
| 12541 | 1 | void EventManagerComponentBase::Time_out( | |
| 12542 | FwIndexType portNum, | ||
| 12543 | Fw::Time& time | ||
| 12544 | ) const { | ||
| 12545 | 1 | FW_ASSERT( | |
| 12546 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 12547 | static_cast<FwAssertArgType>(portNum), | ||
| 12548 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 12549 | ); | ||
| 12550 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 12551 | 1 | case 0: | |
| 12552 | 1 | Ref::posixTime.timeGetPort_handlerBase( | |
| 12553 | 0, | ||
| 12554 | time | ||
| 12555 | ); | ||
| 12556 | 1 | break; | |
| 12557 | ✗ | default: | |
| 12558 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12559 | ✗ | break; | |
| 12560 | } | ||
| 12561 | 1 | } | |
| 12562 | |||
| 12563 | 1 | void EventManagerComponentBase::Tlm_out( | |
| 12564 | FwIndexType portNum, | ||
| 12565 | FwChanIdType id, | ||
| 12566 | Fw::Time& timeTag, | ||
| 12567 | Fw::TlmBuffer& val | ||
| 12568 | ) const { | ||
| 12569 | 1 | FW_ASSERT( | |
| 12570 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 12571 | static_cast<FwAssertArgType>(portNum), | ||
| 12572 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 12573 | ); | ||
| 12574 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 12575 | 1 | case 0: | |
| 12576 | 1 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 12577 | 0, | ||
| 12578 | id, | ||
| 12579 | timeTag, | ||
| 12580 | val | ||
| 12581 | ); | ||
| 12582 | 1 | break; | |
| 12583 | ✗ | default: | |
| 12584 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12585 | ✗ | break; | |
| 12586 | } | ||
| 12587 | 1 | } | |
| 12588 | |||
| 12589 | 66 | void EventManagerComponentBase::pingOut_out( | |
| 12590 | FwIndexType portNum, | ||
| 12591 | U32 key | ||
| 12592 | ) const { | ||
| 12593 | 66 | FW_ASSERT( | |
| 12594 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 12595 | static_cast<FwAssertArgType>(portNum), | ||
| 12596 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 12597 | ); | ||
| 12598 |
1/2✓ Branch 0 taken 66 times.
✗ Branch 1 not taken.
|
66 | switch (portNum) { |
| 12599 | 66 | case 0: | |
| 12600 | 66 | CdhCore::health.PingReturn_handlerBase( | |
| 12601 | 1, | ||
| 12602 | key | ||
| 12603 | ); | ||
| 12604 | 66 | break; | |
| 12605 | ✗ | default: | |
| 12606 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12607 | ✗ | break; | |
| 12608 | } | ||
| 12609 | 66 | } | |
| 12610 | |||
| 12611 | } | ||
| 12612 | |||
| 12613 | namespace Svc { | ||
| 12614 | |||
| 12615 | 5 | bool FileDownlinkComponentBase::isConnected_FileComplete_OutputPort(FwIndexType portNum) const { | |
| 12616 | 5 | FW_ASSERT( | |
| 12617 | (0 <= portNum) && (portNum < NUM_FILECOMPLETE_OUTPUT_PORTS), | ||
| 12618 | static_cast<FwAssertArgType>(portNum), | ||
| 12619 | static_cast<FwAssertArgType>(NUM_FILECOMPLETE_OUTPUT_PORTS) | ||
| 12620 | ); | ||
| 12621 | 5 | bool result = false; | |
| 12622 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 12623 | 5 | case 0: | |
| 12624 | 5 | result = true; | |
| 12625 | 5 | break; | |
| 12626 | ✗ | default: | |
| 12627 | ✗ | break; | |
| 12628 | } | ||
| 12629 | 5 | return result; | |
| 12630 | } | ||
| 12631 | |||
| 12632 | ✗ | bool FileDownlinkComponentBase::isConnected_bufferSendOut_OutputPort(FwIndexType portNum) const { | |
| 12633 | ✗ | FW_ASSERT( | |
| 12634 | (0 <= portNum) && (portNum < NUM_BUFFERSENDOUT_OUTPUT_PORTS), | ||
| 12635 | static_cast<FwAssertArgType>(portNum), | ||
| 12636 | static_cast<FwAssertArgType>(NUM_BUFFERSENDOUT_OUTPUT_PORTS) | ||
| 12637 | ); | ||
| 12638 | ✗ | bool result = false; | |
| 12639 | ✗ | switch (portNum) { | |
| 12640 | ✗ | case 0: | |
| 12641 | ✗ | result = true; | |
| 12642 | ✗ | break; | |
| 12643 | ✗ | default: | |
| 12644 | ✗ | break; | |
| 12645 | } | ||
| 12646 | ✗ | return result; | |
| 12647 | } | ||
| 12648 | |||
| 12649 | 1 | bool FileDownlinkComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const { | |
| 12650 | 1 | FW_ASSERT( | |
| 12651 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 12652 | static_cast<FwAssertArgType>(portNum), | ||
| 12653 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 12654 | ); | ||
| 12655 | 1 | bool result = false; | |
| 12656 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 12657 | 1 | case 0: | |
| 12658 | 1 | result = true; | |
| 12659 | 1 | break; | |
| 12660 | ✗ | default: | |
| 12661 | ✗ | break; | |
| 12662 | } | ||
| 12663 | 1 | return result; | |
| 12664 | } | ||
| 12665 | |||
| 12666 | ✗ | bool FileDownlinkComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const { | |
| 12667 | ✗ | FW_ASSERT( | |
| 12668 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 12669 | static_cast<FwAssertArgType>(portNum), | ||
| 12670 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 12671 | ); | ||
| 12672 | ✗ | bool result = false; | |
| 12673 | ✗ | switch (portNum) { | |
| 12674 | ✗ | case 0: | |
| 12675 | ✗ | result = true; | |
| 12676 | ✗ | break; | |
| 12677 | ✗ | default: | |
| 12678 | ✗ | break; | |
| 12679 | } | ||
| 12680 | ✗ | return result; | |
| 12681 | } | ||
| 12682 | |||
| 12683 | 10 | bool FileDownlinkComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const { | |
| 12684 | 10 | FW_ASSERT( | |
| 12685 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 12686 | static_cast<FwAssertArgType>(portNum), | ||
| 12687 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 12688 | ); | ||
| 12689 | 10 | bool result = false; | |
| 12690 |
1/2✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
|
10 | switch (portNum) { |
| 12691 | 10 | case 0: | |
| 12692 | 10 | result = true; | |
| 12693 | 10 | break; | |
| 12694 | ✗ | default: | |
| 12695 | ✗ | break; | |
| 12696 | } | ||
| 12697 | 10 | return result; | |
| 12698 | } | ||
| 12699 | |||
| 12700 | ✗ | bool FileDownlinkComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const { | |
| 12701 | ✗ | FW_ASSERT( | |
| 12702 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 12703 | static_cast<FwAssertArgType>(portNum), | ||
| 12704 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 12705 | ); | ||
| 12706 | ✗ | bool result = false; | |
| 12707 | ✗ | switch (portNum) { | |
| 12708 | ✗ | case 0: | |
| 12709 | ✗ | result = true; | |
| 12710 | ✗ | break; | |
| 12711 | ✗ | default: | |
| 12712 | ✗ | break; | |
| 12713 | } | ||
| 12714 | ✗ | return result; | |
| 12715 | } | ||
| 12716 | |||
| 12717 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 12718 | |||
| 12719 | 10 | bool FileDownlinkComponentBase::isConnected_textEventOut_OutputPort(FwIndexType portNum) const { | |
| 12720 | 10 | FW_ASSERT( | |
| 12721 | (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS), | ||
| 12722 | static_cast<FwAssertArgType>(portNum), | ||
| 12723 | static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS) | ||
| 12724 | ); | ||
| 12725 | 10 | bool result = false; | |
| 12726 |
1/2✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
|
10 | switch (portNum) { |
| 12727 | 10 | case 0: | |
| 12728 | 10 | result = true; | |
| 12729 | 10 | break; | |
| 12730 | ✗ | default: | |
| 12731 | ✗ | break; | |
| 12732 | } | ||
| 12733 | 10 | return result; | |
| 12734 | } | ||
| 12735 | |||
| 12736 | #endif | ||
| 12737 | |||
| 12738 | 45 | bool FileDownlinkComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 12739 | 45 | FW_ASSERT( | |
| 12740 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 12741 | static_cast<FwAssertArgType>(portNum), | ||
| 12742 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 12743 | ); | ||
| 12744 | 45 | bool result = false; | |
| 12745 |
1/2✓ Branch 0 taken 45 times.
✗ Branch 1 not taken.
|
45 | switch (portNum) { |
| 12746 | 45 | case 0: | |
| 12747 | 45 | result = true; | |
| 12748 | 45 | break; | |
| 12749 | ✗ | default: | |
| 12750 | ✗ | break; | |
| 12751 | } | ||
| 12752 | 45 | return result; | |
| 12753 | } | ||
| 12754 | |||
| 12755 | 70 | bool FileDownlinkComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 12756 | 70 | FW_ASSERT( | |
| 12757 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 12758 | static_cast<FwAssertArgType>(portNum), | ||
| 12759 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 12760 | ); | ||
| 12761 | 70 | bool result = false; | |
| 12762 |
1/2✓ Branch 0 taken 70 times.
✗ Branch 1 not taken.
|
70 | switch (portNum) { |
| 12763 | 70 | case 0: | |
| 12764 | 70 | result = true; | |
| 12765 | 70 | break; | |
| 12766 | ✗ | default: | |
| 12767 | ✗ | break; | |
| 12768 | } | ||
| 12769 | 70 | return result; | |
| 12770 | } | ||
| 12771 | |||
| 12772 | 5 | void FileDownlinkComponentBase::FileComplete_out( | |
| 12773 | FwIndexType portNum, | ||
| 12774 | const Svc::SendFileResponse& resp | ||
| 12775 | ) const { | ||
| 12776 | 5 | FW_ASSERT( | |
| 12777 | (0 <= portNum) && (portNum < NUM_FILECOMPLETE_OUTPUT_PORTS), | ||
| 12778 | static_cast<FwAssertArgType>(portNum), | ||
| 12779 | static_cast<FwAssertArgType>(NUM_FILECOMPLETE_OUTPUT_PORTS) | ||
| 12780 | ); | ||
| 12781 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | switch (portNum) { |
| 12782 | 5 | case 0: | |
| 12783 | 5 | DataProducts::dpCat.fileDone_handlerBase( | |
| 12784 | 0, | ||
| 12785 | resp | ||
| 12786 | ); | ||
| 12787 | 5 | break; | |
| 12788 | ✗ | default: | |
| 12789 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12790 | ✗ | break; | |
| 12791 | } | ||
| 12792 | 5 | } | |
| 12793 | |||
| 12794 | 30 | void FileDownlinkComponentBase::bufferSendOut_out( | |
| 12795 | FwIndexType portNum, | ||
| 12796 | Fw::Buffer& fwBuffer | ||
| 12797 | ) const { | ||
| 12798 | 30 | FW_ASSERT( | |
| 12799 | (0 <= portNum) && (portNum < NUM_BUFFERSENDOUT_OUTPUT_PORTS), | ||
| 12800 | static_cast<FwAssertArgType>(portNum), | ||
| 12801 | static_cast<FwAssertArgType>(NUM_BUFFERSENDOUT_OUTPUT_PORTS) | ||
| 12802 | ); | ||
| 12803 |
1/2✓ Branch 0 taken 30 times.
✗ Branch 1 not taken.
|
30 | switch (portNum) { |
| 12804 | 30 | case 0: | |
| 12805 | 30 | ComCcsds::comQueue.bufferQueueIn_handlerBase( | |
| 12806 | 0, | ||
| 12807 | fwBuffer | ||
| 12808 | ); | ||
| 12809 | 30 | break; | |
| 12810 | ✗ | default: | |
| 12811 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12812 | ✗ | break; | |
| 12813 | } | ||
| 12814 | 30 | } | |
| 12815 | |||
| 12816 | 3 | void FileDownlinkComponentBase::cmdRegOut_out( | |
| 12817 | FwIndexType portNum, | ||
| 12818 | FwOpcodeType opCode | ||
| 12819 | ) const { | ||
| 12820 | 3 | FW_ASSERT( | |
| 12821 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 12822 | static_cast<FwAssertArgType>(portNum), | ||
| 12823 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 12824 | ); | ||
| 12825 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 12826 | 3 | case 0: | |
| 12827 | 3 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 12828 | 9, | ||
| 12829 | opCode | ||
| 12830 | ); | ||
| 12831 | 3 | break; | |
| 12832 | ✗ | default: | |
| 12833 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12834 | ✗ | break; | |
| 12835 | } | ||
| 12836 | 3 | } | |
| 12837 | |||
| 12838 | ✗ | void FileDownlinkComponentBase::cmdResponseOut_out( | |
| 12839 | FwIndexType portNum, | ||
| 12840 | FwOpcodeType opCode, | ||
| 12841 | U32 cmdSeq, | ||
| 12842 | const Fw::CmdResponse& response | ||
| 12843 | ) const { | ||
| 12844 | ✗ | FW_ASSERT( | |
| 12845 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 12846 | static_cast<FwAssertArgType>(portNum), | ||
| 12847 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 12848 | ); | ||
| 12849 | ✗ | switch (portNum) { | |
| 12850 | ✗ | case 0: | |
| 12851 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 12852 | 0, | ||
| 12853 | opCode, | ||
| 12854 | cmdSeq, | ||
| 12855 | response | ||
| 12856 | ); | ||
| 12857 | ✗ | break; | |
| 12858 | ✗ | default: | |
| 12859 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12860 | ✗ | break; | |
| 12861 | } | ||
| 12862 | ✗ | } | |
| 12863 | |||
| 12864 | 10 | void FileDownlinkComponentBase::eventOut_out( | |
| 12865 | FwIndexType portNum, | ||
| 12866 | FwEventIdType id, | ||
| 12867 | Fw::Time& timeTag, | ||
| 12868 | const Fw::LogSeverity& severity, | ||
| 12869 | Fw::LogBuffer& args | ||
| 12870 | ) const { | ||
| 12871 | 10 | FW_ASSERT( | |
| 12872 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 12873 | static_cast<FwAssertArgType>(portNum), | ||
| 12874 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 12875 | ); | ||
| 12876 |
1/2✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
|
10 | switch (portNum) { |
| 12877 | 10 | case 0: | |
| 12878 | 10 | CdhCore::events.LogRecv_handlerBase( | |
| 12879 | 0, | ||
| 12880 | id, | ||
| 12881 | timeTag, | ||
| 12882 | severity, | ||
| 12883 | args | ||
| 12884 | ); | ||
| 12885 | 10 | break; | |
| 12886 | ✗ | default: | |
| 12887 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12888 | ✗ | break; | |
| 12889 | } | ||
| 12890 | 10 | } | |
| 12891 | |||
| 12892 | 66 | void FileDownlinkComponentBase::pingOut_out( | |
| 12893 | FwIndexType portNum, | ||
| 12894 | U32 key | ||
| 12895 | ) const { | ||
| 12896 | 66 | FW_ASSERT( | |
| 12897 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 12898 | static_cast<FwAssertArgType>(portNum), | ||
| 12899 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 12900 | ); | ||
| 12901 |
1/2✓ Branch 0 taken 66 times.
✗ Branch 1 not taken.
|
66 | switch (portNum) { |
| 12902 | 66 | case 0: | |
| 12903 | 66 | CdhCore::health.PingReturn_handlerBase( | |
| 12904 | 5, | ||
| 12905 | key | ||
| 12906 | ); | ||
| 12907 | 66 | break; | |
| 12908 | ✗ | default: | |
| 12909 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12910 | ✗ | break; | |
| 12911 | } | ||
| 12912 | 66 | } | |
| 12913 | |||
| 12914 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 12915 | |||
| 12916 | 10 | void FileDownlinkComponentBase::textEventOut_out( | |
| 12917 | FwIndexType portNum, | ||
| 12918 | FwEventIdType id, | ||
| 12919 | Fw::Time& timeTag, | ||
| 12920 | const Fw::LogSeverity& severity, | ||
| 12921 | Fw::TextLogString& text | ||
| 12922 | ) const { | ||
| 12923 | 10 | FW_ASSERT( | |
| 12924 | (0 <= portNum) && (portNum < NUM_TEXTEVENTOUT_OUTPUT_PORTS), | ||
| 12925 | static_cast<FwAssertArgType>(portNum), | ||
| 12926 | static_cast<FwAssertArgType>(NUM_TEXTEVENTOUT_OUTPUT_PORTS) | ||
| 12927 | ); | ||
| 12928 |
1/2✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
|
10 | switch (portNum) { |
| 12929 | 10 | case 0: | |
| 12930 | 10 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 12931 | 0, | ||
| 12932 | id, | ||
| 12933 | timeTag, | ||
| 12934 | severity, | ||
| 12935 | text | ||
| 12936 | ); | ||
| 12937 | 10 | break; | |
| 12938 | ✗ | default: | |
| 12939 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12940 | ✗ | break; | |
| 12941 | } | ||
| 12942 | 10 | } | |
| 12943 | |||
| 12944 | #endif | ||
| 12945 | |||
| 12946 | 45 | void FileDownlinkComponentBase::timeCaller_out( | |
| 12947 | FwIndexType portNum, | ||
| 12948 | Fw::Time& time | ||
| 12949 | ) const { | ||
| 12950 | 45 | FW_ASSERT( | |
| 12951 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 12952 | static_cast<FwAssertArgType>(portNum), | ||
| 12953 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 12954 | ); | ||
| 12955 |
1/2✓ Branch 0 taken 45 times.
✗ Branch 1 not taken.
|
45 | switch (portNum) { |
| 12956 | 45 | case 0: | |
| 12957 | 45 | Ref::posixTime.timeGetPort_handlerBase( | |
| 12958 | 0, | ||
| 12959 | time | ||
| 12960 | ); | ||
| 12961 | 45 | break; | |
| 12962 | ✗ | default: | |
| 12963 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12964 | ✗ | break; | |
| 12965 | } | ||
| 12966 | 45 | } | |
| 12967 | |||
| 12968 | 35 | void FileDownlinkComponentBase::tlmOut_out( | |
| 12969 | FwIndexType portNum, | ||
| 12970 | FwChanIdType id, | ||
| 12971 | Fw::Time& timeTag, | ||
| 12972 | Fw::TlmBuffer& val | ||
| 12973 | ) const { | ||
| 12974 | 35 | FW_ASSERT( | |
| 12975 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 12976 | static_cast<FwAssertArgType>(portNum), | ||
| 12977 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 12978 | ); | ||
| 12979 |
1/2✓ Branch 0 taken 35 times.
✗ Branch 1 not taken.
|
35 | switch (portNum) { |
| 12980 | 35 | case 0: | |
| 12981 | 35 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 12982 | 0, | ||
| 12983 | id, | ||
| 12984 | timeTag, | ||
| 12985 | val | ||
| 12986 | ); | ||
| 12987 | 35 | break; | |
| 12988 | ✗ | default: | |
| 12989 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 12990 | ✗ | break; | |
| 12991 | } | ||
| 12992 | 35 | } | |
| 12993 | |||
| 12994 | } | ||
| 12995 | |||
| 12996 | namespace Svc { | ||
| 12997 | |||
| 12998 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 12999 | |||
| 13000 | 2 | bool FileManagerComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 13001 | 2 | FW_ASSERT( | |
| 13002 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 13003 | static_cast<FwAssertArgType>(portNum), | ||
| 13004 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 13005 | ); | ||
| 13006 | 2 | bool result = false; | |
| 13007 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 13008 | 2 | case 0: | |
| 13009 | 2 | result = true; | |
| 13010 | 2 | break; | |
| 13011 | ✗ | default: | |
| 13012 | ✗ | break; | |
| 13013 | } | ||
| 13014 | 2 | return result; | |
| 13015 | } | ||
| 13016 | |||
| 13017 | #endif | ||
| 13018 | |||
| 13019 | 1 | bool FileManagerComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const { | |
| 13020 | 1 | FW_ASSERT( | |
| 13021 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 13022 | static_cast<FwAssertArgType>(portNum), | ||
| 13023 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 13024 | ); | ||
| 13025 | 1 | bool result = false; | |
| 13026 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 13027 | 1 | case 0: | |
| 13028 | 1 | result = true; | |
| 13029 | 1 | break; | |
| 13030 | ✗ | default: | |
| 13031 | ✗ | break; | |
| 13032 | } | ||
| 13033 | 1 | return result; | |
| 13034 | } | ||
| 13035 | |||
| 13036 | 1 | bool FileManagerComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const { | |
| 13037 | 1 | FW_ASSERT( | |
| 13038 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 13039 | static_cast<FwAssertArgType>(portNum), | ||
| 13040 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 13041 | ); | ||
| 13042 | 1 | bool result = false; | |
| 13043 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 13044 | 1 | case 0: | |
| 13045 | 1 | result = true; | |
| 13046 | 1 | break; | |
| 13047 | ✗ | default: | |
| 13048 | ✗ | break; | |
| 13049 | } | ||
| 13050 | 1 | return result; | |
| 13051 | } | ||
| 13052 | |||
| 13053 | 2 | bool FileManagerComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const { | |
| 13054 | 2 | FW_ASSERT( | |
| 13055 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 13056 | static_cast<FwAssertArgType>(portNum), | ||
| 13057 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 13058 | ); | ||
| 13059 | 2 | bool result = false; | |
| 13060 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 13061 | 2 | case 0: | |
| 13062 | 2 | result = true; | |
| 13063 | 2 | break; | |
| 13064 | ✗ | default: | |
| 13065 | ✗ | break; | |
| 13066 | } | ||
| 13067 | 2 | return result; | |
| 13068 | } | ||
| 13069 | |||
| 13070 | ✗ | bool FileManagerComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const { | |
| 13071 | ✗ | FW_ASSERT( | |
| 13072 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 13073 | static_cast<FwAssertArgType>(portNum), | ||
| 13074 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 13075 | ); | ||
| 13076 | ✗ | bool result = false; | |
| 13077 | ✗ | switch (portNum) { | |
| 13078 | ✗ | case 0: | |
| 13079 | ✗ | result = true; | |
| 13080 | ✗ | break; | |
| 13081 | ✗ | default: | |
| 13082 | ✗ | break; | |
| 13083 | } | ||
| 13084 | ✗ | return result; | |
| 13085 | } | ||
| 13086 | |||
| 13087 | ✗ | bool FileManagerComponentBase::isConnected_productGetOut_OutputPort(FwIndexType portNum) const { | |
| 13088 | ✗ | FW_ASSERT( | |
| 13089 | (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS), | ||
| 13090 | static_cast<FwAssertArgType>(portNum), | ||
| 13091 | static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS) | ||
| 13092 | ); | ||
| 13093 | ✗ | bool result = false; | |
| 13094 | ✗ | switch (portNum) { | |
| 13095 | default: | ||
| 13096 | ✗ | break; | |
| 13097 | } | ||
| 13098 | ✗ | return result; | |
| 13099 | } | ||
| 13100 | |||
| 13101 | ✗ | bool FileManagerComponentBase::isConnected_productSendOut_OutputPort(FwIndexType portNum) const { | |
| 13102 | ✗ | FW_ASSERT( | |
| 13103 | (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS), | ||
| 13104 | static_cast<FwAssertArgType>(portNum), | ||
| 13105 | static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS) | ||
| 13106 | ); | ||
| 13107 | ✗ | bool result = false; | |
| 13108 | ✗ | switch (portNum) { | |
| 13109 | default: | ||
| 13110 | ✗ | break; | |
| 13111 | } | ||
| 13112 | ✗ | return result; | |
| 13113 | } | ||
| 13114 | |||
| 13115 | 3 | bool FileManagerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 13116 | 3 | FW_ASSERT( | |
| 13117 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 13118 | static_cast<FwAssertArgType>(portNum), | ||
| 13119 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 13120 | ); | ||
| 13121 | 3 | bool result = false; | |
| 13122 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 13123 | 3 | case 0: | |
| 13124 | 3 | result = true; | |
| 13125 | 3 | break; | |
| 13126 | ✗ | default: | |
| 13127 | ✗ | break; | |
| 13128 | } | ||
| 13129 | 3 | return result; | |
| 13130 | } | ||
| 13131 | |||
| 13132 | 2 | bool FileManagerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 13133 | 2 | FW_ASSERT( | |
| 13134 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 13135 | static_cast<FwAssertArgType>(portNum), | ||
| 13136 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 13137 | ); | ||
| 13138 | 2 | bool result = false; | |
| 13139 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 13140 | 2 | case 0: | |
| 13141 | 2 | result = true; | |
| 13142 | 2 | break; | |
| 13143 | ✗ | default: | |
| 13144 | ✗ | break; | |
| 13145 | } | ||
| 13146 | 2 | return result; | |
| 13147 | } | ||
| 13148 | |||
| 13149 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 13150 | |||
| 13151 | 2 | void FileManagerComponentBase::LogText_out( | |
| 13152 | FwIndexType portNum, | ||
| 13153 | FwEventIdType id, | ||
| 13154 | Fw::Time& timeTag, | ||
| 13155 | const Fw::LogSeverity& severity, | ||
| 13156 | Fw::TextLogString& text | ||
| 13157 | ) const { | ||
| 13158 | 2 | FW_ASSERT( | |
| 13159 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 13160 | static_cast<FwAssertArgType>(portNum), | ||
| 13161 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 13162 | ); | ||
| 13163 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 13164 | 2 | case 0: | |
| 13165 | 2 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 13166 | 0, | ||
| 13167 | id, | ||
| 13168 | timeTag, | ||
| 13169 | severity, | ||
| 13170 | text | ||
| 13171 | ); | ||
| 13172 | 2 | break; | |
| 13173 | ✗ | default: | |
| 13174 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13175 | ✗ | break; | |
| 13176 | } | ||
| 13177 | 2 | } | |
| 13178 | |||
| 13179 | #endif | ||
| 13180 | |||
| 13181 | 9 | void FileManagerComponentBase::cmdRegOut_out( | |
| 13182 | FwIndexType portNum, | ||
| 13183 | FwOpcodeType opCode | ||
| 13184 | ) const { | ||
| 13185 | 9 | FW_ASSERT( | |
| 13186 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 13187 | static_cast<FwAssertArgType>(portNum), | ||
| 13188 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 13189 | ); | ||
| 13190 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | switch (portNum) { |
| 13191 | 9 | case 0: | |
| 13192 | 9 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 13193 | 10, | ||
| 13194 | opCode | ||
| 13195 | ); | ||
| 13196 | 9 | break; | |
| 13197 | ✗ | default: | |
| 13198 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13199 | ✗ | break; | |
| 13200 | } | ||
| 13201 | 9 | } | |
| 13202 | |||
| 13203 | 1 | void FileManagerComponentBase::cmdResponseOut_out( | |
| 13204 | FwIndexType portNum, | ||
| 13205 | FwOpcodeType opCode, | ||
| 13206 | U32 cmdSeq, | ||
| 13207 | const Fw::CmdResponse& response | ||
| 13208 | ) const { | ||
| 13209 | 1 | FW_ASSERT( | |
| 13210 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 13211 | static_cast<FwAssertArgType>(portNum), | ||
| 13212 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 13213 | ); | ||
| 13214 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 13215 | 1 | case 0: | |
| 13216 | 1 | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 13217 | 0, | ||
| 13218 | opCode, | ||
| 13219 | cmdSeq, | ||
| 13220 | response | ||
| 13221 | ); | ||
| 13222 | 1 | break; | |
| 13223 | ✗ | default: | |
| 13224 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13225 | ✗ | break; | |
| 13226 | } | ||
| 13227 | 1 | } | |
| 13228 | |||
| 13229 | 2 | void FileManagerComponentBase::eventOut_out( | |
| 13230 | FwIndexType portNum, | ||
| 13231 | FwEventIdType id, | ||
| 13232 | Fw::Time& timeTag, | ||
| 13233 | const Fw::LogSeverity& severity, | ||
| 13234 | Fw::LogBuffer& args | ||
| 13235 | ) const { | ||
| 13236 | 2 | FW_ASSERT( | |
| 13237 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 13238 | static_cast<FwAssertArgType>(portNum), | ||
| 13239 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 13240 | ); | ||
| 13241 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 13242 | 2 | case 0: | |
| 13243 | 2 | CdhCore::events.LogRecv_handlerBase( | |
| 13244 | 0, | ||
| 13245 | id, | ||
| 13246 | timeTag, | ||
| 13247 | severity, | ||
| 13248 | args | ||
| 13249 | ); | ||
| 13250 | 2 | break; | |
| 13251 | ✗ | default: | |
| 13252 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13253 | ✗ | break; | |
| 13254 | } | ||
| 13255 | 2 | } | |
| 13256 | |||
| 13257 | 66 | void FileManagerComponentBase::pingOut_out( | |
| 13258 | FwIndexType portNum, | ||
| 13259 | U32 key | ||
| 13260 | ) const { | ||
| 13261 | 66 | FW_ASSERT( | |
| 13262 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 13263 | static_cast<FwAssertArgType>(portNum), | ||
| 13264 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 13265 | ); | ||
| 13266 |
1/2✓ Branch 0 taken 66 times.
✗ Branch 1 not taken.
|
66 | switch (portNum) { |
| 13267 | 66 | case 0: | |
| 13268 | 66 | CdhCore::health.PingReturn_handlerBase( | |
| 13269 | 6, | ||
| 13270 | key | ||
| 13271 | ); | ||
| 13272 | 66 | break; | |
| 13273 | ✗ | default: | |
| 13274 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13275 | ✗ | break; | |
| 13276 | } | ||
| 13277 | 66 | } | |
| 13278 | |||
| 13279 | ✗ | Fw::Success FileManagerComponentBase::productGetOut_out( | |
| 13280 | FwIndexType portNum, | ||
| 13281 | FwDpIdType id, | ||
| 13282 | FwSizeType dataSize, | ||
| 13283 | Fw::Buffer& buffer | ||
| 13284 | ) const { | ||
| 13285 | ✗ | FW_ASSERT( | |
| 13286 | (0 <= portNum) && (portNum < NUM_PRODUCTGETOUT_OUTPUT_PORTS), | ||
| 13287 | static_cast<FwAssertArgType>(portNum), | ||
| 13288 | static_cast<FwAssertArgType>(NUM_PRODUCTGETOUT_OUTPUT_PORTS) | ||
| 13289 | ); | ||
| 13290 | ✗ | Fw::Success _result = {}; | |
| 13291 | ✗ | switch (portNum) { | |
| 13292 | default: | ||
| 13293 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13294 | ✗ | break; | |
| 13295 | } | ||
| 13296 | ✗ | return _result; | |
| 13297 | ✗ | } | |
| 13298 | |||
| 13299 | ✗ | void FileManagerComponentBase::productSendOut_out( | |
| 13300 | FwIndexType portNum, | ||
| 13301 | FwDpIdType id, | ||
| 13302 | const Fw::Buffer& buffer | ||
| 13303 | ) const { | ||
| 13304 | ✗ | FW_ASSERT( | |
| 13305 | (0 <= portNum) && (portNum < NUM_PRODUCTSENDOUT_OUTPUT_PORTS), | ||
| 13306 | static_cast<FwAssertArgType>(portNum), | ||
| 13307 | static_cast<FwAssertArgType>(NUM_PRODUCTSENDOUT_OUTPUT_PORTS) | ||
| 13308 | ); | ||
| 13309 | ✗ | switch (portNum) { | |
| 13310 | default: | ||
| 13311 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13312 | ✗ | break; | |
| 13313 | } | ||
| 13314 | ✗ | } | |
| 13315 | |||
| 13316 | 3 | void FileManagerComponentBase::timeCaller_out( | |
| 13317 | FwIndexType portNum, | ||
| 13318 | Fw::Time& time | ||
| 13319 | ) const { | ||
| 13320 | 3 | FW_ASSERT( | |
| 13321 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 13322 | static_cast<FwAssertArgType>(portNum), | ||
| 13323 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 13324 | ); | ||
| 13325 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 13326 | 3 | case 0: | |
| 13327 | 3 | Ref::posixTime.timeGetPort_handlerBase( | |
| 13328 | 0, | ||
| 13329 | time | ||
| 13330 | ); | ||
| 13331 | 3 | break; | |
| 13332 | ✗ | default: | |
| 13333 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13334 | ✗ | break; | |
| 13335 | } | ||
| 13336 | 3 | } | |
| 13337 | |||
| 13338 | 1 | void FileManagerComponentBase::tlmOut_out( | |
| 13339 | FwIndexType portNum, | ||
| 13340 | FwChanIdType id, | ||
| 13341 | Fw::Time& timeTag, | ||
| 13342 | Fw::TlmBuffer& val | ||
| 13343 | ) const { | ||
| 13344 | 1 | FW_ASSERT( | |
| 13345 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 13346 | static_cast<FwAssertArgType>(portNum), | ||
| 13347 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 13348 | ); | ||
| 13349 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 13350 | 1 | case 0: | |
| 13351 | 1 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 13352 | 0, | ||
| 13353 | id, | ||
| 13354 | timeTag, | ||
| 13355 | val | ||
| 13356 | ); | ||
| 13357 | 1 | break; | |
| 13358 | ✗ | default: | |
| 13359 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13360 | ✗ | break; | |
| 13361 | } | ||
| 13362 | 1 | } | |
| 13363 | |||
| 13364 | } | ||
| 13365 | |||
| 13366 | namespace Svc { | ||
| 13367 | |||
| 13368 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 13369 | |||
| 13370 | 4 | bool FileUplinkComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 13371 | 4 | FW_ASSERT( | |
| 13372 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 13373 | static_cast<FwAssertArgType>(portNum), | ||
| 13374 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 13375 | ); | ||
| 13376 | 4 | bool result = false; | |
| 13377 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 13378 | 4 | case 0: | |
| 13379 | 4 | result = true; | |
| 13380 | 4 | break; | |
| 13381 | ✗ | default: | |
| 13382 | ✗ | break; | |
| 13383 | } | ||
| 13384 | 4 | return result; | |
| 13385 | } | ||
| 13386 | |||
| 13387 | #endif | ||
| 13388 | |||
| 13389 | ✗ | bool FileUplinkComponentBase::isConnected_bufferSendOut_OutputPort(FwIndexType portNum) const { | |
| 13390 | ✗ | FW_ASSERT( | |
| 13391 | (0 <= portNum) && (portNum < NUM_BUFFERSENDOUT_OUTPUT_PORTS), | ||
| 13392 | static_cast<FwAssertArgType>(portNum), | ||
| 13393 | static_cast<FwAssertArgType>(NUM_BUFFERSENDOUT_OUTPUT_PORTS) | ||
| 13394 | ); | ||
| 13395 | ✗ | bool result = false; | |
| 13396 | ✗ | switch (portNum) { | |
| 13397 | ✗ | case 0: | |
| 13398 | ✗ | result = true; | |
| 13399 | ✗ | break; | |
| 13400 | ✗ | default: | |
| 13401 | ✗ | break; | |
| 13402 | } | ||
| 13403 | ✗ | return result; | |
| 13404 | } | ||
| 13405 | |||
| 13406 | 4 | bool FileUplinkComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const { | |
| 13407 | 4 | FW_ASSERT( | |
| 13408 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 13409 | static_cast<FwAssertArgType>(portNum), | ||
| 13410 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 13411 | ); | ||
| 13412 | 4 | bool result = false; | |
| 13413 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 13414 | 4 | case 0: | |
| 13415 | 4 | result = true; | |
| 13416 | 4 | break; | |
| 13417 | ✗ | default: | |
| 13418 | ✗ | break; | |
| 13419 | } | ||
| 13420 | 4 | return result; | |
| 13421 | } | ||
| 13422 | |||
| 13423 | 1 | bool FileUplinkComponentBase::isConnected_fileAnnounce_OutputPort(FwIndexType portNum) const { | |
| 13424 | 1 | FW_ASSERT( | |
| 13425 | (0 <= portNum) && (portNum < NUM_FILEANNOUNCE_OUTPUT_PORTS), | ||
| 13426 | static_cast<FwAssertArgType>(portNum), | ||
| 13427 | static_cast<FwAssertArgType>(NUM_FILEANNOUNCE_OUTPUT_PORTS) | ||
| 13428 | ); | ||
| 13429 | 1 | bool result = false; | |
| 13430 | 1 | switch (portNum) { | |
| 13431 | default: | ||
| 13432 | 1 | break; | |
| 13433 | } | ||
| 13434 | 1 | return result; | |
| 13435 | } | ||
| 13436 | |||
| 13437 | ✗ | bool FileUplinkComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const { | |
| 13438 | ✗ | FW_ASSERT( | |
| 13439 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 13440 | static_cast<FwAssertArgType>(portNum), | ||
| 13441 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 13442 | ); | ||
| 13443 | ✗ | bool result = false; | |
| 13444 | ✗ | switch (portNum) { | |
| 13445 | ✗ | case 0: | |
| 13446 | ✗ | result = true; | |
| 13447 | ✗ | break; | |
| 13448 | ✗ | default: | |
| 13449 | ✗ | break; | |
| 13450 | } | ||
| 13451 | ✗ | return result; | |
| 13452 | } | ||
| 13453 | |||
| 13454 | 14 | bool FileUplinkComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 13455 | 14 | FW_ASSERT( | |
| 13456 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 13457 | static_cast<FwAssertArgType>(portNum), | ||
| 13458 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 13459 | ); | ||
| 13460 | 14 | bool result = false; | |
| 13461 |
1/2✓ Branch 0 taken 14 times.
✗ Branch 1 not taken.
|
14 | switch (portNum) { |
| 13462 | 14 | case 0: | |
| 13463 | 14 | result = true; | |
| 13464 | 14 | break; | |
| 13465 | ✗ | default: | |
| 13466 | ✗ | break; | |
| 13467 | } | ||
| 13468 | 14 | return result; | |
| 13469 | } | ||
| 13470 | |||
| 13471 | 20 | bool FileUplinkComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 13472 | 20 | FW_ASSERT( | |
| 13473 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 13474 | static_cast<FwAssertArgType>(portNum), | ||
| 13475 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 13476 | ); | ||
| 13477 | 20 | bool result = false; | |
| 13478 |
1/2✓ Branch 0 taken 20 times.
✗ Branch 1 not taken.
|
20 | switch (portNum) { |
| 13479 | 20 | case 0: | |
| 13480 | 20 | result = true; | |
| 13481 | 20 | break; | |
| 13482 | ✗ | default: | |
| 13483 | ✗ | break; | |
| 13484 | } | ||
| 13485 | 20 | return result; | |
| 13486 | } | ||
| 13487 | |||
| 13488 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 13489 | |||
| 13490 | 4 | void FileUplinkComponentBase::LogText_out( | |
| 13491 | FwIndexType portNum, | ||
| 13492 | FwEventIdType id, | ||
| 13493 | Fw::Time& timeTag, | ||
| 13494 | const Fw::LogSeverity& severity, | ||
| 13495 | Fw::TextLogString& text | ||
| 13496 | ) const { | ||
| 13497 | 4 | FW_ASSERT( | |
| 13498 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 13499 | static_cast<FwAssertArgType>(portNum), | ||
| 13500 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 13501 | ); | ||
| 13502 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 13503 | 4 | case 0: | |
| 13504 | 4 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 13505 | 0, | ||
| 13506 | id, | ||
| 13507 | timeTag, | ||
| 13508 | severity, | ||
| 13509 | text | ||
| 13510 | ); | ||
| 13511 | 4 | break; | |
| 13512 | ✗ | default: | |
| 13513 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13514 | ✗ | break; | |
| 13515 | } | ||
| 13516 | 4 | } | |
| 13517 | |||
| 13518 | #endif | ||
| 13519 | |||
| 13520 | 6 | void FileUplinkComponentBase::bufferSendOut_out( | |
| 13521 | FwIndexType portNum, | ||
| 13522 | Fw::Buffer& fwBuffer | ||
| 13523 | ) const { | ||
| 13524 | 6 | FW_ASSERT( | |
| 13525 | (0 <= portNum) && (portNum < NUM_BUFFERSENDOUT_OUTPUT_PORTS), | ||
| 13526 | static_cast<FwAssertArgType>(portNum), | ||
| 13527 | static_cast<FwAssertArgType>(NUM_BUFFERSENDOUT_OUTPUT_PORTS) | ||
| 13528 | ); | ||
| 13529 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 13530 | 6 | case 0: | |
| 13531 | 6 | ComCcsds::fprimeRouter.fileBufferReturnIn_handlerBase( | |
| 13532 | 0, | ||
| 13533 | fwBuffer | ||
| 13534 | ); | ||
| 13535 | 6 | break; | |
| 13536 | ✗ | default: | |
| 13537 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13538 | ✗ | break; | |
| 13539 | } | ||
| 13540 | 6 | } | |
| 13541 | |||
| 13542 | 4 | void FileUplinkComponentBase::eventOut_out( | |
| 13543 | FwIndexType portNum, | ||
| 13544 | FwEventIdType id, | ||
| 13545 | Fw::Time& timeTag, | ||
| 13546 | const Fw::LogSeverity& severity, | ||
| 13547 | Fw::LogBuffer& args | ||
| 13548 | ) const { | ||
| 13549 | 4 | FW_ASSERT( | |
| 13550 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 13551 | static_cast<FwAssertArgType>(portNum), | ||
| 13552 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 13553 | ); | ||
| 13554 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 13555 | 4 | case 0: | |
| 13556 | 4 | CdhCore::events.LogRecv_handlerBase( | |
| 13557 | 0, | ||
| 13558 | id, | ||
| 13559 | timeTag, | ||
| 13560 | severity, | ||
| 13561 | args | ||
| 13562 | ); | ||
| 13563 | 4 | break; | |
| 13564 | ✗ | default: | |
| 13565 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13566 | ✗ | break; | |
| 13567 | } | ||
| 13568 | 4 | } | |
| 13569 | |||
| 13570 | ✗ | void FileUplinkComponentBase::fileAnnounce_out( | |
| 13571 | FwIndexType portNum, | ||
| 13572 | Fw::StringBase& file_name | ||
| 13573 | ) const { | ||
| 13574 | ✗ | FW_ASSERT( | |
| 13575 | (0 <= portNum) && (portNum < NUM_FILEANNOUNCE_OUTPUT_PORTS), | ||
| 13576 | static_cast<FwAssertArgType>(portNum), | ||
| 13577 | static_cast<FwAssertArgType>(NUM_FILEANNOUNCE_OUTPUT_PORTS) | ||
| 13578 | ); | ||
| 13579 | ✗ | switch (portNum) { | |
| 13580 | default: | ||
| 13581 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13582 | ✗ | break; | |
| 13583 | } | ||
| 13584 | ✗ | } | |
| 13585 | |||
| 13586 | 66 | void FileUplinkComponentBase::pingOut_out( | |
| 13587 | FwIndexType portNum, | ||
| 13588 | U32 key | ||
| 13589 | ) const { | ||
| 13590 | 66 | FW_ASSERT( | |
| 13591 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 13592 | static_cast<FwAssertArgType>(portNum), | ||
| 13593 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 13594 | ); | ||
| 13595 |
1/2✓ Branch 0 taken 66 times.
✗ Branch 1 not taken.
|
66 | switch (portNum) { |
| 13596 | 66 | case 0: | |
| 13597 | 66 | CdhCore::health.PingReturn_handlerBase( | |
| 13598 | 7, | ||
| 13599 | key | ||
| 13600 | ); | ||
| 13601 | 66 | break; | |
| 13602 | ✗ | default: | |
| 13603 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13604 | ✗ | break; | |
| 13605 | } | ||
| 13606 | 66 | } | |
| 13607 | |||
| 13608 | 14 | void FileUplinkComponentBase::timeCaller_out( | |
| 13609 | FwIndexType portNum, | ||
| 13610 | Fw::Time& time | ||
| 13611 | ) const { | ||
| 13612 | 14 | FW_ASSERT( | |
| 13613 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 13614 | static_cast<FwAssertArgType>(portNum), | ||
| 13615 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 13616 | ); | ||
| 13617 |
1/2✓ Branch 0 taken 14 times.
✗ Branch 1 not taken.
|
14 | switch (portNum) { |
| 13618 | 14 | case 0: | |
| 13619 | 14 | Ref::posixTime.timeGetPort_handlerBase( | |
| 13620 | 0, | ||
| 13621 | time | ||
| 13622 | ); | ||
| 13623 | 14 | break; | |
| 13624 | ✗ | default: | |
| 13625 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13626 | ✗ | break; | |
| 13627 | } | ||
| 13628 | 14 | } | |
| 13629 | |||
| 13630 | 10 | void FileUplinkComponentBase::tlmOut_out( | |
| 13631 | FwIndexType portNum, | ||
| 13632 | FwChanIdType id, | ||
| 13633 | Fw::Time& timeTag, | ||
| 13634 | Fw::TlmBuffer& val | ||
| 13635 | ) const { | ||
| 13636 | 10 | FW_ASSERT( | |
| 13637 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 13638 | static_cast<FwAssertArgType>(portNum), | ||
| 13639 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 13640 | ); | ||
| 13641 |
1/2✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
|
10 | switch (portNum) { |
| 13642 | 10 | case 0: | |
| 13643 | 10 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 13644 | 0, | ||
| 13645 | id, | ||
| 13646 | timeTag, | ||
| 13647 | val | ||
| 13648 | ); | ||
| 13649 | 10 | break; | |
| 13650 | ✗ | default: | |
| 13651 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13652 | ✗ | break; | |
| 13653 | } | ||
| 13654 | 10 | } | |
| 13655 | |||
| 13656 | } | ||
| 13657 | |||
| 13658 | namespace Svc { | ||
| 13659 | |||
| 13660 | ✗ | bool FprimeRouterComponentBase::isConnected_commandOut_OutputPort(FwIndexType portNum) const { | |
| 13661 | ✗ | FW_ASSERT( | |
| 13662 | (0 <= portNum) && (portNum < NUM_COMMANDOUT_OUTPUT_PORTS), | ||
| 13663 | static_cast<FwAssertArgType>(portNum), | ||
| 13664 | static_cast<FwAssertArgType>(NUM_COMMANDOUT_OUTPUT_PORTS) | ||
| 13665 | ); | ||
| 13666 | ✗ | bool result = false; | |
| 13667 | ✗ | switch (portNum) { | |
| 13668 | ✗ | case 0: | |
| 13669 | ✗ | result = true; | |
| 13670 | ✗ | break; | |
| 13671 | ✗ | default: | |
| 13672 | ✗ | break; | |
| 13673 | } | ||
| 13674 | ✗ | return result; | |
| 13675 | } | ||
| 13676 | |||
| 13677 | ✗ | bool FprimeRouterComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const { | |
| 13678 | ✗ | FW_ASSERT( | |
| 13679 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 13680 | static_cast<FwAssertArgType>(portNum), | ||
| 13681 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 13682 | ); | ||
| 13683 | ✗ | bool result = false; | |
| 13684 | ✗ | switch (portNum) { | |
| 13685 | ✗ | case 0: | |
| 13686 | ✗ | result = true; | |
| 13687 | ✗ | break; | |
| 13688 | ✗ | default: | |
| 13689 | ✗ | break; | |
| 13690 | } | ||
| 13691 | ✗ | return result; | |
| 13692 | } | ||
| 13693 | |||
| 13694 | 6 | bool FprimeRouterComponentBase::isConnected_fileOut_OutputPort(FwIndexType portNum) const { | |
| 13695 | 6 | FW_ASSERT( | |
| 13696 | (0 <= portNum) && (portNum < NUM_FILEOUT_OUTPUT_PORTS), | ||
| 13697 | static_cast<FwAssertArgType>(portNum), | ||
| 13698 | static_cast<FwAssertArgType>(NUM_FILEOUT_OUTPUT_PORTS) | ||
| 13699 | ); | ||
| 13700 | 6 | bool result = false; | |
| 13701 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 13702 | 6 | case 0: | |
| 13703 | 6 | result = true; | |
| 13704 | 6 | break; | |
| 13705 | ✗ | default: | |
| 13706 | ✗ | break; | |
| 13707 | } | ||
| 13708 | 6 | return result; | |
| 13709 | } | ||
| 13710 | |||
| 13711 | ✗ | bool FprimeRouterComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 13712 | ✗ | FW_ASSERT( | |
| 13713 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 13714 | static_cast<FwAssertArgType>(portNum), | ||
| 13715 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 13716 | ); | ||
| 13717 | ✗ | bool result = false; | |
| 13718 | ✗ | switch (portNum) { | |
| 13719 | ✗ | case 0: | |
| 13720 | ✗ | result = true; | |
| 13721 | ✗ | break; | |
| 13722 | ✗ | default: | |
| 13723 | ✗ | break; | |
| 13724 | } | ||
| 13725 | ✗ | return result; | |
| 13726 | } | ||
| 13727 | |||
| 13728 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 13729 | |||
| 13730 | ✗ | bool FprimeRouterComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 13731 | ✗ | FW_ASSERT( | |
| 13732 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 13733 | static_cast<FwAssertArgType>(portNum), | ||
| 13734 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 13735 | ); | ||
| 13736 | ✗ | bool result = false; | |
| 13737 | ✗ | switch (portNum) { | |
| 13738 | ✗ | case 0: | |
| 13739 | ✗ | result = true; | |
| 13740 | ✗ | break; | |
| 13741 | ✗ | default: | |
| 13742 | ✗ | break; | |
| 13743 | } | ||
| 13744 | ✗ | return result; | |
| 13745 | } | ||
| 13746 | |||
| 13747 | #endif | ||
| 13748 | |||
| 13749 | ✗ | bool FprimeRouterComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 13750 | ✗ | FW_ASSERT( | |
| 13751 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 13752 | static_cast<FwAssertArgType>(portNum), | ||
| 13753 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 13754 | ); | ||
| 13755 | ✗ | bool result = false; | |
| 13756 | ✗ | switch (portNum) { | |
| 13757 | ✗ | case 0: | |
| 13758 | ✗ | result = true; | |
| 13759 | ✗ | break; | |
| 13760 | ✗ | default: | |
| 13761 | ✗ | break; | |
| 13762 | } | ||
| 13763 | ✗ | return result; | |
| 13764 | } | ||
| 13765 | |||
| 13766 | ✗ | bool FprimeRouterComponentBase::isConnected_unknownDataOut_OutputPort(FwIndexType portNum) const { | |
| 13767 | ✗ | FW_ASSERT( | |
| 13768 | (0 <= portNum) && (portNum < NUM_UNKNOWNDATAOUT_OUTPUT_PORTS), | ||
| 13769 | static_cast<FwAssertArgType>(portNum), | ||
| 13770 | static_cast<FwAssertArgType>(NUM_UNKNOWNDATAOUT_OUTPUT_PORTS) | ||
| 13771 | ); | ||
| 13772 | ✗ | bool result = false; | |
| 13773 | ✗ | switch (portNum) { | |
| 13774 | default: | ||
| 13775 | ✗ | break; | |
| 13776 | } | ||
| 13777 | ✗ | return result; | |
| 13778 | } | ||
| 13779 | |||
| 13780 | 156 | void FprimeRouterComponentBase::commandOut_out( | |
| 13781 | FwIndexType portNum, | ||
| 13782 | Fw::ComBuffer& data, | ||
| 13783 | U32 context | ||
| 13784 | ) const { | ||
| 13785 | 156 | FW_ASSERT( | |
| 13786 | (0 <= portNum) && (portNum < NUM_COMMANDOUT_OUTPUT_PORTS), | ||
| 13787 | static_cast<FwAssertArgType>(portNum), | ||
| 13788 | static_cast<FwAssertArgType>(NUM_COMMANDOUT_OUTPUT_PORTS) | ||
| 13789 | ); | ||
| 13790 |
1/2✓ Branch 0 taken 156 times.
✗ Branch 1 not taken.
|
156 | switch (portNum) { |
| 13791 | 156 | case 0: | |
| 13792 | 156 | CdhCore::cmdDisp.seqCmdBuff_handlerBase( | |
| 13793 | 0, | ||
| 13794 | data, | ||
| 13795 | context | ||
| 13796 | ); | ||
| 13797 | 156 | break; | |
| 13798 | ✗ | default: | |
| 13799 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13800 | ✗ | break; | |
| 13801 | } | ||
| 13802 | 156 | } | |
| 13803 | |||
| 13804 | 162 | void FprimeRouterComponentBase::dataReturnOut_out( | |
| 13805 | FwIndexType portNum, | ||
| 13806 | Fw::Buffer& data, | ||
| 13807 | const ComCfg::FrameContext& context | ||
| 13808 | ) const { | ||
| 13809 | 162 | FW_ASSERT( | |
| 13810 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 13811 | static_cast<FwAssertArgType>(portNum), | ||
| 13812 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 13813 | ); | ||
| 13814 |
1/2✓ Branch 0 taken 162 times.
✗ Branch 1 not taken.
|
162 | switch (portNum) { |
| 13815 | 162 | case 0: | |
| 13816 | 162 | ComCcsds::spacePacketDeframer.dataReturnIn_handlerBase( | |
| 13817 | 0, | ||
| 13818 | data, | ||
| 13819 | context | ||
| 13820 | ); | ||
| 13821 | 162 | break; | |
| 13822 | ✗ | default: | |
| 13823 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13824 | ✗ | break; | |
| 13825 | } | ||
| 13826 | 162 | } | |
| 13827 | |||
| 13828 | 6 | void FprimeRouterComponentBase::fileOut_out( | |
| 13829 | FwIndexType portNum, | ||
| 13830 | Fw::Buffer& fwBuffer | ||
| 13831 | ) const { | ||
| 13832 | 6 | FW_ASSERT( | |
| 13833 | (0 <= portNum) && (portNum < NUM_FILEOUT_OUTPUT_PORTS), | ||
| 13834 | static_cast<FwAssertArgType>(portNum), | ||
| 13835 | static_cast<FwAssertArgType>(NUM_FILEOUT_OUTPUT_PORTS) | ||
| 13836 | ); | ||
| 13837 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | switch (portNum) { |
| 13838 | 6 | case 0: | |
| 13839 | 6 | FileHandling::fileUplink.bufferSendIn_handlerBase( | |
| 13840 | 0, | ||
| 13841 | fwBuffer | ||
| 13842 | ); | ||
| 13843 | 6 | break; | |
| 13844 | ✗ | default: | |
| 13845 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13846 | ✗ | break; | |
| 13847 | } | ||
| 13848 | 6 | } | |
| 13849 | |||
| 13850 | ✗ | void FprimeRouterComponentBase::logOut_out( | |
| 13851 | FwIndexType portNum, | ||
| 13852 | FwEventIdType id, | ||
| 13853 | Fw::Time& timeTag, | ||
| 13854 | const Fw::LogSeverity& severity, | ||
| 13855 | Fw::LogBuffer& args | ||
| 13856 | ) const { | ||
| 13857 | ✗ | FW_ASSERT( | |
| 13858 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 13859 | static_cast<FwAssertArgType>(portNum), | ||
| 13860 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 13861 | ); | ||
| 13862 | ✗ | switch (portNum) { | |
| 13863 | ✗ | case 0: | |
| 13864 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 13865 | 0, | ||
| 13866 | id, | ||
| 13867 | timeTag, | ||
| 13868 | severity, | ||
| 13869 | args | ||
| 13870 | ); | ||
| 13871 | ✗ | break; | |
| 13872 | ✗ | default: | |
| 13873 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13874 | ✗ | break; | |
| 13875 | } | ||
| 13876 | ✗ | } | |
| 13877 | |||
| 13878 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 13879 | |||
| 13880 | ✗ | void FprimeRouterComponentBase::logTextOut_out( | |
| 13881 | FwIndexType portNum, | ||
| 13882 | FwEventIdType id, | ||
| 13883 | Fw::Time& timeTag, | ||
| 13884 | const Fw::LogSeverity& severity, | ||
| 13885 | Fw::TextLogString& text | ||
| 13886 | ) const { | ||
| 13887 | ✗ | FW_ASSERT( | |
| 13888 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 13889 | static_cast<FwAssertArgType>(portNum), | ||
| 13890 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 13891 | ); | ||
| 13892 | ✗ | switch (portNum) { | |
| 13893 | ✗ | case 0: | |
| 13894 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 13895 | 0, | ||
| 13896 | id, | ||
| 13897 | timeTag, | ||
| 13898 | severity, | ||
| 13899 | text | ||
| 13900 | ); | ||
| 13901 | ✗ | break; | |
| 13902 | ✗ | default: | |
| 13903 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13904 | ✗ | break; | |
| 13905 | } | ||
| 13906 | ✗ | } | |
| 13907 | |||
| 13908 | #endif | ||
| 13909 | |||
| 13910 | ✗ | void FprimeRouterComponentBase::timeCaller_out( | |
| 13911 | FwIndexType portNum, | ||
| 13912 | Fw::Time& time | ||
| 13913 | ) const { | ||
| 13914 | ✗ | FW_ASSERT( | |
| 13915 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 13916 | static_cast<FwAssertArgType>(portNum), | ||
| 13917 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 13918 | ); | ||
| 13919 | ✗ | switch (portNum) { | |
| 13920 | ✗ | case 0: | |
| 13921 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 13922 | 0, | ||
| 13923 | time | ||
| 13924 | ); | ||
| 13925 | ✗ | break; | |
| 13926 | ✗ | default: | |
| 13927 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13928 | ✗ | break; | |
| 13929 | } | ||
| 13930 | ✗ | } | |
| 13931 | |||
| 13932 | ✗ | void FprimeRouterComponentBase::unknownDataOut_out( | |
| 13933 | FwIndexType portNum, | ||
| 13934 | Fw::Buffer& data, | ||
| 13935 | const ComCfg::FrameContext& context | ||
| 13936 | ) const { | ||
| 13937 | ✗ | FW_ASSERT( | |
| 13938 | (0 <= portNum) && (portNum < NUM_UNKNOWNDATAOUT_OUTPUT_PORTS), | ||
| 13939 | static_cast<FwAssertArgType>(portNum), | ||
| 13940 | static_cast<FwAssertArgType>(NUM_UNKNOWNDATAOUT_OUTPUT_PORTS) | ||
| 13941 | ); | ||
| 13942 | ✗ | switch (portNum) { | |
| 13943 | default: | ||
| 13944 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 13945 | ✗ | break; | |
| 13946 | } | ||
| 13947 | ✗ | } | |
| 13948 | |||
| 13949 | } | ||
| 13950 | |||
| 13951 | namespace Svc { | ||
| 13952 | |||
| 13953 | ✗ | bool FrameAccumulatorComponentBase::isConnected_bufferAllocate_OutputPort(FwIndexType portNum) const { | |
| 13954 | ✗ | FW_ASSERT( | |
| 13955 | (0 <= portNum) && (portNum < NUM_BUFFERALLOCATE_OUTPUT_PORTS), | ||
| 13956 | static_cast<FwAssertArgType>(portNum), | ||
| 13957 | static_cast<FwAssertArgType>(NUM_BUFFERALLOCATE_OUTPUT_PORTS) | ||
| 13958 | ); | ||
| 13959 | ✗ | bool result = false; | |
| 13960 | ✗ | switch (portNum) { | |
| 13961 | ✗ | case 0: | |
| 13962 | ✗ | result = true; | |
| 13963 | ✗ | break; | |
| 13964 | ✗ | default: | |
| 13965 | ✗ | break; | |
| 13966 | } | ||
| 13967 | ✗ | return result; | |
| 13968 | } | ||
| 13969 | |||
| 13970 | ✗ | bool FrameAccumulatorComponentBase::isConnected_bufferDeallocate_OutputPort(FwIndexType portNum) const { | |
| 13971 | ✗ | FW_ASSERT( | |
| 13972 | (0 <= portNum) && (portNum < NUM_BUFFERDEALLOCATE_OUTPUT_PORTS), | ||
| 13973 | static_cast<FwAssertArgType>(portNum), | ||
| 13974 | static_cast<FwAssertArgType>(NUM_BUFFERDEALLOCATE_OUTPUT_PORTS) | ||
| 13975 | ); | ||
| 13976 | ✗ | bool result = false; | |
| 13977 | ✗ | switch (portNum) { | |
| 13978 | ✗ | case 0: | |
| 13979 | ✗ | result = true; | |
| 13980 | ✗ | break; | |
| 13981 | ✗ | default: | |
| 13982 | ✗ | break; | |
| 13983 | } | ||
| 13984 | ✗ | return result; | |
| 13985 | } | ||
| 13986 | |||
| 13987 | ✗ | bool FrameAccumulatorComponentBase::isConnected_dataOut_OutputPort(FwIndexType portNum) const { | |
| 13988 | ✗ | FW_ASSERT( | |
| 13989 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 13990 | static_cast<FwAssertArgType>(portNum), | ||
| 13991 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 13992 | ); | ||
| 13993 | ✗ | bool result = false; | |
| 13994 | ✗ | switch (portNum) { | |
| 13995 | ✗ | case 0: | |
| 13996 | ✗ | result = true; | |
| 13997 | ✗ | break; | |
| 13998 | ✗ | default: | |
| 13999 | ✗ | break; | |
| 14000 | } | ||
| 14001 | ✗ | return result; | |
| 14002 | } | ||
| 14003 | |||
| 14004 | ✗ | bool FrameAccumulatorComponentBase::isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const { | |
| 14005 | ✗ | FW_ASSERT( | |
| 14006 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 14007 | static_cast<FwAssertArgType>(portNum), | ||
| 14008 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 14009 | ); | ||
| 14010 | ✗ | bool result = false; | |
| 14011 | ✗ | switch (portNum) { | |
| 14012 | ✗ | case 0: | |
| 14013 | ✗ | result = true; | |
| 14014 | ✗ | break; | |
| 14015 | ✗ | default: | |
| 14016 | ✗ | break; | |
| 14017 | } | ||
| 14018 | ✗ | return result; | |
| 14019 | } | ||
| 14020 | |||
| 14021 | ✗ | bool FrameAccumulatorComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 14022 | ✗ | FW_ASSERT( | |
| 14023 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 14024 | static_cast<FwAssertArgType>(portNum), | ||
| 14025 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 14026 | ); | ||
| 14027 | ✗ | bool result = false; | |
| 14028 | ✗ | switch (portNum) { | |
| 14029 | ✗ | case 0: | |
| 14030 | ✗ | result = true; | |
| 14031 | ✗ | break; | |
| 14032 | ✗ | default: | |
| 14033 | ✗ | break; | |
| 14034 | } | ||
| 14035 | ✗ | return result; | |
| 14036 | } | ||
| 14037 | |||
| 14038 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 14039 | |||
| 14040 | ✗ | bool FrameAccumulatorComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 14041 | ✗ | FW_ASSERT( | |
| 14042 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 14043 | static_cast<FwAssertArgType>(portNum), | ||
| 14044 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 14045 | ); | ||
| 14046 | ✗ | bool result = false; | |
| 14047 | ✗ | switch (portNum) { | |
| 14048 | ✗ | case 0: | |
| 14049 | ✗ | result = true; | |
| 14050 | ✗ | break; | |
| 14051 | ✗ | default: | |
| 14052 | ✗ | break; | |
| 14053 | } | ||
| 14054 | ✗ | return result; | |
| 14055 | } | ||
| 14056 | |||
| 14057 | #endif | ||
| 14058 | |||
| 14059 | ✗ | bool FrameAccumulatorComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 14060 | ✗ | FW_ASSERT( | |
| 14061 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 14062 | static_cast<FwAssertArgType>(portNum), | ||
| 14063 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 14064 | ); | ||
| 14065 | ✗ | bool result = false; | |
| 14066 | ✗ | switch (portNum) { | |
| 14067 | ✗ | case 0: | |
| 14068 | ✗ | result = true; | |
| 14069 | ✗ | break; | |
| 14070 | ✗ | default: | |
| 14071 | ✗ | break; | |
| 14072 | } | ||
| 14073 | ✗ | return result; | |
| 14074 | } | ||
| 14075 | |||
| 14076 | 162 | Fw::Buffer FrameAccumulatorComponentBase::bufferAllocate_out( | |
| 14077 | FwIndexType portNum, | ||
| 14078 | FwSizeType size | ||
| 14079 | ) const { | ||
| 14080 | 162 | FW_ASSERT( | |
| 14081 | (0 <= portNum) && (portNum < NUM_BUFFERALLOCATE_OUTPUT_PORTS), | ||
| 14082 | static_cast<FwAssertArgType>(portNum), | ||
| 14083 | static_cast<FwAssertArgType>(NUM_BUFFERALLOCATE_OUTPUT_PORTS) | ||
| 14084 | ); | ||
| 14085 | 162 | Fw::Buffer _result = {}; | |
| 14086 |
1/2✓ Branch 0 taken 162 times.
✗ Branch 1 not taken.
|
162 | switch (portNum) { |
| 14087 | 162 | case 0: | |
| 14088 |
1/1✓ Branch 1 taken 162 times.
|
324 | _result = ComCcsds::commsBufferManager.bufferGetCallee_handlerBase( |
| 14089 | 0, | ||
| 14090 | size | ||
| 14091 |
1/1✓ Branch 1 taken 162 times.
|
162 | ); |
| 14092 | 162 | break; | |
| 14093 | ✗ | default: | |
| 14094 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14095 | ✗ | break; | |
| 14096 | } | ||
| 14097 | 162 | return _result; | |
| 14098 | ✗ | } | |
| 14099 | |||
| 14100 | 162 | void FrameAccumulatorComponentBase::bufferDeallocate_out( | |
| 14101 | FwIndexType portNum, | ||
| 14102 | Fw::Buffer& fwBuffer | ||
| 14103 | ) const { | ||
| 14104 | 162 | FW_ASSERT( | |
| 14105 | (0 <= portNum) && (portNum < NUM_BUFFERDEALLOCATE_OUTPUT_PORTS), | ||
| 14106 | static_cast<FwAssertArgType>(portNum), | ||
| 14107 | static_cast<FwAssertArgType>(NUM_BUFFERDEALLOCATE_OUTPUT_PORTS) | ||
| 14108 | ); | ||
| 14109 |
1/2✓ Branch 0 taken 162 times.
✗ Branch 1 not taken.
|
162 | switch (portNum) { |
| 14110 | 162 | case 0: | |
| 14111 | 162 | ComCcsds::commsBufferManager.bufferSendIn_handlerBase( | |
| 14112 | 0, | ||
| 14113 | fwBuffer | ||
| 14114 | ); | ||
| 14115 | 162 | break; | |
| 14116 | ✗ | default: | |
| 14117 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14118 | ✗ | break; | |
| 14119 | } | ||
| 14120 | 162 | } | |
| 14121 | |||
| 14122 | 162 | void FrameAccumulatorComponentBase::dataOut_out( | |
| 14123 | FwIndexType portNum, | ||
| 14124 | Fw::Buffer& data, | ||
| 14125 | const ComCfg::FrameContext& context | ||
| 14126 | ) const { | ||
| 14127 | 162 | FW_ASSERT( | |
| 14128 | (0 <= portNum) && (portNum < NUM_DATAOUT_OUTPUT_PORTS), | ||
| 14129 | static_cast<FwAssertArgType>(portNum), | ||
| 14130 | static_cast<FwAssertArgType>(NUM_DATAOUT_OUTPUT_PORTS) | ||
| 14131 | ); | ||
| 14132 |
1/2✓ Branch 0 taken 162 times.
✗ Branch 1 not taken.
|
162 | switch (portNum) { |
| 14133 | 162 | case 0: | |
| 14134 | 162 | ComCcsds::tcDeframer.dataIn_handlerBase( | |
| 14135 | 0, | ||
| 14136 | data, | ||
| 14137 | context | ||
| 14138 | ); | ||
| 14139 | 162 | break; | |
| 14140 | ✗ | default: | |
| 14141 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14142 | ✗ | break; | |
| 14143 | } | ||
| 14144 | 162 | } | |
| 14145 | |||
| 14146 | 679 | void FrameAccumulatorComponentBase::dataReturnOut_out( | |
| 14147 | FwIndexType portNum, | ||
| 14148 | Fw::Buffer& data, | ||
| 14149 | const ComCfg::FrameContext& context | ||
| 14150 | ) const { | ||
| 14151 | 679 | FW_ASSERT( | |
| 14152 | (0 <= portNum) && (portNum < NUM_DATARETURNOUT_OUTPUT_PORTS), | ||
| 14153 | static_cast<FwAssertArgType>(portNum), | ||
| 14154 | static_cast<FwAssertArgType>(NUM_DATARETURNOUT_OUTPUT_PORTS) | ||
| 14155 | ); | ||
| 14156 |
1/2✓ Branch 0 taken 679 times.
✗ Branch 1 not taken.
|
679 | switch (portNum) { |
| 14157 | 679 | case 0: | |
| 14158 | 679 | ComCcsds::comStub.dataReturnIn_handlerBase( | |
| 14159 | 0, | ||
| 14160 | data, | ||
| 14161 | context | ||
| 14162 | ); | ||
| 14163 | 679 | break; | |
| 14164 | ✗ | default: | |
| 14165 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14166 | ✗ | break; | |
| 14167 | } | ||
| 14168 | 679 | } | |
| 14169 | |||
| 14170 | ✗ | void FrameAccumulatorComponentBase::logOut_out( | |
| 14171 | FwIndexType portNum, | ||
| 14172 | FwEventIdType id, | ||
| 14173 | Fw::Time& timeTag, | ||
| 14174 | const Fw::LogSeverity& severity, | ||
| 14175 | Fw::LogBuffer& args | ||
| 14176 | ) const { | ||
| 14177 | ✗ | FW_ASSERT( | |
| 14178 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 14179 | static_cast<FwAssertArgType>(portNum), | ||
| 14180 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 14181 | ); | ||
| 14182 | ✗ | switch (portNum) { | |
| 14183 | ✗ | case 0: | |
| 14184 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 14185 | 0, | ||
| 14186 | id, | ||
| 14187 | timeTag, | ||
| 14188 | severity, | ||
| 14189 | args | ||
| 14190 | ); | ||
| 14191 | ✗ | break; | |
| 14192 | ✗ | default: | |
| 14193 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14194 | ✗ | break; | |
| 14195 | } | ||
| 14196 | ✗ | } | |
| 14197 | |||
| 14198 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 14199 | |||
| 14200 | ✗ | void FrameAccumulatorComponentBase::logTextOut_out( | |
| 14201 | FwIndexType portNum, | ||
| 14202 | FwEventIdType id, | ||
| 14203 | Fw::Time& timeTag, | ||
| 14204 | const Fw::LogSeverity& severity, | ||
| 14205 | Fw::TextLogString& text | ||
| 14206 | ) const { | ||
| 14207 | ✗ | FW_ASSERT( | |
| 14208 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 14209 | static_cast<FwAssertArgType>(portNum), | ||
| 14210 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 14211 | ); | ||
| 14212 | ✗ | switch (portNum) { | |
| 14213 | ✗ | case 0: | |
| 14214 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 14215 | 0, | ||
| 14216 | id, | ||
| 14217 | timeTag, | ||
| 14218 | severity, | ||
| 14219 | text | ||
| 14220 | ); | ||
| 14221 | ✗ | break; | |
| 14222 | ✗ | default: | |
| 14223 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14224 | ✗ | break; | |
| 14225 | } | ||
| 14226 | ✗ | } | |
| 14227 | |||
| 14228 | #endif | ||
| 14229 | |||
| 14230 | ✗ | void FrameAccumulatorComponentBase::timeCaller_out( | |
| 14231 | FwIndexType portNum, | ||
| 14232 | Fw::Time& time | ||
| 14233 | ) const { | ||
| 14234 | ✗ | FW_ASSERT( | |
| 14235 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 14236 | static_cast<FwAssertArgType>(portNum), | ||
| 14237 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 14238 | ); | ||
| 14239 | ✗ | switch (portNum) { | |
| 14240 | ✗ | case 0: | |
| 14241 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 14242 | 0, | ||
| 14243 | time | ||
| 14244 | ); | ||
| 14245 | ✗ | break; | |
| 14246 | ✗ | default: | |
| 14247 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14248 | ✗ | break; | |
| 14249 | } | ||
| 14250 | ✗ | } | |
| 14251 | |||
| 14252 | } | ||
| 14253 | |||
| 14254 | namespace Svc { | ||
| 14255 | |||
| 14256 | 1 | bool HealthComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const { | |
| 14257 | 1 | FW_ASSERT( | |
| 14258 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 14259 | static_cast<FwAssertArgType>(portNum), | ||
| 14260 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 14261 | ); | ||
| 14262 | 1 | bool result = false; | |
| 14263 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 14264 | 1 | case 0: | |
| 14265 | 1 | result = true; | |
| 14266 | 1 | break; | |
| 14267 | ✗ | default: | |
| 14268 | ✗ | break; | |
| 14269 | } | ||
| 14270 | 1 | return result; | |
| 14271 | } | ||
| 14272 | |||
| 14273 | ✗ | bool HealthComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const { | |
| 14274 | ✗ | FW_ASSERT( | |
| 14275 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 14276 | static_cast<FwAssertArgType>(portNum), | ||
| 14277 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 14278 | ); | ||
| 14279 | ✗ | bool result = false; | |
| 14280 | ✗ | switch (portNum) { | |
| 14281 | ✗ | case 0: | |
| 14282 | ✗ | result = true; | |
| 14283 | ✗ | break; | |
| 14284 | ✗ | default: | |
| 14285 | ✗ | break; | |
| 14286 | } | ||
| 14287 | ✗ | return result; | |
| 14288 | } | ||
| 14289 | |||
| 14290 | ✗ | bool HealthComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 14291 | ✗ | FW_ASSERT( | |
| 14292 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 14293 | static_cast<FwAssertArgType>(portNum), | ||
| 14294 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 14295 | ); | ||
| 14296 | ✗ | bool result = false; | |
| 14297 | ✗ | switch (portNum) { | |
| 14298 | ✗ | case 0: | |
| 14299 | ✗ | result = true; | |
| 14300 | ✗ | break; | |
| 14301 | ✗ | default: | |
| 14302 | ✗ | break; | |
| 14303 | } | ||
| 14304 | ✗ | return result; | |
| 14305 | } | ||
| 14306 | |||
| 14307 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 14308 | |||
| 14309 | ✗ | bool HealthComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 14310 | ✗ | FW_ASSERT( | |
| 14311 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 14312 | static_cast<FwAssertArgType>(portNum), | ||
| 14313 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 14314 | ); | ||
| 14315 | ✗ | bool result = false; | |
| 14316 | ✗ | switch (portNum) { | |
| 14317 | ✗ | case 0: | |
| 14318 | ✗ | result = true; | |
| 14319 | ✗ | break; | |
| 14320 | ✗ | default: | |
| 14321 | ✗ | break; | |
| 14322 | } | ||
| 14323 | ✗ | return result; | |
| 14324 | } | ||
| 14325 | |||
| 14326 | #endif | ||
| 14327 | |||
| 14328 | ✗ | bool HealthComponentBase::isConnected_PingSend_OutputPort(FwIndexType portNum) const { | |
| 14329 | ✗ | FW_ASSERT( | |
| 14330 | (0 <= portNum) && (portNum < NUM_PINGSEND_OUTPUT_PORTS), | ||
| 14331 | static_cast<FwAssertArgType>(portNum), | ||
| 14332 | static_cast<FwAssertArgType>(NUM_PINGSEND_OUTPUT_PORTS) | ||
| 14333 | ); | ||
| 14334 | ✗ | bool result = false; | |
| 14335 | ✗ | switch (portNum) { | |
| 14336 | ✗ | case 0: | |
| 14337 | ✗ | result = true; | |
| 14338 | ✗ | break; | |
| 14339 | ✗ | case 1: | |
| 14340 | ✗ | result = true; | |
| 14341 | ✗ | break; | |
| 14342 | ✗ | case 2: | |
| 14343 | ✗ | result = true; | |
| 14344 | ✗ | break; | |
| 14345 | ✗ | case 3: | |
| 14346 | ✗ | result = true; | |
| 14347 | ✗ | break; | |
| 14348 | ✗ | case 4: | |
| 14349 | ✗ | result = true; | |
| 14350 | ✗ | break; | |
| 14351 | ✗ | case 5: | |
| 14352 | ✗ | result = true; | |
| 14353 | ✗ | break; | |
| 14354 | ✗ | case 6: | |
| 14355 | ✗ | result = true; | |
| 14356 | ✗ | break; | |
| 14357 | ✗ | case 7: | |
| 14358 | ✗ | result = true; | |
| 14359 | ✗ | break; | |
| 14360 | ✗ | case 8: | |
| 14361 | ✗ | result = true; | |
| 14362 | ✗ | break; | |
| 14363 | ✗ | case 9: | |
| 14364 | ✗ | result = true; | |
| 14365 | ✗ | break; | |
| 14366 | ✗ | case 10: | |
| 14367 | ✗ | result = true; | |
| 14368 | ✗ | break; | |
| 14369 | ✗ | case 11: | |
| 14370 | ✗ | result = true; | |
| 14371 | ✗ | break; | |
| 14372 | ✗ | case 12: | |
| 14373 | ✗ | result = true; | |
| 14374 | ✗ | break; | |
| 14375 | ✗ | case 13: | |
| 14376 | ✗ | result = true; | |
| 14377 | ✗ | break; | |
| 14378 | ✗ | case 14: | |
| 14379 | ✗ | result = true; | |
| 14380 | ✗ | break; | |
| 14381 | ✗ | default: | |
| 14382 | ✗ | break; | |
| 14383 | } | ||
| 14384 | ✗ | return result; | |
| 14385 | } | ||
| 14386 | |||
| 14387 | ✗ | bool HealthComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 14388 | ✗ | FW_ASSERT( | |
| 14389 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 14390 | static_cast<FwAssertArgType>(portNum), | ||
| 14391 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 14392 | ); | ||
| 14393 | ✗ | bool result = false; | |
| 14394 | ✗ | switch (portNum) { | |
| 14395 | ✗ | case 0: | |
| 14396 | ✗ | result = true; | |
| 14397 | ✗ | break; | |
| 14398 | ✗ | default: | |
| 14399 | ✗ | break; | |
| 14400 | } | ||
| 14401 | ✗ | return result; | |
| 14402 | } | ||
| 14403 | |||
| 14404 | ✗ | bool HealthComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const { | |
| 14405 | ✗ | FW_ASSERT( | |
| 14406 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 14407 | static_cast<FwAssertArgType>(portNum), | ||
| 14408 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 14409 | ); | ||
| 14410 | ✗ | bool result = false; | |
| 14411 | ✗ | switch (portNum) { | |
| 14412 | ✗ | case 0: | |
| 14413 | ✗ | result = true; | |
| 14414 | ✗ | break; | |
| 14415 | ✗ | default: | |
| 14416 | ✗ | break; | |
| 14417 | } | ||
| 14418 | ✗ | return result; | |
| 14419 | } | ||
| 14420 | |||
| 14421 | 66 | bool HealthComponentBase::isConnected_WdogStroke_OutputPort(FwIndexType portNum) const { | |
| 14422 | 66 | FW_ASSERT( | |
| 14423 | (0 <= portNum) && (portNum < NUM_WDOGSTROKE_OUTPUT_PORTS), | ||
| 14424 | static_cast<FwAssertArgType>(portNum), | ||
| 14425 | static_cast<FwAssertArgType>(NUM_WDOGSTROKE_OUTPUT_PORTS) | ||
| 14426 | ); | ||
| 14427 | 66 | bool result = false; | |
| 14428 | 66 | switch (portNum) { | |
| 14429 | default: | ||
| 14430 | 66 | break; | |
| 14431 | } | ||
| 14432 | 66 | return result; | |
| 14433 | } | ||
| 14434 | |||
| 14435 | 3 | void HealthComponentBase::CmdReg_out( | |
| 14436 | FwIndexType portNum, | ||
| 14437 | FwOpcodeType opCode | ||
| 14438 | ) const { | ||
| 14439 | 3 | FW_ASSERT( | |
| 14440 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 14441 | static_cast<FwAssertArgType>(portNum), | ||
| 14442 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 14443 | ); | ||
| 14444 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 14445 | 3 | case 0: | |
| 14446 | 3 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 14447 | 2, | ||
| 14448 | opCode | ||
| 14449 | ); | ||
| 14450 | 3 | break; | |
| 14451 | ✗ | default: | |
| 14452 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14453 | ✗ | break; | |
| 14454 | } | ||
| 14455 | 3 | } | |
| 14456 | |||
| 14457 | ✗ | void HealthComponentBase::CmdStatus_out( | |
| 14458 | FwIndexType portNum, | ||
| 14459 | FwOpcodeType opCode, | ||
| 14460 | U32 cmdSeq, | ||
| 14461 | const Fw::CmdResponse& response | ||
| 14462 | ) const { | ||
| 14463 | ✗ | FW_ASSERT( | |
| 14464 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 14465 | static_cast<FwAssertArgType>(portNum), | ||
| 14466 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 14467 | ); | ||
| 14468 | ✗ | switch (portNum) { | |
| 14469 | ✗ | case 0: | |
| 14470 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 14471 | 0, | ||
| 14472 | opCode, | ||
| 14473 | cmdSeq, | ||
| 14474 | response | ||
| 14475 | ); | ||
| 14476 | ✗ | break; | |
| 14477 | ✗ | default: | |
| 14478 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14479 | ✗ | break; | |
| 14480 | } | ||
| 14481 | ✗ | } | |
| 14482 | |||
| 14483 | ✗ | void HealthComponentBase::Log_out( | |
| 14484 | FwIndexType portNum, | ||
| 14485 | FwEventIdType id, | ||
| 14486 | Fw::Time& timeTag, | ||
| 14487 | const Fw::LogSeverity& severity, | ||
| 14488 | Fw::LogBuffer& args | ||
| 14489 | ) const { | ||
| 14490 | ✗ | FW_ASSERT( | |
| 14491 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 14492 | static_cast<FwAssertArgType>(portNum), | ||
| 14493 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 14494 | ); | ||
| 14495 | ✗ | switch (portNum) { | |
| 14496 | ✗ | case 0: | |
| 14497 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 14498 | 0, | ||
| 14499 | id, | ||
| 14500 | timeTag, | ||
| 14501 | severity, | ||
| 14502 | args | ||
| 14503 | ); | ||
| 14504 | ✗ | break; | |
| 14505 | ✗ | default: | |
| 14506 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14507 | ✗ | break; | |
| 14508 | } | ||
| 14509 | ✗ | } | |
| 14510 | |||
| 14511 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 14512 | |||
| 14513 | ✗ | void HealthComponentBase::LogText_out( | |
| 14514 | FwIndexType portNum, | ||
| 14515 | FwEventIdType id, | ||
| 14516 | Fw::Time& timeTag, | ||
| 14517 | const Fw::LogSeverity& severity, | ||
| 14518 | Fw::TextLogString& text | ||
| 14519 | ) const { | ||
| 14520 | ✗ | FW_ASSERT( | |
| 14521 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 14522 | static_cast<FwAssertArgType>(portNum), | ||
| 14523 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 14524 | ); | ||
| 14525 | ✗ | switch (portNum) { | |
| 14526 | ✗ | case 0: | |
| 14527 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 14528 | 0, | ||
| 14529 | id, | ||
| 14530 | timeTag, | ||
| 14531 | severity, | ||
| 14532 | text | ||
| 14533 | ); | ||
| 14534 | ✗ | break; | |
| 14535 | ✗ | default: | |
| 14536 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14537 | ✗ | break; | |
| 14538 | } | ||
| 14539 | ✗ | } | |
| 14540 | |||
| 14541 | #endif | ||
| 14542 | |||
| 14543 | 990 | void HealthComponentBase::PingSend_out( | |
| 14544 | FwIndexType portNum, | ||
| 14545 | U32 key | ||
| 14546 | ) const { | ||
| 14547 | 990 | FW_ASSERT( | |
| 14548 | (0 <= portNum) && (portNum < NUM_PINGSEND_OUTPUT_PORTS), | ||
| 14549 | static_cast<FwAssertArgType>(portNum), | ||
| 14550 | static_cast<FwAssertArgType>(NUM_PINGSEND_OUTPUT_PORTS) | ||
| 14551 | ); | ||
| 14552 |
15/16✓ Branch 0 taken 66 times.
✓ Branch 1 taken 66 times.
✓ Branch 2 taken 66 times.
✓ Branch 3 taken 66 times.
✓ Branch 4 taken 66 times.
✓ Branch 5 taken 66 times.
✓ Branch 6 taken 66 times.
✓ Branch 7 taken 66 times.
✓ Branch 8 taken 66 times.
✓ Branch 9 taken 66 times.
✓ Branch 10 taken 66 times.
✓ Branch 11 taken 66 times.
✓ Branch 12 taken 66 times.
✓ Branch 13 taken 66 times.
✓ Branch 14 taken 66 times.
✗ Branch 15 not taken.
|
990 | switch (portNum) { |
| 14553 | 66 | case 0: | |
| 14554 | 66 | CdhCore::cmdDisp.pingIn_handlerBase( | |
| 14555 | 0, | ||
| 14556 | key | ||
| 14557 | ); | ||
| 14558 | 66 | break; | |
| 14559 | 66 | case 1: | |
| 14560 | 66 | CdhCore::events.pingIn_handlerBase( | |
| 14561 | 0, | ||
| 14562 | key | ||
| 14563 | ); | ||
| 14564 | 66 | break; | |
| 14565 | 66 | case 2: | |
| 14566 | 66 | CdhCore::tlmSend.pingIn_handlerBase( | |
| 14567 | 0, | ||
| 14568 | key | ||
| 14569 | ); | ||
| 14570 | 66 | break; | |
| 14571 | 66 | case 3: | |
| 14572 | 66 | DataProducts::dpBufferAccumulator.pingIn_handlerBase( | |
| 14573 | 0, | ||
| 14574 | key | ||
| 14575 | ); | ||
| 14576 | 66 | break; | |
| 14577 | 66 | case 4: | |
| 14578 | 66 | DataProducts::dpCat.pingIn_handlerBase( | |
| 14579 | 0, | ||
| 14580 | key | ||
| 14581 | ); | ||
| 14582 | 66 | break; | |
| 14583 | 66 | case 5: | |
| 14584 | 66 | FileHandling::fileDownlink.pingIn_handlerBase( | |
| 14585 | 0, | ||
| 14586 | key | ||
| 14587 | ); | ||
| 14588 | 66 | break; | |
| 14589 | 66 | case 6: | |
| 14590 | 66 | FileHandling::fileManager.pingIn_handlerBase( | |
| 14591 | 0, | ||
| 14592 | key | ||
| 14593 | ); | ||
| 14594 | 66 | break; | |
| 14595 | 66 | case 7: | |
| 14596 | 66 | FileHandling::fileUplink.pingIn_handlerBase( | |
| 14597 | 0, | ||
| 14598 | key | ||
| 14599 | ); | ||
| 14600 | 66 | break; | |
| 14601 | 66 | case 8: | |
| 14602 | 66 | FileHandling::prmDb.pingIn_handlerBase( | |
| 14603 | 0, | ||
| 14604 | key | ||
| 14605 | ); | ||
| 14606 | 66 | break; | |
| 14607 | 66 | case 9: | |
| 14608 | 66 | Ref::blockDrv.PingIn_handlerBase( | |
| 14609 | 0, | ||
| 14610 | key | ||
| 14611 | ); | ||
| 14612 | 66 | break; | |
| 14613 | 66 | case 10: | |
| 14614 | 66 | Ref::cmdSeq.pingIn_handlerBase( | |
| 14615 | 0, | ||
| 14616 | key | ||
| 14617 | ); | ||
| 14618 | 66 | break; | |
| 14619 | 66 | case 11: | |
| 14620 | 66 | Ref::pingRcvr.PingIn_handlerBase( | |
| 14621 | 0, | ||
| 14622 | key | ||
| 14623 | ); | ||
| 14624 | 66 | break; | |
| 14625 | 66 | case 12: | |
| 14626 | 66 | Ref::rateGroup1Comp.PingIn_handlerBase( | |
| 14627 | 0, | ||
| 14628 | key | ||
| 14629 | ); | ||
| 14630 | 66 | break; | |
| 14631 | 66 | case 13: | |
| 14632 | 66 | Ref::rateGroup2Comp.PingIn_handlerBase( | |
| 14633 | 0, | ||
| 14634 | key | ||
| 14635 | ); | ||
| 14636 | 66 | break; | |
| 14637 | 66 | case 14: | |
| 14638 | 66 | Ref::rateGroup3Comp.PingIn_handlerBase( | |
| 14639 | 0, | ||
| 14640 | key | ||
| 14641 | ); | ||
| 14642 | 66 | break; | |
| 14643 | ✗ | default: | |
| 14644 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14645 | ✗ | break; | |
| 14646 | } | ||
| 14647 | 990 | } | |
| 14648 | |||
| 14649 | ✗ | void HealthComponentBase::Time_out( | |
| 14650 | FwIndexType portNum, | ||
| 14651 | Fw::Time& time | ||
| 14652 | ) const { | ||
| 14653 | ✗ | FW_ASSERT( | |
| 14654 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 14655 | static_cast<FwAssertArgType>(portNum), | ||
| 14656 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 14657 | ); | ||
| 14658 | ✗ | switch (portNum) { | |
| 14659 | ✗ | case 0: | |
| 14660 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 14661 | 0, | ||
| 14662 | time | ||
| 14663 | ); | ||
| 14664 | ✗ | break; | |
| 14665 | ✗ | default: | |
| 14666 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14667 | ✗ | break; | |
| 14668 | } | ||
| 14669 | ✗ | } | |
| 14670 | |||
| 14671 | ✗ | void HealthComponentBase::Tlm_out( | |
| 14672 | FwIndexType portNum, | ||
| 14673 | FwChanIdType id, | ||
| 14674 | Fw::Time& timeTag, | ||
| 14675 | Fw::TlmBuffer& val | ||
| 14676 | ) const { | ||
| 14677 | ✗ | FW_ASSERT( | |
| 14678 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 14679 | static_cast<FwAssertArgType>(portNum), | ||
| 14680 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 14681 | ); | ||
| 14682 | ✗ | switch (portNum) { | |
| 14683 | ✗ | case 0: | |
| 14684 | ✗ | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 14685 | 0, | ||
| 14686 | id, | ||
| 14687 | timeTag, | ||
| 14688 | val | ||
| 14689 | ); | ||
| 14690 | ✗ | break; | |
| 14691 | ✗ | default: | |
| 14692 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14693 | ✗ | break; | |
| 14694 | } | ||
| 14695 | ✗ | } | |
| 14696 | |||
| 14697 | ✗ | void HealthComponentBase::WdogStroke_out( | |
| 14698 | FwIndexType portNum, | ||
| 14699 | U32 code | ||
| 14700 | ) const { | ||
| 14701 | ✗ | FW_ASSERT( | |
| 14702 | (0 <= portNum) && (portNum < NUM_WDOGSTROKE_OUTPUT_PORTS), | ||
| 14703 | static_cast<FwAssertArgType>(portNum), | ||
| 14704 | static_cast<FwAssertArgType>(NUM_WDOGSTROKE_OUTPUT_PORTS) | ||
| 14705 | ); | ||
| 14706 | ✗ | switch (portNum) { | |
| 14707 | default: | ||
| 14708 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14709 | ✗ | break; | |
| 14710 | } | ||
| 14711 | ✗ | } | |
| 14712 | |||
| 14713 | } | ||
| 14714 | |||
| 14715 | namespace Svc { | ||
| 14716 | |||
| 14717 | ✗ | bool LinuxTimerComponentBase::isConnected_CycleOut_OutputPort(FwIndexType portNum) const { | |
| 14718 | ✗ | FW_ASSERT( | |
| 14719 | (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS), | ||
| 14720 | static_cast<FwAssertArgType>(portNum), | ||
| 14721 | static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS) | ||
| 14722 | ); | ||
| 14723 | ✗ | bool result = false; | |
| 14724 | ✗ | switch (portNum) { | |
| 14725 | ✗ | case 0: | |
| 14726 | ✗ | result = true; | |
| 14727 | ✗ | break; | |
| 14728 | ✗ | default: | |
| 14729 | ✗ | break; | |
| 14730 | } | ||
| 14731 | ✗ | return result; | |
| 14732 | } | ||
| 14733 | |||
| 14734 | 262 | void LinuxTimerComponentBase::CycleOut_out( | |
| 14735 | FwIndexType portNum, | ||
| 14736 | Os::RawTime& cycleStart | ||
| 14737 | ) const { | ||
| 14738 | 262 | FW_ASSERT( | |
| 14739 | (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS), | ||
| 14740 | static_cast<FwAssertArgType>(portNum), | ||
| 14741 | static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS) | ||
| 14742 | ); | ||
| 14743 |
1/2✓ Branch 0 taken 262 times.
✗ Branch 1 not taken.
|
262 | switch (portNum) { |
| 14744 | 262 | case 0: | |
| 14745 | 262 | Ref::rateGroupDriverComp.CycleIn_handlerBase( | |
| 14746 | 0, | ||
| 14747 | cycleStart | ||
| 14748 | ); | ||
| 14749 | 262 | break; | |
| 14750 | ✗ | default: | |
| 14751 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14752 | ✗ | break; | |
| 14753 | } | ||
| 14754 | 262 | } | |
| 14755 | |||
| 14756 | } | ||
| 14757 | |||
| 14758 | namespace Svc { | ||
| 14759 | |||
| 14760 | 1 | bool PrmDbComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) const { | |
| 14761 | 1 | 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 | bool result = false; | |
| 14767 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 14768 | 1 | case 0: | |
| 14769 | 1 | result = true; | |
| 14770 | 1 | break; | |
| 14771 | ✗ | default: | |
| 14772 | ✗ | break; | |
| 14773 | } | ||
| 14774 | 1 | return result; | |
| 14775 | } | ||
| 14776 | |||
| 14777 | 4 | bool PrmDbComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const { | |
| 14778 | 4 | FW_ASSERT( | |
| 14779 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 14780 | static_cast<FwAssertArgType>(portNum), | ||
| 14781 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 14782 | ); | ||
| 14783 | 4 | bool result = false; | |
| 14784 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 14785 | 4 | case 0: | |
| 14786 | 4 | result = true; | |
| 14787 | 4 | break; | |
| 14788 | ✗ | default: | |
| 14789 | ✗ | break; | |
| 14790 | } | ||
| 14791 | 4 | return result; | |
| 14792 | } | ||
| 14793 | |||
| 14794 | 15 | bool PrmDbComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 14795 | 15 | FW_ASSERT( | |
| 14796 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 14797 | static_cast<FwAssertArgType>(portNum), | ||
| 14798 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 14799 | ); | ||
| 14800 | 15 | bool result = false; | |
| 14801 |
1/2✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
|
15 | switch (portNum) { |
| 14802 | 15 | case 0: | |
| 14803 | 15 | result = true; | |
| 14804 | 15 | break; | |
| 14805 | ✗ | default: | |
| 14806 | ✗ | break; | |
| 14807 | } | ||
| 14808 | 15 | return result; | |
| 14809 | } | ||
| 14810 | |||
| 14811 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 14812 | |||
| 14813 | 15 | bool PrmDbComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 14814 | 15 | FW_ASSERT( | |
| 14815 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 14816 | static_cast<FwAssertArgType>(portNum), | ||
| 14817 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 14818 | ); | ||
| 14819 | 15 | bool result = false; | |
| 14820 |
1/2✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
|
15 | switch (portNum) { |
| 14821 | 15 | case 0: | |
| 14822 | 15 | result = true; | |
| 14823 | 15 | break; | |
| 14824 | ✗ | default: | |
| 14825 | ✗ | break; | |
| 14826 | } | ||
| 14827 | 15 | return result; | |
| 14828 | } | ||
| 14829 | |||
| 14830 | #endif | ||
| 14831 | |||
| 14832 | 15 | bool PrmDbComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 14833 | 15 | FW_ASSERT( | |
| 14834 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 14835 | static_cast<FwAssertArgType>(portNum), | ||
| 14836 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 14837 | ); | ||
| 14838 | 15 | bool result = false; | |
| 14839 |
1/2✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
|
15 | switch (portNum) { |
| 14840 | 15 | case 0: | |
| 14841 | 15 | result = true; | |
| 14842 | 15 | break; | |
| 14843 | ✗ | default: | |
| 14844 | ✗ | break; | |
| 14845 | } | ||
| 14846 | 15 | return result; | |
| 14847 | } | ||
| 14848 | |||
| 14849 | ✗ | bool PrmDbComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const { | |
| 14850 | ✗ | FW_ASSERT( | |
| 14851 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 14852 | static_cast<FwAssertArgType>(portNum), | ||
| 14853 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 14854 | ); | ||
| 14855 | ✗ | bool result = false; | |
| 14856 | ✗ | switch (portNum) { | |
| 14857 | ✗ | case 0: | |
| 14858 | ✗ | result = true; | |
| 14859 | ✗ | break; | |
| 14860 | ✗ | default: | |
| 14861 | ✗ | break; | |
| 14862 | } | ||
| 14863 | ✗ | return result; | |
| 14864 | } | ||
| 14865 | |||
| 14866 | 3 | void PrmDbComponentBase::CmdReg_out( | |
| 14867 | FwIndexType portNum, | ||
| 14868 | FwOpcodeType opCode | ||
| 14869 | ) const { | ||
| 14870 | 3 | FW_ASSERT( | |
| 14871 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 14872 | static_cast<FwAssertArgType>(portNum), | ||
| 14873 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 14874 | ); | ||
| 14875 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 14876 | 3 | case 0: | |
| 14877 | 3 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 14878 | 11, | ||
| 14879 | opCode | ||
| 14880 | ); | ||
| 14881 | 3 | break; | |
| 14882 | ✗ | default: | |
| 14883 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14884 | ✗ | break; | |
| 14885 | } | ||
| 14886 | 3 | } | |
| 14887 | |||
| 14888 | 4 | void PrmDbComponentBase::CmdStatus_out( | |
| 14889 | FwIndexType portNum, | ||
| 14890 | FwOpcodeType opCode, | ||
| 14891 | U32 cmdSeq, | ||
| 14892 | const Fw::CmdResponse& response | ||
| 14893 | ) const { | ||
| 14894 | 4 | FW_ASSERT( | |
| 14895 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 14896 | static_cast<FwAssertArgType>(portNum), | ||
| 14897 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 14898 | ); | ||
| 14899 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 14900 | 4 | case 0: | |
| 14901 | 4 | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 14902 | 0, | ||
| 14903 | opCode, | ||
| 14904 | cmdSeq, | ||
| 14905 | response | ||
| 14906 | ); | ||
| 14907 | 4 | break; | |
| 14908 | ✗ | default: | |
| 14909 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14910 | ✗ | break; | |
| 14911 | } | ||
| 14912 | 4 | } | |
| 14913 | |||
| 14914 | 15 | void PrmDbComponentBase::Log_out( | |
| 14915 | FwIndexType portNum, | ||
| 14916 | FwEventIdType id, | ||
| 14917 | Fw::Time& timeTag, | ||
| 14918 | const Fw::LogSeverity& severity, | ||
| 14919 | Fw::LogBuffer& args | ||
| 14920 | ) const { | ||
| 14921 | 15 | FW_ASSERT( | |
| 14922 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 14923 | static_cast<FwAssertArgType>(portNum), | ||
| 14924 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 14925 | ); | ||
| 14926 |
1/2✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
|
15 | switch (portNum) { |
| 14927 | 15 | case 0: | |
| 14928 | 15 | CdhCore::events.LogRecv_handlerBase( | |
| 14929 | 0, | ||
| 14930 | id, | ||
| 14931 | timeTag, | ||
| 14932 | severity, | ||
| 14933 | args | ||
| 14934 | ); | ||
| 14935 | 15 | break; | |
| 14936 | ✗ | default: | |
| 14937 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14938 | ✗ | break; | |
| 14939 | } | ||
| 14940 | 15 | } | |
| 14941 | |||
| 14942 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 14943 | |||
| 14944 | 15 | void PrmDbComponentBase::LogText_out( | |
| 14945 | FwIndexType portNum, | ||
| 14946 | FwEventIdType id, | ||
| 14947 | Fw::Time& timeTag, | ||
| 14948 | const Fw::LogSeverity& severity, | ||
| 14949 | Fw::TextLogString& text | ||
| 14950 | ) const { | ||
| 14951 | 15 | FW_ASSERT( | |
| 14952 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 14953 | static_cast<FwAssertArgType>(portNum), | ||
| 14954 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 14955 | ); | ||
| 14956 |
1/2✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
|
15 | switch (portNum) { |
| 14957 | 15 | case 0: | |
| 14958 | 15 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 14959 | 0, | ||
| 14960 | id, | ||
| 14961 | timeTag, | ||
| 14962 | severity, | ||
| 14963 | text | ||
| 14964 | ); | ||
| 14965 | 15 | break; | |
| 14966 | ✗ | default: | |
| 14967 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14968 | ✗ | break; | |
| 14969 | } | ||
| 14970 | 15 | } | |
| 14971 | |||
| 14972 | #endif | ||
| 14973 | |||
| 14974 | 15 | void PrmDbComponentBase::Time_out( | |
| 14975 | FwIndexType portNum, | ||
| 14976 | Fw::Time& time | ||
| 14977 | ) const { | ||
| 14978 | 15 | FW_ASSERT( | |
| 14979 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 14980 | static_cast<FwAssertArgType>(portNum), | ||
| 14981 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 14982 | ); | ||
| 14983 |
1/2✓ Branch 0 taken 15 times.
✗ Branch 1 not taken.
|
15 | switch (portNum) { |
| 14984 | 15 | case 0: | |
| 14985 | 15 | Ref::posixTime.timeGetPort_handlerBase( | |
| 14986 | 0, | ||
| 14987 | time | ||
| 14988 | ); | ||
| 14989 | 15 | break; | |
| 14990 | ✗ | default: | |
| 14991 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 14992 | ✗ | break; | |
| 14993 | } | ||
| 14994 | 15 | } | |
| 14995 | |||
| 14996 | 66 | void PrmDbComponentBase::pingOut_out( | |
| 14997 | FwIndexType portNum, | ||
| 14998 | U32 key | ||
| 14999 | ) const { | ||
| 15000 | 66 | FW_ASSERT( | |
| 15001 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 15002 | static_cast<FwAssertArgType>(portNum), | ||
| 15003 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 15004 | ); | ||
| 15005 |
1/2✓ Branch 0 taken 66 times.
✗ Branch 1 not taken.
|
66 | switch (portNum) { |
| 15006 | 66 | case 0: | |
| 15007 | 66 | CdhCore::health.PingReturn_handlerBase( | |
| 15008 | 8, | ||
| 15009 | key | ||
| 15010 | ); | ||
| 15011 | 66 | break; | |
| 15012 | ✗ | default: | |
| 15013 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15014 | ✗ | break; | |
| 15015 | } | ||
| 15016 | 66 | } | |
| 15017 | |||
| 15018 | } | ||
| 15019 | |||
| 15020 | namespace Svc { | ||
| 15021 | |||
| 15022 | 786 | bool RateGroupDriverComponentBase::isConnected_CycleOut_OutputPort(FwIndexType portNum) const { | |
| 15023 | 786 | FW_ASSERT( | |
| 15024 | (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS), | ||
| 15025 | static_cast<FwAssertArgType>(portNum), | ||
| 15026 | static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS) | ||
| 15027 | ); | ||
| 15028 | 786 | bool result = false; | |
| 15029 |
3/4✓ Branch 0 taken 262 times.
✓ Branch 1 taken 262 times.
✓ Branch 2 taken 262 times.
✗ Branch 3 not taken.
|
786 | switch (portNum) { |
| 15030 | 262 | case 0: | |
| 15031 | 262 | result = true; | |
| 15032 | 262 | break; | |
| 15033 | 262 | case 1: | |
| 15034 | 262 | result = true; | |
| 15035 | 262 | break; | |
| 15036 | 262 | case 2: | |
| 15037 | 262 | result = true; | |
| 15038 | 262 | break; | |
| 15039 | ✗ | default: | |
| 15040 | ✗ | break; | |
| 15041 | } | ||
| 15042 | 786 | return result; | |
| 15043 | } | ||
| 15044 | |||
| 15045 | 459 | void RateGroupDriverComponentBase::CycleOut_out( | |
| 15046 | FwIndexType portNum, | ||
| 15047 | Os::RawTime& cycleStart | ||
| 15048 | ) const { | ||
| 15049 | 459 | FW_ASSERT( | |
| 15050 | (0 <= portNum) && (portNum < NUM_CYCLEOUT_OUTPUT_PORTS), | ||
| 15051 | static_cast<FwAssertArgType>(portNum), | ||
| 15052 | static_cast<FwAssertArgType>(NUM_CYCLEOUT_OUTPUT_PORTS) | ||
| 15053 | ); | ||
| 15054 |
3/4✓ Branch 0 taken 262 times.
✓ Branch 1 taken 131 times.
✓ Branch 2 taken 66 times.
✗ Branch 3 not taken.
|
459 | switch (portNum) { |
| 15055 | 262 | case 0: | |
| 15056 | 262 | Ref::rateGroup1Comp.CycleIn_handlerBase( | |
| 15057 | 0, | ||
| 15058 | cycleStart | ||
| 15059 | ); | ||
| 15060 | 262 | break; | |
| 15061 | 131 | case 1: | |
| 15062 | 131 | Ref::rateGroup2Comp.CycleIn_handlerBase( | |
| 15063 | 0, | ||
| 15064 | cycleStart | ||
| 15065 | ); | ||
| 15066 | 131 | break; | |
| 15067 | 66 | case 2: | |
| 15068 | 66 | Ref::rateGroup3Comp.CycleIn_handlerBase( | |
| 15069 | 0, | ||
| 15070 | cycleStart | ||
| 15071 | ); | ||
| 15072 | 66 | break; | |
| 15073 | ✗ | default: | |
| 15074 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15075 | ✗ | break; | |
| 15076 | } | ||
| 15077 | 459 | } | |
| 15078 | |||
| 15079 | } | ||
| 15080 | |||
| 15081 | namespace Svc { | ||
| 15082 | |||
| 15083 | 1 | bool SystemResourcesComponentBase::isConnected_CmdReg_OutputPort(FwIndexType portNum) 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 | bool result = false; | |
| 15090 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 15091 | 1 | case 0: | |
| 15092 | 1 | result = true; | |
| 15093 | 1 | break; | |
| 15094 | ✗ | default: | |
| 15095 | ✗ | break; | |
| 15096 | } | ||
| 15097 | 1 | return result; | |
| 15098 | } | ||
| 15099 | |||
| 15100 | ✗ | bool SystemResourcesComponentBase::isConnected_CmdStatus_OutputPort(FwIndexType portNum) const { | |
| 15101 | ✗ | FW_ASSERT( | |
| 15102 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 15103 | static_cast<FwAssertArgType>(portNum), | ||
| 15104 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 15105 | ); | ||
| 15106 | ✗ | bool result = false; | |
| 15107 | ✗ | switch (portNum) { | |
| 15108 | ✗ | case 0: | |
| 15109 | ✗ | result = true; | |
| 15110 | ✗ | break; | |
| 15111 | ✗ | default: | |
| 15112 | ✗ | break; | |
| 15113 | } | ||
| 15114 | ✗ | return result; | |
| 15115 | } | ||
| 15116 | |||
| 15117 | ✗ | bool SystemResourcesComponentBase::isConnected_Log_OutputPort(FwIndexType portNum) const { | |
| 15118 | ✗ | FW_ASSERT( | |
| 15119 | (0 <= portNum) && (portNum < NUM_LOG_OUTPUT_PORTS), | ||
| 15120 | static_cast<FwAssertArgType>(portNum), | ||
| 15121 | static_cast<FwAssertArgType>(NUM_LOG_OUTPUT_PORTS) | ||
| 15122 | ); | ||
| 15123 | ✗ | bool result = false; | |
| 15124 | ✗ | switch (portNum) { | |
| 15125 | ✗ | case 0: | |
| 15126 | ✗ | result = true; | |
| 15127 | ✗ | break; | |
| 15128 | ✗ | default: | |
| 15129 | ✗ | break; | |
| 15130 | } | ||
| 15131 | ✗ | return result; | |
| 15132 | } | ||
| 15133 | |||
| 15134 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 15135 | |||
| 15136 | ✗ | bool SystemResourcesComponentBase::isConnected_LogText_OutputPort(FwIndexType portNum) const { | |
| 15137 | ✗ | FW_ASSERT( | |
| 15138 | (0 <= portNum) && (portNum < NUM_LOGTEXT_OUTPUT_PORTS), | ||
| 15139 | static_cast<FwAssertArgType>(portNum), | ||
| 15140 | static_cast<FwAssertArgType>(NUM_LOGTEXT_OUTPUT_PORTS) | ||
| 15141 | ); | ||
| 15142 | ✗ | bool result = false; | |
| 15143 | ✗ | switch (portNum) { | |
| 15144 | ✗ | case 0: | |
| 15145 | ✗ | result = true; | |
| 15146 | ✗ | break; | |
| 15147 | ✗ | default: | |
| 15148 | ✗ | break; | |
| 15149 | } | ||
| 15150 | ✗ | return result; | |
| 15151 | } | ||
| 15152 | |||
| 15153 | #endif | ||
| 15154 | |||
| 15155 | 2358 | bool SystemResourcesComponentBase::isConnected_Time_OutputPort(FwIndexType portNum) const { | |
| 15156 | 2358 | FW_ASSERT( | |
| 15157 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 15158 | static_cast<FwAssertArgType>(portNum), | ||
| 15159 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 15160 | ); | ||
| 15161 | 2358 | bool result = false; | |
| 15162 |
1/2✓ Branch 0 taken 2358 times.
✗ Branch 1 not taken.
|
2358 | switch (portNum) { |
| 15163 | 2358 | case 0: | |
| 15164 | 2358 | result = true; | |
| 15165 | 2358 | break; | |
| 15166 | ✗ | default: | |
| 15167 | ✗ | break; | |
| 15168 | } | ||
| 15169 | 2358 | return result; | |
| 15170 | } | ||
| 15171 | |||
| 15172 | 4716 | bool SystemResourcesComponentBase::isConnected_Tlm_OutputPort(FwIndexType portNum) const { | |
| 15173 | 4716 | FW_ASSERT( | |
| 15174 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 15175 | static_cast<FwAssertArgType>(portNum), | ||
| 15176 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 15177 | ); | ||
| 15178 | 4716 | bool result = false; | |
| 15179 |
1/2✓ Branch 0 taken 4716 times.
✗ Branch 1 not taken.
|
4716 | switch (portNum) { |
| 15180 | 4716 | case 0: | |
| 15181 | 4716 | result = true; | |
| 15182 | 4716 | break; | |
| 15183 | ✗ | default: | |
| 15184 | ✗ | break; | |
| 15185 | } | ||
| 15186 | 4716 | return result; | |
| 15187 | } | ||
| 15188 | |||
| 15189 | 1 | void SystemResourcesComponentBase::CmdReg_out( | |
| 15190 | FwIndexType portNum, | ||
| 15191 | FwOpcodeType opCode | ||
| 15192 | ) const { | ||
| 15193 | 1 | FW_ASSERT( | |
| 15194 | (0 <= portNum) && (portNum < NUM_CMDREG_OUTPUT_PORTS), | ||
| 15195 | static_cast<FwAssertArgType>(portNum), | ||
| 15196 | static_cast<FwAssertArgType>(NUM_CMDREG_OUTPUT_PORTS) | ||
| 15197 | ); | ||
| 15198 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 15199 | 1 | case 0: | |
| 15200 | 1 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 15201 | 22, | ||
| 15202 | opCode | ||
| 15203 | ); | ||
| 15204 | 1 | break; | |
| 15205 | ✗ | default: | |
| 15206 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15207 | ✗ | break; | |
| 15208 | } | ||
| 15209 | 1 | } | |
| 15210 | |||
| 15211 | ✗ | void SystemResourcesComponentBase::CmdStatus_out( | |
| 15212 | FwIndexType portNum, | ||
| 15213 | FwOpcodeType opCode, | ||
| 15214 | U32 cmdSeq, | ||
| 15215 | const Fw::CmdResponse& response | ||
| 15216 | ) const { | ||
| 15217 | ✗ | FW_ASSERT( | |
| 15218 | (0 <= portNum) && (portNum < NUM_CMDSTATUS_OUTPUT_PORTS), | ||
| 15219 | static_cast<FwAssertArgType>(portNum), | ||
| 15220 | static_cast<FwAssertArgType>(NUM_CMDSTATUS_OUTPUT_PORTS) | ||
| 15221 | ); | ||
| 15222 | ✗ | switch (portNum) { | |
| 15223 | ✗ | case 0: | |
| 15224 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 15225 | 0, | ||
| 15226 | opCode, | ||
| 15227 | cmdSeq, | ||
| 15228 | response | ||
| 15229 | ); | ||
| 15230 | ✗ | break; | |
| 15231 | ✗ | default: | |
| 15232 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15233 | ✗ | break; | |
| 15234 | } | ||
| 15235 | ✗ | } | |
| 15236 | |||
| 15237 | 2358 | void SystemResourcesComponentBase::Time_out( | |
| 15238 | FwIndexType portNum, | ||
| 15239 | Fw::Time& time | ||
| 15240 | ) const { | ||
| 15241 | 2358 | FW_ASSERT( | |
| 15242 | (0 <= portNum) && (portNum < NUM_TIME_OUTPUT_PORTS), | ||
| 15243 | static_cast<FwAssertArgType>(portNum), | ||
| 15244 | static_cast<FwAssertArgType>(NUM_TIME_OUTPUT_PORTS) | ||
| 15245 | ); | ||
| 15246 |
1/2✓ Branch 0 taken 2358 times.
✗ Branch 1 not taken.
|
2358 | switch (portNum) { |
| 15247 | 2358 | case 0: | |
| 15248 | 2358 | Ref::posixTime.timeGetPort_handlerBase( | |
| 15249 | 0, | ||
| 15250 | time | ||
| 15251 | ); | ||
| 15252 | 2358 | break; | |
| 15253 | ✗ | default: | |
| 15254 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15255 | ✗ | break; | |
| 15256 | } | ||
| 15257 | 2358 | } | |
| 15258 | |||
| 15259 | 2358 | void SystemResourcesComponentBase::Tlm_out( | |
| 15260 | FwIndexType portNum, | ||
| 15261 | FwChanIdType id, | ||
| 15262 | Fw::Time& timeTag, | ||
| 15263 | Fw::TlmBuffer& val | ||
| 15264 | ) const { | ||
| 15265 | 2358 | FW_ASSERT( | |
| 15266 | (0 <= portNum) && (portNum < NUM_TLM_OUTPUT_PORTS), | ||
| 15267 | static_cast<FwAssertArgType>(portNum), | ||
| 15268 | static_cast<FwAssertArgType>(NUM_TLM_OUTPUT_PORTS) | ||
| 15269 | ); | ||
| 15270 |
1/2✓ Branch 0 taken 2358 times.
✗ Branch 1 not taken.
|
2358 | switch (portNum) { |
| 15271 | 2358 | case 0: | |
| 15272 | 2358 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 15273 | 0, | ||
| 15274 | id, | ||
| 15275 | timeTag, | ||
| 15276 | val | ||
| 15277 | ); | ||
| 15278 | 2358 | break; | |
| 15279 | ✗ | default: | |
| 15280 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15281 | ✗ | break; | |
| 15282 | } | ||
| 15283 | 2358 | } | |
| 15284 | |||
| 15285 | } | ||
| 15286 | |||
| 15287 | namespace Svc { | ||
| 15288 | |||
| 15289 | 262 | bool TlmChanComponentBase::isConnected_PktSend_OutputPort(FwIndexType portNum) const { | |
| 15290 | 262 | FW_ASSERT( | |
| 15291 | (0 <= portNum) && (portNum < NUM_PKTSEND_OUTPUT_PORTS), | ||
| 15292 | static_cast<FwAssertArgType>(portNum), | ||
| 15293 | static_cast<FwAssertArgType>(NUM_PKTSEND_OUTPUT_PORTS) | ||
| 15294 | ); | ||
| 15295 | 262 | bool result = false; | |
| 15296 |
1/2✓ Branch 0 taken 262 times.
✗ Branch 1 not taken.
|
262 | switch (portNum) { |
| 15297 | 262 | case 0: | |
| 15298 | 262 | result = true; | |
| 15299 | 262 | break; | |
| 15300 | ✗ | default: | |
| 15301 | ✗ | break; | |
| 15302 | } | ||
| 15303 | 262 | return result; | |
| 15304 | } | ||
| 15305 | |||
| 15306 | ✗ | bool TlmChanComponentBase::isConnected_eventOut_OutputPort(FwIndexType portNum) const { | |
| 15307 | ✗ | FW_ASSERT( | |
| 15308 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 15309 | static_cast<FwAssertArgType>(portNum), | ||
| 15310 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 15311 | ); | ||
| 15312 | ✗ | bool result = false; | |
| 15313 | ✗ | switch (portNum) { | |
| 15314 | ✗ | case 0: | |
| 15315 | ✗ | result = true; | |
| 15316 | ✗ | break; | |
| 15317 | ✗ | default: | |
| 15318 | ✗ | break; | |
| 15319 | } | ||
| 15320 | ✗ | return result; | |
| 15321 | } | ||
| 15322 | |||
| 15323 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 15324 | |||
| 15325 | ✗ | bool TlmChanComponentBase::isConnected_eventOutText_OutputPort(FwIndexType portNum) const { | |
| 15326 | ✗ | FW_ASSERT( | |
| 15327 | (0 <= portNum) && (portNum < NUM_EVENTOUTTEXT_OUTPUT_PORTS), | ||
| 15328 | static_cast<FwAssertArgType>(portNum), | ||
| 15329 | static_cast<FwAssertArgType>(NUM_EVENTOUTTEXT_OUTPUT_PORTS) | ||
| 15330 | ); | ||
| 15331 | ✗ | bool result = false; | |
| 15332 | ✗ | switch (portNum) { | |
| 15333 | ✗ | case 0: | |
| 15334 | ✗ | result = true; | |
| 15335 | ✗ | break; | |
| 15336 | ✗ | default: | |
| 15337 | ✗ | break; | |
| 15338 | } | ||
| 15339 | ✗ | return result; | |
| 15340 | } | ||
| 15341 | |||
| 15342 | #endif | ||
| 15343 | |||
| 15344 | ✗ | bool TlmChanComponentBase::isConnected_pingOut_OutputPort(FwIndexType portNum) const { | |
| 15345 | ✗ | FW_ASSERT( | |
| 15346 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 15347 | static_cast<FwAssertArgType>(portNum), | ||
| 15348 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 15349 | ); | ||
| 15350 | ✗ | bool result = false; | |
| 15351 | ✗ | switch (portNum) { | |
| 15352 | ✗ | case 0: | |
| 15353 | ✗ | result = true; | |
| 15354 | ✗ | break; | |
| 15355 | ✗ | default: | |
| 15356 | ✗ | break; | |
| 15357 | } | ||
| 15358 | ✗ | return result; | |
| 15359 | } | ||
| 15360 | |||
| 15361 | ✗ | bool TlmChanComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 15362 | ✗ | FW_ASSERT( | |
| 15363 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 15364 | static_cast<FwAssertArgType>(portNum), | ||
| 15365 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 15366 | ); | ||
| 15367 | ✗ | bool result = false; | |
| 15368 | ✗ | switch (portNum) { | |
| 15369 | ✗ | case 0: | |
| 15370 | ✗ | result = true; | |
| 15371 | ✗ | break; | |
| 15372 | ✗ | default: | |
| 15373 | ✗ | break; | |
| 15374 | } | ||
| 15375 | ✗ | return result; | |
| 15376 | } | ||
| 15377 | |||
| 15378 | 264 | void TlmChanComponentBase::PktSend_out( | |
| 15379 | FwIndexType portNum, | ||
| 15380 | Fw::ComBuffer& data, | ||
| 15381 | U32 context | ||
| 15382 | ) const { | ||
| 15383 | 264 | FW_ASSERT( | |
| 15384 | (0 <= portNum) && (portNum < NUM_PKTSEND_OUTPUT_PORTS), | ||
| 15385 | static_cast<FwAssertArgType>(portNum), | ||
| 15386 | static_cast<FwAssertArgType>(NUM_PKTSEND_OUTPUT_PORTS) | ||
| 15387 | ); | ||
| 15388 |
1/2✓ Branch 0 taken 264 times.
✗ Branch 1 not taken.
|
264 | switch (portNum) { |
| 15389 | 264 | case 0: | |
| 15390 | 264 | ComCcsds::comQueue.comPacketQueueIn_handlerBase( | |
| 15391 | 1, | ||
| 15392 | data, | ||
| 15393 | context | ||
| 15394 | ); | ||
| 15395 | 264 | break; | |
| 15396 | ✗ | default: | |
| 15397 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15398 | ✗ | break; | |
| 15399 | } | ||
| 15400 | 264 | } | |
| 15401 | |||
| 15402 | ✗ | void TlmChanComponentBase::eventOut_out( | |
| 15403 | FwIndexType portNum, | ||
| 15404 | FwEventIdType id, | ||
| 15405 | Fw::Time& timeTag, | ||
| 15406 | const Fw::LogSeverity& severity, | ||
| 15407 | Fw::LogBuffer& args | ||
| 15408 | ) const { | ||
| 15409 | ✗ | FW_ASSERT( | |
| 15410 | (0 <= portNum) && (portNum < NUM_EVENTOUT_OUTPUT_PORTS), | ||
| 15411 | static_cast<FwAssertArgType>(portNum), | ||
| 15412 | static_cast<FwAssertArgType>(NUM_EVENTOUT_OUTPUT_PORTS) | ||
| 15413 | ); | ||
| 15414 | ✗ | switch (portNum) { | |
| 15415 | ✗ | case 0: | |
| 15416 | ✗ | CdhCore::events.LogRecv_handlerBase( | |
| 15417 | 0, | ||
| 15418 | id, | ||
| 15419 | timeTag, | ||
| 15420 | severity, | ||
| 15421 | args | ||
| 15422 | ); | ||
| 15423 | ✗ | break; | |
| 15424 | ✗ | default: | |
| 15425 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15426 | ✗ | break; | |
| 15427 | } | ||
| 15428 | ✗ | } | |
| 15429 | |||
| 15430 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 15431 | |||
| 15432 | ✗ | void TlmChanComponentBase::eventOutText_out( | |
| 15433 | FwIndexType portNum, | ||
| 15434 | FwEventIdType id, | ||
| 15435 | Fw::Time& timeTag, | ||
| 15436 | const Fw::LogSeverity& severity, | ||
| 15437 | Fw::TextLogString& text | ||
| 15438 | ) const { | ||
| 15439 | ✗ | FW_ASSERT( | |
| 15440 | (0 <= portNum) && (portNum < NUM_EVENTOUTTEXT_OUTPUT_PORTS), | ||
| 15441 | static_cast<FwAssertArgType>(portNum), | ||
| 15442 | static_cast<FwAssertArgType>(NUM_EVENTOUTTEXT_OUTPUT_PORTS) | ||
| 15443 | ); | ||
| 15444 | ✗ | switch (portNum) { | |
| 15445 | ✗ | case 0: | |
| 15446 | ✗ | CdhCore::textLogger.TextLogger_handlerBase( | |
| 15447 | 0, | ||
| 15448 | id, | ||
| 15449 | timeTag, | ||
| 15450 | severity, | ||
| 15451 | text | ||
| 15452 | ); | ||
| 15453 | ✗ | break; | |
| 15454 | ✗ | default: | |
| 15455 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15456 | ✗ | break; | |
| 15457 | } | ||
| 15458 | ✗ | } | |
| 15459 | |||
| 15460 | #endif | ||
| 15461 | |||
| 15462 | 66 | void TlmChanComponentBase::pingOut_out( | |
| 15463 | FwIndexType portNum, | ||
| 15464 | U32 key | ||
| 15465 | ) const { | ||
| 15466 | 66 | FW_ASSERT( | |
| 15467 | (0 <= portNum) && (portNum < NUM_PINGOUT_OUTPUT_PORTS), | ||
| 15468 | static_cast<FwAssertArgType>(portNum), | ||
| 15469 | static_cast<FwAssertArgType>(NUM_PINGOUT_OUTPUT_PORTS) | ||
| 15470 | ); | ||
| 15471 |
1/2✓ Branch 0 taken 66 times.
✗ Branch 1 not taken.
|
66 | switch (portNum) { |
| 15472 | 66 | case 0: | |
| 15473 | 66 | CdhCore::health.PingReturn_handlerBase( | |
| 15474 | 2, | ||
| 15475 | key | ||
| 15476 | ); | ||
| 15477 | 66 | break; | |
| 15478 | ✗ | default: | |
| 15479 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15480 | ✗ | break; | |
| 15481 | } | ||
| 15482 | 66 | } | |
| 15483 | |||
| 15484 | ✗ | void TlmChanComponentBase::timeCaller_out( | |
| 15485 | FwIndexType portNum, | ||
| 15486 | Fw::Time& time | ||
| 15487 | ) const { | ||
| 15488 | ✗ | FW_ASSERT( | |
| 15489 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 15490 | static_cast<FwAssertArgType>(portNum), | ||
| 15491 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 15492 | ); | ||
| 15493 | ✗ | switch (portNum) { | |
| 15494 | ✗ | case 0: | |
| 15495 | ✗ | Ref::posixTime.timeGetPort_handlerBase( | |
| 15496 | 0, | ||
| 15497 | time | ||
| 15498 | ); | ||
| 15499 | ✗ | break; | |
| 15500 | ✗ | default: | |
| 15501 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15502 | ✗ | break; | |
| 15503 | } | ||
| 15504 | ✗ | } | |
| 15505 | |||
| 15506 | } | ||
| 15507 | |||
| 15508 | namespace Svc { | ||
| 15509 | |||
| 15510 | 1 | bool VersionComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const { | |
| 15511 | 1 | 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 | bool result = false; | |
| 15517 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 15518 | 1 | case 0: | |
| 15519 | 1 | result = true; | |
| 15520 | 1 | break; | |
| 15521 | ✗ | default: | |
| 15522 | ✗ | break; | |
| 15523 | } | ||
| 15524 | 1 | return result; | |
| 15525 | } | ||
| 15526 | |||
| 15527 | ✗ | bool VersionComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const { | |
| 15528 | ✗ | FW_ASSERT( | |
| 15529 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 15530 | static_cast<FwAssertArgType>(portNum), | ||
| 15531 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 15532 | ); | ||
| 15533 | ✗ | bool result = false; | |
| 15534 | ✗ | switch (portNum) { | |
| 15535 | ✗ | case 0: | |
| 15536 | ✗ | result = true; | |
| 15537 | ✗ | break; | |
| 15538 | ✗ | default: | |
| 15539 | ✗ | break; | |
| 15540 | } | ||
| 15541 | ✗ | return result; | |
| 15542 | } | ||
| 15543 | |||
| 15544 | 2 | bool VersionComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 15545 | 2 | FW_ASSERT( | |
| 15546 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 15547 | static_cast<FwAssertArgType>(portNum), | ||
| 15548 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 15549 | ); | ||
| 15550 | 2 | bool result = false; | |
| 15551 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 15552 | 2 | case 0: | |
| 15553 | 2 | result = true; | |
| 15554 | 2 | break; | |
| 15555 | ✗ | default: | |
| 15556 | ✗ | break; | |
| 15557 | } | ||
| 15558 | 2 | return result; | |
| 15559 | } | ||
| 15560 | |||
| 15561 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 15562 | |||
| 15563 | 2 | bool VersionComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 15564 | 2 | FW_ASSERT( | |
| 15565 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 15566 | static_cast<FwAssertArgType>(portNum), | ||
| 15567 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 15568 | ); | ||
| 15569 | 2 | bool result = false; | |
| 15570 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 15571 | 2 | case 0: | |
| 15572 | 2 | result = true; | |
| 15573 | 2 | break; | |
| 15574 | ✗ | default: | |
| 15575 | ✗ | break; | |
| 15576 | } | ||
| 15577 | 2 | return result; | |
| 15578 | } | ||
| 15579 | |||
| 15580 | #endif | ||
| 15581 | |||
| 15582 | 4 | bool VersionComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 15583 | 4 | FW_ASSERT( | |
| 15584 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 15585 | static_cast<FwAssertArgType>(portNum), | ||
| 15586 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 15587 | ); | ||
| 15588 | 4 | bool result = false; | |
| 15589 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 15590 | 4 | case 0: | |
| 15591 | 4 | result = true; | |
| 15592 | 4 | break; | |
| 15593 | ✗ | default: | |
| 15594 | ✗ | break; | |
| 15595 | } | ||
| 15596 | 4 | return result; | |
| 15597 | } | ||
| 15598 | |||
| 15599 | 4 | bool VersionComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 15600 | 4 | FW_ASSERT( | |
| 15601 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 15602 | static_cast<FwAssertArgType>(portNum), | ||
| 15603 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 15604 | ); | ||
| 15605 | 4 | bool result = false; | |
| 15606 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 15607 | 4 | case 0: | |
| 15608 | 4 | result = true; | |
| 15609 | 4 | break; | |
| 15610 | ✗ | default: | |
| 15611 | ✗ | break; | |
| 15612 | } | ||
| 15613 | 4 | return result; | |
| 15614 | } | ||
| 15615 | |||
| 15616 | 2 | void VersionComponentBase::cmdRegOut_out( | |
| 15617 | FwIndexType portNum, | ||
| 15618 | FwOpcodeType opCode | ||
| 15619 | ) const { | ||
| 15620 | 2 | FW_ASSERT( | |
| 15621 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 15622 | static_cast<FwAssertArgType>(portNum), | ||
| 15623 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 15624 | ); | ||
| 15625 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 15626 | 2 | case 0: | |
| 15627 | 2 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 15628 | 3, | ||
| 15629 | opCode | ||
| 15630 | ); | ||
| 15631 | 2 | break; | |
| 15632 | ✗ | default: | |
| 15633 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15634 | ✗ | break; | |
| 15635 | } | ||
| 15636 | 2 | } | |
| 15637 | |||
| 15638 | ✗ | void VersionComponentBase::cmdResponseOut_out( | |
| 15639 | FwIndexType portNum, | ||
| 15640 | FwOpcodeType opCode, | ||
| 15641 | U32 cmdSeq, | ||
| 15642 | const Fw::CmdResponse& response | ||
| 15643 | ) const { | ||
| 15644 | ✗ | FW_ASSERT( | |
| 15645 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 15646 | static_cast<FwAssertArgType>(portNum), | ||
| 15647 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 15648 | ); | ||
| 15649 | ✗ | switch (portNum) { | |
| 15650 | ✗ | case 0: | |
| 15651 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 15652 | 0, | ||
| 15653 | opCode, | ||
| 15654 | cmdSeq, | ||
| 15655 | response | ||
| 15656 | ); | ||
| 15657 | ✗ | break; | |
| 15658 | ✗ | default: | |
| 15659 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15660 | ✗ | break; | |
| 15661 | } | ||
| 15662 | ✗ | } | |
| 15663 | |||
| 15664 | 2 | void VersionComponentBase::logOut_out( | |
| 15665 | FwIndexType portNum, | ||
| 15666 | FwEventIdType id, | ||
| 15667 | Fw::Time& timeTag, | ||
| 15668 | const Fw::LogSeverity& severity, | ||
| 15669 | Fw::LogBuffer& args | ||
| 15670 | ) const { | ||
| 15671 | 2 | FW_ASSERT( | |
| 15672 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 15673 | static_cast<FwAssertArgType>(portNum), | ||
| 15674 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 15675 | ); | ||
| 15676 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 15677 | 2 | case 0: | |
| 15678 | 2 | CdhCore::events.LogRecv_handlerBase( | |
| 15679 | 0, | ||
| 15680 | id, | ||
| 15681 | timeTag, | ||
| 15682 | severity, | ||
| 15683 | args | ||
| 15684 | ); | ||
| 15685 | 2 | break; | |
| 15686 | ✗ | default: | |
| 15687 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15688 | ✗ | break; | |
| 15689 | } | ||
| 15690 | 2 | } | |
| 15691 | |||
| 15692 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 15693 | |||
| 15694 | 2 | void VersionComponentBase::logTextOut_out( | |
| 15695 | FwIndexType portNum, | ||
| 15696 | FwEventIdType id, | ||
| 15697 | Fw::Time& timeTag, | ||
| 15698 | const Fw::LogSeverity& severity, | ||
| 15699 | Fw::TextLogString& text | ||
| 15700 | ) const { | ||
| 15701 | 2 | FW_ASSERT( | |
| 15702 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 15703 | static_cast<FwAssertArgType>(portNum), | ||
| 15704 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 15705 | ); | ||
| 15706 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 15707 | 2 | case 0: | |
| 15708 | 2 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 15709 | 0, | ||
| 15710 | id, | ||
| 15711 | timeTag, | ||
| 15712 | severity, | ||
| 15713 | text | ||
| 15714 | ); | ||
| 15715 | 2 | break; | |
| 15716 | ✗ | default: | |
| 15717 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15718 | ✗ | break; | |
| 15719 | } | ||
| 15720 | 2 | } | |
| 15721 | |||
| 15722 | #endif | ||
| 15723 | |||
| 15724 | 4 | void VersionComponentBase::timeCaller_out( | |
| 15725 | FwIndexType portNum, | ||
| 15726 | Fw::Time& time | ||
| 15727 | ) const { | ||
| 15728 | 4 | FW_ASSERT( | |
| 15729 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 15730 | static_cast<FwAssertArgType>(portNum), | ||
| 15731 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 15732 | ); | ||
| 15733 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | switch (portNum) { |
| 15734 | 4 | case 0: | |
| 15735 | 4 | Ref::posixTime.timeGetPort_handlerBase( | |
| 15736 | 0, | ||
| 15737 | time | ||
| 15738 | ); | ||
| 15739 | 4 | break; | |
| 15740 | ✗ | default: | |
| 15741 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15742 | ✗ | break; | |
| 15743 | } | ||
| 15744 | 4 | } | |
| 15745 | |||
| 15746 | 2 | void VersionComponentBase::tlmOut_out( | |
| 15747 | FwIndexType portNum, | ||
| 15748 | FwChanIdType id, | ||
| 15749 | Fw::Time& timeTag, | ||
| 15750 | Fw::TlmBuffer& val | ||
| 15751 | ) const { | ||
| 15752 | 2 | FW_ASSERT( | |
| 15753 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 15754 | static_cast<FwAssertArgType>(portNum), | ||
| 15755 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 15756 | ); | ||
| 15757 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | switch (portNum) { |
| 15758 | 2 | case 0: | |
| 15759 | 2 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 15760 | 0, | ||
| 15761 | id, | ||
| 15762 | timeTag, | ||
| 15763 | val | ||
| 15764 | ); | ||
| 15765 | 2 | break; | |
| 15766 | ✗ | default: | |
| 15767 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 15768 | ✗ | break; | |
| 15769 | } | ||
| 15770 | 2 | } | |
| 15771 | |||
| 15772 | } | ||
| 15773 | |||
| 15774 | namespace Svc { | ||
| 15775 | |||
| 15776 | ✗ | bool WasmSequencerComponentBase::isConnected_cmdOut_OutputPort(FwIndexType portNum) const { | |
| 15777 | ✗ | FW_ASSERT( | |
| 15778 | (0 <= portNum) && (portNum < NUM_CMDOUT_OUTPUT_PORTS), | ||
| 15779 | static_cast<FwAssertArgType>(portNum), | ||
| 15780 | static_cast<FwAssertArgType>(NUM_CMDOUT_OUTPUT_PORTS) | ||
| 15781 | ); | ||
| 15782 | ✗ | bool result = false; | |
| 15783 | ✗ | switch (portNum) { | |
| 15784 | ✗ | case 0: | |
| 15785 | ✗ | result = true; | |
| 15786 | ✗ | break; | |
| 15787 | ✗ | default: | |
| 15788 | ✗ | break; | |
| 15789 | } | ||
| 15790 | ✗ | return result; | |
| 15791 | } | ||
| 15792 | |||
| 15793 | 1 | bool WasmSequencerComponentBase::isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const { | |
| 15794 | 1 | FW_ASSERT( | |
| 15795 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 15796 | static_cast<FwAssertArgType>(portNum), | ||
| 15797 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 15798 | ); | ||
| 15799 | 1 | bool result = false; | |
| 15800 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 15801 | 1 | case 0: | |
| 15802 | 1 | result = true; | |
| 15803 | 1 | break; | |
| 15804 | ✗ | default: | |
| 15805 | ✗ | break; | |
| 15806 | } | ||
| 15807 | 1 | return result; | |
| 15808 | } | ||
| 15809 | |||
| 15810 | ✗ | bool WasmSequencerComponentBase::isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const { | |
| 15811 | ✗ | FW_ASSERT( | |
| 15812 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 15813 | static_cast<FwAssertArgType>(portNum), | ||
| 15814 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 15815 | ); | ||
| 15816 | ✗ | bool result = false; | |
| 15817 | ✗ | switch (portNum) { | |
| 15818 | ✗ | case 0: | |
| 15819 | ✗ | result = true; | |
| 15820 | ✗ | break; | |
| 15821 | ✗ | default: | |
| 15822 | ✗ | break; | |
| 15823 | } | ||
| 15824 | ✗ | return result; | |
| 15825 | } | ||
| 15826 | |||
| 15827 | ✗ | bool WasmSequencerComponentBase::isConnected_getParam_OutputPort(FwIndexType portNum) const { | |
| 15828 | ✗ | FW_ASSERT( | |
| 15829 | (0 <= portNum) && (portNum < NUM_GETPARAM_OUTPUT_PORTS), | ||
| 15830 | static_cast<FwAssertArgType>(portNum), | ||
| 15831 | static_cast<FwAssertArgType>(NUM_GETPARAM_OUTPUT_PORTS) | ||
| 15832 | ); | ||
| 15833 | ✗ | bool result = false; | |
| 15834 | ✗ | switch (portNum) { | |
| 15835 | ✗ | case 0: | |
| 15836 | ✗ | result = true; | |
| 15837 | ✗ | break; | |
| 15838 | ✗ | default: | |
| 15839 | ✗ | break; | |
| 15840 | } | ||
| 15841 | ✗ | return result; | |
| 15842 | } | ||
| 15843 | |||
| 15844 | ✗ | bool WasmSequencerComponentBase::isConnected_getTlmChan_OutputPort(FwIndexType portNum) const { | |
| 15845 | ✗ | FW_ASSERT( | |
| 15846 | (0 <= portNum) && (portNum < NUM_GETTLMCHAN_OUTPUT_PORTS), | ||
| 15847 | static_cast<FwAssertArgType>(portNum), | ||
| 15848 | static_cast<FwAssertArgType>(NUM_GETTLMCHAN_OUTPUT_PORTS) | ||
| 15849 | ); | ||
| 15850 | ✗ | bool result = false; | |
| 15851 | ✗ | switch (portNum) { | |
| 15852 | ✗ | case 0: | |
| 15853 | ✗ | result = true; | |
| 15854 | ✗ | break; | |
| 15855 | ✗ | default: | |
| 15856 | ✗ | break; | |
| 15857 | } | ||
| 15858 | ✗ | return result; | |
| 15859 | } | ||
| 15860 | |||
| 15861 | 1 | bool WasmSequencerComponentBase::isConnected_logOut_OutputPort(FwIndexType portNum) const { | |
| 15862 | 1 | FW_ASSERT( | |
| 15863 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 15864 | static_cast<FwAssertArgType>(portNum), | ||
| 15865 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 15866 | ); | ||
| 15867 | 1 | bool result = false; | |
| 15868 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 15869 | 1 | case 0: | |
| 15870 | 1 | result = true; | |
| 15871 | 1 | break; | |
| 15872 | ✗ | default: | |
| 15873 | ✗ | break; | |
| 15874 | } | ||
| 15875 | 1 | return result; | |
| 15876 | } | ||
| 15877 | |||
| 15878 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 15879 | |||
| 15880 | 1 | bool WasmSequencerComponentBase::isConnected_logTextOut_OutputPort(FwIndexType portNum) const { | |
| 15881 | 1 | FW_ASSERT( | |
| 15882 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 15883 | static_cast<FwAssertArgType>(portNum), | ||
| 15884 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 15885 | ); | ||
| 15886 | 1 | bool result = false; | |
| 15887 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 15888 | 1 | case 0: | |
| 15889 | 1 | result = true; | |
| 15890 | 1 | break; | |
| 15891 | ✗ | default: | |
| 15892 | ✗ | break; | |
| 15893 | } | ||
| 15894 | 1 | return result; | |
| 15895 | } | ||
| 15896 | |||
| 15897 | #endif | ||
| 15898 | |||
| 15899 | 1 | bool WasmSequencerComponentBase::isConnected_prmGet_OutputPort(FwIndexType portNum) const { | |
| 15900 | 1 | FW_ASSERT( | |
| 15901 | (0 <= portNum) && (portNum < NUM_PRMGET_OUTPUT_PORTS), | ||
| 15902 | static_cast<FwAssertArgType>(portNum), | ||
| 15903 | static_cast<FwAssertArgType>(NUM_PRMGET_OUTPUT_PORTS) | ||
| 15904 | ); | ||
| 15905 | 1 | bool result = false; | |
| 15906 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 15907 | 1 | case 0: | |
| 15908 | 1 | result = true; | |
| 15909 | 1 | break; | |
| 15910 | ✗ | default: | |
| 15911 | ✗ | break; | |
| 15912 | } | ||
| 15913 | 1 | return result; | |
| 15914 | } | ||
| 15915 | |||
| 15916 | ✗ | bool WasmSequencerComponentBase::isConnected_prmSet_OutputPort(FwIndexType portNum) const { | |
| 15917 | ✗ | FW_ASSERT( | |
| 15918 | (0 <= portNum) && (portNum < NUM_PRMSET_OUTPUT_PORTS), | ||
| 15919 | static_cast<FwAssertArgType>(portNum), | ||
| 15920 | static_cast<FwAssertArgType>(NUM_PRMSET_OUTPUT_PORTS) | ||
| 15921 | ); | ||
| 15922 | ✗ | bool result = false; | |
| 15923 | ✗ | switch (portNum) { | |
| 15924 | ✗ | case 0: | |
| 15925 | ✗ | result = true; | |
| 15926 | ✗ | break; | |
| 15927 | ✗ | default: | |
| 15928 | ✗ | break; | |
| 15929 | } | ||
| 15930 | ✗ | return result; | |
| 15931 | } | ||
| 15932 | |||
| 15933 | ✗ | bool WasmSequencerComponentBase::isConnected_seqDoneOut_OutputPort(FwIndexType portNum) const { | |
| 15934 | ✗ | FW_ASSERT( | |
| 15935 | (0 <= portNum) && (portNum < NUM_SEQDONEOUT_OUTPUT_PORTS), | ||
| 15936 | static_cast<FwAssertArgType>(portNum), | ||
| 15937 | static_cast<FwAssertArgType>(NUM_SEQDONEOUT_OUTPUT_PORTS) | ||
| 15938 | ); | ||
| 15939 | ✗ | bool result = false; | |
| 15940 | ✗ | switch (portNum) { | |
| 15941 | default: | ||
| 15942 | ✗ | break; | |
| 15943 | } | ||
| 15944 | ✗ | return result; | |
| 15945 | } | ||
| 15946 | |||
| 15947 | ✗ | bool WasmSequencerComponentBase::isConnected_seqStartOut_OutputPort(FwIndexType portNum) const { | |
| 15948 | ✗ | FW_ASSERT( | |
| 15949 | (0 <= portNum) && (portNum < NUM_SEQSTARTOUT_OUTPUT_PORTS), | ||
| 15950 | static_cast<FwAssertArgType>(portNum), | ||
| 15951 | static_cast<FwAssertArgType>(NUM_SEQSTARTOUT_OUTPUT_PORTS) | ||
| 15952 | ); | ||
| 15953 | ✗ | bool result = false; | |
| 15954 | ✗ | switch (portNum) { | |
| 15955 | default: | ||
| 15956 | ✗ | break; | |
| 15957 | } | ||
| 15958 | ✗ | return result; | |
| 15959 | } | ||
| 15960 | |||
| 15961 | ✗ | bool WasmSequencerComponentBase::isConnected_serialOut_OutputPort(FwIndexType portNum) const { | |
| 15962 | ✗ | FW_ASSERT( | |
| 15963 | (0 <= portNum) && (portNum < NUM_SERIALOUT_OUTPUT_PORTS), | ||
| 15964 | static_cast<FwAssertArgType>(portNum), | ||
| 15965 | static_cast<FwAssertArgType>(NUM_SERIALOUT_OUTPUT_PORTS) | ||
| 15966 | ); | ||
| 15967 | ✗ | bool result = false; | |
| 15968 | ✗ | switch (portNum) { | |
| 15969 | default: | ||
| 15970 | ✗ | break; | |
| 15971 | } | ||
| 15972 | ✗ | return result; | |
| 15973 | } | ||
| 15974 | |||
| 15975 | 141 | bool WasmSequencerComponentBase::isConnected_timeCaller_OutputPort(FwIndexType portNum) const { | |
| 15976 | 141 | FW_ASSERT( | |
| 15977 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 15978 | static_cast<FwAssertArgType>(portNum), | ||
| 15979 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 15980 | ); | ||
| 15981 | 141 | bool result = false; | |
| 15982 |
1/2✓ Branch 0 taken 141 times.
✗ Branch 1 not taken.
|
141 | switch (portNum) { |
| 15983 | 141 | case 0: | |
| 15984 | 141 | result = true; | |
| 15985 | 141 | break; | |
| 15986 | ✗ | default: | |
| 15987 | ✗ | break; | |
| 15988 | } | ||
| 15989 | 141 | return result; | |
| 15990 | } | ||
| 15991 | |||
| 15992 | 18 | bool WasmSequencerComponentBase::isConnected_tlmOut_OutputPort(FwIndexType portNum) const { | |
| 15993 | 18 | FW_ASSERT( | |
| 15994 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 15995 | static_cast<FwAssertArgType>(portNum), | ||
| 15996 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 15997 | ); | ||
| 15998 | 18 | bool result = false; | |
| 15999 |
1/2✓ Branch 0 taken 18 times.
✗ Branch 1 not taken.
|
18 | switch (portNum) { |
| 16000 | 18 | case 0: | |
| 16001 | 18 | result = true; | |
| 16002 | 18 | break; | |
| 16003 | ✗ | default: | |
| 16004 | ✗ | break; | |
| 16005 | } | ||
| 16006 | 18 | return result; | |
| 16007 | } | ||
| 16008 | |||
| 16009 | ✗ | void WasmSequencerComponentBase::cmdOut_out( | |
| 16010 | FwIndexType portNum, | ||
| 16011 | Fw::ComBuffer& data, | ||
| 16012 | U32 context | ||
| 16013 | ) const { | ||
| 16014 | ✗ | FW_ASSERT( | |
| 16015 | (0 <= portNum) && (portNum < NUM_CMDOUT_OUTPUT_PORTS), | ||
| 16016 | static_cast<FwAssertArgType>(portNum), | ||
| 16017 | static_cast<FwAssertArgType>(NUM_CMDOUT_OUTPUT_PORTS) | ||
| 16018 | ); | ||
| 16019 | ✗ | switch (portNum) { | |
| 16020 | ✗ | case 0: | |
| 16021 | ✗ | CdhCore::cmdDisp.seqCmdBuff_handlerBase( | |
| 16022 | 2, | ||
| 16023 | data, | ||
| 16024 | context | ||
| 16025 | ); | ||
| 16026 | ✗ | break; | |
| 16027 | ✗ | default: | |
| 16028 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16029 | ✗ | break; | |
| 16030 | } | ||
| 16031 | ✗ | } | |
| 16032 | |||
| 16033 | 18 | void WasmSequencerComponentBase::cmdRegOut_out( | |
| 16034 | FwIndexType portNum, | ||
| 16035 | FwOpcodeType opCode | ||
| 16036 | ) const { | ||
| 16037 | 18 | FW_ASSERT( | |
| 16038 | (0 <= portNum) && (portNum < NUM_CMDREGOUT_OUTPUT_PORTS), | ||
| 16039 | static_cast<FwAssertArgType>(portNum), | ||
| 16040 | static_cast<FwAssertArgType>(NUM_CMDREGOUT_OUTPUT_PORTS) | ||
| 16041 | ); | ||
| 16042 |
1/2✓ Branch 0 taken 18 times.
✗ Branch 1 not taken.
|
18 | switch (portNum) { |
| 16043 | 18 | case 0: | |
| 16044 | 18 | CdhCore::cmdDisp.compCmdReg_handlerBase( | |
| 16045 | 24, | ||
| 16046 | opCode | ||
| 16047 | ); | ||
| 16048 | 18 | break; | |
| 16049 | ✗ | default: | |
| 16050 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16051 | ✗ | break; | |
| 16052 | } | ||
| 16053 | 18 | } | |
| 16054 | |||
| 16055 | ✗ | void WasmSequencerComponentBase::cmdResponseOut_out( | |
| 16056 | FwIndexType portNum, | ||
| 16057 | FwOpcodeType opCode, | ||
| 16058 | U32 cmdSeq, | ||
| 16059 | const Fw::CmdResponse& response | ||
| 16060 | ) const { | ||
| 16061 | ✗ | FW_ASSERT( | |
| 16062 | (0 <= portNum) && (portNum < NUM_CMDRESPONSEOUT_OUTPUT_PORTS), | ||
| 16063 | static_cast<FwAssertArgType>(portNum), | ||
| 16064 | static_cast<FwAssertArgType>(NUM_CMDRESPONSEOUT_OUTPUT_PORTS) | ||
| 16065 | ); | ||
| 16066 | ✗ | switch (portNum) { | |
| 16067 | ✗ | case 0: | |
| 16068 | ✗ | CdhCore::cmdDisp.compCmdStat_handlerBase( | |
| 16069 | 0, | ||
| 16070 | opCode, | ||
| 16071 | cmdSeq, | ||
| 16072 | response | ||
| 16073 | ); | ||
| 16074 | ✗ | break; | |
| 16075 | ✗ | default: | |
| 16076 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16077 | ✗ | break; | |
| 16078 | } | ||
| 16079 | ✗ | } | |
| 16080 | |||
| 16081 | ✗ | Fw::ParamValid WasmSequencerComponentBase::getParam_out( | |
| 16082 | FwIndexType portNum, | ||
| 16083 | FwPrmIdType id, | ||
| 16084 | Fw::ParamBuffer& val | ||
| 16085 | ) const { | ||
| 16086 | ✗ | FW_ASSERT( | |
| 16087 | (0 <= portNum) && (portNum < NUM_GETPARAM_OUTPUT_PORTS), | ||
| 16088 | static_cast<FwAssertArgType>(portNum), | ||
| 16089 | static_cast<FwAssertArgType>(NUM_GETPARAM_OUTPUT_PORTS) | ||
| 16090 | ); | ||
| 16091 | ✗ | Fw::ParamValid _result = {}; | |
| 16092 | ✗ | switch (portNum) { | |
| 16093 | ✗ | case 0: | |
| 16094 | ✗ | _result = FileHandling::prmDb.getPrm_handlerBase( | |
| 16095 | 0, | ||
| 16096 | id, | ||
| 16097 | val | ||
| 16098 | ✗ | ); | |
| 16099 | ✗ | break; | |
| 16100 | ✗ | default: | |
| 16101 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16102 | ✗ | break; | |
| 16103 | } | ||
| 16104 | ✗ | return _result; | |
| 16105 | ✗ | } | |
| 16106 | |||
| 16107 | ✗ | Fw::TlmValid WasmSequencerComponentBase::getTlmChan_out( | |
| 16108 | FwIndexType portNum, | ||
| 16109 | FwChanIdType id, | ||
| 16110 | Fw::Time& timeTag, | ||
| 16111 | Fw::TlmBuffer& val | ||
| 16112 | ) const { | ||
| 16113 | ✗ | FW_ASSERT( | |
| 16114 | (0 <= portNum) && (portNum < NUM_GETTLMCHAN_OUTPUT_PORTS), | ||
| 16115 | static_cast<FwAssertArgType>(portNum), | ||
| 16116 | static_cast<FwAssertArgType>(NUM_GETTLMCHAN_OUTPUT_PORTS) | ||
| 16117 | ); | ||
| 16118 | ✗ | Fw::TlmValid _result = {}; | |
| 16119 | ✗ | switch (portNum) { | |
| 16120 | ✗ | case 0: | |
| 16121 | ✗ | _result = CdhCore::tlmSend.TlmGet_handlerBase( | |
| 16122 | 0, | ||
| 16123 | id, | ||
| 16124 | timeTag, | ||
| 16125 | val | ||
| 16126 | ✗ | ); | |
| 16127 | ✗ | break; | |
| 16128 | ✗ | default: | |
| 16129 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16130 | ✗ | break; | |
| 16131 | } | ||
| 16132 | ✗ | return _result; | |
| 16133 | ✗ | } | |
| 16134 | |||
| 16135 | 1 | void WasmSequencerComponentBase::logOut_out( | |
| 16136 | FwIndexType portNum, | ||
| 16137 | FwEventIdType id, | ||
| 16138 | Fw::Time& timeTag, | ||
| 16139 | const Fw::LogSeverity& severity, | ||
| 16140 | Fw::LogBuffer& args | ||
| 16141 | ) const { | ||
| 16142 | 1 | FW_ASSERT( | |
| 16143 | (0 <= portNum) && (portNum < NUM_LOGOUT_OUTPUT_PORTS), | ||
| 16144 | static_cast<FwAssertArgType>(portNum), | ||
| 16145 | static_cast<FwAssertArgType>(NUM_LOGOUT_OUTPUT_PORTS) | ||
| 16146 | ); | ||
| 16147 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 16148 | 1 | case 0: | |
| 16149 | 1 | CdhCore::events.LogRecv_handlerBase( | |
| 16150 | 0, | ||
| 16151 | id, | ||
| 16152 | timeTag, | ||
| 16153 | severity, | ||
| 16154 | args | ||
| 16155 | ); | ||
| 16156 | 1 | break; | |
| 16157 | ✗ | default: | |
| 16158 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16159 | ✗ | break; | |
| 16160 | } | ||
| 16161 | 1 | } | |
| 16162 | |||
| 16163 | #if FW_ENABLE_TEXT_LOGGING == 1 | ||
| 16164 | |||
| 16165 | 1 | void WasmSequencerComponentBase::logTextOut_out( | |
| 16166 | FwIndexType portNum, | ||
| 16167 | FwEventIdType id, | ||
| 16168 | Fw::Time& timeTag, | ||
| 16169 | const Fw::LogSeverity& severity, | ||
| 16170 | Fw::TextLogString& text | ||
| 16171 | ) const { | ||
| 16172 | 1 | FW_ASSERT( | |
| 16173 | (0 <= portNum) && (portNum < NUM_LOGTEXTOUT_OUTPUT_PORTS), | ||
| 16174 | static_cast<FwAssertArgType>(portNum), | ||
| 16175 | static_cast<FwAssertArgType>(NUM_LOGTEXTOUT_OUTPUT_PORTS) | ||
| 16176 | ); | ||
| 16177 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | switch (portNum) { |
| 16178 | 1 | case 0: | |
| 16179 | 1 | CdhCore::textLogger.TextLogger_handlerBase( | |
| 16180 | 0, | ||
| 16181 | id, | ||
| 16182 | timeTag, | ||
| 16183 | severity, | ||
| 16184 | text | ||
| 16185 | ); | ||
| 16186 | 1 | break; | |
| 16187 | ✗ | default: | |
| 16188 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16189 | ✗ | break; | |
| 16190 | } | ||
| 16191 | 1 | } | |
| 16192 | |||
| 16193 | #endif | ||
| 16194 | |||
| 16195 | 3 | Fw::ParamValid WasmSequencerComponentBase::prmGet_out( | |
| 16196 | FwIndexType portNum, | ||
| 16197 | FwPrmIdType id, | ||
| 16198 | Fw::ParamBuffer& val | ||
| 16199 | ) const { | ||
| 16200 | 3 | FW_ASSERT( | |
| 16201 | (0 <= portNum) && (portNum < NUM_PRMGET_OUTPUT_PORTS), | ||
| 16202 | static_cast<FwAssertArgType>(portNum), | ||
| 16203 | static_cast<FwAssertArgType>(NUM_PRMGET_OUTPUT_PORTS) | ||
| 16204 | ); | ||
| 16205 | 3 | Fw::ParamValid _result = {}; | |
| 16206 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | switch (portNum) { |
| 16207 | 3 | case 0: | |
| 16208 |
1/1✓ Branch 1 taken 3 times.
|
6 | _result = FileHandling::prmDb.getPrm_handlerBase( |
| 16209 | 0, | ||
| 16210 | id, | ||
| 16211 | val | ||
| 16212 |
1/1✓ Branch 1 taken 3 times.
|
3 | ); |
| 16213 | 3 | break; | |
| 16214 | ✗ | default: | |
| 16215 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16216 | ✗ | break; | |
| 16217 | } | ||
| 16218 | 3 | return _result; | |
| 16219 | ✗ | } | |
| 16220 | |||
| 16221 | ✗ | void WasmSequencerComponentBase::prmSet_out( | |
| 16222 | FwIndexType portNum, | ||
| 16223 | FwPrmIdType id, | ||
| 16224 | Fw::ParamBuffer& val | ||
| 16225 | ) const { | ||
| 16226 | ✗ | FW_ASSERT( | |
| 16227 | (0 <= portNum) && (portNum < NUM_PRMSET_OUTPUT_PORTS), | ||
| 16228 | static_cast<FwAssertArgType>(portNum), | ||
| 16229 | static_cast<FwAssertArgType>(NUM_PRMSET_OUTPUT_PORTS) | ||
| 16230 | ); | ||
| 16231 | ✗ | switch (portNum) { | |
| 16232 | ✗ | case 0: | |
| 16233 | ✗ | FileHandling::prmDb.setPrm_handlerBase( | |
| 16234 | 0, | ||
| 16235 | id, | ||
| 16236 | val | ||
| 16237 | ); | ||
| 16238 | ✗ | break; | |
| 16239 | ✗ | default: | |
| 16240 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16241 | ✗ | break; | |
| 16242 | } | ||
| 16243 | ✗ | } | |
| 16244 | |||
| 16245 | ✗ | void WasmSequencerComponentBase::seqDoneOut_out( | |
| 16246 | FwIndexType portNum, | ||
| 16247 | FwOpcodeType opCode, | ||
| 16248 | U32 cmdSeq, | ||
| 16249 | const Fw::CmdResponse& response | ||
| 16250 | ) const { | ||
| 16251 | ✗ | FW_ASSERT( | |
| 16252 | (0 <= portNum) && (portNum < NUM_SEQDONEOUT_OUTPUT_PORTS), | ||
| 16253 | static_cast<FwAssertArgType>(portNum), | ||
| 16254 | static_cast<FwAssertArgType>(NUM_SEQDONEOUT_OUTPUT_PORTS) | ||
| 16255 | ); | ||
| 16256 | ✗ | switch (portNum) { | |
| 16257 | default: | ||
| 16258 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16259 | ✗ | break; | |
| 16260 | } | ||
| 16261 | ✗ | } | |
| 16262 | |||
| 16263 | ✗ | void WasmSequencerComponentBase::seqStartOut_out( | |
| 16264 | FwIndexType portNum, | ||
| 16265 | const Fw::StringBase& filename, | ||
| 16266 | const Svc::SeqArgs& args | ||
| 16267 | ) const { | ||
| 16268 | ✗ | FW_ASSERT( | |
| 16269 | (0 <= portNum) && (portNum < NUM_SEQSTARTOUT_OUTPUT_PORTS), | ||
| 16270 | static_cast<FwAssertArgType>(portNum), | ||
| 16271 | static_cast<FwAssertArgType>(NUM_SEQSTARTOUT_OUTPUT_PORTS) | ||
| 16272 | ); | ||
| 16273 | ✗ | switch (portNum) { | |
| 16274 | default: | ||
| 16275 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16276 | ✗ | break; | |
| 16277 | } | ||
| 16278 | ✗ | } | |
| 16279 | |||
| 16280 | ✗ | Fw::SerializeStatus WasmSequencerComponentBase::serialOut_out( | |
| 16281 | FwIndexType portNum, | ||
| 16282 | Fw::LinearBufferBase& buffer | ||
| 16283 | ) { | ||
| 16284 | ✗ | FW_ASSERT( | |
| 16285 | (0 <= portNum) && (portNum < NUM_SERIALOUT_OUTPUT_PORTS), | ||
| 16286 | static_cast<FwAssertArgType>(portNum), | ||
| 16287 | static_cast<FwAssertArgType>(NUM_SERIALOUT_OUTPUT_PORTS) | ||
| 16288 | ); | ||
| 16289 | ✗ | Fw::SerializeStatus _result = {}; | |
| 16290 | ✗ | switch (portNum) { | |
| 16291 | default: | ||
| 16292 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16293 | ✗ | break; | |
| 16294 | } | ||
| 16295 | ✗ | return _result; | |
| 16296 | } | ||
| 16297 | |||
| 16298 | 132 | void WasmSequencerComponentBase::timeCaller_out( | |
| 16299 | FwIndexType portNum, | ||
| 16300 | Fw::Time& time | ||
| 16301 | ) const { | ||
| 16302 | 132 | FW_ASSERT( | |
| 16303 | (0 <= portNum) && (portNum < NUM_TIMECALLER_OUTPUT_PORTS), | ||
| 16304 | static_cast<FwAssertArgType>(portNum), | ||
| 16305 | static_cast<FwAssertArgType>(NUM_TIMECALLER_OUTPUT_PORTS) | ||
| 16306 | ); | ||
| 16307 |
1/2✓ Branch 0 taken 132 times.
✗ Branch 1 not taken.
|
132 | switch (portNum) { |
| 16308 | 132 | case 0: | |
| 16309 | 132 | Ref::posixTime.timeGetPort_handlerBase( | |
| 16310 | 0, | ||
| 16311 | time | ||
| 16312 | ); | ||
| 16313 | 132 | break; | |
| 16314 | ✗ | default: | |
| 16315 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16316 | ✗ | break; | |
| 16317 | } | ||
| 16318 | 132 | } | |
| 16319 | |||
| 16320 | 9 | void WasmSequencerComponentBase::tlmOut_out( | |
| 16321 | FwIndexType portNum, | ||
| 16322 | FwChanIdType id, | ||
| 16323 | Fw::Time& timeTag, | ||
| 16324 | Fw::TlmBuffer& val | ||
| 16325 | ) const { | ||
| 16326 | 9 | FW_ASSERT( | |
| 16327 | (0 <= portNum) && (portNum < NUM_TLMOUT_OUTPUT_PORTS), | ||
| 16328 | static_cast<FwAssertArgType>(portNum), | ||
| 16329 | static_cast<FwAssertArgType>(NUM_TLMOUT_OUTPUT_PORTS) | ||
| 16330 | ); | ||
| 16331 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | switch (portNum) { |
| 16332 | 9 | case 0: | |
| 16333 | 9 | CdhCore::tlmSend.TlmRecv_handlerBase( | |
| 16334 | 0, | ||
| 16335 | id, | ||
| 16336 | timeTag, | ||
| 16337 | val | ||
| 16338 | ); | ||
| 16339 | 9 | break; | |
| 16340 | ✗ | default: | |
| 16341 | ✗ | FW_ASSERT(false, static_cast<FwAssertArgType>(portNum)); | |
| 16342 | ✗ | break; | |
| 16343 | } | ||
| 16344 | 9 | } | |
| 16345 | |||
| 16346 | } | ||
| 16347 | |||
| 16348 | #endif | ||
| 16349 |