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 
45  return CAPACITY;
46  }
47 
50  U8* getBuffAddr() override {
51  return nullptr;
52  }
53 
56  const U8* getBuffAddr() const override {
57  return nullptr;
58  }
59 
60  };
61 
62 #if !FW_DIRECT_PORT_CALLS
63 
66  public Fw::InputPortBase
67  {
68 
69  public:
70 
71  // ----------------------------------------------------------------------
72  // Public types for InputCancelStatusPort
73  // ----------------------------------------------------------------------
74 
76  typedef void (*CompFuncPtr)(
77  Fw::PassiveComponentBase* callComp,
78  FwIndexType portNum
79  );
80 
81  public:
82 
83  // ----------------------------------------------------------------------
84  // Public constructors for InputCancelStatusPort
85  // ----------------------------------------------------------------------
86 
89 
90  public:
91 
92  // ----------------------------------------------------------------------
93  // Public member functions for InputCancelStatusPort
94  // ----------------------------------------------------------------------
95 
97  void init();
98 
100  void addCallComp(
101  Fw::PassiveComponentBase* callComp,
102  CompFuncPtr funcPtr
103  );
104 
106  void invoke();
107 
108  private:
109 
110  // ----------------------------------------------------------------------
111  // Private member functions for InputCancelStatusPort
112  // ----------------------------------------------------------------------
113 
114 #if FW_PORT_SERIALIZATION == 1
115 
118  Fw::SerializeStatus invokeSerial(
119  Fw::LinearBufferBase& _buffer
120  );
121 
122 #endif
123 
124  private:
125 
126  // ----------------------------------------------------------------------
127  // Private member variables for InputCancelStatusPort
128  // ----------------------------------------------------------------------
129 
131  CompFuncPtr m_func;
132 
133  };
134 
137  public Fw::OutputPortBase
138  {
139 
140  public:
141 
142  // ----------------------------------------------------------------------
143  // Public constructors for OutputCancelStatusPort
144  // ----------------------------------------------------------------------
145 
148 
149  public:
150 
151  // ----------------------------------------------------------------------
152  // Public member functions for OutputCancelStatusPort
153  // ----------------------------------------------------------------------
154 
156  void init();
157 
159  void addCallPort(
160  InputCancelStatusPort* callPort
161  );
162 
164  void invoke() const;
165 
166  private:
167 
168  // ----------------------------------------------------------------------
169  // Private member variables for OutputCancelStatusPort
170  // ----------------------------------------------------------------------
171 
173  InputCancelStatusPort* m_port;
174 
175  };
176 
177 #endif
178 
179 }
180 
181 #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.
FwSizeType SizeType
Input CancelStatus port.
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:53
const U8 * getBuffAddr() const override
void invoke()
Invoke a port interface.
void(* CompFuncPtr)(Fw::PassiveComponentBase *callComp, FwIndexType portNum)
The port callback function type.
PlatformIndexType FwIndexType
Fw::Serializable::SizeType getCapacity() const override
RateGroupDivider component implementation.
void init()
Initialization function.
void init()
Initialization function.
static constexpr FwSizeType CAPACITY
void addCallPort(InputCancelStatusPort *callPort)
Register an input port.