F´ Flight Software - C/C++ Documentation
NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
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
12
namespace
Svc
{
13
14
class
ComStub
:
public
ComStubComponentBase {
15
public
:
16
const
NATIVE_UINT_TYPE
RETRY_LIMIT
= 10;
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
NATIVE_INT_TYPE
PlatformIntType NATIVE_INT_TYPE
Definition
BasicTypes.h:51
NATIVE_UINT_TYPE
PlatformUIntType NATIVE_UINT_TYPE
Definition
BasicTypes.h:52
Fw::Buffer
Definition
Buffer.hpp:43
Svc::ComStub
Definition
ComStub.hpp:14
Svc::ComStub::RETRY_LIMIT
const NATIVE_UINT_TYPE RETRY_LIMIT
Definition
ComStub.hpp:16
Svc::ComStub::~ComStub
~ComStub() override
Definition
ComStub.cpp:23
Svc::ComStub::init
void init(const NATIVE_INT_TYPE instance=0)
Definition
ComStub.cpp:19
Svc
Definition
ActiveRateGroupCfg.hpp:18
Svc
ComStub
ComStub.hpp
Generated by
1.9.7