F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ComStub.hpp
Go to the documentation of this file.
1// ======================================================================
2// \title ComStub.hpp
3// \author mstarch
4// \brief hpp file for ComStub component implementation class
5// ======================================================================
6
7#ifndef Svc_ComStub_HPP
8#define Svc_ComStub_HPP
9
10#include "Svc/ComStub/ComStubComponentAc.hpp"
11
12namespace Svc {
13
14class ComStub : public ComStubComponentBase {
15 public:
17 // ----------------------------------------------------------------------
18 // Construction, initialization, and destruction
19 // ----------------------------------------------------------------------
20
23 ComStub(const char* const compName
24 );
25
28 void init(const NATIVE_INT_TYPE instance = 0
29 );
30
33 ~ComStub() override;
34
35 private:
36 // ----------------------------------------------------------------------
37 // Handler implementations for user-defined typed input ports
38 // ----------------------------------------------------------------------
39
42 Drv::SendStatus comDataIn_handler(const NATIVE_INT_TYPE portNum,
43 Fw::Buffer& sendBuffer) override;
44
47 void drvConnected_handler(const NATIVE_INT_TYPE portNum) override;
48
51 void drvDataIn_handler(const NATIVE_INT_TYPE portNum, Fw::Buffer& recvBuffer,
53 const Drv::RecvStatus& recvStatus) override;
54
55 bool m_reinitialize;
56};
57
58} // end namespace Svc
59
60#endif
PlatformIntType NATIVE_INT_TYPE
Definition BasicTypes.h:51
PlatformUIntType NATIVE_UINT_TYPE
Definition BasicTypes.h:52
const NATIVE_UINT_TYPE RETRY_LIMIT
Definition ComStub.hpp:16
~ComStub() override
Definition ComStub.cpp:23
void init(const NATIVE_INT_TYPE instance=0)
Definition ComStub.cpp:19