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
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
TimePortAc.hpp
Go to the documentation of this file.
1
/*
2
* TimePort.hpp
3
*
4
* Created on: Wednesday, 14 October 2020
5
* Author: mstarch
6
*
7
*/
8
#ifndef FW_TIME_PORT_HPP_
9
#define FW_TIME_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
#include <
Fw/Time/Time.hpp
>
21
22
23
namespace
Fw
{
24
27
28
class
InputTimePort
:
public
Fw::InputPortBase
{
29
public
:
30
enum
{
31
SERIALIZED_SIZE
=
Fw::Time::SERIALIZED_SIZE
32
};
33
typedef
void (*
CompFuncPtr
)(
Fw::PassiveComponentBase
* callComp,
NATIVE_INT_TYPE
portNum,
Fw::Time
&time);
34
35
InputTimePort
(
void
);
36
void
init
(
void
);
37
void
addCallComp
(
Fw::PassiveComponentBase
* callComp,
CompFuncPtr
funcPtr);
38
void
invoke
(
Fw::Time
&time);
39
protected
:
40
private
:
41
CompFuncPtr
m_func;
42
#if FW_PORT_SERIALIZATION == 1
43
Fw::SerializeStatus
invokeSerial(
Fw::SerializeBufferBase
&buffer);
44
#endif
45
};
48
49
class
OutputTimePort
:
public
Fw::OutputPortBase
{
50
public
:
51
OutputTimePort
(
void
);
52
void
init
(
void
);
53
void
addCallPort
(
InputTimePort
* callPort);
54
void
invoke
(
Fw::Time
&time);
55
protected
:
56
private
:
57
InputTimePort
* m_port;
58
};
59
}
// end namespace Fw
60
#endif
/* FW_TIME_PORT_HPP_ */
61
StringType.hpp
Declares ISF string base class.
InputPortBase.hpp
Fw::InputTimePort
Definition:
TimePortAc.hpp:28
PassiveComponentBase.hpp
Fw::OutputTimePort::OutputTimePort
OutputTimePort(void)
Definition:
TimePortAc.cpp:84
Fw::Time
Definition:
Time.hpp:10
Fw::InputTimePort::SERIALIZED_SIZE
@ SERIALIZED_SIZE
serialized size of port arguments
Definition:
TimePortAc.hpp:31
Fw::SerializeBufferBase
Definition:
Serializable.hpp:43
Fw::SerializeStatus
SerializeStatus
forward declaration for string
Definition:
Serializable.hpp:14
Serializable.hpp
Fw::InputTimePort::InputTimePort
InputTimePort(void)
constructor
Definition:
TimePortAc.cpp:33
Fw::PassiveComponentBase
Definition:
PassiveComponentBase.hpp:10
Fw::OutputTimePort::init
void init(void)
Definition:
TimePortAc.cpp:89
Fw::InputPortBase
Definition:
InputPortBase.hpp:14
Fw::OutputTimePort::invoke
void invoke(Fw::Time &time)
Definition:
TimePortAc.cpp:103
OutputPortBase.hpp
Fw::InputTimePort::init
void init(void)
initialization function
Definition:
TimePortAc.cpp:38
Fw::InputTimePort::CompFuncPtr
void(* CompFuncPtr)(Fw::PassiveComponentBase *callComp, NATIVE_INT_TYPE portNum, Fw::Time &time)
port callback definition
Definition:
TimePortAc.hpp:33
Fw::InputTimePort::invoke
void invoke(Fw::Time &time)
invoke port interface
Definition:
TimePortAc.cpp:52
FpConfig.hpp
ISF configuration file.
Fw::InputTimePort::addCallComp
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
call to register a component
Definition:
TimePortAc.cpp:42
Fw::OutputPortBase
Definition:
OutputPortBase.hpp:13
Fw::OutputTimePort
Definition:
TimePortAc.hpp:49
BasicTypes.hpp
Declares ISF basic types.
Time.hpp
NATIVE_INT_TYPE
int NATIVE_INT_TYPE
native integer type declaration
Definition:
BasicTypes.hpp:29
Fw::Time::SERIALIZED_SIZE
@ SERIALIZED_SIZE
Definition:
Time.hpp:14
Fw
Definition:
BufferGetPortAc.cpp:6
Fw::OutputTimePort::addCallPort
void addCallPort(InputTimePort *callPort)
Definition:
TimePortAc.cpp:93
build-fprime-automatic-native
F-Prime
Fw
Time
TimePortAc.hpp
Generated by
1.8.19