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 
8 #include "Fw/Types/Assert.hpp"
10 #if FW_ENABLE_TEXT_LOGGING
11 #include "Fw/Types/String.hpp"
12 #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  // Getters for numbers of typed input ports
447  // ----------------------------------------------------------------------
448 
451  {
452  return static_cast<FwIndexType>(FW_NUM_ARRAY_ELEMENTS(this->m_comStatusIn_InputPort));
453  }
454 
457  {
458  return static_cast<FwIndexType>(FW_NUM_ARRAY_ELEMENTS(this->m_dataIn_InputPort));
459  }
460 
463  {
464  return static_cast<FwIndexType>(FW_NUM_ARRAY_ELEMENTS(this->m_dataReturnIn_InputPort));
465  }
466 
467  // ----------------------------------------------------------------------
468  // Getters for numbers of special output ports
469  // ----------------------------------------------------------------------
470 
473  {
474  return static_cast<FwIndexType>(FW_NUM_ARRAY_ELEMENTS(this->m_timeCaller_OutputPort));
475  }
476 
477  // ----------------------------------------------------------------------
478  // Getters for numbers of typed output ports
479  // ----------------------------------------------------------------------
480 
483  {
484  return static_cast<FwIndexType>(FW_NUM_ARRAY_ELEMENTS(this->m_bufferAllocate_OutputPort));
485  }
486 
489  {
490  return static_cast<FwIndexType>(FW_NUM_ARRAY_ELEMENTS(this->m_bufferDeallocate_OutputPort));
491  }
492 
495  {
496  return static_cast<FwIndexType>(FW_NUM_ARRAY_ELEMENTS(this->m_comStatusOut_OutputPort));
497  }
498 
501  {
502  return static_cast<FwIndexType>(FW_NUM_ARRAY_ELEMENTS(this->m_dataOut_OutputPort));
503  }
504 
507  {
508  return static_cast<FwIndexType>(FW_NUM_ARRAY_ELEMENTS(this->m_dataReturnOut_OutputPort));
509  }
510 
511  // ----------------------------------------------------------------------
512  // Connection status queries for special output ports
513  // ----------------------------------------------------------------------
514 
517  {
518  FW_ASSERT(
519  (0 <= portNum) && (portNum < this->getNum_timeCaller_OutputPorts()),
520  static_cast<FwAssertArgType>(portNum)
521  );
522 
523  return this->m_timeCaller_OutputPort[portNum].isConnected();
524  }
525 
526  // ----------------------------------------------------------------------
527  // Connection status queries for typed output ports
528  // ----------------------------------------------------------------------
529 
532  {
533  FW_ASSERT(
534  (0 <= portNum) && (portNum < this->getNum_bufferAllocate_OutputPorts()),
535  static_cast<FwAssertArgType>(portNum)
536  );
537 
538  return this->m_bufferAllocate_OutputPort[portNum].isConnected();
539  }
540 
543  {
544  FW_ASSERT(
545  (0 <= portNum) && (portNum < this->getNum_bufferDeallocate_OutputPorts()),
546  static_cast<FwAssertArgType>(portNum)
547  );
548 
549  return this->m_bufferDeallocate_OutputPort[portNum].isConnected();
550  }
551 
554  {
555  FW_ASSERT(
556  (0 <= portNum) && (portNum < this->getNum_comStatusOut_OutputPorts()),
557  static_cast<FwAssertArgType>(portNum)
558  );
559 
560  return this->m_comStatusOut_OutputPort[portNum].isConnected();
561  }
562 
565  {
566  FW_ASSERT(
567  (0 <= portNum) && (portNum < this->getNum_dataOut_OutputPorts()),
568  static_cast<FwAssertArgType>(portNum)
569  );
570 
571  return this->m_dataOut_OutputPort[portNum].isConnected();
572  }
573 
576  {
577  FW_ASSERT(
578  (0 <= portNum) && (portNum < this->getNum_dataReturnOut_OutputPorts()),
579  static_cast<FwAssertArgType>(portNum)
580  );
581 
582  return this->m_dataReturnOut_OutputPort[portNum].isConnected();
583  }
584 
585  // ----------------------------------------------------------------------
586  // Port handler base-class functions for typed input ports
587  //
588  // Call these functions directly to bypass the corresponding ports
589  // ----------------------------------------------------------------------
590 
593  FwIndexType portNum,
594  Fw::Success& condition
595  )
596  {
597  // Make sure port number is valid
598  FW_ASSERT(
599  (0 <= portNum) && (portNum < this->getNum_comStatusIn_InputPorts()),
600  static_cast<FwAssertArgType>(portNum)
601  );
602 
603  // Call handler function
604  this->comStatusIn_handler(
605  portNum,
606  condition
607  );
608  }
609 
612  FwIndexType portNum,
613  Fw::Buffer& data,
614  const ComCfg::FrameContext& context
615  )
616  {
617  // Make sure port number is valid
618  FW_ASSERT(
619  (0 <= portNum) && (portNum < this->getNum_dataIn_InputPorts()),
620  static_cast<FwAssertArgType>(portNum)
621  );
622 
623  // Call handler function
624  this->dataIn_handler(
625  portNum,
626  data,
627  context
628  );
629  }
630 
633  FwIndexType portNum,
634  Fw::Buffer& data,
635  const ComCfg::FrameContext& context
636  )
637  {
638  // Make sure port number is valid
639  FW_ASSERT(
640  (0 <= portNum) && (portNum < this->getNum_dataReturnIn_InputPorts()),
641  static_cast<FwAssertArgType>(portNum)
642  );
643 
644  // Call handler function
645  this->dataReturnIn_handler(
646  portNum,
647  data,
648  context
649  );
650  }
651 
652  // ----------------------------------------------------------------------
653  // Invocation functions for typed output ports
654  // ----------------------------------------------------------------------
655 
658  FwIndexType portNum,
659  U32 size
660  )
661  {
662  FW_ASSERT(
663  (0 <= portNum) && (portNum < this->getNum_bufferAllocate_OutputPorts()),
664  static_cast<FwAssertArgType>(portNum)
665  );
666 
667  FW_ASSERT(
668  this->m_bufferAllocate_OutputPort[portNum].isConnected(),
669  static_cast<FwAssertArgType>(portNum)
670  );
671  return this->m_bufferAllocate_OutputPort[portNum].invoke(
672  size
673  );
674  }
675 
678  FwIndexType portNum,
679  Fw::Buffer& fwBuffer
680  )
681  {
682  FW_ASSERT(
683  (0 <= portNum) && (portNum < this->getNum_bufferDeallocate_OutputPorts()),
684  static_cast<FwAssertArgType>(portNum)
685  );
686 
687  FW_ASSERT(
688  this->m_bufferDeallocate_OutputPort[portNum].isConnected(),
689  static_cast<FwAssertArgType>(portNum)
690  );
691  this->m_bufferDeallocate_OutputPort[portNum].invoke(
692  fwBuffer
693  );
694  }
695 
698  FwIndexType portNum,
699  Fw::Success& condition
700  )
701  {
702  FW_ASSERT(
703  (0 <= portNum) && (portNum < this->getNum_comStatusOut_OutputPorts()),
704  static_cast<FwAssertArgType>(portNum)
705  );
706 
707  FW_ASSERT(
708  this->m_comStatusOut_OutputPort[portNum].isConnected(),
709  static_cast<FwAssertArgType>(portNum)
710  );
711  this->m_comStatusOut_OutputPort[portNum].invoke(
712  condition
713  );
714  }
715 
718  FwIndexType portNum,
719  Fw::Buffer& data,
720  const ComCfg::FrameContext& context
721  )
722  {
723  FW_ASSERT(
724  (0 <= portNum) && (portNum < this->getNum_dataOut_OutputPorts()),
725  static_cast<FwAssertArgType>(portNum)
726  );
727 
728  FW_ASSERT(
729  this->m_dataOut_OutputPort[portNum].isConnected(),
730  static_cast<FwAssertArgType>(portNum)
731  );
732  this->m_dataOut_OutputPort[portNum].invoke(
733  data,
734  context
735  );
736  }
737 
740  FwIndexType portNum,
741  Fw::Buffer& data,
742  const ComCfg::FrameContext& context
743  )
744  {
745  FW_ASSERT(
746  (0 <= portNum) && (portNum < this->getNum_dataReturnOut_OutputPorts()),
747  static_cast<FwAssertArgType>(portNum)
748  );
749 
750  FW_ASSERT(
751  this->m_dataReturnOut_OutputPort[portNum].isConnected(),
752  static_cast<FwAssertArgType>(portNum)
753  );
754  this->m_dataReturnOut_OutputPort[portNum].invoke(
755  data,
756  context
757  );
758  }
759 
760  // ----------------------------------------------------------------------
761  // Time
762  // ----------------------------------------------------------------------
763 
765  getTime() const
766  {
767  if (this->m_timeCaller_OutputPort[0].isConnected()) {
768  Fw::Time _time;
769  this->m_timeCaller_OutputPort[0].invoke(_time);
770  return _time;
771  }
772  else {
773  return Fw::Time(TB_NONE, 0, 0);
774  }
775  }
776 
777  // ----------------------------------------------------------------------
778  // Calls for messages received on typed input ports
779  // ----------------------------------------------------------------------
780 
781  void FprimeFramerComponentBase ::
782  m_p_comStatusIn_in(
783  Fw::PassiveComponentBase* callComp,
784  FwIndexType portNum,
785  Fw::Success& condition
786  )
787  {
788  FW_ASSERT(callComp);
789  FprimeFramerComponentBase* compPtr = static_cast<FprimeFramerComponentBase*>(callComp);
790  compPtr->comStatusIn_handlerBase(
791  portNum,
792  condition
793  );
794  }
795 
796  void FprimeFramerComponentBase ::
797  m_p_dataIn_in(
798  Fw::PassiveComponentBase* callComp,
799  FwIndexType portNum,
800  Fw::Buffer& data,
801  const ComCfg::FrameContext& context
802  )
803  {
804  FW_ASSERT(callComp);
805  FprimeFramerComponentBase* compPtr = static_cast<FprimeFramerComponentBase*>(callComp);
806  compPtr->dataIn_handlerBase(
807  portNum,
808  data,
809  context
810  );
811  }
812 
813  void FprimeFramerComponentBase ::
814  m_p_dataReturnIn_in(
815  Fw::PassiveComponentBase* callComp,
816  FwIndexType portNum,
817  Fw::Buffer& data,
818  const ComCfg::FrameContext& context
819  )
820  {
821  FW_ASSERT(callComp);
822  FprimeFramerComponentBase* compPtr = static_cast<FprimeFramerComponentBase*>(callComp);
823  compPtr->dataReturnIn_handlerBase(
824  portNum,
825  data,
826  context
827  );
828  }
829 
830 }
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
Definition: Time.hpp:9
FwIndexType getNum_comStatusOut_OutputPorts() const
virtual void comStatusIn_handler(FwIndexType portNum, Fw::Success &condition)=0
Handler for input port comStatusIn.
I32 FwEnumStoreType
Auto-generated base for FprimeFramer component.
void set_comStatusOut_OutputPort(FwIndexType portNum, Fw::InputSuccessConditionPort *port)
Connect port to comStatusOut[portNum].
Fw::Buffer invoke(U32 size) const
Invoke a port interface.
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.
bool isConnected_dataOut_OutputPort(FwIndexType portNum)
FwIndexType getNum_dataReturnOut_OutputPorts() 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:26
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].
FwIndexType getNum_dataReturnIn_InputPorts() const
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].
const char * toChar() const
Definition: ObjectName.hpp:50
No time base has been established.
Definition: FpConfig.h:30
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.
FwIndexType getNum_bufferAllocate_OutputPorts() const
bool isConnected() const
Definition: PortBase.cpp:42
void dataReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataReturnIn.
#define PRI_FwIndexType
FwIndexType getNum_bufferDeallocate_OutputPorts() const
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
Definition: StringBase.cpp:55
void setPortNum(FwIndexType portNum)
void set_dataReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataReturnOut[portNum].
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
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
Definition: BasicTypes.h:93
Fw::Buffer bufferAllocate_out(FwIndexType portNum, U32 size)
Invoke output port bufferAllocate.
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.
void bufferDeallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port bufferDeallocate.
void comStatusOut_out(FwIndexType portNum, Fw::Success &condition)
Invoke output port comStatusOut.
void init()
Initialization function.
#define FW_ASSERT(...)
Definition: Assert.hpp:14
Success/Failure.
bool isConnected_bufferAllocate_OutputPort(FwIndexType portNum)
void init()
Initialization function.