F´ Flight Software - C/C++ Documentation devel
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DeframerComponentAc.cpp
Go to the documentation of this file.
1// ======================================================================
2// \title DeframerComponentAc.cpp
3// \author Generated by fpp-to-cpp
4// \brief cpp file for Deframer component base class
5// ======================================================================
6
7#include <cstdio>
8
10#include "Fw/Types/Assert.hpp"
11#if FW_ENABLE_TEXT_LOGGING
12#include "Fw/Types/String.hpp"
13#endif
14
15namespace Svc {
16
17 // ----------------------------------------------------------------------
18 // Component initialization
19 // ----------------------------------------------------------------------
20
21 void DeframerComponentBase ::
22 init(NATIVE_INT_TYPE instance)
23 {
24 // Initialize base class
26
27 // Connect input port cmdResponseIn
28 for (
29 PlatformIntType port = 0;
30 port < static_cast<PlatformIntType>(this->getNum_cmdResponseIn_InputPorts());
31 port++
32 ) {
33 this->m_cmdResponseIn_InputPort[port].init();
34 this->m_cmdResponseIn_InputPort[port].addCallComp(
35 this,
36 m_p_cmdResponseIn_in
37 );
38 this->m_cmdResponseIn_InputPort[port].setPortNum(port);
39
40#if FW_OBJECT_NAMES == 1
41 char portName[120];
42 (void) snprintf(
43 portName,
44 sizeof(portName),
45 "%s_cmdResponseIn_InputPort[%" PRI_PlatformIntType "]",
46 this->m_objName,
47 port
48 );
49 this->m_cmdResponseIn_InputPort[port].setObjName(portName);
50#endif
51 }
52
53 // Connect input port framedIn
54 for (
55 PlatformIntType port = 0;
56 port < static_cast<PlatformIntType>(this->getNum_framedIn_InputPorts());
57 port++
58 ) {
59 this->m_framedIn_InputPort[port].init();
60 this->m_framedIn_InputPort[port].addCallComp(
61 this,
62 m_p_framedIn_in
63 );
64 this->m_framedIn_InputPort[port].setPortNum(port);
65
66#if FW_OBJECT_NAMES == 1
67 char portName[120];
68 (void) snprintf(
69 portName,
70 sizeof(portName),
71 "%s_framedIn_InputPort[%" PRI_PlatformIntType "]",
72 this->m_objName,
73 port
74 );
75 this->m_framedIn_InputPort[port].setObjName(portName);
76#endif
77 }
78
79 // Connect input port schedIn
80 for (
81 PlatformIntType port = 0;
82 port < static_cast<PlatformIntType>(this->getNum_schedIn_InputPorts());
83 port++
84 ) {
85 this->m_schedIn_InputPort[port].init();
86 this->m_schedIn_InputPort[port].addCallComp(
87 this,
88 m_p_schedIn_in
89 );
90 this->m_schedIn_InputPort[port].setPortNum(port);
91
92#if FW_OBJECT_NAMES == 1
93 char portName[120];
94 (void) snprintf(
95 portName,
96 sizeof(portName),
97 "%s_schedIn_InputPort[%" PRI_PlatformIntType "]",
98 this->m_objName,
99 port
100 );
101 this->m_schedIn_InputPort[port].setObjName(portName);
102#endif
103 }
104
105 // Connect output port bufferAllocate
106 for (
107 PlatformIntType port = 0;
108 port < static_cast<PlatformIntType>(this->getNum_bufferAllocate_OutputPorts());
109 port++
110 ) {
111 this->m_bufferAllocate_OutputPort[port].init();
112
113#if FW_OBJECT_NAMES == 1
114 char portName[120];
115 (void) snprintf(
116 portName,
117 sizeof(portName),
118 "%s_bufferAllocate_OutputPort[%" PRI_PlatformIntType "]",
119 this->m_objName,
120 port
121 );
122 this->m_bufferAllocate_OutputPort[port].setObjName(portName);
123#endif
124 }
125
126 // Connect output port bufferDeallocate
127 for (
128 PlatformIntType port = 0;
129 port < static_cast<PlatformIntType>(this->getNum_bufferDeallocate_OutputPorts());
130 port++
131 ) {
132 this->m_bufferDeallocate_OutputPort[port].init();
133
134#if FW_OBJECT_NAMES == 1
135 char portName[120];
136 (void) snprintf(
137 portName,
138 sizeof(portName),
139 "%s_bufferDeallocate_OutputPort[%" PRI_PlatformIntType "]",
140 this->m_objName,
141 port
142 );
143 this->m_bufferDeallocate_OutputPort[port].setObjName(portName);
144#endif
145 }
146
147 // Connect output port bufferOut
148 for (
149 PlatformIntType port = 0;
150 port < static_cast<PlatformIntType>(this->getNum_bufferOut_OutputPorts());
151 port++
152 ) {
153 this->m_bufferOut_OutputPort[port].init();
154
155#if FW_OBJECT_NAMES == 1
156 char portName[120];
157 (void) snprintf(
158 portName,
159 sizeof(portName),
160 "%s_bufferOut_OutputPort[%" PRI_PlatformIntType "]",
161 this->m_objName,
162 port
163 );
164 this->m_bufferOut_OutputPort[port].setObjName(portName);
165#endif
166 }
167
168 // Connect output port comOut
169 for (
170 PlatformIntType port = 0;
171 port < static_cast<PlatformIntType>(this->getNum_comOut_OutputPorts());
172 port++
173 ) {
174 this->m_comOut_OutputPort[port].init();
175
176#if FW_OBJECT_NAMES == 1
177 char portName[120];
178 (void) snprintf(
179 portName,
180 sizeof(portName),
181 "%s_comOut_OutputPort[%" PRI_PlatformIntType "]",
182 this->m_objName,
183 port
184 );
185 this->m_comOut_OutputPort[port].setObjName(portName);
186#endif
187 }
188
189 // Connect output port framedDeallocate
190 for (
191 PlatformIntType port = 0;
192 port < static_cast<PlatformIntType>(this->getNum_framedDeallocate_OutputPorts());
193 port++
194 ) {
195 this->m_framedDeallocate_OutputPort[port].init();
196
197#if FW_OBJECT_NAMES == 1
198 char portName[120];
199 (void) snprintf(
200 portName,
201 sizeof(portName),
202 "%s_framedDeallocate_OutputPort[%" PRI_PlatformIntType "]",
203 this->m_objName,
204 port
205 );
206 this->m_framedDeallocate_OutputPort[port].setObjName(portName);
207#endif
208 }
209
210 // Connect output port framedPoll
211 for (
212 PlatformIntType port = 0;
213 port < static_cast<PlatformIntType>(this->getNum_framedPoll_OutputPorts());
214 port++
215 ) {
216 this->m_framedPoll_OutputPort[port].init();
217
218#if FW_OBJECT_NAMES == 1
219 char portName[120];
220 (void) snprintf(
221 portName,
222 sizeof(portName),
223 "%s_framedPoll_OutputPort[%" PRI_PlatformIntType "]",
224 this->m_objName,
225 port
226 );
227 this->m_framedPoll_OutputPort[port].setObjName(portName);
228#endif
229 }
230 }
231
232 // ----------------------------------------------------------------------
233 // Getters for typed input ports
234 // ----------------------------------------------------------------------
235
236 Fw::InputCmdResponsePort* DeframerComponentBase ::
237 get_cmdResponseIn_InputPort(NATIVE_INT_TYPE portNum)
238 {
239 FW_ASSERT(
240 portNum < this->getNum_cmdResponseIn_InputPorts(),
241 static_cast<FwAssertArgType>(portNum)
242 );
243
244 return &this->m_cmdResponseIn_InputPort[portNum];
245 }
246
247 Drv::InputByteStreamRecvPort* DeframerComponentBase ::
248 get_framedIn_InputPort(NATIVE_INT_TYPE portNum)
249 {
250 FW_ASSERT(
251 portNum < this->getNum_framedIn_InputPorts(),
252 static_cast<FwAssertArgType>(portNum)
253 );
254
255 return &this->m_framedIn_InputPort[portNum];
256 }
257
258 Svc::InputSchedPort* DeframerComponentBase ::
259 get_schedIn_InputPort(NATIVE_INT_TYPE portNum)
260 {
261 FW_ASSERT(
262 portNum < this->getNum_schedIn_InputPorts(),
263 static_cast<FwAssertArgType>(portNum)
264 );
265
266 return &this->m_schedIn_InputPort[portNum];
267 }
268
269 // ----------------------------------------------------------------------
270 // Connect typed input ports to typed output ports
271 // ----------------------------------------------------------------------
272
273 void DeframerComponentBase ::
274 set_bufferAllocate_OutputPort(
275 NATIVE_INT_TYPE portNum,
277 )
278 {
279 FW_ASSERT(
280 portNum < this->getNum_bufferAllocate_OutputPorts(),
281 static_cast<FwAssertArgType>(portNum)
282 );
283
284 this->m_bufferAllocate_OutputPort[portNum].addCallPort(port);
285 }
286
287 void DeframerComponentBase ::
288 set_bufferDeallocate_OutputPort(
289 NATIVE_INT_TYPE portNum,
291 )
292 {
293 FW_ASSERT(
294 portNum < this->getNum_bufferDeallocate_OutputPorts(),
295 static_cast<FwAssertArgType>(portNum)
296 );
297
298 this->m_bufferDeallocate_OutputPort[portNum].addCallPort(port);
299 }
300
301 void DeframerComponentBase ::
302 set_bufferOut_OutputPort(
303 NATIVE_INT_TYPE portNum,
305 )
306 {
307 FW_ASSERT(
308 portNum < this->getNum_bufferOut_OutputPorts(),
309 static_cast<FwAssertArgType>(portNum)
310 );
311
312 this->m_bufferOut_OutputPort[portNum].addCallPort(port);
313 }
314
315 void DeframerComponentBase ::
316 set_comOut_OutputPort(
317 NATIVE_INT_TYPE portNum,
318 Fw::InputComPort* port
319 )
320 {
321 FW_ASSERT(
322 portNum < this->getNum_comOut_OutputPorts(),
323 static_cast<FwAssertArgType>(portNum)
324 );
325
326 this->m_comOut_OutputPort[portNum].addCallPort(port);
327 }
328
329 void DeframerComponentBase ::
330 set_framedDeallocate_OutputPort(
331 NATIVE_INT_TYPE portNum,
333 )
334 {
335 FW_ASSERT(
336 portNum < this->getNum_framedDeallocate_OutputPorts(),
337 static_cast<FwAssertArgType>(portNum)
338 );
339
340 this->m_framedDeallocate_OutputPort[portNum].addCallPort(port);
341 }
342
343 void DeframerComponentBase ::
344 set_framedPoll_OutputPort(
345 NATIVE_INT_TYPE portNum,
347 )
348 {
349 FW_ASSERT(
350 portNum < this->getNum_framedPoll_OutputPorts(),
351 static_cast<FwAssertArgType>(portNum)
352 );
353
354 this->m_framedPoll_OutputPort[portNum].addCallPort(port);
355 }
356
357#if FW_PORT_SERIALIZATION
358
359 // ----------------------------------------------------------------------
360 // Connect serial input ports to typed output ports
361 // ----------------------------------------------------------------------
362
363 void DeframerComponentBase ::
364 set_bufferDeallocate_OutputPort(
365 NATIVE_INT_TYPE portNum,
366 Fw::InputSerializePort* port
367 )
368 {
369 FW_ASSERT(
370 portNum < this->getNum_bufferDeallocate_OutputPorts(),
371 static_cast<FwAssertArgType>(portNum)
372 );
373
374 this->m_bufferDeallocate_OutputPort[portNum].registerSerialPort(port);
375 }
376
377 void DeframerComponentBase ::
378 set_bufferOut_OutputPort(
379 NATIVE_INT_TYPE portNum,
380 Fw::InputSerializePort* port
381 )
382 {
383 FW_ASSERT(
384 portNum < this->getNum_bufferOut_OutputPorts(),
385 static_cast<FwAssertArgType>(portNum)
386 );
387
388 this->m_bufferOut_OutputPort[portNum].registerSerialPort(port);
389 }
390
391 void DeframerComponentBase ::
392 set_comOut_OutputPort(
393 NATIVE_INT_TYPE portNum,
394 Fw::InputSerializePort* port
395 )
396 {
397 FW_ASSERT(
398 portNum < this->getNum_comOut_OutputPorts(),
399 static_cast<FwAssertArgType>(portNum)
400 );
401
402 this->m_comOut_OutputPort[portNum].registerSerialPort(port);
403 }
404
405 void DeframerComponentBase ::
406 set_framedDeallocate_OutputPort(
407 NATIVE_INT_TYPE portNum,
408 Fw::InputSerializePort* port
409 )
410 {
411 FW_ASSERT(
412 portNum < this->getNum_framedDeallocate_OutputPorts(),
413 static_cast<FwAssertArgType>(portNum)
414 );
415
416 this->m_framedDeallocate_OutputPort[portNum].registerSerialPort(port);
417 }
418
419#endif
420
421 // ----------------------------------------------------------------------
422 // Component construction and destruction
423 // ----------------------------------------------------------------------
424
425 DeframerComponentBase ::
426 DeframerComponentBase(const char* compName) :
427 Fw::PassiveComponentBase(compName)
428 {
429
430 }
431
432 DeframerComponentBase ::
433 ~DeframerComponentBase()
434 {
435
436 }
437
438 // ----------------------------------------------------------------------
439 // Getters for numbers of typed input ports
440 // ----------------------------------------------------------------------
441
442 NATIVE_INT_TYPE DeframerComponentBase ::
443 getNum_cmdResponseIn_InputPorts() const
444 {
445 return static_cast<NATIVE_INT_TYPE>(FW_NUM_ARRAY_ELEMENTS(this->m_cmdResponseIn_InputPort));
446 }
447
448 NATIVE_INT_TYPE DeframerComponentBase ::
449 getNum_framedIn_InputPorts() const
450 {
451 return static_cast<NATIVE_INT_TYPE>(FW_NUM_ARRAY_ELEMENTS(this->m_framedIn_InputPort));
452 }
453
454 NATIVE_INT_TYPE DeframerComponentBase ::
455 getNum_schedIn_InputPorts() const
456 {
457 return static_cast<NATIVE_INT_TYPE>(FW_NUM_ARRAY_ELEMENTS(this->m_schedIn_InputPort));
458 }
459
460 // ----------------------------------------------------------------------
461 // Getters for numbers of typed output ports
462 // ----------------------------------------------------------------------
463
464 NATIVE_INT_TYPE DeframerComponentBase ::
465 getNum_bufferAllocate_OutputPorts() const
466 {
467 return static_cast<NATIVE_INT_TYPE>(FW_NUM_ARRAY_ELEMENTS(this->m_bufferAllocate_OutputPort));
468 }
469
470 NATIVE_INT_TYPE DeframerComponentBase ::
471 getNum_bufferDeallocate_OutputPorts() const
472 {
473 return static_cast<NATIVE_INT_TYPE>(FW_NUM_ARRAY_ELEMENTS(this->m_bufferDeallocate_OutputPort));
474 }
475
476 NATIVE_INT_TYPE DeframerComponentBase ::
477 getNum_bufferOut_OutputPorts() const
478 {
479 return static_cast<NATIVE_INT_TYPE>(FW_NUM_ARRAY_ELEMENTS(this->m_bufferOut_OutputPort));
480 }
481
482 NATIVE_INT_TYPE DeframerComponentBase ::
483 getNum_comOut_OutputPorts() const
484 {
485 return static_cast<NATIVE_INT_TYPE>(FW_NUM_ARRAY_ELEMENTS(this->m_comOut_OutputPort));
486 }
487
488 NATIVE_INT_TYPE DeframerComponentBase ::
489 getNum_framedDeallocate_OutputPorts() const
490 {
491 return static_cast<NATIVE_INT_TYPE>(FW_NUM_ARRAY_ELEMENTS(this->m_framedDeallocate_OutputPort));
492 }
493
494 NATIVE_INT_TYPE DeframerComponentBase ::
495 getNum_framedPoll_OutputPorts() const
496 {
497 return static_cast<NATIVE_INT_TYPE>(FW_NUM_ARRAY_ELEMENTS(this->m_framedPoll_OutputPort));
498 }
499
500 // ----------------------------------------------------------------------
501 // Connection status queries for typed output ports
502 // ----------------------------------------------------------------------
503
504 bool DeframerComponentBase ::
505 isConnected_bufferAllocate_OutputPort(NATIVE_INT_TYPE portNum)
506 {
507 FW_ASSERT(
508 portNum < this->getNum_bufferAllocate_OutputPorts(),
509 static_cast<FwAssertArgType>(portNum)
510 );
511
512 return this->m_bufferAllocate_OutputPort[portNum].isConnected();
513 }
514
515 bool DeframerComponentBase ::
516 isConnected_bufferDeallocate_OutputPort(NATIVE_INT_TYPE portNum)
517 {
518 FW_ASSERT(
519 portNum < this->getNum_bufferDeallocate_OutputPorts(),
520 static_cast<FwAssertArgType>(portNum)
521 );
522
523 return this->m_bufferDeallocate_OutputPort[portNum].isConnected();
524 }
525
526 bool DeframerComponentBase ::
527 isConnected_bufferOut_OutputPort(NATIVE_INT_TYPE portNum)
528 {
529 FW_ASSERT(
530 portNum < this->getNum_bufferOut_OutputPorts(),
531 static_cast<FwAssertArgType>(portNum)
532 );
533
534 return this->m_bufferOut_OutputPort[portNum].isConnected();
535 }
536
537 bool DeframerComponentBase ::
538 isConnected_comOut_OutputPort(NATIVE_INT_TYPE portNum)
539 {
540 FW_ASSERT(
541 portNum < this->getNum_comOut_OutputPorts(),
542 static_cast<FwAssertArgType>(portNum)
543 );
544
545 return this->m_comOut_OutputPort[portNum].isConnected();
546 }
547
548 bool DeframerComponentBase ::
549 isConnected_framedDeallocate_OutputPort(NATIVE_INT_TYPE portNum)
550 {
551 FW_ASSERT(
552 portNum < this->getNum_framedDeallocate_OutputPorts(),
553 static_cast<FwAssertArgType>(portNum)
554 );
555
556 return this->m_framedDeallocate_OutputPort[portNum].isConnected();
557 }
558
559 bool DeframerComponentBase ::
560 isConnected_framedPoll_OutputPort(NATIVE_INT_TYPE portNum)
561 {
562 FW_ASSERT(
563 portNum < this->getNum_framedPoll_OutputPorts(),
564 static_cast<FwAssertArgType>(portNum)
565 );
566
567 return this->m_framedPoll_OutputPort[portNum].isConnected();
568 }
569
570 // ----------------------------------------------------------------------
571 // Port handler base-class functions for typed input ports
572 //
573 // Call these functions directly to bypass the corresponding ports
574 // ----------------------------------------------------------------------
575
576 void DeframerComponentBase ::
577 cmdResponseIn_handlerBase(
578 NATIVE_INT_TYPE portNum,
579 FwOpcodeType opCode,
580 U32 cmdSeq,
581 const Fw::CmdResponse& response
582 )
583 {
584 // Make sure port number is valid
585 FW_ASSERT(
586 portNum < this->getNum_cmdResponseIn_InputPorts(),
587 static_cast<FwAssertArgType>(portNum)
588 );
589
590 // Down call to pure virtual handler method implemented in Impl class
591 this->cmdResponseIn_handler(
592 portNum,
593 opCode,
594 cmdSeq,
595 response
596 );
597 }
598
599 void DeframerComponentBase ::
600 framedIn_handlerBase(
601 NATIVE_INT_TYPE portNum,
602 Fw::Buffer& recvBuffer,
603 const Drv::RecvStatus& recvStatus
604 )
605 {
606 // Make sure port number is valid
607 FW_ASSERT(
608 portNum < this->getNum_framedIn_InputPorts(),
609 static_cast<FwAssertArgType>(portNum)
610 );
611
612 // Lock guard mutex before calling
613 this->lock();
614
615 // Down call to pure virtual handler method implemented in Impl class
616 this->framedIn_handler(
617 portNum,
618 recvBuffer,
619 recvStatus
620 );
621
622 // Unlock guard mutex
623 this->unLock();
624 }
625
626 void DeframerComponentBase ::
627 schedIn_handlerBase(
628 NATIVE_INT_TYPE portNum,
629 NATIVE_UINT_TYPE context
630 )
631 {
632 // Make sure port number is valid
633 FW_ASSERT(
634 portNum < this->getNum_schedIn_InputPorts(),
635 static_cast<FwAssertArgType>(portNum)
636 );
637
638 // Lock guard mutex before calling
639 this->lock();
640
641 // Down call to pure virtual handler method implemented in Impl class
642 this->schedIn_handler(
643 portNum,
644 context
645 );
646
647 // Unlock guard mutex
648 this->unLock();
649 }
650
651 // ----------------------------------------------------------------------
652 // Invocation functions for typed output ports
653 // ----------------------------------------------------------------------
654
655 Fw::Buffer DeframerComponentBase ::
656 bufferAllocate_out(
657 NATIVE_INT_TYPE portNum,
658 U32 size
659 )
660 {
661 FW_ASSERT(
662 portNum < this->getNum_bufferAllocate_OutputPorts(),
663 static_cast<FwAssertArgType>(portNum)
664 );
665 return this->m_bufferAllocate_OutputPort[portNum].invoke(
666 size
667 );
668 }
669
670 void DeframerComponentBase ::
671 bufferDeallocate_out(
672 NATIVE_INT_TYPE portNum,
673 Fw::Buffer& fwBuffer
674 )
675 {
676 FW_ASSERT(
677 portNum < this->getNum_bufferDeallocate_OutputPorts(),
678 static_cast<FwAssertArgType>(portNum)
679 );
680 this->m_bufferDeallocate_OutputPort[portNum].invoke(
681 fwBuffer
682 );
683 }
684
685 void DeframerComponentBase ::
686 bufferOut_out(
687 NATIVE_INT_TYPE portNum,
688 Fw::Buffer& fwBuffer
689 )
690 {
691 FW_ASSERT(
692 portNum < this->getNum_bufferOut_OutputPorts(),
693 static_cast<FwAssertArgType>(portNum)
694 );
695 this->m_bufferOut_OutputPort[portNum].invoke(
696 fwBuffer
697 );
698 }
699
700 void DeframerComponentBase ::
701 comOut_out(
702 NATIVE_INT_TYPE portNum,
703 Fw::ComBuffer& data,
704 U32 context
705 )
706 {
707 FW_ASSERT(
708 portNum < this->getNum_comOut_OutputPorts(),
709 static_cast<FwAssertArgType>(portNum)
710 );
711 this->m_comOut_OutputPort[portNum].invoke(
712 data,
713 context
714 );
715 }
716
717 void DeframerComponentBase ::
718 framedDeallocate_out(
719 NATIVE_INT_TYPE portNum,
720 Fw::Buffer& fwBuffer
721 )
722 {
723 FW_ASSERT(
724 portNum < this->getNum_framedDeallocate_OutputPorts(),
725 static_cast<FwAssertArgType>(portNum)
726 );
727 this->m_framedDeallocate_OutputPort[portNum].invoke(
728 fwBuffer
729 );
730 }
731
732 Drv::PollStatus DeframerComponentBase ::
733 framedPoll_out(
734 NATIVE_INT_TYPE portNum,
735 Fw::Buffer& pollBuffer
736 )
737 {
738 FW_ASSERT(
739 portNum < this->getNum_framedPoll_OutputPorts(),
740 static_cast<FwAssertArgType>(portNum)
741 );
742 return this->m_framedPoll_OutputPort[portNum].invoke(
743 pollBuffer
744 );
745 }
746
747 // ----------------------------------------------------------------------
748 // Mutex operations for guarded ports
749 //
750 // You can override these operations to provide more sophisticated
751 // synchronization
752 // ----------------------------------------------------------------------
753
754 void DeframerComponentBase ::
755 lock()
756 {
757 this->m_guardedPortMutex.lock();
758 }
759
760 void DeframerComponentBase ::
761 unLock()
762 {
763 this->m_guardedPortMutex.unLock();
764 }
765
766 // ----------------------------------------------------------------------
767 // Calls for messages received on typed input ports
768 // ----------------------------------------------------------------------
769
770 void DeframerComponentBase ::
771 m_p_cmdResponseIn_in(
772 Fw::PassiveComponentBase* callComp,
773 NATIVE_INT_TYPE portNum,
774 FwOpcodeType opCode,
775 U32 cmdSeq,
776 const Fw::CmdResponse& response
777 )
778 {
779 FW_ASSERT(callComp);
780 DeframerComponentBase* compPtr = static_cast<DeframerComponentBase*>(callComp);
782 portNum,
783 opCode,
784 cmdSeq,
785 response
786 );
787 }
788
789 void DeframerComponentBase ::
790 m_p_framedIn_in(
791 Fw::PassiveComponentBase* callComp,
792 NATIVE_INT_TYPE portNum,
793 Fw::Buffer& recvBuffer,
794 const Drv::RecvStatus& recvStatus
795 )
796 {
797 FW_ASSERT(callComp);
798 DeframerComponentBase* compPtr = static_cast<DeframerComponentBase*>(callComp);
799 compPtr->framedIn_handlerBase(
800 portNum,
801 recvBuffer,
802 recvStatus
803 );
804 }
805
806 void DeframerComponentBase ::
807 m_p_schedIn_in(
808 Fw::PassiveComponentBase* callComp,
809 NATIVE_INT_TYPE portNum,
810 NATIVE_UINT_TYPE context
811 )
812 {
813 FW_ASSERT(callComp);
814 DeframerComponentBase* compPtr = static_cast<DeframerComponentBase*>(callComp);
815 compPtr->schedIn_handlerBase(
816 portNum,
817 context
818 );
819 }
820
821}
#define FW_ASSERT(...)
Definition Assert.hpp:7
PlatformIntType NATIVE_INT_TYPE
Definition BasicTypes.h:51
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
Definition BasicTypes.h:66
PlatformUIntType NATIVE_UINT_TYPE
Definition BasicTypes.h:52
int PlatformIntType
DefaultTypes.hpp provides fallback defaults for the platform types.
#define PRI_PlatformIntType
PlatformAssertArgType FwAssertArgType
Definition FpConfig.h:21
U32 FwOpcodeType
Definition FpConfig.h:56
Input ByteStreamPoll port.
Status associated with the received data.
Enum representing a command response.
Input BufferGet port.
Input BufferSend port.
void init()
Object initializer.
Definition ObjBase.cpp:27
Auto-generated base for Deframer component.
void framedIn_handlerBase(NATIVE_INT_TYPE portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus)
Handler base-class function for input port framedIn.
void cmdResponseIn_handlerBase(NATIVE_INT_TYPE portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)
Handler base-class function for input port cmdResponseIn.