11#if FW_ENABLE_TEXT_LOGGING
27 class ComponentIpcSerializableBuffer :
42 return sizeof(m_buff);
49 const U8* getBuffAddr()
const {
55 U8 m_buff[SERIALIZATION_SIZE];
64 void DeframerComponentBase ::
73 port < static_cast<PlatformIntType>(this->getNum_cmdResponseIn_InputPorts());
76 this->m_cmdResponseIn_InputPort[port].init();
77 this->m_cmdResponseIn_InputPort[port].addCallComp(
81 this->m_cmdResponseIn_InputPort[port].setPortNum(port);
83#if FW_OBJECT_NAMES == 1
92 this->m_cmdResponseIn_InputPort[port].setObjName(portName);
99 port < static_cast<PlatformIntType>(this->getNum_framedIn_InputPorts());
102 this->m_framedIn_InputPort[port].init();
103 this->m_framedIn_InputPort[port].addCallComp(
107 this->m_framedIn_InputPort[port].setPortNum(port);
109#if FW_OBJECT_NAMES == 1
118 this->m_framedIn_InputPort[port].setObjName(portName);
125 port < static_cast<PlatformIntType>(this->getNum_schedIn_InputPorts());
128 this->m_schedIn_InputPort[port].init();
129 this->m_schedIn_InputPort[port].addCallComp(
133 this->m_schedIn_InputPort[port].setPortNum(port);
135#if FW_OBJECT_NAMES == 1
144 this->m_schedIn_InputPort[port].setObjName(portName);
151 port < static_cast<PlatformIntType>(this->getNum_bufferAllocate_OutputPorts());
154 this->m_bufferAllocate_OutputPort[port].init();
156#if FW_OBJECT_NAMES == 1
165 this->m_bufferAllocate_OutputPort[port].setObjName(portName);
172 port < static_cast<PlatformIntType>(this->getNum_bufferDeallocate_OutputPorts());
175 this->m_bufferDeallocate_OutputPort[port].init();
177#if FW_OBJECT_NAMES == 1
186 this->m_bufferDeallocate_OutputPort[port].setObjName(portName);
193 port < static_cast<PlatformIntType>(this->getNum_bufferOut_OutputPorts());
196 this->m_bufferOut_OutputPort[port].init();
198#if FW_OBJECT_NAMES == 1
207 this->m_bufferOut_OutputPort[port].setObjName(portName);
214 port < static_cast<PlatformIntType>(this->getNum_comOut_OutputPorts());
217 this->m_comOut_OutputPort[port].init();
219#if FW_OBJECT_NAMES == 1
228 this->m_comOut_OutputPort[port].setObjName(portName);
235 port < static_cast<PlatformIntType>(this->getNum_framedDeallocate_OutputPorts());
238 this->m_framedDeallocate_OutputPort[port].init();
240#if FW_OBJECT_NAMES == 1
249 this->m_framedDeallocate_OutputPort[port].setObjName(portName);
256 port < static_cast<PlatformIntType>(this->getNum_framedPoll_OutputPorts());
259 this->m_framedPoll_OutputPort[port].init();
261#if FW_OBJECT_NAMES == 1
270 this->m_framedPoll_OutputPort[port].setObjName(portName);
64 void DeframerComponentBase :: {
…}
283 portNum < this->getNum_cmdResponseIn_InputPorts(),
287 return &this->m_cmdResponseIn_InputPort[portNum];
294 portNum < this->getNum_framedIn_InputPorts(),
298 return &this->m_framedIn_InputPort[portNum];
305 portNum < this->getNum_schedIn_InputPorts(),
309 return &this->m_schedIn_InputPort[portNum];
316 void DeframerComponentBase ::
317 set_bufferAllocate_OutputPort(
323 portNum < this->getNum_bufferAllocate_OutputPorts(),
327 this->m_bufferAllocate_OutputPort[portNum].addCallPort(port);
316 void DeframerComponentBase :: {
…}
330 void DeframerComponentBase ::
331 set_bufferDeallocate_OutputPort(
337 portNum < this->getNum_bufferDeallocate_OutputPorts(),
341 this->m_bufferDeallocate_OutputPort[portNum].addCallPort(port);
330 void DeframerComponentBase :: {
…}
344 void DeframerComponentBase ::
345 set_bufferOut_OutputPort(
351 portNum < this->getNum_bufferOut_OutputPorts(),
355 this->m_bufferOut_OutputPort[portNum].addCallPort(port);
344 void DeframerComponentBase :: {
…}
358 void DeframerComponentBase ::
359 set_comOut_OutputPort(
365 portNum < this->getNum_comOut_OutputPorts(),
369 this->m_comOut_OutputPort[portNum].addCallPort(port);
358 void DeframerComponentBase :: {
…}
372 void DeframerComponentBase ::
373 set_framedDeallocate_OutputPort(
379 portNum < this->getNum_framedDeallocate_OutputPorts(),
383 this->m_framedDeallocate_OutputPort[portNum].addCallPort(port);
372 void DeframerComponentBase :: {
…}
386 void DeframerComponentBase ::
387 set_framedPoll_OutputPort(
393 portNum < this->getNum_framedPoll_OutputPorts(),
397 this->m_framedPoll_OutputPort[portNum].addCallPort(port);
386 void DeframerComponentBase :: {
…}
400#if FW_PORT_SERIALIZATION
406 void DeframerComponentBase ::
407 set_bufferDeallocate_OutputPort(
409 Fw::InputSerializePort* port
413 portNum < this->getNum_bufferDeallocate_OutputPorts(),
417 this->m_bufferDeallocate_OutputPort[portNum].registerSerialPort(port);
420 void DeframerComponentBase ::
421 set_bufferOut_OutputPort(
423 Fw::InputSerializePort* port
427 portNum < this->getNum_bufferOut_OutputPorts(),
431 this->m_bufferOut_OutputPort[portNum].registerSerialPort(port);
434 void DeframerComponentBase ::
435 set_comOut_OutputPort(
437 Fw::InputSerializePort* port
441 portNum < this->getNum_comOut_OutputPorts(),
445 this->m_comOut_OutputPort[portNum].registerSerialPort(port);
448 void DeframerComponentBase ::
449 set_framedDeallocate_OutputPort(
451 Fw::InputSerializePort* port
455 portNum < this->getNum_framedDeallocate_OutputPorts(),
459 this->m_framedDeallocate_OutputPort[portNum].registerSerialPort(port);
468 DeframerComponentBase ::
469 DeframerComponentBase(
const char* compName) :
470 Fw::PassiveComponentBase(compName)
468 DeframerComponentBase :: {
…}
475 DeframerComponentBase ::
476 ~DeframerComponentBase()
475 DeframerComponentBase :: {
…}
486 getNum_cmdResponseIn_InputPorts()
492 getNum_framedIn_InputPorts()
498 getNum_schedIn_InputPorts()
508 getNum_bufferAllocate_OutputPorts()
514 getNum_bufferDeallocate_OutputPorts()
520 getNum_bufferOut_OutputPorts()
526 getNum_comOut_OutputPorts()
532 getNum_framedDeallocate_OutputPorts()
538 getNum_framedPoll_OutputPorts()
547 bool DeframerComponentBase ::
551 portNum < this->getNum_bufferAllocate_OutputPorts(),
555 return this->m_bufferAllocate_OutputPort[portNum].isConnected();
547 bool DeframerComponentBase :: {
…}
558 bool DeframerComponentBase ::
562 portNum < this->getNum_bufferDeallocate_OutputPorts(),
566 return this->m_bufferDeallocate_OutputPort[portNum].isConnected();
558 bool DeframerComponentBase :: {
…}
569 bool DeframerComponentBase ::
573 portNum < this->getNum_bufferOut_OutputPorts(),
577 return this->m_bufferOut_OutputPort[portNum].isConnected();
569 bool DeframerComponentBase :: {
…}
580 bool DeframerComponentBase ::
584 portNum < this->getNum_comOut_OutputPorts(),
588 return this->m_comOut_OutputPort[portNum].isConnected();
580 bool DeframerComponentBase :: {
…}
591 bool DeframerComponentBase ::
595 portNum < this->getNum_framedDeallocate_OutputPorts(),
599 return this->m_framedDeallocate_OutputPort[portNum].isConnected();
591 bool DeframerComponentBase :: {
…}
602 bool DeframerComponentBase ::
606 portNum < this->getNum_framedPoll_OutputPorts(),
610 return this->m_framedPoll_OutputPort[portNum].isConnected();
602 bool DeframerComponentBase :: {
…}
619 void DeframerComponentBase ::
620 cmdResponseIn_handlerBase(
629 portNum < this->getNum_cmdResponseIn_InputPorts(),
634 this->cmdResponseIn_handler(
619 void DeframerComponentBase :: {
…}
642 void DeframerComponentBase ::
643 framedIn_handlerBase(
651 portNum < this->getNum_framedIn_InputPorts(),
659 this->framedIn_handler(
642 void DeframerComponentBase :: {
…}
669 void DeframerComponentBase ::
677 portNum < this->getNum_schedIn_InputPorts(),
685 this->schedIn_handler(
669 void DeframerComponentBase :: {
…}
705 portNum < this->getNum_bufferAllocate_OutputPorts(),
708 return this->m_bufferAllocate_OutputPort[portNum].invoke(
713 void DeframerComponentBase ::
714 bufferDeallocate_out(
720 portNum < this->getNum_bufferDeallocate_OutputPorts(),
723 this->m_bufferDeallocate_OutputPort[portNum].invoke(
713 void DeframerComponentBase :: {
…}
728 void DeframerComponentBase ::
735 portNum < this->getNum_bufferOut_OutputPorts(),
738 this->m_bufferOut_OutputPort[portNum].invoke(
728 void DeframerComponentBase :: {
…}
743 void DeframerComponentBase ::
751 portNum < this->getNum_comOut_OutputPorts(),
754 this->m_comOut_OutputPort[portNum].invoke(
743 void DeframerComponentBase :: {
…}
760 void DeframerComponentBase ::
761 framedDeallocate_out(
767 portNum < this->getNum_framedDeallocate_OutputPorts(),
770 this->m_framedDeallocate_OutputPort[portNum].invoke(
760 void DeframerComponentBase :: {
…}
782 portNum < this->getNum_framedPoll_OutputPorts(),
785 return this->m_framedPoll_OutputPort[portNum].invoke(
797 void DeframerComponentBase ::
800 this->m_guardedPortMutex.lock();
797 void DeframerComponentBase :: {
…}
803 void DeframerComponentBase ::
806 this->m_guardedPortMutex.unLock();
803 void DeframerComponentBase :: {
…}
813 void DeframerComponentBase ::
814 m_p_cmdResponseIn_in(
832 void DeframerComponentBase ::
841 DeframerComponentBase* compPtr =
static_cast<DeframerComponentBase*
>(callComp);
849 void DeframerComponentBase ::
857 DeframerComponentBase* compPtr =
static_cast<DeframerComponentBase*
>(callComp);
858 compPtr->schedIn_handlerBase(
PlatformIntType NATIVE_INT_TYPE
uint8_t U8
8-bit unsigned integer
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
PlatformUIntType NATIVE_UINT_TYPE
int PlatformIntType
DefaultTypes.hpp provides fallback defaults for the platform types.
#define PRI_PlatformIntType
PlatformAssertArgType FwAssertArgType
Enum representing a command response.
void init()
Object initializer.
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.