F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
DpGetPortAc.hpp
Go to the documentation of this file.
1// ======================================================================
2// \title DpGetPortAc.hpp
3// \author Generated by fpp-to-cpp
4// \brief hpp file for DpGet port
5// ======================================================================
6
7#ifndef Fw_DpGetPortAc_HPP
8#define Fw_DpGetPortAc_HPP
9
10#include <cstdio>
11#include <cstring>
12
13#include "FpConfig.hpp"
14#include "Fw/Buffer/Buffer.hpp"
20
21namespace Fw {
22
32 {
33
34 public:
35
36 // ----------------------------------------------------------------------
37 // Constants
38 // ----------------------------------------------------------------------
39
40 enum {
43 sizeof(FwDpIdType) +
44 sizeof(FwSizeType) +
46 };
47
48 public:
49
50 // ----------------------------------------------------------------------
51 // Types
52 // ----------------------------------------------------------------------
53
57 FwIndexType portNum,
58 FwDpIdType id,
59 FwSizeType dataSize,
60 Fw::Buffer& buffer
61 );
62
63 public:
64
65 // ----------------------------------------------------------------------
66 // Input Port Member functions
67 // ----------------------------------------------------------------------
68
71
73 void init();
74
76 void addCallComp(
77 Fw::PassiveComponentBase* callComp,
78 CompFuncPtr funcPtr
79 );
80
83 FwDpIdType id,
84 FwSizeType dataSize,
85 Fw::Buffer& buffer
86 );
87
88 private:
89
90#if FW_PORT_SERIALIZATION == 1
91
93 Fw::SerializeStatus invokeSerial(Fw::SerializeBufferBase& _buffer);
94
95#endif
96
97 private:
98
99 // ----------------------------------------------------------------------
100 // Member variables
101 // ----------------------------------------------------------------------
102
104 CompFuncPtr m_func;
105
106 };
107
116 public Fw::OutputPortBase
117 {
118
119 public:
120
121 // ----------------------------------------------------------------------
122 // Output Port Member functions
123 // ----------------------------------------------------------------------
124
127
129 void init();
130
132 void addCallPort(
133 InputDpGetPort* callPort
134 );
135
138 FwDpIdType id,
139 FwSizeType dataSize,
140 Fw::Buffer& buffer
141 ) const;
142
143 private:
144
145 // ----------------------------------------------------------------------
146 // Member variables
147 // ----------------------------------------------------------------------
148
150 InputDpGetPort* m_port;
151
152 };
153
154}
155
156#endif
U32 FwDpIdType
Definition FpConfig.h:115
PlatformSizeType FwSizeType
Definition FpConfig.h:35
PlatformIndexType FwIndexType
Definition FpConfig.h:25
C++-compatible configuration header for fprime configuration.
@ SERIALIZED_SIZE
Size of Fw::Buffer when serialized.
Definition Buffer.hpp:48
void init()
Initialization function.
InputDpGetPort()
Constructor.
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
Fw::Success invoke(FwDpIdType id, FwSizeType dataSize, Fw::Buffer &buffer)
Invoke a port interface.
Fw::Success(* CompFuncPtr)(Fw::PassiveComponentBase *callComp, FwIndexType portNum, FwDpIdType id, FwSizeType dataSize, Fw::Buffer &buffer)
The port callback function type.
@ SERIALIZED_SIZE
The size of the serial representations of the port arguments.
Fw::Success invoke(FwDpIdType id, FwSizeType dataSize, Fw::Buffer &buffer) const
Invoke a port interface.
OutputDpGetPort()
Constructor.
void init()
Initialization function.
void addCallPort(InputDpGetPort *callPort)
Register an input port.
Success/Failure.
SerializeStatus
forward declaration for string