mirror of
https://github.com/nasa/fprime.git
synced 2025-12-12 18:31:06 -06:00
* 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>
36 lines
796 B
C++
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
|