Files
M Starch 377fd690bd Banish Ref to a project directory (#5125)
* Banishing Ref to a project directory

* Fixing CI catches

* Change directory to TestDeploymentsProject for build

Signed-off-by: M Starch <LeStarch@googlemail.com>

---------

Signed-off-by: M Starch <LeStarch@googlemail.com>
2026-05-11 10:21:30 -07:00

26 lines
682 B
C++

#include <Fw/FPrimeBasicTypes.hpp>
#include <Fw/Types/Assert.hpp>
#include <Ref/BlockDriver/BlockDriver.hpp>
namespace Ref {
BlockDriver::BlockDriver(const char* compName) : BlockDriverComponentBase(compName), m_cycles(0) {}
BlockDriver::~BlockDriver() {}
void BlockDriver::BufferIn_handler(FwIndexType portNum, Drv::DataBuffer& buffer) {
// just a pass-through
this->BufferOut_out(0, buffer);
}
void BlockDriver::Sched_handler(FwIndexType portNum, U32 context) {
this->tlmWrite_BD_Cycles(this->m_cycles++);
}
void BlockDriver::PingIn_handler(const FwIndexType portNum, U32 key) {
// call ping output port
this->PingOut_out(0, key);
}
} // namespace Ref