F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
FprimeFramerComponentAc.cpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title FprimeFramerComponentAc.cpp
3 // \author Generated by fpp-to-cpp
4 // \brief cpp file for FprimeFramer component base class
5 // ======================================================================
6 
7 #include "Fw/Types/Assert.hpp"
9 #if FW_ENABLE_TEXT_LOGGING
10 #include "Fw/Types/String.hpp"
11 #endif
13 
14 namespace Svc {
15 
16  // ----------------------------------------------------------------------
17  // Component initialization
18  // ----------------------------------------------------------------------
19 
22  {
23  // Initialize base class
25 
26  // Connect input port comStatusIn
27  for (
28  FwIndexType port = 0;
29  port < static_cast<FwIndexType>(this->getNum_comStatusIn_InputPorts());
30  port++
31  ) {
32  this->m_comStatusIn_InputPort[port].init();
33  this->m_comStatusIn_InputPort[port].addCallComp(
34  this,
35  m_p_comStatusIn_in
36  );
37  this->m_comStatusIn_InputPort[port].setPortNum(port);
38 
39 #if FW_OBJECT_NAMES == 1
40  Fw::ObjectName portName;
41  portName.format(
42  "%s_comStatusIn_InputPort[%" PRI_FwIndexType "]",
43  this->m_objName.toChar(),
44  port
45  );
46  this->m_comStatusIn_InputPort[port].setObjName(portName.toChar());
47 #endif
48  }
49 
50  // Connect input port dataIn
51  for (
52  FwIndexType port = 0;
53  port < static_cast<FwIndexType>(this->getNum_dataIn_InputPorts());
54  port++
55  ) {
56  this->m_dataIn_InputPort[port].init();
57  this->m_dataIn_InputPort[port].addCallComp(
58  this,
59  m_p_dataIn_in
60  );
61  this->m_dataIn_InputPort[port].setPortNum(port);
62 
63 #if FW_OBJECT_NAMES == 1
64  Fw::ObjectName portName;
65  portName.format(
66  "%s_dataIn_InputPort[%" PRI_FwIndexType "]",
67  this->m_objName.toChar(),
68  port
69  );
70  this->m_dataIn_InputPort[port].setObjName(portName.toChar());
71 #endif
72  }
73 
74  // Connect input port dataReturnIn
75  for (
76  FwIndexType port = 0;
77  port < static_cast<FwIndexType>(this->getNum_dataReturnIn_InputPorts());
78  port++
79  ) {
80  this->m_dataReturnIn_InputPort[port].init();
81  this->m_dataReturnIn_InputPort[port].addCallComp(
82  this,
83  m_p_dataReturnIn_in
84  );
85  this->m_dataReturnIn_InputPort[port].setPortNum(port);
86 
87 #if FW_OBJECT_NAMES == 1
88  Fw::ObjectName portName;
89  portName.format(
90  "%s_dataReturnIn_InputPort[%" PRI_FwIndexType "]",
91  this->m_objName.toChar(),
92  port
93  );
94  this->m_dataReturnIn_InputPort[port].setObjName(portName.toChar());
95 #endif
96  }
97 
98  // Connect output port timeCaller
99  for (
100  FwIndexType port = 0;
101  port < static_cast<FwIndexType>(this->getNum_timeCaller_OutputPorts());
102  port++
103  ) {
104  this->m_timeCaller_OutputPort[port].init();
105 
106 #if FW_OBJECT_NAMES == 1
107  Fw::ObjectName portName;
108  portName.format(
109  "%s_timeCaller_OutputPort[%" PRI_FwIndexType "]",
110  this->m_objName.toChar(),
111  port
112  );
113  this->m_timeCaller_OutputPort[port].setObjName(portName.toChar());
114 #endif
115  }
116 
117  // Connect output port bufferAllocate
118  for (
119  FwIndexType port = 0;
120  port < static_cast<FwIndexType>(this->getNum_bufferAllocate_OutputPorts());
121  port++
122  ) {
123  this->m_bufferAllocate_OutputPort[port].init();
124 
125 #if FW_OBJECT_NAMES == 1
126  Fw::ObjectName portName;
127  portName.format(
128  "%s_bufferAllocate_OutputPort[%" PRI_FwIndexType "]",
129  this->m_objName.toChar(),
130  port
131  );
132  this->m_bufferAllocate_OutputPort[port].setObjName(portName.toChar());
133 #endif
134  }
135 
136  // Connect output port bufferDeallocate
137  for (
138  FwIndexType port = 0;
139  port < static_cast<FwIndexType>(this->getNum_bufferDeallocate_OutputPorts());
140  port++
141  ) {
142  this->m_bufferDeallocate_OutputPort[port].init();
143 
144 #if FW_OBJECT_NAMES == 1
145  Fw::ObjectName portName;
146  portName.format(
147  "%s_bufferDeallocate_OutputPort[%" PRI_FwIndexType "]",
148  this->m_objName.toChar(),
149  port
150  );
151  this->m_bufferDeallocate_OutputPort[port].setObjName(portName.toChar());
152 #endif
153  }
154 
155  // Connect output port comStatusOut
156  for (
157  FwIndexType port = 0;
158  port < static_cast<FwIndexType>(this->getNum_comStatusOut_OutputPorts());
159  port++
160  ) {
161  this->m_comStatusOut_OutputPort[port].init();
162 
163 #if FW_OBJECT_NAMES == 1
164  Fw::ObjectName portName;
165  portName.format(
166  "%s_comStatusOut_OutputPort[%" PRI_FwIndexType "]",
167  this->m_objName.toChar(),
168  port
169  );
170  this->m_comStatusOut_OutputPort[port].setObjName(portName.toChar());
171 #endif
172  }
173 
174  // Connect output port dataOut
175  for (
176  FwIndexType port = 0;
177  port < static_cast<FwIndexType>(this->getNum_dataOut_OutputPorts());
178  port++
179  ) {
180  this->m_dataOut_OutputPort[port].init();
181 
182 #if FW_OBJECT_NAMES == 1
183  Fw::ObjectName portName;
184  portName.format(
185  "%s_dataOut_OutputPort[%" PRI_FwIndexType "]",
186  this->m_objName.toChar(),
187  port
188  );
189  this->m_dataOut_OutputPort[port].setObjName(portName.toChar());
190 #endif
191  }
192 
193  // Connect output port dataReturnOut
194  for (
195  FwIndexType port = 0;
196  port < static_cast<FwIndexType>(this->getNum_dataReturnOut_OutputPorts());
197  port++
198  ) {
199  this->m_dataReturnOut_OutputPort[port].init();
200 
201 #if FW_OBJECT_NAMES == 1
202  Fw::ObjectName portName;
203  portName.format(
204  "%s_dataReturnOut_OutputPort[%" PRI_FwIndexType "]",
205  this->m_objName.toChar(),
206  port
207  );
208  this->m_dataReturnOut_OutputPort[port].setObjName(portName.toChar());
209 #endif
210  }
211  }
212 
213  // ----------------------------------------------------------------------
214  // Getters for typed input ports
215  // ----------------------------------------------------------------------
216 
219  {
220  FW_ASSERT(
221  (0 <= portNum) && (portNum < this->getNum_comStatusIn_InputPorts()),
222  static_cast<FwAssertArgType>(portNum)
223  );
224 
225  return &this->m_comStatusIn_InputPort[portNum];
226  }
227 
230  {
231  FW_ASSERT(
232  (0 <= portNum) && (portNum < this->getNum_dataIn_InputPorts()),
233  static_cast<FwAssertArgType>(portNum)
234  );
235 
236  return &this->m_dataIn_InputPort[portNum];
237  }
238 
241  {
242  FW_ASSERT(
243  (0 <= portNum) && (portNum < this->getNum_dataReturnIn_InputPorts()),
244  static_cast<FwAssertArgType>(portNum)
245  );
246 
247  return &this->m_dataReturnIn_InputPort[portNum];
248  }
249 
250  // ----------------------------------------------------------------------
251  // Connect input ports to special output ports
252  // ----------------------------------------------------------------------
253 
256  FwIndexType portNum,
257  Fw::InputTimePort* port
258  )
259  {
260  FW_ASSERT(
261  (0 <= portNum) && (portNum < this->getNum_timeCaller_OutputPorts()),
262  static_cast<FwAssertArgType>(portNum)
263  );
264 
265  this->m_timeCaller_OutputPort[portNum].addCallPort(port);
266  }
267 
268  // ----------------------------------------------------------------------
269  // Connect typed input ports to typed output ports
270  // ----------------------------------------------------------------------
271 
274  FwIndexType portNum,
276  )
277  {
278  FW_ASSERT(
279  (0 <= portNum) && (portNum < this->getNum_bufferAllocate_OutputPorts()),
280  static_cast<FwAssertArgType>(portNum)
281  );
282 
283  this->m_bufferAllocate_OutputPort[portNum].addCallPort(port);
284  }
285 
288  FwIndexType portNum,
290  )
291  {
292  FW_ASSERT(
293  (0 <= portNum) && (portNum < this->getNum_bufferDeallocate_OutputPorts()),
294  static_cast<FwAssertArgType>(portNum)
295  );
296 
297  this->m_bufferDeallocate_OutputPort[portNum].addCallPort(port);
298  }
299 
302  FwIndexType portNum,
304  )
305  {
306  FW_ASSERT(
307  (0 <= portNum) && (portNum < this->getNum_comStatusOut_OutputPorts()),
308  static_cast<FwAssertArgType>(portNum)
309  );
310 
311  this->m_comStatusOut_OutputPort[portNum].addCallPort(port);
312  }
313 
316  FwIndexType portNum,
318  )
319  {
320  FW_ASSERT(
321  (0 <= portNum) && (portNum < this->getNum_dataOut_OutputPorts()),
322  static_cast<FwAssertArgType>(portNum)
323  );
324 
325  this->m_dataOut_OutputPort[portNum].addCallPort(port);
326  }
327 
330  FwIndexType portNum,
332  )
333  {
334  FW_ASSERT(
335  (0 <= portNum) && (portNum < this->getNum_dataReturnOut_OutputPorts()),
336  static_cast<FwAssertArgType>(portNum)
337  );
338 
339  this->m_dataReturnOut_OutputPort[portNum].addCallPort(port);
340  }
341 
342 #if FW_PORT_SERIALIZATION
343 
344  // ----------------------------------------------------------------------
345  // Connect serial input ports to special output ports
346  // ----------------------------------------------------------------------
347 
350  FwIndexType portNum,
351  Fw::InputSerializePort* port
352  )
353  {
354  FW_ASSERT(
355  (0 <= portNum) && (portNum < this->getNum_timeCaller_OutputPorts()),
356  static_cast<FwAssertArgType>(portNum)
357  );
358 
359  this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
360  }
361 
362 #endif
363 
364 #if FW_PORT_SERIALIZATION
365 
366  // ----------------------------------------------------------------------
367  // Connect serial input ports to typed output ports
368  // ----------------------------------------------------------------------
369 
372  FwIndexType portNum,
373  Fw::InputSerializePort* port
374  )
375  {
376  FW_ASSERT(
377  (0 <= portNum) && (portNum < this->getNum_bufferDeallocate_OutputPorts()),
378  static_cast<FwAssertArgType>(portNum)
379  );
380 
381  this->m_bufferDeallocate_OutputPort[portNum].registerSerialPort(port);
382  }
383 
386  FwIndexType portNum,
387  Fw::InputSerializePort* port
388  )
389  {
390  FW_ASSERT(
391  (0 <= portNum) && (portNum < this->getNum_comStatusOut_OutputPorts()),
392  static_cast<FwAssertArgType>(portNum)
393  );
394 
395  this->m_comStatusOut_OutputPort[portNum].registerSerialPort(port);
396  }
397 
400  FwIndexType portNum,
401  Fw::InputSerializePort* port
402  )
403  {
404  FW_ASSERT(
405  (0 <= portNum) && (portNum < this->getNum_dataOut_OutputPorts()),
406  static_cast<FwAssertArgType>(portNum)
407  );
408 
409  this->m_dataOut_OutputPort[portNum].registerSerialPort(port);
410  }
411 
414  FwIndexType portNum,
415  Fw::InputSerializePort* port
416  )
417  {
418  FW_ASSERT(
419  (0 <= portNum) && (portNum < this->getNum_dataReturnOut_OutputPorts()),
420  static_cast<FwAssertArgType>(portNum)
421  );
422 
423  this->m_dataReturnOut_OutputPort[portNum].registerSerialPort(port);
424  }
425 
426 #endif
427 
428  // ----------------------------------------------------------------------
429  // Component construction and destruction
430  // ----------------------------------------------------------------------
431 
433  FprimeFramerComponentBase(const char* compName) :
434  Fw::PassiveComponentBase(compName)
435  {
436 
437  }
438 
441  {
442 
443  }
444 
445  // ----------------------------------------------------------------------
446  // Connection status queries for special output ports
447  // ----------------------------------------------------------------------
448 
451  {
452  FW_ASSERT(
453  (0 <= portNum) && (portNum < this->getNum_timeCaller_OutputPorts()),
454  static_cast<FwAssertArgType>(portNum)
455  );
456 
457  return this->m_timeCaller_OutputPort[portNum].isConnected();
458  }
459 
460  // ----------------------------------------------------------------------
461  // Connection status queries for typed output ports
462  // ----------------------------------------------------------------------
463 
466  {
467  FW_ASSERT(
468  (0 <= portNum) && (portNum < this->getNum_bufferAllocate_OutputPorts()),
469  static_cast<FwAssertArgType>(portNum)
470  );
471 
472  return this->m_bufferAllocate_OutputPort[portNum].isConnected();
473  }
474 
477  {
478  FW_ASSERT(
479  (0 <= portNum) && (portNum < this->getNum_bufferDeallocate_OutputPorts()),
480  static_cast<FwAssertArgType>(portNum)
481  );
482 
483  return this->m_bufferDeallocate_OutputPort[portNum].isConnected();
484  }
485 
488  {
489  FW_ASSERT(
490  (0 <= portNum) && (portNum < this->getNum_comStatusOut_OutputPorts()),
491  static_cast<FwAssertArgType>(portNum)
492  );
493 
494  return this->m_comStatusOut_OutputPort[portNum].isConnected();
495  }
496 
499  {
500  FW_ASSERT(
501  (0 <= portNum) && (portNum < this->getNum_dataOut_OutputPorts()),
502  static_cast<FwAssertArgType>(portNum)
503  );
504 
505  return this->m_dataOut_OutputPort[portNum].isConnected();
506  }
507 
510  {
511  FW_ASSERT(
512  (0 <= portNum) && (portNum < this->getNum_dataReturnOut_OutputPorts()),
513  static_cast<FwAssertArgType>(portNum)
514  );
515 
516  return this->m_dataReturnOut_OutputPort[portNum].isConnected();
517  }
518 
519  // ----------------------------------------------------------------------
520  // Port handler base-class functions for typed input ports
521  //
522  // Call these functions directly to bypass the corresponding ports
523  // ----------------------------------------------------------------------
524 
527  FwIndexType portNum,
528  Fw::Success& condition
529  )
530  {
531  // Make sure port number is valid
532  FW_ASSERT(
533  (0 <= portNum) && (portNum < this->getNum_comStatusIn_InputPorts()),
534  static_cast<FwAssertArgType>(portNum)
535  );
536 
537  // Call handler function
538  this->comStatusIn_handler(
539  portNum,
540  condition
541  );
542  }
543 
546  FwIndexType portNum,
547  Fw::Buffer& data,
548  const ComCfg::FrameContext& context
549  )
550  {
551  // Make sure port number is valid
552  FW_ASSERT(
553  (0 <= portNum) && (portNum < this->getNum_dataIn_InputPorts()),
554  static_cast<FwAssertArgType>(portNum)
555  );
556 
557  // Call handler function
558  this->dataIn_handler(
559  portNum,
560  data,
561  context
562  );
563  }
564 
567  FwIndexType portNum,
568  Fw::Buffer& data,
569  const ComCfg::FrameContext& context
570  )
571  {
572  // Make sure port number is valid
573  FW_ASSERT(
574  (0 <= portNum) && (portNum < this->getNum_dataReturnIn_InputPorts()),
575  static_cast<FwAssertArgType>(portNum)
576  );
577 
578  // Call handler function
579  this->dataReturnIn_handler(
580  portNum,
581  data,
582  context
583  );
584  }
585 
586  // ----------------------------------------------------------------------
587  // Invocation functions for typed output ports
588  // ----------------------------------------------------------------------
589 
592  FwIndexType portNum,
593  FwSizeType size
594  )
595  {
596  FW_ASSERT(
597  (0 <= portNum) && (portNum < this->getNum_bufferAllocate_OutputPorts()),
598  static_cast<FwAssertArgType>(portNum)
599  );
600 
601  FW_ASSERT(
602  this->m_bufferAllocate_OutputPort[portNum].isConnected(),
603  static_cast<FwAssertArgType>(portNum)
604  );
605  return this->m_bufferAllocate_OutputPort[portNum].invoke(
606  size
607  );
608  }
609 
612  FwIndexType portNum,
613  Fw::Buffer& fwBuffer
614  )
615  {
616  FW_ASSERT(
617  (0 <= portNum) && (portNum < this->getNum_bufferDeallocate_OutputPorts()),
618  static_cast<FwAssertArgType>(portNum)
619  );
620 
621  FW_ASSERT(
622  this->m_bufferDeallocate_OutputPort[portNum].isConnected(),
623  static_cast<FwAssertArgType>(portNum)
624  );
625  this->m_bufferDeallocate_OutputPort[portNum].invoke(
626  fwBuffer
627  );
628  }
629 
632  FwIndexType portNum,
633  Fw::Success& condition
634  )
635  {
636  FW_ASSERT(
637  (0 <= portNum) && (portNum < this->getNum_comStatusOut_OutputPorts()),
638  static_cast<FwAssertArgType>(portNum)
639  );
640 
641  FW_ASSERT(
642  this->m_comStatusOut_OutputPort[portNum].isConnected(),
643  static_cast<FwAssertArgType>(portNum)
644  );
645  this->m_comStatusOut_OutputPort[portNum].invoke(
646  condition
647  );
648  }
649 
652  FwIndexType portNum,
653  Fw::Buffer& data,
654  const ComCfg::FrameContext& context
655  )
656  {
657  FW_ASSERT(
658  (0 <= portNum) && (portNum < this->getNum_dataOut_OutputPorts()),
659  static_cast<FwAssertArgType>(portNum)
660  );
661 
662  FW_ASSERT(
663  this->m_dataOut_OutputPort[portNum].isConnected(),
664  static_cast<FwAssertArgType>(portNum)
665  );
666  this->m_dataOut_OutputPort[portNum].invoke(
667  data,
668  context
669  );
670  }
671 
674  FwIndexType portNum,
675  Fw::Buffer& data,
676  const ComCfg::FrameContext& context
677  )
678  {
679  FW_ASSERT(
680  (0 <= portNum) && (portNum < this->getNum_dataReturnOut_OutputPorts()),
681  static_cast<FwAssertArgType>(portNum)
682  );
683 
684  FW_ASSERT(
685  this->m_dataReturnOut_OutputPort[portNum].isConnected(),
686  static_cast<FwAssertArgType>(portNum)
687  );
688  this->m_dataReturnOut_OutputPort[portNum].invoke(
689  data,
690  context
691  );
692  }
693 
694  // ----------------------------------------------------------------------
695  // Time
696  // ----------------------------------------------------------------------
697 
699  getTime() const
700  {
701  if (this->m_timeCaller_OutputPort[0].isConnected()) {
702  Fw::Time _time;
703  this->m_timeCaller_OutputPort[0].invoke(_time);
704  return _time;
705  }
706  else {
707  return Fw::Time(TimeBase::TB_NONE, 0, 0);
708  }
709  }
710 
711  // ----------------------------------------------------------------------
712  // Calls for messages received on typed input ports
713  // ----------------------------------------------------------------------
714 
715  void FprimeFramerComponentBase ::
716  m_p_comStatusIn_in(
717  Fw::PassiveComponentBase* callComp,
718  FwIndexType portNum,
719  Fw::Success& condition
720  )
721  {
722  FW_ASSERT(callComp);
723  FprimeFramerComponentBase* compPtr = static_cast<FprimeFramerComponentBase*>(callComp);
724  compPtr->comStatusIn_handlerBase(
725  portNum,
726  condition
727  );
728  }
729 
730  void FprimeFramerComponentBase ::
731  m_p_dataIn_in(
732  Fw::PassiveComponentBase* callComp,
733  FwIndexType portNum,
734  Fw::Buffer& data,
735  const ComCfg::FrameContext& context
736  )
737  {
738  FW_ASSERT(callComp);
739  FprimeFramerComponentBase* compPtr = static_cast<FprimeFramerComponentBase*>(callComp);
740  compPtr->dataIn_handlerBase(
741  portNum,
742  data,
743  context
744  );
745  }
746 
747  void FprimeFramerComponentBase ::
748  m_p_dataReturnIn_in(
749  Fw::PassiveComponentBase* callComp,
750  FwIndexType portNum,
751  Fw::Buffer& data,
752  const ComCfg::FrameContext& context
753  )
754  {
755  FW_ASSERT(callComp);
756  FprimeFramerComponentBase* compPtr = static_cast<FprimeFramerComponentBase*>(callComp);
757  compPtr->dataReturnIn_handlerBase(
758  portNum,
759  data,
760  context
761  );
762  }
763 
764 }
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
void addCallPort(InputTimePort *callPort)
Register an input port.
Definition: TimePortAc.cpp:134
virtual void comStatusIn_handler(FwIndexType portNum, Fw::Success &condition)=0
Handler for input port comStatusIn.
PlatformSizeType FwSizeType
I32 FwEnumStoreType
Auto-generated base for FprimeFramer component.
void set_comStatusOut_OutputPort(FwIndexType portNum, Fw::InputSuccessConditionPort *port)
Connect port to comStatusOut[portNum].
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
void comStatusIn_handlerBase(FwIndexType portNum, Fw::Success &condition)
Handler base-class function for input port comStatusIn.
void dataIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataIn.
static constexpr FwIndexType getNum_comStatusIn_InputPorts()
bool isConnected_dataOut_OutputPort(FwIndexType portNum)
static constexpr FwIndexType getNum_dataReturnOut_OutputPorts()
No time base has been established (Required)
void addCallPort(InputSuccessConditionPort *callPort)
Register an input port.
Svc::InputComDataWithContextPort * get_dataReturnIn_InputPort(FwIndexType portNum)
Fw::InputSuccessConditionPort * get_comStatusIn_InputPort(FwIndexType portNum)
Svc::InputComDataWithContextPort * get_dataIn_InputPort(FwIndexType portNum)
void addCallPort(InputComDataWithContextPort *callPort)
Register an input port.
void init()
Object initializer.
Definition: ObjBase.cpp:24
void addCallPort(InputBufferGetPort *callPort)
Register an input port.
void set_dataOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataOut[portNum].
void init()
Initialization function.
Definition: TimePortAc.cpp:128
void dataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataOut.
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
void set_bufferDeallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferDeallocate[portNum].
void invoke(Fw::Buffer &fwBuffer) const
Invoke a port interface.
virtual ~FprimeFramerComponentBase()
Destroy FprimeFramerComponentBase object.
void addCallPort(InputBufferSendPort *callPort)
Register an input port.
void invoke(Fw::Time &time) const
Invoke a port interface.
Definition: TimePortAc.cpp:147
void set_bufferAllocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to bufferAllocate[portNum].
static constexpr FwIndexType getNum_dataReturnIn_InputPorts()
const char * toChar() const
Convert to a C-style char*.
Definition: ObjectName.hpp:50
void invoke(Fw::Success &condition) const
Invoke a port interface.
bool isConnected_bufferDeallocate_OutputPort(FwIndexType portNum)
void invoke(Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke a port interface.
bool isConnected_comStatusOut_OutputPort(FwIndexType portNum)
virtual void dataReturnIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataReturnIn.
void init()
Initialization function.
static constexpr FwIndexType getNum_comStatusOut_OutputPorts()
bool isConnected() const
Definition: PortBase.cpp:38
void dataReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataReturnIn.
static constexpr FwIndexType getNum_bufferAllocate_OutputPorts()
#define PRI_FwIndexType
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
Definition: StringBase.cpp:39
void setPortNum(FwIndexType portNum)
Fw::Buffer bufferAllocate_out(FwIndexType portNum, FwSizeType size)
Invoke output port bufferAllocate.
void set_dataReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataReturnOut[portNum].
Fw::Buffer invoke(FwSizeType size) const
Invoke a port interface.
void init()
Initialization function.
void init()
Initialization function.
bool isConnected_timeCaller_OutputPort(FwIndexType portNum)
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataReturnOut.
FprimeFramerComponentBase(const char *compName="")
Construct FprimeFramerComponentBase object.
bool isConnected_dataReturnOut_OutputPort(FwIndexType portNum)
PlatformIndexType FwIndexType
static constexpr FwIndexType getNum_dataOut_OutputPorts()
static constexpr FwIndexType getNum_bufferDeallocate_OutputPorts()
Type used to pass context info between components during framing/deframing.
void init()
Initialization function.
RateGroupDivider component implementation.
virtual void dataIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataIn.
static constexpr FwIndexType getNum_timeCaller_OutputPorts()
void bufferDeallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port bufferDeallocate.
void comStatusOut_out(FwIndexType portNum, Fw::Success &condition)
Invoke output port comStatusOut.
Implementation of malloc based allocator.
void init()
Initialization function.
#define FW_ASSERT(...)
Definition: Assert.hpp:14
Success/Failure.
bool isConnected_bufferAllocate_OutputPort(FwIndexType portNum)
void init()
Initialization function.
static constexpr FwIndexType getNum_dataIn_InputPorts()