F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
CancelStatusPortAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title CancelStatusPortAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for CancelStatus port
5 // ======================================================================
6 
7 #ifndef Svc_CancelStatusPortAc_HPP
8 #define Svc_CancelStatusPortAc_HPP
9 
10 #include "Fw/FPrimeBasicTypes.hpp"
12 #if !FW_DIRECT_PORT_CALLS
16 #endif
17 
18 namespace Svc {
19 
23  {
24 
25  public:
26 
27  // ----------------------------------------------------------------------
28  // Public constants for CancelStatusPortBuffer
29  // ----------------------------------------------------------------------
30 
33  static constexpr FwSizeType CAPACITY =
34  0;
35 
36  public:
37 
38  // ----------------------------------------------------------------------
39  // Public member functions for CancelStatusPortBuffer
40  // ----------------------------------------------------------------------
41 
44 
45  }
46 
47  };
48 
49 #if !FW_DIRECT_PORT_CALLS
50 
53  public Fw::InputPortBase
54  {
55 
56  public:
57 
58  // ----------------------------------------------------------------------
59  // Public types for InputCancelStatusPort
60  // ----------------------------------------------------------------------
61 
63  typedef void (*CompFuncPtr)(
64  Fw::PassiveComponentBase* callComp,
65  FwIndexType portNum
66  );
67 
68  public:
69 
70  // ----------------------------------------------------------------------
71  // Public constructors for InputCancelStatusPort
72  // ----------------------------------------------------------------------
73 
76 
77  public:
78 
79  // ----------------------------------------------------------------------
80  // Public member functions for InputCancelStatusPort
81  // ----------------------------------------------------------------------
82 
84  void init();
85 
87  void addCallComp(
88  Fw::PassiveComponentBase* callComp,
89  CompFuncPtr funcPtr
90  );
91 
93  void invoke();
94 
95  private:
96 
97  // ----------------------------------------------------------------------
98  // Private member functions for InputCancelStatusPort
99  // ----------------------------------------------------------------------
100 
101 #if FW_PORT_SERIALIZATION == 1
102 
105  Fw::SerializeStatus invokeSerial(
106  Fw::LinearBufferBase& _buffer
107  );
108 
109 #endif
110 
111  private:
112 
113  // ----------------------------------------------------------------------
114  // Private member variables for InputCancelStatusPort
115  // ----------------------------------------------------------------------
116 
118  CompFuncPtr m_func;
119 
120  };
121 
124  public Fw::OutputPortBase
125  {
126 
127  public:
128 
129  // ----------------------------------------------------------------------
130  // Public constructors for OutputCancelStatusPort
131  // ----------------------------------------------------------------------
132 
135 
136  public:
137 
138  // ----------------------------------------------------------------------
139  // Public member functions for OutputCancelStatusPort
140  // ----------------------------------------------------------------------
141 
143  void init();
144 
146  void addCallPort(
147  InputCancelStatusPort* callPort
148  );
149 
151  void invoke() const;
152 
153  private:
154 
155  // ----------------------------------------------------------------------
156  // Private member variables for OutputCancelStatusPort
157  // ----------------------------------------------------------------------
158 
160  InputCancelStatusPort* m_port;
161 
162  };
163 
164 #endif
165 
166 }
167 
168 #endif
Serialization buffer for CancelStatus port.
PlatformSizeType FwSizeType
Output CancelStatus port.
SerializeStatus
forward declaration for string
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
void invoke() const
Invoke a port connection.
Input CancelStatus port.
void invoke()
Invoke a port interface.
void(* CompFuncPtr)(Fw::PassiveComponentBase *callComp, FwIndexType portNum)
The port callback function type.
PlatformIndexType FwIndexType
RateGroupDivider component implementation.
Implementation of malloc based allocator.
void init()
Initialization function.
void init()
Initialization function.
static constexpr FwSizeType CAPACITY
void addCallPort(InputCancelStatusPort *callPort)
Register an input port.