F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
g
h
i
m
o
p
r
s
t
v
w
Variables
Typedefs
a
b
c
d
e
f
g
h
l
o
p
r
s
t
u
w
Enumerations
Enumerator
a
b
c
f
h
i
n
o
p
s
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
Typedefs
c
e
s
t
u
w
Enumerations
b
c
d
g
h
m
o
q
s
t
u
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Related Symbols
a
b
c
d
f
g
h
l
p
r
s
t
u
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
l
m
n
p
r
s
t
u
v
Functions
c
i
m
p
s
u
Variables
_
b
c
f
i
l
p
r
s
Typedefs
b
c
f
i
n
p
s
u
Enumerations
Enumerator
a
b
c
d
f
g
h
p
r
s
t
Macros
_
a
c
d
f
g
h
i
l
m
p
r
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
GenericHubComponentImpl.hpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title GenericHubComponentImpl.hpp
3
// \author mstarch
4
// \brief hpp file for GenericHub component implementation class
5
//
6
// \copyright
7
// Copyright 2009-2015, by the California Institute of Technology.
8
// ALL RIGHTS RESERVED. United States Government Sponsorship
9
// acknowledged.
10
//
11
// ======================================================================
12
13
#ifndef GenericHub_HPP
14
#define GenericHub_HPP
15
16
#include "
Svc/GenericHub/GenericHubComponentAc.hpp
"
17
18
namespace
Svc
{
19
20
class
GenericHubComponentImpl
:
public
GenericHubComponentBase
{
21
public
:
27
enum
HubType
{
28
HUB_TYPE_PORT
,
29
HUB_TYPE_BUFFER
,
30
HUB_TYPE_EVENT
,
31
HUB_TYPE_CHANNEL
,
32
HUB_TYPE_MAX
33
};
27
enum
HubType
{
…
};
34
35
const
static
U32
GENERIC_HUB_DATA_SIZE
= 1024;
36
// ----------------------------------------------------------------------
37
// Construction, initialization, and destruction
38
// ----------------------------------------------------------------------
39
42
GenericHubComponentImpl
(
const
char
*
const
compName
43
);
44
47
void
init
(
const
NATIVE_INT_TYPE
instance = 0
48
);
49
52
~GenericHubComponentImpl
();
53
54
PRIVATE:
55
// ----------------------------------------------------------------------
56
// Handler implementations for user-defined typed input ports
57
// ----------------------------------------------------------------------
58
61
void
buffersIn_handler(
const
NATIVE_INT_TYPE
portNum,
62
Fw::Buffer
& fwBuffer);
63
66
void
dataIn_handler(
const
NATIVE_INT_TYPE
portNum,
67
Fw::Buffer
& fwBuffer);
68
71
void
LogRecv_handler(
const
NATIVE_INT_TYPE
portNum,
72
FwEventIdType
id
,
73
Fw::Time
& timeTag,
74
const
Fw::LogSeverity
& severity,
75
Fw::LogBuffer
& args
76
);
77
80
void
TlmRecv_handler(
const
NATIVE_INT_TYPE
portNum,
81
FwChanIdType
id
,
82
Fw::Time
& timeTag,
83
Fw::TlmBuffer
& val
84
);
85
86
// ----------------------------------------------------------------------
87
// Handler implementations for user-defined serial input ports
88
// ----------------------------------------------------------------------
89
92
void
portIn_handler(
NATIVE_INT_TYPE
portNum,
93
Fw::SerializeBufferBase
& Buffer
94
);
95
96
// Helpers and members
97
void
send_data(
const
HubType
type,
const
NATIVE_INT_TYPE
port,
const
U8
* data,
const
U32 size);
98
};
20
class
GenericHubComponentImpl
:
public
GenericHubComponentBase
{
…
};
99
100
}
// end namespace Svc
101
102
#endif
NATIVE_INT_TYPE
PlatformIntType NATIVE_INT_TYPE
Definition
BasicTypes.h:51
U8
uint8_t U8
8-bit unsigned integer
Definition
BasicTypes.h:26
FwChanIdType
U32 FwChanIdType
Definition
FpConfig.h:59
FwEventIdType
U32 FwEventIdType
Definition
FpConfig.h:62
GenericHubComponentAc.hpp
Fw::Buffer
Definition
Buffer.hpp:43
Fw::LogBuffer
Definition
LogBuffer.hpp:21
Fw::LogSeverity
Enum representing event severity.
Definition
LogSeverityEnumAc.hpp:19
Fw::ObjBase::init
void init()
Object initializer.
Definition
ObjBase.cpp:27
Fw::SerializeBufferBase
Definition
Serializable.hpp:41
Fw::Time
Definition
Time.hpp:9
Fw::TlmBuffer
Definition
TlmBuffer.hpp:20
Svc::GenericHubComponentBase
Auto-generated base for GenericHub component.
Definition
GenericHubComponentAc.hpp:32
Svc::GenericHubComponentImpl
Definition
GenericHubComponentImpl.hpp:20
Svc::GenericHubComponentImpl::HubType
HubType
Definition
GenericHubComponentImpl.hpp:27
Svc::GenericHubComponentImpl::HUB_TYPE_EVENT
@ HUB_TYPE_EVENT
Event transmission.
Definition
GenericHubComponentImpl.hpp:30
Svc::GenericHubComponentImpl::HUB_TYPE_MAX
@ HUB_TYPE_MAX
Definition
GenericHubComponentImpl.hpp:32
Svc::GenericHubComponentImpl::HUB_TYPE_BUFFER
@ HUB_TYPE_BUFFER
Buffer type transmission.
Definition
GenericHubComponentImpl.hpp:29
Svc::GenericHubComponentImpl::HUB_TYPE_CHANNEL
@ HUB_TYPE_CHANNEL
Telemetry channel type.
Definition
GenericHubComponentImpl.hpp:31
Svc::GenericHubComponentImpl::HUB_TYPE_PORT
@ HUB_TYPE_PORT
Port type transmission.
Definition
GenericHubComponentImpl.hpp:28
Svc::GenericHubComponentImpl::GenericHubComponentImpl
GenericHubComponentImpl(const char *const compName)
Definition
GenericHubComponentImpl.cpp:27
Svc::GenericHubComponentImpl::GENERIC_HUB_DATA_SIZE
static const U32 GENERIC_HUB_DATA_SIZE
Definition
GenericHubComponentImpl.hpp:35
Svc::GenericHubComponentImpl::~GenericHubComponentImpl
~GenericHubComponentImpl()
Definition
GenericHubComponentImpl.cpp:33
Svc
Definition
ActiveRateGroupCfg.hpp:18
Svc
GenericHub
GenericHubComponentImpl.hpp
Generated by
1.10.0