F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
SignalDonePortAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title SignalDonePortAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for SignalDone port
5 // ======================================================================
6 
7 #ifndef Svc_SignalDonePortAc_HPP
8 #define Svc_SignalDonePortAc_HPP
9 
10 #include <cstdio>
11 #include <cstring>
12 
14 #include "Fw/FPrimeBasicTypes.hpp"
18 #include "Fw/Types/String.hpp"
20 
21 namespace Svc {
22 
25  public Fw::InputPortBase
26  {
27 
28  public:
29 
30  // ----------------------------------------------------------------------
31  // Constants
32  // ----------------------------------------------------------------------
33 
34  enum {
37  sizeof(U32) +
38  sizeof(FwSizeType)
39  };
40 
41  public:
42 
43  // ----------------------------------------------------------------------
44  // Types
45  // ----------------------------------------------------------------------
46 
48  typedef void (*CompFuncPtr)(
49  Fw::PassiveComponentBase* callComp,
50  FwIndexType portNum,
51  U32 status,
52  FwSizeType sizeBytes
53  );
54 
55  public:
56 
57  // ----------------------------------------------------------------------
58  // Input Port Member functions
59  // ----------------------------------------------------------------------
60 
63 
65  void init();
66 
68  void addCallComp(
69  Fw::PassiveComponentBase* callComp,
70  CompFuncPtr funcPtr
71  );
72 
74  void invoke(
75  U32 status,
76  FwSizeType sizeBytes
77  );
78 
79  private:
80 
81 #if FW_PORT_SERIALIZATION == 1
82 
84  Fw::SerializeStatus invokeSerial(Fw::LinearBufferBase& _buffer);
85 
86 #endif
87 
88  private:
89 
90  // ----------------------------------------------------------------------
91  // Member variables
92  // ----------------------------------------------------------------------
93 
95  CompFuncPtr m_func;
96 
97  };
98 
101  public Fw::OutputPortBase
102  {
103 
104  public:
105 
106  // ----------------------------------------------------------------------
107  // Output Port Member functions
108  // ----------------------------------------------------------------------
109 
112 
114  void init();
115 
117  void addCallPort(
118  InputSignalDonePort* callPort
119  );
120 
122  void invoke(
123  U32 status,
124  FwSizeType sizeBytes
125  ) const;
126 
127  private:
128 
129  // ----------------------------------------------------------------------
130  // Member variables
131  // ----------------------------------------------------------------------
132 
134  InputSignalDonePort* m_port;
135 
136  };
137 
138 }
139 
140 #endif
void init()
Initialization function.
PlatformSizeType FwSizeType
Input SignalDone port.
void(* CompFuncPtr)(Fw::PassiveComponentBase *callComp, FwIndexType portNum, U32 status, FwSizeType sizeBytes)
The port callback function type.
InputSignalDonePort()
Constructor.
The size of the serial representations of the port arguments.
Output SignalDone port.
SerializeStatus
forward declaration for string
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
void invoke(U32 status, FwSizeType sizeBytes)
Invoke a port interface.
void addCallPort(InputSignalDonePort *callPort)
Register an input port.
void init()
Initialization function.
PlatformIndexType FwIndexType
RateGroupDivider component implementation.
void invoke(U32 status, FwSizeType sizeBytes) const
Invoke a port interface.