F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
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
~ComStub
()
override
;
29
30
private
:
31
// ----------------------------------------------------------------------
32
// Handler implementations for user-defined typed input ports
33
// ----------------------------------------------------------------------
34
37
Drv::SendStatus
comDataIn_handler(
const
NATIVE_INT_TYPE
portNum,
38
Fw::Buffer
& sendBuffer)
override
;
39
42
void
drvConnected_handler(
const
NATIVE_INT_TYPE
portNum)
override
;
43
46
void
drvDataIn_handler(
const
NATIVE_INT_TYPE
portNum,
Fw::Buffer
& recvBuffer,
48
const
Drv::RecvStatus
& recvStatus)
override
;
49
50
bool
m_reinitialize;
51
};
52
53
}
// end namespace Svc
54
55
#endif
NATIVE_INT_TYPE
PlatformIntType NATIVE_INT_TYPE
Definition:
BasicTypes.h:55
NATIVE_UINT_TYPE
PlatformUIntType NATIVE_UINT_TYPE
Definition:
BasicTypes.h:56
ComStubComponentAc.hpp
Drv::RecvStatus
Status associated with the received data.
Definition:
RecvStatusEnumAc.hpp:19
Drv::SendStatus
Status returned by the send call.
Definition:
SendStatusEnumAc.hpp:19
Fw::Buffer
Definition:
Buffer.hpp:43
Svc::ComStubComponentBase
Auto-generated base for ComStub component.
Definition:
ComStubComponentAc.hpp:27
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:19
Svc::ComStub::ComStub
ComStub(const char *const compName)
Definition:
ComStub.cpp:17
Svc
Definition:
ActiveRateGroupCfg.hpp:18
Svc
ComStub
ComStub.hpp
Generated by
1.9.1