F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Functions
a
b
c
d
g
h
i
m
r
s
t
v
w
Variables
Typedefs
Enumerations
Enumerator
a
b
c
f
h
i
l
m
n
o
p
s
t
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
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
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
c
t
u
w
Enumerations
b
c
d
e
f
g
h
i
m
o
p
q
s
t
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
w
Related Functions
a
b
c
f
g
h
l
p
r
s
t
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
w
Functions
f
i
m
s
u
Variables
_
c
f
i
l
p
t
Typedefs
Enumerations
Enumerator
a
c
d
f
i
m
p
r
s
t
w
Macros
a
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
►
F´ Flight Software - C/C++ Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
SchedPortAc.hpp
Go to the documentation of this file.
1
/*
2
* SchedPort.hpp
3
*
4
* Created on: Wednesday, 14 October 2020
5
* Author: mstarch
6
*
7
*/
8
#ifndef SVC_SCHED_PORT_HPP_
9
#define SVC_SCHED_PORT_HPP_
10
11
#include <cstring>
12
#include <cstdio>
13
#include <
FpConfig.hpp
>
14
#include <
Fw/Port/InputPortBase.hpp
>
15
#include <
Fw/Port/OutputPortBase.hpp
>
16
#include <
Fw/Comp/PassiveComponentBase.hpp
>
17
#include <
Fw/Types/BasicTypes.hpp
>
18
#include <
Fw/Types/Serializable.hpp
>
19
#include <
Fw/Types/StringType.hpp
>
20
21
22
namespace
Svc
{
23
26
27
class
InputSchedPort
:
public
Fw::InputPortBase
{
28
public
:
29
enum
{
30
SERIALIZED_SIZE
=
sizeof
(
NATIVE_UINT_TYPE
)
31
};
32
typedef
void (*
CompFuncPtr
)(
Fw::PassiveComponentBase
* callComp,
NATIVE_INT_TYPE
portNum,
NATIVE_UINT_TYPE
context);
33
34
InputSchedPort
(
void
);
35
void
init
(
void
);
36
void
addCallComp
(
Fw::PassiveComponentBase
* callComp,
CompFuncPtr
funcPtr);
37
void
invoke
(
NATIVE_UINT_TYPE
context);
38
protected
:
39
private
:
40
CompFuncPtr
m_func;
41
#if FW_PORT_SERIALIZATION == 1
42
Fw::SerializeStatus
invokeSerial(
Fw::SerializeBufferBase
&buffer);
43
#endif
44
};
47
48
class
OutputSchedPort
:
public
Fw::OutputPortBase
{
49
public
:
50
OutputSchedPort
(
void
);
51
void
init
(
void
);
52
void
addCallPort
(
InputSchedPort
* callPort);
53
void
invoke
(
NATIVE_UINT_TYPE
context);
54
protected
:
55
private
:
56
InputSchedPort
* m_port;
57
};
58
}
// end namespace Svc
59
#endif
/* SVC_SCHED_PORT_HPP_ */
60
StringType.hpp
Declares ISF string base class.
InputPortBase.hpp
Svc::InputSchedPort::CompFuncPtr
void(* CompFuncPtr)(Fw::PassiveComponentBase *callComp, NATIVE_INT_TYPE portNum, NATIVE_UINT_TYPE context)
port callback definition
Definition:
SchedPortAc.hpp:32
PassiveComponentBase.hpp
Fw::SerializeBufferBase
Definition:
Serializable.hpp:43
Fw::SerializeStatus
SerializeStatus
forward declaration for string
Definition:
Serializable.hpp:14
Svc::InputSchedPort::addCallComp
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
call to register a component
Definition:
SchedPortAc.cpp:42
Serializable.hpp
Svc::InputSchedPort::init
void init(void)
initialization function
Definition:
SchedPortAc.cpp:38
Svc::InputSchedPort::SERIALIZED_SIZE
@ SERIALIZED_SIZE
serialized size of port arguments
Definition:
SchedPortAc.hpp:30
Fw::PassiveComponentBase
Definition:
PassiveComponentBase.hpp:10
Svc::InputSchedPort::InputSchedPort
InputSchedPort(void)
constructor
Definition:
SchedPortAc.cpp:33
Fw::InputPortBase
Definition:
InputPortBase.hpp:14
Svc::InputSchedPort
Definition:
SchedPortAc.hpp:27
Svc::InputSchedPort::invoke
void invoke(NATIVE_UINT_TYPE context)
invoke port interface
Definition:
SchedPortAc.cpp:52
NATIVE_UINT_TYPE
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
Definition:
BasicTypes.hpp:30
Svc::OutputSchedPort::invoke
void invoke(NATIVE_UINT_TYPE context)
Definition:
SchedPortAc.cpp:103
Svc::OutputSchedPort::addCallPort
void addCallPort(InputSchedPort *callPort)
Definition:
SchedPortAc.cpp:93
OutputPortBase.hpp
Svc::OutputSchedPort::init
void init(void)
Definition:
SchedPortAc.cpp:89
FpConfig.hpp
ISF configuration file.
Fw::OutputPortBase
Definition:
OutputPortBase.hpp:13
Svc
Definition:
ActiveLoggerComponentAc.cpp:22
Svc::OutputSchedPort::OutputSchedPort
OutputSchedPort(void)
Definition:
SchedPortAc.cpp:84
BasicTypes.hpp
Declares ISF basic types.
NATIVE_INT_TYPE
int NATIVE_INT_TYPE
native integer type declaration
Definition:
BasicTypes.hpp:29
Svc::OutputSchedPort
Definition:
SchedPortAc.hpp:48
build-fprime-automatic-native
F-Prime
Svc
Sched
SchedPortAc.hpp
Generated by
1.8.19