mirror of
https://github.com/nasa/fprime.git
synced 2026-05-31 08:24:56 -05:00
* 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>
31 lines
767 B
C++
31 lines
767 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;
|
|
};
|
|
} // namespace Ref
|
|
|
|
#endif
|