fprime/Ref/BlockDriver/BlockDriver.hpp
Timothy Canham 719faac6f2
Move BlockDriver to Ref example (#3651)
* Moved BlockDrv to Ref

* Fixed unit tests

* Updated LinuxTimer component name

* Fixed unit tests

* Re-removed LinuxTimerImpl.hpp

* Fixed a bunch of doc references to Drv/BlockDriver

* Spelling fix

* Added linux to spelling expect

* Doc fixes, have Svc/LinuxTimer use tick interface

* Added to change log

---------

Co-authored-by: Thomas Boyer-Chammard <49786685+thomas-bc@users.noreply.github.com>
2025-06-04 10:38:29 -07:00

36 lines
796 B
C++

#ifndef REF_BLOCK_DRIVER_IMPL_HPP
#define REF_BLOCK_DRIVER_IMPL_HPP
#include <Ref/BlockDriver/BlockDriverComponentAc.hpp>
namespace Ref {
class BlockDriver final : public BlockDriverComponentBase {
public:
// Only called by derived class
BlockDriver(const char* compName);
~BlockDriver();
private:
// downcalls for input ports
void BufferIn_handler(FwIndexType portNum, Drv::DataBuffer& buffer);
void Sched_handler(FwIndexType portNum, U32 context);
//! Handler implementation for PingIn
//!
void PingIn_handler(
const FwIndexType portNum, /*!< The port number*/
U32 key /*!< Value to return to pinger*/
);
// cycle count
U32 m_cycles;
};
}
#endif