F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
TmFramerComponentAc.cpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title TmFramerComponentAc.cpp
3 // \author Generated by fpp-to-cpp
4 // \brief cpp file for TmFramer 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  namespace Ccsds {
17 
18  // ----------------------------------------------------------------------
19  // Component initialization
20  // ----------------------------------------------------------------------
21 
24  {
25  // Initialize base class
27 
28  // Connect input port comStatusIn
29  for (
30  FwIndexType port = 0;
31  port < static_cast<FwIndexType>(this->getNum_comStatusIn_InputPorts());
32  port++
33  ) {
34  this->m_comStatusIn_InputPort[port].init();
35  this->m_comStatusIn_InputPort[port].addCallComp(
36  this,
37  m_p_comStatusIn_in
38  );
39  this->m_comStatusIn_InputPort[port].setPortNum(port);
40 
41 #if FW_OBJECT_NAMES == 1
42  Fw::ObjectName portName;
43  portName.format(
44  "%s_comStatusIn_InputPort[%" PRI_FwIndexType "]",
45  this->m_objName.toChar(),
46  port
47  );
48  this->m_comStatusIn_InputPort[port].setObjName(portName.toChar());
49 #endif
50  }
51 
52  // Connect input port dataIn
53  for (
54  FwIndexType port = 0;
55  port < static_cast<FwIndexType>(this->getNum_dataIn_InputPorts());
56  port++
57  ) {
58  this->m_dataIn_InputPort[port].init();
59  this->m_dataIn_InputPort[port].addCallComp(
60  this,
61  m_p_dataIn_in
62  );
63  this->m_dataIn_InputPort[port].setPortNum(port);
64 
65 #if FW_OBJECT_NAMES == 1
66  Fw::ObjectName portName;
67  portName.format(
68  "%s_dataIn_InputPort[%" PRI_FwIndexType "]",
69  this->m_objName.toChar(),
70  port
71  );
72  this->m_dataIn_InputPort[port].setObjName(portName.toChar());
73 #endif
74  }
75 
76  // Connect input port dataReturnIn
77  for (
78  FwIndexType port = 0;
79  port < static_cast<FwIndexType>(this->getNum_dataReturnIn_InputPorts());
80  port++
81  ) {
82  this->m_dataReturnIn_InputPort[port].init();
83  this->m_dataReturnIn_InputPort[port].addCallComp(
84  this,
85  m_p_dataReturnIn_in
86  );
87  this->m_dataReturnIn_InputPort[port].setPortNum(port);
88 
89 #if FW_OBJECT_NAMES == 1
90  Fw::ObjectName portName;
91  portName.format(
92  "%s_dataReturnIn_InputPort[%" PRI_FwIndexType "]",
93  this->m_objName.toChar(),
94  port
95  );
96  this->m_dataReturnIn_InputPort[port].setObjName(portName.toChar());
97 #endif
98  }
99 
100  // Connect output port logOut
101  for (
102  FwIndexType port = 0;
103  port < static_cast<FwIndexType>(this->getNum_logOut_OutputPorts());
104  port++
105  ) {
106  this->m_logOut_OutputPort[port].init();
107 
108 #if FW_OBJECT_NAMES == 1
109  Fw::ObjectName portName;
110  portName.format(
111  "%s_logOut_OutputPort[%" PRI_FwIndexType "]",
112  this->m_objName.toChar(),
113  port
114  );
115  this->m_logOut_OutputPort[port].setObjName(portName.toChar());
116 #endif
117  }
118 
119 #if FW_ENABLE_TEXT_LOGGING == 1
120  // Connect output port logTextOut
121  for (
122  FwIndexType port = 0;
123  port < static_cast<FwIndexType>(this->getNum_logTextOut_OutputPorts());
124  port++
125  ) {
126  this->m_logTextOut_OutputPort[port].init();
127 
128 #if FW_OBJECT_NAMES == 1
129  Fw::ObjectName portName;
130  portName.format(
131  "%s_logTextOut_OutputPort[%" PRI_FwIndexType "]",
132  this->m_objName.toChar(),
133  port
134  );
135  this->m_logTextOut_OutputPort[port].setObjName(portName.toChar());
136 #endif
137  }
138 #endif
139 
140  // Connect output port prmGetOut
141  for (
142  FwIndexType port = 0;
143  port < static_cast<FwIndexType>(this->getNum_prmGetOut_OutputPorts());
144  port++
145  ) {
146  this->m_prmGetOut_OutputPort[port].init();
147 
148 #if FW_OBJECT_NAMES == 1
149  Fw::ObjectName portName;
150  portName.format(
151  "%s_prmGetOut_OutputPort[%" PRI_FwIndexType "]",
152  this->m_objName.toChar(),
153  port
154  );
155  this->m_prmGetOut_OutputPort[port].setObjName(portName.toChar());
156 #endif
157  }
158 
159  // Connect output port prmSetOut
160  for (
161  FwIndexType port = 0;
162  port < static_cast<FwIndexType>(this->getNum_prmSetOut_OutputPorts());
163  port++
164  ) {
165  this->m_prmSetOut_OutputPort[port].init();
166 
167 #if FW_OBJECT_NAMES == 1
168  Fw::ObjectName portName;
169  portName.format(
170  "%s_prmSetOut_OutputPort[%" PRI_FwIndexType "]",
171  this->m_objName.toChar(),
172  port
173  );
174  this->m_prmSetOut_OutputPort[port].setObjName(portName.toChar());
175 #endif
176  }
177 
178  // Connect output port timeCaller
179  for (
180  FwIndexType port = 0;
181  port < static_cast<FwIndexType>(this->getNum_timeCaller_OutputPorts());
182  port++
183  ) {
184  this->m_timeCaller_OutputPort[port].init();
185 
186 #if FW_OBJECT_NAMES == 1
187  Fw::ObjectName portName;
188  portName.format(
189  "%s_timeCaller_OutputPort[%" PRI_FwIndexType "]",
190  this->m_objName.toChar(),
191  port
192  );
193  this->m_timeCaller_OutputPort[port].setObjName(portName.toChar());
194 #endif
195  }
196 
197  // Connect output port tlmOut
198  for (
199  FwIndexType port = 0;
200  port < static_cast<FwIndexType>(this->getNum_tlmOut_OutputPorts());
201  port++
202  ) {
203  this->m_tlmOut_OutputPort[port].init();
204 
205 #if FW_OBJECT_NAMES == 1
206  Fw::ObjectName portName;
207  portName.format(
208  "%s_tlmOut_OutputPort[%" PRI_FwIndexType "]",
209  this->m_objName.toChar(),
210  port
211  );
212  this->m_tlmOut_OutputPort[port].setObjName(portName.toChar());
213 #endif
214  }
215 
216  // Connect output port comStatusOut
217  for (
218  FwIndexType port = 0;
219  port < static_cast<FwIndexType>(this->getNum_comStatusOut_OutputPorts());
220  port++
221  ) {
222  this->m_comStatusOut_OutputPort[port].init();
223 
224 #if FW_OBJECT_NAMES == 1
225  Fw::ObjectName portName;
226  portName.format(
227  "%s_comStatusOut_OutputPort[%" PRI_FwIndexType "]",
228  this->m_objName.toChar(),
229  port
230  );
231  this->m_comStatusOut_OutputPort[port].setObjName(portName.toChar());
232 #endif
233  }
234 
235  // Connect output port dataOut
236  for (
237  FwIndexType port = 0;
238  port < static_cast<FwIndexType>(this->getNum_dataOut_OutputPorts());
239  port++
240  ) {
241  this->m_dataOut_OutputPort[port].init();
242 
243 #if FW_OBJECT_NAMES == 1
244  Fw::ObjectName portName;
245  portName.format(
246  "%s_dataOut_OutputPort[%" PRI_FwIndexType "]",
247  this->m_objName.toChar(),
248  port
249  );
250  this->m_dataOut_OutputPort[port].setObjName(portName.toChar());
251 #endif
252  }
253 
254  // Connect output port dataReturnOut
255  for (
256  FwIndexType port = 0;
257  port < static_cast<FwIndexType>(this->getNum_dataReturnOut_OutputPorts());
258  port++
259  ) {
260  this->m_dataReturnOut_OutputPort[port].init();
261 
262 #if FW_OBJECT_NAMES == 1
263  Fw::ObjectName portName;
264  portName.format(
265  "%s_dataReturnOut_OutputPort[%" PRI_FwIndexType "]",
266  this->m_objName.toChar(),
267  port
268  );
269  this->m_dataReturnOut_OutputPort[port].setObjName(portName.toChar());
270 #endif
271  }
272  }
273 
274  // ----------------------------------------------------------------------
275  // Getters for typed input ports
276  // ----------------------------------------------------------------------
277 
280  {
281  FW_ASSERT(
282  (0 <= portNum) && (portNum < this->getNum_comStatusIn_InputPorts()),
283  static_cast<FwAssertArgType>(portNum)
284  );
285 
286  return &this->m_comStatusIn_InputPort[portNum];
287  }
288 
291  {
292  FW_ASSERT(
293  (0 <= portNum) && (portNum < this->getNum_dataIn_InputPorts()),
294  static_cast<FwAssertArgType>(portNum)
295  );
296 
297  return &this->m_dataIn_InputPort[portNum];
298  }
299 
302  {
303  FW_ASSERT(
304  (0 <= portNum) && (portNum < this->getNum_dataReturnIn_InputPorts()),
305  static_cast<FwAssertArgType>(portNum)
306  );
307 
308  return &this->m_dataReturnIn_InputPort[portNum];
309  }
310 
311  // ----------------------------------------------------------------------
312  // Connect input ports to special output ports
313  // ----------------------------------------------------------------------
314 
317  FwIndexType portNum,
318  Fw::InputLogPort* port
319  )
320  {
321  FW_ASSERT(
322  (0 <= portNum) && (portNum < this->getNum_logOut_OutputPorts()),
323  static_cast<FwAssertArgType>(portNum)
324  );
325 
326  this->m_logOut_OutputPort[portNum].addCallPort(port);
327  }
328 
329 #if FW_ENABLE_TEXT_LOGGING == 1
330 
331  void TmFramerComponentBase ::
332  set_logTextOut_OutputPort(
333  FwIndexType portNum,
335  )
336  {
337  FW_ASSERT(
338  (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
339  static_cast<FwAssertArgType>(portNum)
340  );
341 
342  this->m_logTextOut_OutputPort[portNum].addCallPort(port);
343  }
344 
345 #endif
346 
349  FwIndexType portNum,
350  Fw::InputPrmGetPort* port
351  )
352  {
353  FW_ASSERT(
354  (0 <= portNum) && (portNum < this->getNum_prmGetOut_OutputPorts()),
355  static_cast<FwAssertArgType>(portNum)
356  );
357 
358  this->m_prmGetOut_OutputPort[portNum].addCallPort(port);
359  }
360 
363  FwIndexType portNum,
364  Fw::InputPrmSetPort* port
365  )
366  {
367  FW_ASSERT(
368  (0 <= portNum) && (portNum < this->getNum_prmSetOut_OutputPorts()),
369  static_cast<FwAssertArgType>(portNum)
370  );
371 
372  this->m_prmSetOut_OutputPort[portNum].addCallPort(port);
373  }
374 
377  FwIndexType portNum,
378  Fw::InputTimePort* port
379  )
380  {
381  FW_ASSERT(
382  (0 <= portNum) && (portNum < this->getNum_timeCaller_OutputPorts()),
383  static_cast<FwAssertArgType>(portNum)
384  );
385 
386  this->m_timeCaller_OutputPort[portNum].addCallPort(port);
387  }
388 
391  FwIndexType portNum,
392  Fw::InputTlmPort* port
393  )
394  {
395  FW_ASSERT(
396  (0 <= portNum) && (portNum < this->getNum_tlmOut_OutputPorts()),
397  static_cast<FwAssertArgType>(portNum)
398  );
399 
400  this->m_tlmOut_OutputPort[portNum].addCallPort(port);
401  }
402 
403  // ----------------------------------------------------------------------
404  // Connect typed input ports to typed output ports
405  // ----------------------------------------------------------------------
406 
409  FwIndexType portNum,
411  )
412  {
413  FW_ASSERT(
414  (0 <= portNum) && (portNum < this->getNum_comStatusOut_OutputPorts()),
415  static_cast<FwAssertArgType>(portNum)
416  );
417 
418  this->m_comStatusOut_OutputPort[portNum].addCallPort(port);
419  }
420 
423  FwIndexType portNum,
425  )
426  {
427  FW_ASSERT(
428  (0 <= portNum) && (portNum < this->getNum_dataOut_OutputPorts()),
429  static_cast<FwAssertArgType>(portNum)
430  );
431 
432  this->m_dataOut_OutputPort[portNum].addCallPort(port);
433  }
434 
437  FwIndexType portNum,
439  )
440  {
441  FW_ASSERT(
442  (0 <= portNum) && (portNum < this->getNum_dataReturnOut_OutputPorts()),
443  static_cast<FwAssertArgType>(portNum)
444  );
445 
446  this->m_dataReturnOut_OutputPort[portNum].addCallPort(port);
447  }
448 
449 #if FW_PORT_SERIALIZATION
450 
451  // ----------------------------------------------------------------------
452  // Connect serial input ports to special output ports
453  // ----------------------------------------------------------------------
454 
457  FwIndexType portNum,
458  Fw::InputSerializePort* port
459  )
460  {
461  FW_ASSERT(
462  (0 <= portNum) && (portNum < this->getNum_logOut_OutputPorts()),
463  static_cast<FwAssertArgType>(portNum)
464  );
465 
466  this->m_logOut_OutputPort[portNum].registerSerialPort(port);
467  }
468 
469 #if FW_ENABLE_TEXT_LOGGING == 1
470 
471  void TmFramerComponentBase ::
472  set_logTextOut_OutputPort(
473  FwIndexType portNum,
474  Fw::InputSerializePort* port
475  )
476  {
477  FW_ASSERT(
478  (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
479  static_cast<FwAssertArgType>(portNum)
480  );
481 
482  this->m_logTextOut_OutputPort[portNum].registerSerialPort(port);
483  }
484 
485 #endif
486 
489  FwIndexType portNum,
490  Fw::InputSerializePort* port
491  )
492  {
493  FW_ASSERT(
494  (0 <= portNum) && (portNum < this->getNum_prmSetOut_OutputPorts()),
495  static_cast<FwAssertArgType>(portNum)
496  );
497 
498  this->m_prmSetOut_OutputPort[portNum].registerSerialPort(port);
499  }
500 
503  FwIndexType portNum,
504  Fw::InputSerializePort* port
505  )
506  {
507  FW_ASSERT(
508  (0 <= portNum) && (portNum < this->getNum_timeCaller_OutputPorts()),
509  static_cast<FwAssertArgType>(portNum)
510  );
511 
512  this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
513  }
514 
517  FwIndexType portNum,
518  Fw::InputSerializePort* port
519  )
520  {
521  FW_ASSERT(
522  (0 <= portNum) && (portNum < this->getNum_tlmOut_OutputPorts()),
523  static_cast<FwAssertArgType>(portNum)
524  );
525 
526  this->m_tlmOut_OutputPort[portNum].registerSerialPort(port);
527  }
528 
529 #endif
530 
531 #if FW_PORT_SERIALIZATION
532 
533  // ----------------------------------------------------------------------
534  // Connect serial input ports to typed output ports
535  // ----------------------------------------------------------------------
536 
539  FwIndexType portNum,
540  Fw::InputSerializePort* port
541  )
542  {
543  FW_ASSERT(
544  (0 <= portNum) && (portNum < this->getNum_comStatusOut_OutputPorts()),
545  static_cast<FwAssertArgType>(portNum)
546  );
547 
548  this->m_comStatusOut_OutputPort[portNum].registerSerialPort(port);
549  }
550 
553  FwIndexType portNum,
554  Fw::InputSerializePort* port
555  )
556  {
557  FW_ASSERT(
558  (0 <= portNum) && (portNum < this->getNum_dataOut_OutputPorts()),
559  static_cast<FwAssertArgType>(portNum)
560  );
561 
562  this->m_dataOut_OutputPort[portNum].registerSerialPort(port);
563  }
564 
567  FwIndexType portNum,
568  Fw::InputSerializePort* port
569  )
570  {
571  FW_ASSERT(
572  (0 <= portNum) && (portNum < this->getNum_dataReturnOut_OutputPorts()),
573  static_cast<FwAssertArgType>(portNum)
574  );
575 
576  this->m_dataReturnOut_OutputPort[portNum].registerSerialPort(port);
577  }
578 
579 #endif
580 
581  // ----------------------------------------------------------------------
582  // Component construction and destruction
583  // ----------------------------------------------------------------------
584 
586  TmFramerComponentBase(const char* compName) :
587  Fw::PassiveComponentBase(compName)
588  {
589 
590  }
591 
594  {
595 
596  }
597 
598  // ----------------------------------------------------------------------
599  // Connection status queries for special output ports
600  // ----------------------------------------------------------------------
601 
604  {
605  FW_ASSERT(
606  (0 <= portNum) && (portNum < this->getNum_logOut_OutputPorts()),
607  static_cast<FwAssertArgType>(portNum)
608  );
609 
610  return this->m_logOut_OutputPort[portNum].isConnected();
611  }
612 
613 #if FW_ENABLE_TEXT_LOGGING == 1
614 
615  bool TmFramerComponentBase ::
616  isConnected_logTextOut_OutputPort(FwIndexType portNum)
617  {
618  FW_ASSERT(
619  (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
620  static_cast<FwAssertArgType>(portNum)
621  );
622 
623  return this->m_logTextOut_OutputPort[portNum].isConnected();
624  }
625 
626 #endif
627 
630  {
631  FW_ASSERT(
632  (0 <= portNum) && (portNum < this->getNum_prmGetOut_OutputPorts()),
633  static_cast<FwAssertArgType>(portNum)
634  );
635 
636  return this->m_prmGetOut_OutputPort[portNum].isConnected();
637  }
638 
641  {
642  FW_ASSERT(
643  (0 <= portNum) && (portNum < this->getNum_prmSetOut_OutputPorts()),
644  static_cast<FwAssertArgType>(portNum)
645  );
646 
647  return this->m_prmSetOut_OutputPort[portNum].isConnected();
648  }
649 
652  {
653  FW_ASSERT(
654  (0 <= portNum) && (portNum < this->getNum_timeCaller_OutputPorts()),
655  static_cast<FwAssertArgType>(portNum)
656  );
657 
658  return this->m_timeCaller_OutputPort[portNum].isConnected();
659  }
660 
663  {
664  FW_ASSERT(
665  (0 <= portNum) && (portNum < this->getNum_tlmOut_OutputPorts()),
666  static_cast<FwAssertArgType>(portNum)
667  );
668 
669  return this->m_tlmOut_OutputPort[portNum].isConnected();
670  }
671 
672  // ----------------------------------------------------------------------
673  // Connection status queries for typed output ports
674  // ----------------------------------------------------------------------
675 
678  {
679  FW_ASSERT(
680  (0 <= portNum) && (portNum < this->getNum_comStatusOut_OutputPorts()),
681  static_cast<FwAssertArgType>(portNum)
682  );
683 
684  return this->m_comStatusOut_OutputPort[portNum].isConnected();
685  }
686 
689  {
690  FW_ASSERT(
691  (0 <= portNum) && (portNum < this->getNum_dataOut_OutputPorts()),
692  static_cast<FwAssertArgType>(portNum)
693  );
694 
695  return this->m_dataOut_OutputPort[portNum].isConnected();
696  }
697 
700  {
701  FW_ASSERT(
702  (0 <= portNum) && (portNum < this->getNum_dataReturnOut_OutputPorts()),
703  static_cast<FwAssertArgType>(portNum)
704  );
705 
706  return this->m_dataReturnOut_OutputPort[portNum].isConnected();
707  }
708 
709  // ----------------------------------------------------------------------
710  // Port handler base-class functions for typed input ports
711  //
712  // Call these functions directly to bypass the corresponding ports
713  // ----------------------------------------------------------------------
714 
717  FwIndexType portNum,
718  Fw::Success& condition
719  )
720  {
721  // Make sure port number is valid
722  FW_ASSERT(
723  (0 <= portNum) && (portNum < this->getNum_comStatusIn_InputPorts()),
724  static_cast<FwAssertArgType>(portNum)
725  );
726 
727  // Call handler function
728  this->comStatusIn_handler(
729  portNum,
730  condition
731  );
732  }
733 
736  FwIndexType portNum,
737  Fw::Buffer& data,
738  const ComCfg::FrameContext& context
739  )
740  {
741  // Make sure port number is valid
742  FW_ASSERT(
743  (0 <= portNum) && (portNum < this->getNum_dataIn_InputPorts()),
744  static_cast<FwAssertArgType>(portNum)
745  );
746 
747  // Call handler function
748  this->dataIn_handler(
749  portNum,
750  data,
751  context
752  );
753  }
754 
757  FwIndexType portNum,
758  Fw::Buffer& data,
759  const ComCfg::FrameContext& context
760  )
761  {
762  // Make sure port number is valid
763  FW_ASSERT(
764  (0 <= portNum) && (portNum < this->getNum_dataReturnIn_InputPorts()),
765  static_cast<FwAssertArgType>(portNum)
766  );
767 
768  // Call handler function
769  this->dataReturnIn_handler(
770  portNum,
771  data,
772  context
773  );
774  }
775 
776  // ----------------------------------------------------------------------
777  // Invocation functions for typed output ports
778  // ----------------------------------------------------------------------
779 
782  FwIndexType portNum,
783  Fw::Success& condition
784  )
785  {
786  FW_ASSERT(
787  (0 <= portNum) && (portNum < this->getNum_comStatusOut_OutputPorts()),
788  static_cast<FwAssertArgType>(portNum)
789  );
790 
791  FW_ASSERT(
792  this->m_comStatusOut_OutputPort[portNum].isConnected(),
793  static_cast<FwAssertArgType>(portNum)
794  );
795  this->m_comStatusOut_OutputPort[portNum].invoke(
796  condition
797  );
798  }
799 
802  FwIndexType portNum,
803  Fw::Buffer& data,
804  const ComCfg::FrameContext& context
805  )
806  {
807  FW_ASSERT(
808  (0 <= portNum) && (portNum < this->getNum_dataOut_OutputPorts()),
809  static_cast<FwAssertArgType>(portNum)
810  );
811 
812  FW_ASSERT(
813  this->m_dataOut_OutputPort[portNum].isConnected(),
814  static_cast<FwAssertArgType>(portNum)
815  );
816  this->m_dataOut_OutputPort[portNum].invoke(
817  data,
818  context
819  );
820  }
821 
824  FwIndexType portNum,
825  Fw::Buffer& data,
826  const ComCfg::FrameContext& context
827  )
828  {
829  FW_ASSERT(
830  (0 <= portNum) && (portNum < this->getNum_dataReturnOut_OutputPorts()),
831  static_cast<FwAssertArgType>(portNum)
832  );
833 
834  FW_ASSERT(
835  this->m_dataReturnOut_OutputPort[portNum].isConnected(),
836  static_cast<FwAssertArgType>(portNum)
837  );
838  this->m_dataReturnOut_OutputPort[portNum].invoke(
839  data,
840  context
841  );
842  }
843 
844  // ----------------------------------------------------------------------
845  // Time
846  // ----------------------------------------------------------------------
847 
849  getTime() const
850  {
851  if (this->m_timeCaller_OutputPort[0].isConnected()) {
852  Fw::Time _time;
853  this->m_timeCaller_OutputPort[0].invoke(_time);
854  return _time;
855  }
856  else {
857  return Fw::Time(TimeBase::TB_NONE, 0, 0);
858  }
859  }
860 
861  // ----------------------------------------------------------------------
862  // Calls for messages received on typed input ports
863  // ----------------------------------------------------------------------
864 
865  void TmFramerComponentBase ::
866  m_p_comStatusIn_in(
867  Fw::PassiveComponentBase* callComp,
868  FwIndexType portNum,
869  Fw::Success& condition
870  )
871  {
872  FW_ASSERT(callComp);
873  TmFramerComponentBase* compPtr = static_cast<TmFramerComponentBase*>(callComp);
874  compPtr->comStatusIn_handlerBase(
875  portNum,
876  condition
877  );
878  }
879 
880  void TmFramerComponentBase ::
881  m_p_dataIn_in(
882  Fw::PassiveComponentBase* callComp,
883  FwIndexType portNum,
884  Fw::Buffer& data,
885  const ComCfg::FrameContext& context
886  )
887  {
888  FW_ASSERT(callComp);
889  TmFramerComponentBase* compPtr = static_cast<TmFramerComponentBase*>(callComp);
890  compPtr->dataIn_handlerBase(
891  portNum,
892  data,
893  context
894  );
895  }
896 
897  void TmFramerComponentBase ::
898  m_p_dataReturnIn_in(
899  Fw::PassiveComponentBase* callComp,
900  FwIndexType portNum,
901  Fw::Buffer& data,
902  const ComCfg::FrameContext& context
903  )
904  {
905  FW_ASSERT(callComp);
906  TmFramerComponentBase* compPtr = static_cast<TmFramerComponentBase*>(callComp);
907  compPtr->dataReturnIn_handlerBase(
908  portNum,
909  data,
910  context
911  );
912  }
913 
914  }
915 
916 }
static constexpr FwIndexType getNum_dataReturnOut_OutputPorts()
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.
bool isConnected_timeCaller_OutputPort(FwIndexType portNum)
void set_dataReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataReturnOut[portNum].
void set_dataOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataOut[portNum].
virtual void dataIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataIn.
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataReturnOut.
I32 FwEnumStoreType
Fw::InputSuccessConditionPort * get_comStatusIn_InputPort(FwIndexType portNum)
static constexpr FwIndexType getNum_dataIn_InputPorts()
bool isConnected_prmSetOut_OutputPort(FwIndexType portNum)
void dataReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataReturnIn.
virtual void dataReturnIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataReturnIn.
static constexpr FwIndexType getNum_prmSetOut_OutputPorts()
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
bool isConnected_dataReturnOut_OutputPort(FwIndexType portNum)
void addCallPort(InputPrmSetPort *callPort)
Register an input port.
void set_prmSetOut_OutputPort(FwIndexType portNum, Fw::InputPrmSetPort *port)
Connect port to prmSetOut[portNum].
void init()
Initialization function.
Definition: TlmPortAc.cpp:144
virtual ~TmFramerComponentBase()
Destroy TmFramerComponentBase object.
No time base has been established (Required)
Svc::InputComDataWithContextPort * get_dataReturnIn_InputPort(FwIndexType portNum)
void addCallPort(InputSuccessConditionPort *callPort)
Register an input port.
void comStatusOut_out(FwIndexType portNum, Fw::Success &condition)
Invoke output port comStatusOut.
void init()
Initialization function.
bool isConnected_comStatusOut_OutputPort(FwIndexType portNum)
void addCallPort(InputComDataWithContextPort *callPort)
Register an input port.
void addCallPort(InputTlmPort *callPort)
Register an input port.
Definition: TlmPortAc.cpp:150
void addCallPort(InputPrmGetPort *callPort)
Register an input port.
void init()
Object initializer.
Definition: ObjBase.cpp:24
static constexpr FwIndexType getNum_timeCaller_OutputPorts()
bool isConnected_logOut_OutputPort(FwIndexType portNum)
TmFramerComponentBase(const char *compName="")
Construct TmFramerComponentBase object.
void init()
Initialization function.
Definition: TimePortAc.cpp:128
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
void set_logOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to logOut[portNum].
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
static constexpr FwIndexType getNum_comStatusIn_InputPorts()
void invoke(Fw::Time &time) const
Invoke a port interface.
Definition: TimePortAc.cpp:147
const char * toChar() const
Convert to a C-style char*.
Definition: ObjectName.hpp:50
bool isConnected_dataOut_OutputPort(FwIndexType portNum)
static constexpr FwIndexType getNum_comStatusOut_OutputPorts()
void invoke(Fw::Success &condition) const
Invoke a port interface.
void invoke(Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke a port interface.
static constexpr FwIndexType getNum_logOut_OutputPorts()
void dataIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataIn.
void set_tlmOut_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to tlmOut[portNum].
void init()
Initialization function.
bool isConnected() const
Definition: PortBase.cpp:38
void set_prmGetOut_OutputPort(FwIndexType portNum, Fw::InputPrmGetPort *port)
Connect port to prmGetOut[portNum].
#define PRI_FwIndexType
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
Definition: StringBase.cpp:39
void init()
Initialization function.
Definition: LogPortAc.cpp:151
static constexpr FwIndexType getNum_prmGetOut_OutputPorts()
void setPortNum(FwIndexType portNum)
Svc::InputComDataWithContextPort * get_dataIn_InputPort(FwIndexType portNum)
void init()
Initialization function.
static constexpr FwIndexType getNum_dataReturnIn_InputPorts()
Auto-generated base for TmFramer component.
void set_comStatusOut_OutputPort(FwIndexType portNum, Fw::InputSuccessConditionPort *port)
Connect port to comStatusOut[portNum].
PlatformIndexType FwIndexType
bool isConnected_prmGetOut_OutputPort(FwIndexType portNum)
void addCallPort(InputLogPort *callPort)
Register an input port.
Definition: LogPortAc.cpp:157
Type used to pass context info between components during framing/deframing.
RateGroupDivider component implementation.
bool isConnected_tlmOut_OutputPort(FwIndexType portNum)
Implementation of malloc based allocator.
void init()
Initialization function.
void init()
Initialization function.
static constexpr FwIndexType getNum_dataOut_OutputPorts()
#define FW_ASSERT(...)
Definition: Assert.hpp:14
static constexpr FwIndexType getNum_tlmOut_OutputPorts()
Success/Failure.
void dataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataOut.
void init()
Initialization function.
void comStatusIn_handlerBase(FwIndexType portNum, Fw::Success &condition)
Handler base-class function for input port comStatusIn.