F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
BlockDriver.cpp
Go to the documentation of this file.
2 #include <Fw/Types/Assert.hpp>
4 
5 namespace Ref {
6 
7 BlockDriver::BlockDriver(const char* compName) : BlockDriverComponentBase(compName), m_cycles(0) {}
8 
10 
11 void BlockDriver::BufferIn_handler(FwIndexType portNum, Drv::DataBuffer& buffer) {
12  // just a pass-through
13  this->BufferOut_out(0, buffer);
14 }
15 
16 void BlockDriver::Sched_handler(FwIndexType portNum, U32 context) {
17  this->tlmWrite_BD_Cycles(this->m_cycles++);
18 }
19 
20 void BlockDriver::PingIn_handler(const FwIndexType portNum, U32 key) {
21  // call ping output port
22  this->PingOut_out(0, key);
23 }
24 
25 } // namespace Ref
BlockDriver(const char *compName)
Definition: BlockDriver.cpp:7
PlatformIndexType FwIndexType