10 #if FW_ENABLE_TEXT_LOGGING
32 this->m_cmdResponseIn_InputPort[port].
init();
37 this->m_cmdResponseIn_InputPort[port].
setPortNum(port);
39 #if FW_OBJECT_NAMES == 1
43 this->m_objName.toChar(),
46 this->m_cmdResponseIn_InputPort[port].setObjName(portName.
toChar());
56 this->m_framedIn_InputPort[port].
init();
61 this->m_framedIn_InputPort[port].
setPortNum(port);
63 #if FW_OBJECT_NAMES == 1
67 this->m_objName.toChar(),
70 this->m_framedIn_InputPort[port].setObjName(portName.
toChar());
80 this->m_schedIn_InputPort[port].
init();
85 this->m_schedIn_InputPort[port].
setPortNum(port);
87 #if FW_OBJECT_NAMES == 1
91 this->m_objName.toChar(),
94 this->m_schedIn_InputPort[port].setObjName(portName.
toChar());
104 this->m_bufferAllocate_OutputPort[port].
init();
106 #if FW_OBJECT_NAMES == 1
110 this->m_objName.toChar(),
113 this->m_bufferAllocate_OutputPort[port].setObjName(portName.
toChar());
123 this->m_bufferDeallocate_OutputPort[port].
init();
125 #if FW_OBJECT_NAMES == 1
129 this->m_objName.toChar(),
132 this->m_bufferDeallocate_OutputPort[port].setObjName(portName.
toChar());
142 this->m_bufferOut_OutputPort[port].
init();
144 #if FW_OBJECT_NAMES == 1
148 this->m_objName.toChar(),
151 this->m_bufferOut_OutputPort[port].setObjName(portName.
toChar());
161 this->m_comOut_OutputPort[port].
init();
163 #if FW_OBJECT_NAMES == 1
167 this->m_objName.toChar(),
170 this->m_comOut_OutputPort[port].setObjName(portName.
toChar());
180 this->m_framedDeallocate_OutputPort[port].
init();
182 #if FW_OBJECT_NAMES == 1
186 this->m_objName.toChar(),
189 this->m_framedDeallocate_OutputPort[port].setObjName(portName.
toChar());
199 this->m_framedPoll_OutputPort[port].
init();
201 #if FW_OBJECT_NAMES == 1
205 this->m_objName.toChar(),
208 this->m_framedPoll_OutputPort[port].setObjName(portName.
toChar());
225 return &this->m_cmdResponseIn_InputPort[portNum];
236 return &this->m_framedIn_InputPort[portNum];
247 return &this->m_schedIn_InputPort[portNum];
265 this->m_bufferAllocate_OutputPort[portNum].
addCallPort(port);
279 this->m_bufferDeallocate_OutputPort[portNum].
addCallPort(port);
293 this->m_bufferOut_OutputPort[portNum].
addCallPort(port);
307 this->m_comOut_OutputPort[portNum].
addCallPort(port);
321 this->m_framedDeallocate_OutputPort[portNum].
addCallPort(port);
335 this->m_framedPoll_OutputPort[portNum].
addCallPort(port);
338 #if FW_PORT_SERIALIZATION
347 Fw::InputSerializePort* port
355 this->m_bufferDeallocate_OutputPort[portNum].registerSerialPort(port);
361 Fw::InputSerializePort* port
369 this->m_bufferOut_OutputPort[portNum].registerSerialPort(port);
375 Fw::InputSerializePort* port
383 this->m_comOut_OutputPort[portNum].registerSerialPort(port);
389 Fw::InputSerializePort* port
397 this->m_framedDeallocate_OutputPort[portNum].registerSerialPort(port);
408 Fw::PassiveComponentBase(compName)
493 return this->m_bufferAllocate_OutputPort[portNum].
isConnected();
504 return this->m_bufferDeallocate_OutputPort[portNum].
isConnected();
515 return this->m_bufferOut_OutputPort[portNum].
isConnected();
526 return this->m_comOut_OutputPort[portNum].
isConnected();
537 return this->m_framedDeallocate_OutputPort[portNum].
isConnected();
548 return this->m_framedPoll_OutputPort[portNum].
isConnected();
646 return this->m_bufferAllocate_OutputPort[portNum].
invoke(
661 this->m_bufferDeallocate_OutputPort[portNum].
invoke(
676 this->m_bufferOut_OutputPort[portNum].
invoke(
692 this->m_comOut_OutputPort[portNum].
invoke(
708 this->m_framedDeallocate_OutputPort[portNum].
invoke(
723 return this->m_framedPoll_OutputPort[portNum].
invoke(
738 this->m_guardedPortMutex.
lock();
744 this->m_guardedPortMutex.
unLock();
751 void DeframerComponentBase ::
752 m_p_cmdResponseIn_in(
770 void DeframerComponentBase ::
780 compPtr->framedIn_handlerBase(
787 void DeframerComponentBase ::
796 compPtr->schedIn_handlerBase(
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
#define PRI_PlatformIntType
PlatformAssertArgType FwAssertArgType
PlatformIndexType FwIndexType
void init()
Initialization function.
Drv::PollStatus invoke(Fw::Buffer &pollBuffer)
Invoke a port interface.
void addCallPort(InputByteStreamPollPort *callPort)
Register an input port.
Status associated with the received data.
Enum representing a command response.
void init()
Object initializer.
const char * toChar() const
void init()
Initialization function.
void addCallPort(InputBufferGetPort *callPort)
Register an input port.
Fw::Buffer invoke(U32 size)
Invoke a port interface.
void addCallPort(InputBufferSendPort *callPort)
Register an input port.
void invoke(Fw::Buffer &fwBuffer)
Invoke a port interface.
void init()
Initialization function.
void addCallPort(InputComPort *callPort)
Register an input port.
void init()
Initialization function.
void invoke(Fw::ComBuffer &data, U32 context)
Invoke a port interface.
void format(const CHAR *formatString,...)
write formatted string to buffer
void unLock()
unlock the mutex and assert success
void lock()
lock the mutex and assert success
Auto-generated base for Deframer component.
FwIndexType getNum_bufferDeallocate_OutputPorts() const
virtual void unLock()
Unlock the guarded mutex.
void set_bufferDeallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferDeallocate[portNum].
void bufferDeallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port bufferDeallocate.
FwIndexType getNum_framedIn_InputPorts() const
FwIndexType getNum_cmdResponseIn_InputPorts() const
void framedDeallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port framedDeallocate.
virtual void lock()
Lock the guarded mutex.
void set_framedDeallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to framedDeallocate[portNum].
void set_framedPoll_OutputPort(FwIndexType portNum, Drv::InputByteStreamPollPort *port)
Connect port to framedPoll[portNum].
virtual void schedIn_handler(FwIndexType portNum, U32 context)=0
Handler for input port schedIn.
virtual ~DeframerComponentBase()
Destroy DeframerComponentBase object.
void bufferOut_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port bufferOut.
Svc::InputSchedPort * get_schedIn_InputPort(FwIndexType portNum)
DeframerComponentBase(const char *compName="")
Construct DeframerComponentBase object.
FwIndexType getNum_bufferOut_OutputPorts() const
Fw::Buffer bufferAllocate_out(FwIndexType portNum, U32 size)
Invoke output port bufferAllocate.
FwIndexType getNum_comOut_OutputPorts() const
virtual void cmdResponseIn_handler(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)=0
Handler for input port cmdResponseIn.
Drv::PollStatus framedPoll_out(FwIndexType portNum, Fw::Buffer &pollBuffer)
Invoke output port framedPoll.
bool isConnected_bufferAllocate_OutputPort(FwIndexType portNum)
bool isConnected_bufferOut_OutputPort(FwIndexType portNum)
void comOut_out(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Invoke output port comOut.
virtual void framedIn_handler(FwIndexType portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus)=0
Handler for input port framedIn.
void schedIn_handlerBase(FwIndexType portNum, U32 context)
Handler base-class function for input port schedIn.
Fw::InputCmdResponsePort * get_cmdResponseIn_InputPort(FwIndexType portNum)
void cmdResponseIn_handlerBase(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)
Handler base-class function for input port cmdResponseIn.
void set_bufferOut_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferOut[portNum].
FwIndexType getNum_framedDeallocate_OutputPorts() const
FwIndexType getNum_framedPoll_OutputPorts() const
bool isConnected_bufferDeallocate_OutputPort(FwIndexType portNum)
void set_comOut_OutputPort(FwIndexType portNum, Fw::InputComPort *port)
Connect port to comOut[portNum].
void framedIn_handlerBase(FwIndexType portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus)
Handler base-class function for input port framedIn.
void set_bufferAllocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to bufferAllocate[portNum].
bool isConnected_framedDeallocate_OutputPort(FwIndexType portNum)
FwIndexType getNum_schedIn_InputPorts() const
FwIndexType getNum_bufferAllocate_OutputPorts() const
bool isConnected_framedPoll_OutputPort(FwIndexType portNum)
bool isConnected_comOut_OutputPort(FwIndexType portNum)
Drv::InputByteStreamRecvPort * get_framedIn_InputPort(FwIndexType portNum)