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 #if !FW_DIRECT_PORT_CALLS
27  // Connect input port comStatusIn
28  for (
29  FwIndexType port = 0;
30  port < static_cast<FwIndexType>(this->getNum_comStatusIn_InputPorts());
31  port++
32  ) {
33  this->m_comStatusIn_InputPort[port].init();
34  this->m_comStatusIn_InputPort[port].addCallComp(
35  this,
36  m_p_comStatusIn_in
37  );
38  this->m_comStatusIn_InputPort[port].setPortNum(port);
39 
40 #if FW_OBJECT_NAMES == 1
41  Fw::ObjectName portName;
42  portName.format(
43  "%s_comStatusIn_InputPort[%" PRI_FwIndexType "]",
44  this->m_objName.toChar(),
45  port
46  );
47  this->m_comStatusIn_InputPort[port].setObjName(portName.toChar());
48 #endif
49  }
50 #endif
51 
52 #if !FW_DIRECT_PORT_CALLS
53  // Connect input port dataIn
54  for (
55  FwIndexType port = 0;
56  port < static_cast<FwIndexType>(this->getNum_dataIn_InputPorts());
57  port++
58  ) {
59  this->m_dataIn_InputPort[port].init();
60  this->m_dataIn_InputPort[port].addCallComp(
61  this,
62  m_p_dataIn_in
63  );
64  this->m_dataIn_InputPort[port].setPortNum(port);
65 
66 #if FW_OBJECT_NAMES == 1
67  Fw::ObjectName portName;
68  portName.format(
69  "%s_dataIn_InputPort[%" PRI_FwIndexType "]",
70  this->m_objName.toChar(),
71  port
72  );
73  this->m_dataIn_InputPort[port].setObjName(portName.toChar());
74 #endif
75  }
76 #endif
77 
78 #if !FW_DIRECT_PORT_CALLS
79  // Connect input port dataReturnIn
80  for (
81  FwIndexType port = 0;
82  port < static_cast<FwIndexType>(this->getNum_dataReturnIn_InputPorts());
83  port++
84  ) {
85  this->m_dataReturnIn_InputPort[port].init();
86  this->m_dataReturnIn_InputPort[port].addCallComp(
87  this,
88  m_p_dataReturnIn_in
89  );
90  this->m_dataReturnIn_InputPort[port].setPortNum(port);
91 
92 #if FW_OBJECT_NAMES == 1
93  Fw::ObjectName portName;
94  portName.format(
95  "%s_dataReturnIn_InputPort[%" PRI_FwIndexType "]",
96  this->m_objName.toChar(),
97  port
98  );
99  this->m_dataReturnIn_InputPort[port].setObjName(portName.toChar());
100 #endif
101  }
102 #endif
103 
104 #if !FW_DIRECT_PORT_CALLS
105  // Connect output port timeCaller
106  for (
107  FwIndexType port = 0;
108  port < static_cast<FwIndexType>(this->getNum_timeCaller_OutputPorts());
109  port++
110  ) {
111  this->m_timeCaller_OutputPort[port].init();
112 
113 #if FW_OBJECT_NAMES == 1
114  Fw::ObjectName portName;
115  portName.format(
116  "%s_timeCaller_OutputPort[%" PRI_FwIndexType "]",
117  this->m_objName.toChar(),
118  port
119  );
120  this->m_timeCaller_OutputPort[port].setObjName(portName.toChar());
121 #endif
122  }
123 #endif
124 
125 #if !FW_DIRECT_PORT_CALLS
126  // Connect output port bufferAllocate
127  for (
128  FwIndexType port = 0;
129  port < static_cast<FwIndexType>(this->getNum_bufferAllocate_OutputPorts());
130  port++
131  ) {
132  this->m_bufferAllocate_OutputPort[port].init();
133 
134 #if FW_OBJECT_NAMES == 1
135  Fw::ObjectName portName;
136  portName.format(
137  "%s_bufferAllocate_OutputPort[%" PRI_FwIndexType "]",
138  this->m_objName.toChar(),
139  port
140  );
141  this->m_bufferAllocate_OutputPort[port].setObjName(portName.toChar());
142 #endif
143  }
144 #endif
145 
146 #if !FW_DIRECT_PORT_CALLS
147  // Connect output port bufferDeallocate
148  for (
149  FwIndexType port = 0;
150  port < static_cast<FwIndexType>(this->getNum_bufferDeallocate_OutputPorts());
151  port++
152  ) {
153  this->m_bufferDeallocate_OutputPort[port].init();
154 
155 #if FW_OBJECT_NAMES == 1
156  Fw::ObjectName portName;
157  portName.format(
158  "%s_bufferDeallocate_OutputPort[%" PRI_FwIndexType "]",
159  this->m_objName.toChar(),
160  port
161  );
162  this->m_bufferDeallocate_OutputPort[port].setObjName(portName.toChar());
163 #endif
164  }
165 #endif
166 
167 #if !FW_DIRECT_PORT_CALLS
168  // Connect output port comStatusOut
169  for (
170  FwIndexType port = 0;
171  port < static_cast<FwIndexType>(this->getNum_comStatusOut_OutputPorts());
172  port++
173  ) {
174  this->m_comStatusOut_OutputPort[port].init();
175 
176 #if FW_OBJECT_NAMES == 1
177  Fw::ObjectName portName;
178  portName.format(
179  "%s_comStatusOut_OutputPort[%" PRI_FwIndexType "]",
180  this->m_objName.toChar(),
181  port
182  );
183  this->m_comStatusOut_OutputPort[port].setObjName(portName.toChar());
184 #endif
185  }
186 #endif
187 
188 #if !FW_DIRECT_PORT_CALLS
189  // Connect output port dataOut
190  for (
191  FwIndexType port = 0;
192  port < static_cast<FwIndexType>(this->getNum_dataOut_OutputPorts());
193  port++
194  ) {
195  this->m_dataOut_OutputPort[port].init();
196 
197 #if FW_OBJECT_NAMES == 1
198  Fw::ObjectName portName;
199  portName.format(
200  "%s_dataOut_OutputPort[%" PRI_FwIndexType "]",
201  this->m_objName.toChar(),
202  port
203  );
204  this->m_dataOut_OutputPort[port].setObjName(portName.toChar());
205 #endif
206  }
207 #endif
208 
209 #if !FW_DIRECT_PORT_CALLS
210  // Connect output port dataReturnOut
211  for (
212  FwIndexType port = 0;
213  port < static_cast<FwIndexType>(this->getNum_dataReturnOut_OutputPorts());
214  port++
215  ) {
216  this->m_dataReturnOut_OutputPort[port].init();
217 
218 #if FW_OBJECT_NAMES == 1
219  Fw::ObjectName portName;
220  portName.format(
221  "%s_dataReturnOut_OutputPort[%" PRI_FwIndexType "]",
222  this->m_objName.toChar(),
223  port
224  );
225  this->m_dataReturnOut_OutputPort[port].setObjName(portName.toChar());
226 #endif
227  }
228 #endif
229  }
230 
231 #if !FW_DIRECT_PORT_CALLS
232 
233  // ----------------------------------------------------------------------
234  // Getters for typed input ports
235  // ----------------------------------------------------------------------
236 
239  {
240  FW_ASSERT(
241  (0 <= portNum) && (portNum < this->getNum_comStatusIn_InputPorts()),
242  static_cast<FwAssertArgType>(portNum)
243  );
244 
245  return &this->m_comStatusIn_InputPort[portNum];
246  }
247 
250  {
251  FW_ASSERT(
252  (0 <= portNum) && (portNum < this->getNum_dataIn_InputPorts()),
253  static_cast<FwAssertArgType>(portNum)
254  );
255 
256  return &this->m_dataIn_InputPort[portNum];
257  }
258 
261  {
262  FW_ASSERT(
263  (0 <= portNum) && (portNum < this->getNum_dataReturnIn_InputPorts()),
264  static_cast<FwAssertArgType>(portNum)
265  );
266 
267  return &this->m_dataReturnIn_InputPort[portNum];
268  }
269 
270 #endif
271 
272 #if !FW_DIRECT_PORT_CALLS
273 
274  // ----------------------------------------------------------------------
275  // Connect input ports to special output ports
276  // ----------------------------------------------------------------------
277 
280  FwIndexType portNum,
281  Fw::InputTimePort* port
282  )
283  {
284  FW_ASSERT(
285  (0 <= portNum) && (portNum < this->getNum_timeCaller_OutputPorts()),
286  static_cast<FwAssertArgType>(portNum)
287  );
288 
289  this->m_timeCaller_OutputPort[portNum].addCallPort(port);
290  }
291 
292 #endif
293 
294 #if !FW_DIRECT_PORT_CALLS
295 
296  // ----------------------------------------------------------------------
297  // Connect typed input ports to typed output ports
298  // ----------------------------------------------------------------------
299 
302  FwIndexType portNum,
304  )
305  {
306  FW_ASSERT(
307  (0 <= portNum) && (portNum < this->getNum_bufferAllocate_OutputPorts()),
308  static_cast<FwAssertArgType>(portNum)
309  );
310 
311  this->m_bufferAllocate_OutputPort[portNum].addCallPort(port);
312  }
313 
316  FwIndexType portNum,
318  )
319  {
320  FW_ASSERT(
321  (0 <= portNum) && (portNum < this->getNum_bufferDeallocate_OutputPorts()),
322  static_cast<FwAssertArgType>(portNum)
323  );
324 
325  this->m_bufferDeallocate_OutputPort[portNum].addCallPort(port);
326  }
327 
330  FwIndexType portNum,
332  )
333  {
334  FW_ASSERT(
335  (0 <= portNum) && (portNum < this->getNum_comStatusOut_OutputPorts()),
336  static_cast<FwAssertArgType>(portNum)
337  );
338 
339  this->m_comStatusOut_OutputPort[portNum].addCallPort(port);
340  }
341 
344  FwIndexType portNum,
346  )
347  {
348  FW_ASSERT(
349  (0 <= portNum) && (portNum < this->getNum_dataOut_OutputPorts()),
350  static_cast<FwAssertArgType>(portNum)
351  );
352 
353  this->m_dataOut_OutputPort[portNum].addCallPort(port);
354  }
355 
358  FwIndexType portNum,
360  )
361  {
362  FW_ASSERT(
363  (0 <= portNum) && (portNum < this->getNum_dataReturnOut_OutputPorts()),
364  static_cast<FwAssertArgType>(portNum)
365  );
366 
367  this->m_dataReturnOut_OutputPort[portNum].addCallPort(port);
368  }
369 
370 #endif
371 
372 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION
373 
374  // ----------------------------------------------------------------------
375  // Connect serial input ports to special output ports
376  // ----------------------------------------------------------------------
377 
380  FwIndexType portNum,
381  Fw::InputSerializePort* port
382  )
383  {
384  FW_ASSERT(
385  (0 <= portNum) && (portNum < this->getNum_timeCaller_OutputPorts()),
386  static_cast<FwAssertArgType>(portNum)
387  );
388 
389  this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
390  }
391 
392 #endif
393 
394 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION
395 
396  // ----------------------------------------------------------------------
397  // Connect serial input ports to typed output ports
398  // ----------------------------------------------------------------------
399 
402  FwIndexType portNum,
403  Fw::InputSerializePort* port
404  )
405  {
406  FW_ASSERT(
407  (0 <= portNum) && (portNum < this->getNum_bufferDeallocate_OutputPorts()),
408  static_cast<FwAssertArgType>(portNum)
409  );
410 
411  this->m_bufferDeallocate_OutputPort[portNum].registerSerialPort(port);
412  }
413 
416  FwIndexType portNum,
417  Fw::InputSerializePort* port
418  )
419  {
420  FW_ASSERT(
421  (0 <= portNum) && (portNum < this->getNum_comStatusOut_OutputPorts()),
422  static_cast<FwAssertArgType>(portNum)
423  );
424 
425  this->m_comStatusOut_OutputPort[portNum].registerSerialPort(port);
426  }
427 
430  FwIndexType portNum,
431  Fw::InputSerializePort* port
432  )
433  {
434  FW_ASSERT(
435  (0 <= portNum) && (portNum < this->getNum_dataOut_OutputPorts()),
436  static_cast<FwAssertArgType>(portNum)
437  );
438 
439  this->m_dataOut_OutputPort[portNum].registerSerialPort(port);
440  }
441 
444  FwIndexType portNum,
445  Fw::InputSerializePort* port
446  )
447  {
448  FW_ASSERT(
449  (0 <= portNum) && (portNum < this->getNum_dataReturnOut_OutputPorts()),
450  static_cast<FwAssertArgType>(portNum)
451  );
452 
453  this->m_dataReturnOut_OutputPort[portNum].registerSerialPort(port);
454  }
455 
456 #endif
457 
458  // ----------------------------------------------------------------------
459  // Component construction and destruction
460  // ----------------------------------------------------------------------
461 
463  FprimeFramerComponentBase(const char* compName) :
464  Fw::PassiveComponentBase(compName)
465  {
466 
467  }
468 
471  {
472 
473  }
474 
475 #if !FW_DIRECT_PORT_CALLS
476 
477  // ----------------------------------------------------------------------
478  // Connection status queries for special output ports
479  // ----------------------------------------------------------------------
480 
483  {
484  FW_ASSERT(
485  (0 <= portNum) && (portNum < this->getNum_timeCaller_OutputPorts()),
486  static_cast<FwAssertArgType>(portNum)
487  );
488 
489  return this->m_timeCaller_OutputPort[portNum].isConnected();
490  }
491 
492 #endif
493 
494 #if !FW_DIRECT_PORT_CALLS
495 
496  // ----------------------------------------------------------------------
497  // Connection status queries for typed output ports
498  // ----------------------------------------------------------------------
499 
502  {
503  FW_ASSERT(
504  (0 <= portNum) && (portNum < this->getNum_bufferAllocate_OutputPorts()),
505  static_cast<FwAssertArgType>(portNum)
506  );
507 
508  return this->m_bufferAllocate_OutputPort[portNum].isConnected();
509  }
510 
513  {
514  FW_ASSERT(
515  (0 <= portNum) && (portNum < this->getNum_bufferDeallocate_OutputPorts()),
516  static_cast<FwAssertArgType>(portNum)
517  );
518 
519  return this->m_bufferDeallocate_OutputPort[portNum].isConnected();
520  }
521 
524  {
525  FW_ASSERT(
526  (0 <= portNum) && (portNum < this->getNum_comStatusOut_OutputPorts()),
527  static_cast<FwAssertArgType>(portNum)
528  );
529 
530  return this->m_comStatusOut_OutputPort[portNum].isConnected();
531  }
532 
535  {
536  FW_ASSERT(
537  (0 <= portNum) && (portNum < this->getNum_dataOut_OutputPorts()),
538  static_cast<FwAssertArgType>(portNum)
539  );
540 
541  return this->m_dataOut_OutputPort[portNum].isConnected();
542  }
543 
546  {
547  FW_ASSERT(
548  (0 <= portNum) && (portNum < this->getNum_dataReturnOut_OutputPorts()),
549  static_cast<FwAssertArgType>(portNum)
550  );
551 
552  return this->m_dataReturnOut_OutputPort[portNum].isConnected();
553  }
554 
555 #endif
556 
557  // ----------------------------------------------------------------------
558  // Port handler base-class functions for typed input ports
559  //
560  // Call these functions directly to bypass the corresponding ports
561  // ----------------------------------------------------------------------
562 
565  FwIndexType portNum,
566  Fw::Success& condition
567  )
568  {
569  // Make sure port number is valid
570  FW_ASSERT(
571  (0 <= portNum) && (portNum < this->getNum_comStatusIn_InputPorts()),
572  static_cast<FwAssertArgType>(portNum)
573  );
574 
575  // Call handler function
576  this->comStatusIn_handler(
577  portNum,
578  condition
579  );
580  }
581 
584  FwIndexType portNum,
585  Fw::Buffer& data,
586  const ComCfg::FrameContext& context
587  )
588  {
589  // Make sure port number is valid
590  FW_ASSERT(
591  (0 <= portNum) && (portNum < this->getNum_dataIn_InputPorts()),
592  static_cast<FwAssertArgType>(portNum)
593  );
594 
595  // Call handler function
596  this->dataIn_handler(
597  portNum,
598  data,
599  context
600  );
601  }
602 
605  FwIndexType portNum,
606  Fw::Buffer& data,
607  const ComCfg::FrameContext& context
608  )
609  {
610  // Make sure port number is valid
611  FW_ASSERT(
612  (0 <= portNum) && (portNum < this->getNum_dataReturnIn_InputPorts()),
613  static_cast<FwAssertArgType>(portNum)
614  );
615 
616  // Call handler function
617  this->dataReturnIn_handler(
618  portNum,
619  data,
620  context
621  );
622  }
623 
624 #if !FW_DIRECT_PORT_CALLS
625 
626  // ----------------------------------------------------------------------
627  // Invocation functions for typed output ports
628  // ----------------------------------------------------------------------
629 
632  FwIndexType portNum,
633  FwSizeType size
634  ) const
635  {
636  FW_ASSERT(
637  (0 <= portNum) && (portNum < this->getNum_bufferAllocate_OutputPorts()),
638  static_cast<FwAssertArgType>(portNum)
639  );
640 
641  FW_ASSERT(
642  this->m_bufferAllocate_OutputPort[portNum].isConnected(),
643  static_cast<FwAssertArgType>(portNum)
644  );
645  return this->m_bufferAllocate_OutputPort[portNum].invoke(
646  size
647  );
648  }
649 
652  FwIndexType portNum,
653  Fw::Buffer& fwBuffer
654  ) const
655  {
656  FW_ASSERT(
657  (0 <= portNum) && (portNum < this->getNum_bufferDeallocate_OutputPorts()),
658  static_cast<FwAssertArgType>(portNum)
659  );
660 
661  FW_ASSERT(
662  this->m_bufferDeallocate_OutputPort[portNum].isConnected(),
663  static_cast<FwAssertArgType>(portNum)
664  );
665  this->m_bufferDeallocate_OutputPort[portNum].invoke(
666  fwBuffer
667  );
668  }
669 
672  FwIndexType portNum,
673  Fw::Success& condition
674  ) const
675  {
676  FW_ASSERT(
677  (0 <= portNum) && (portNum < this->getNum_comStatusOut_OutputPorts()),
678  static_cast<FwAssertArgType>(portNum)
679  );
680 
681  FW_ASSERT(
682  this->m_comStatusOut_OutputPort[portNum].isConnected(),
683  static_cast<FwAssertArgType>(portNum)
684  );
685  this->m_comStatusOut_OutputPort[portNum].invoke(
686  condition
687  );
688  }
689 
692  FwIndexType portNum,
693  Fw::Buffer& data,
694  const ComCfg::FrameContext& context
695  ) const
696  {
697  FW_ASSERT(
698  (0 <= portNum) && (portNum < this->getNum_dataOut_OutputPorts()),
699  static_cast<FwAssertArgType>(portNum)
700  );
701 
702  FW_ASSERT(
703  this->m_dataOut_OutputPort[portNum].isConnected(),
704  static_cast<FwAssertArgType>(portNum)
705  );
706  this->m_dataOut_OutputPort[portNum].invoke(
707  data,
708  context
709  );
710  }
711 
714  FwIndexType portNum,
715  Fw::Buffer& data,
716  const ComCfg::FrameContext& context
717  ) const
718  {
719  FW_ASSERT(
720  (0 <= portNum) && (portNum < this->getNum_dataReturnOut_OutputPorts()),
721  static_cast<FwAssertArgType>(portNum)
722  );
723 
724  FW_ASSERT(
725  this->m_dataReturnOut_OutputPort[portNum].isConnected(),
726  static_cast<FwAssertArgType>(portNum)
727  );
728  this->m_dataReturnOut_OutputPort[portNum].invoke(
729  data,
730  context
731  );
732  }
733 
734 #endif
735 
736  // ----------------------------------------------------------------------
737  // Time
738  // ----------------------------------------------------------------------
739 
741  getTime() const
742  {
743  if (this->isConnected_timeCaller_OutputPort(0)) {
744  Fw::Time _time;
745  this->timeCaller_out(0, _time);
746  return _time;
747  }
748  else {
749  return Fw::Time(TimeBase::TB_NONE, 0, 0);
750  }
751  }
752 
753  // ----------------------------------------------------------------------
754  // Calls for messages received on typed input ports
755  // ----------------------------------------------------------------------
756 
757  void FprimeFramerComponentBase ::
758  m_p_comStatusIn_in(
759  Fw::PassiveComponentBase* callComp,
760  FwIndexType portNum,
761  Fw::Success& condition
762  )
763  {
764  FW_ASSERT(callComp);
765  FprimeFramerComponentBase* compPtr = static_cast<FprimeFramerComponentBase*>(callComp);
766  compPtr->comStatusIn_handlerBase(
767  portNum,
768  condition
769  );
770  }
771 
772  void FprimeFramerComponentBase ::
773  m_p_dataIn_in(
774  Fw::PassiveComponentBase* callComp,
775  FwIndexType portNum,
776  Fw::Buffer& data,
777  const ComCfg::FrameContext& context
778  )
779  {
780  FW_ASSERT(callComp);
781  FprimeFramerComponentBase* compPtr = static_cast<FprimeFramerComponentBase*>(callComp);
782  compPtr->dataIn_handlerBase(
783  portNum,
784  data,
785  context
786  );
787  }
788 
789  void FprimeFramerComponentBase ::
790  m_p_dataReturnIn_in(
791  Fw::PassiveComponentBase* callComp,
792  FwIndexType portNum,
793  Fw::Buffer& data,
794  const ComCfg::FrameContext& context
795  )
796  {
797  FW_ASSERT(callComp);
798  FprimeFramerComponentBase* compPtr = static_cast<FprimeFramerComponentBase*>(callComp);
799  compPtr->dataReturnIn_handlerBase(
800  portNum,
801  data,
802  context
803  );
804  }
805 
806 #if !FW_DIRECT_PORT_CALLS
807 
808  // ----------------------------------------------------------------------
809  // Invocation functions for special output ports
810  // ----------------------------------------------------------------------
811 
812  void FprimeFramerComponentBase ::
813  timeCaller_out(
814  FwIndexType portNum,
815  Fw::Time& time
816  ) const
817  {
818  FW_ASSERT(
819  (0 <= portNum) && (portNum < this->getNum_timeCaller_OutputPorts()),
820  static_cast<FwAssertArgType>(portNum)
821  );
822 
823  FW_ASSERT(
824  this->m_timeCaller_OutputPort[portNum].isConnected(),
825  static_cast<FwAssertArgType>(portNum)
826  );
827  this->m_timeCaller_OutputPort[portNum].invoke(
828  time
829  );
830  }
831 
832 #endif
833 
834 }
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
bool isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const
void dataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port dataOut.
void addCallPort(InputTimePort *callPort)
Register an input port.
Definition: TimePortAc.cpp:157
virtual void comStatusIn_handler(FwIndexType portNum, Fw::Success &condition)=0
Handler for input port comStatusIn.
PlatformSizeType FwSizeType
bool isConnected_dataOut_OutputPort(FwIndexType portNum) const
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()
static constexpr FwIndexType getNum_dataReturnOut_OutputPorts()
No time base has been established (Required)
bool isConnected_bufferDeallocate_OutputPort(FwIndexType portNum) const
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].
Fw::Buffer bufferAllocate_out(FwIndexType portNum, FwSizeType size) const
Invoke output port bufferAllocate.
void init()
Initialization function.
Definition: TimePortAc.cpp:151
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port dataReturnOut.
void set_bufferDeallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferDeallocate[portNum].
void invoke(Fw::Buffer &fwBuffer) const
Invoke a port connection.
bool isConnected_timeCaller_OutputPort(FwIndexType portNum) const
virtual ~FprimeFramerComponentBase()
Destroy FprimeFramerComponentBase object.
void comStatusOut_out(FwIndexType portNum, Fw::Success &condition) const
Invoke output port comStatusOut.
void addCallPort(InputBufferSendPort *callPort)
Register an input port.
void invoke(Fw::Time &time) const
Invoke a port connection.
Definition: TimePortAc.cpp:170
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 connection.
void invoke(Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke a port connection.
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
bool isConnected_bufferAllocate_OutputPort(FwIndexType portNum) const
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)
void set_dataReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataReturnOut[portNum].
Fw::Buffer invoke(FwSizeType size) const
void init()
Initialization function.
void init()
Initialization function.
FprimeFramerComponentBase(const char *compName="")
Construct FprimeFramerComponentBase object.
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) const
Invoke output port bufferDeallocate.
Implementation of malloc based allocator.
void init()
Initialization function.
#define FW_ASSERT(...)
Definition: Assert.hpp:14
Success/Failure.
bool isConnected_comStatusOut_OutputPort(FwIndexType portNum) const
void init()
Initialization function.
static constexpr FwIndexType getNum_dataIn_InputPorts()