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());
222 static_cast<FwAssertArgType>(portNum)
225 return &this->m_cmdResponseIn_InputPort[portNum];
233 static_cast<FwAssertArgType>(portNum)
236 return &this->m_framedIn_InputPort[portNum];
244 static_cast<FwAssertArgType>(portNum)
247 return &this->m_schedIn_InputPort[portNum];
262 static_cast<FwAssertArgType>(portNum)
265 this->m_bufferAllocate_OutputPort[portNum].
addCallPort(port);
276 static_cast<FwAssertArgType>(portNum)
279 this->m_bufferDeallocate_OutputPort[portNum].
addCallPort(port);
290 static_cast<FwAssertArgType>(portNum)
293 this->m_bufferOut_OutputPort[portNum].
addCallPort(port);
304 static_cast<FwAssertArgType>(portNum)
307 this->m_comOut_OutputPort[portNum].
addCallPort(port);
318 static_cast<FwAssertArgType>(portNum)
321 this->m_framedDeallocate_OutputPort[portNum].
addCallPort(port);
332 static_cast<FwAssertArgType>(portNum)
335 this->m_framedPoll_OutputPort[portNum].
addCallPort(port);
338 #if FW_PORT_SERIALIZATION 347 Fw::InputSerializePort* port
352 static_cast<FwAssertArgType>(portNum)
355 this->m_bufferDeallocate_OutputPort[portNum].registerSerialPort(port);
361 Fw::InputSerializePort* port
366 static_cast<FwAssertArgType>(portNum)
369 this->m_bufferOut_OutputPort[portNum].registerSerialPort(port);
375 Fw::InputSerializePort* port
380 static_cast<FwAssertArgType>(portNum)
383 this->m_comOut_OutputPort[portNum].registerSerialPort(port);
389 Fw::InputSerializePort* port
394 static_cast<FwAssertArgType>(portNum)
397 this->m_framedDeallocate_OutputPort[portNum].registerSerialPort(port);
408 Fw::PassiveComponentBase(compName)
490 static_cast<FwAssertArgType>(portNum)
493 return this->m_bufferAllocate_OutputPort[portNum].
isConnected();
501 static_cast<FwAssertArgType>(portNum)
504 return this->m_bufferDeallocate_OutputPort[portNum].
isConnected();
512 static_cast<FwAssertArgType>(portNum)
515 return this->m_bufferOut_OutputPort[portNum].
isConnected();
523 static_cast<FwAssertArgType>(portNum)
526 return this->m_comOut_OutputPort[portNum].
isConnected();
534 static_cast<FwAssertArgType>(portNum)
537 return this->m_framedDeallocate_OutputPort[portNum].
isConnected();
545 static_cast<FwAssertArgType>(portNum)
548 return this->m_framedPoll_OutputPort[portNum].
isConnected();
568 static_cast<FwAssertArgType>(portNum)
590 static_cast<FwAssertArgType>(portNum)
616 static_cast<FwAssertArgType>(portNum)
644 static_cast<FwAssertArgType>(portNum)
646 return this->m_bufferAllocate_OutputPort[portNum].
invoke(
659 static_cast<FwAssertArgType>(portNum)
661 this->m_bufferDeallocate_OutputPort[portNum].
invoke(
674 static_cast<FwAssertArgType>(portNum)
676 this->m_bufferOut_OutputPort[portNum].
invoke(
690 static_cast<FwAssertArgType>(portNum)
692 this->m_comOut_OutputPort[portNum].
invoke(
706 static_cast<FwAssertArgType>(portNum)
708 this->m_framedDeallocate_OutputPort[portNum].
invoke(
721 static_cast<FwAssertArgType>(portNum)
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(
bool isConnected_bufferAllocate_OutputPort(FwIndexType portNum)
Drv::PollStatus framedPoll_out(FwIndexType portNum, Fw::Buffer &pollBuffer)
Invoke output port framedPoll.
Drv::InputByteStreamRecvPort * get_framedIn_InputPort(FwIndexType portNum)
void invoke(Fw::ComBuffer &data, U32 context) const
Invoke a port interface.
void init()
Initialization function.
Status associated with the received data.
Fw::Buffer invoke(U32 size) const
Invoke a port interface.
void framedIn_handlerBase(FwIndexType portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus)
Handler base-class function for input port framedIn.
void set_framedDeallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to framedDeallocate[portNum].
void unLock()
unlock the mutex and assert success
void set_framedPoll_OutputPort(FwIndexType portNum, Drv::InputByteStreamPollPort *port)
Connect port to framedPoll[portNum].
void bufferOut_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port bufferOut.
void set_bufferDeallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferDeallocate[portNum].
void comOut_out(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Invoke output port comOut.
bool isConnected_comOut_OutputPort(FwIndexType portNum)
Enum representing a command response.
FwIndexType getNum_cmdResponseIn_InputPorts() const
PlatformIndexType FwIndexType
virtual void framedIn_handler(FwIndexType portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus)=0
Handler for input port framedIn.
bool isConnected_bufferOut_OutputPort(FwIndexType portNum)
virtual void schedIn_handler(FwIndexType portNum, U32 context)=0
Handler for input port schedIn.
void init()
Object initializer.
void addCallPort(InputBufferGetPort *callPort)
Register an input port.
Fw::Buffer bufferAllocate_out(FwIndexType portNum, U32 size)
Invoke output port bufferAllocate.
bool isConnected_framedPoll_OutputPort(FwIndexType portNum)
void schedIn_handlerBase(FwIndexType portNum, U32 context)
Handler base-class function for input port schedIn.
void invoke(Fw::Buffer &fwBuffer) const
Invoke a port interface.
void addCallPort(InputBufferSendPort *callPort)
Register an input port.
const char * toChar() const
void bufferDeallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port bufferDeallocate.
Svc::InputSchedPort * get_schedIn_InputPort(FwIndexType portNum)
void init()
Initialization function.
FwIndexType getNum_framedPoll_OutputPorts() const
void addCallPort(InputByteStreamPollPort *callPort)
Register an input port.
FwIndexType getNum_schedIn_InputPorts() const
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
FwIndexType getNum_comOut_OutputPorts() const
#define PRI_PlatformIntType
void cmdResponseIn_handlerBase(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)
Handler base-class function for input port cmdResponseIn.
bool isConnected_framedDeallocate_OutputPort(FwIndexType portNum)
Auto-generated base for Deframer component.
bool isConnected_bufferDeallocate_OutputPort(FwIndexType portNum)
void init()
Initialization function.
FwIndexType getNum_framedIn_InputPorts() const
virtual void lock()
Lock the guarded mutex.
Drv::PollStatus invoke(Fw::Buffer &pollBuffer) const
Invoke a port interface.
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
void set_bufferAllocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to bufferAllocate[portNum].
FwIndexType getNum_bufferOut_OutputPorts() const
virtual ~DeframerComponentBase()
Destroy DeframerComponentBase object.
void init()
Initialization function.
void framedDeallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port framedDeallocate.
DeframerComponentBase(const char *compName="")
Construct DeframerComponentBase object.
virtual void cmdResponseIn_handler(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)=0
Handler for input port cmdResponseIn.
Fw::InputCmdResponsePort * get_cmdResponseIn_InputPort(FwIndexType portNum)
void addCallPort(InputComPort *callPort)
Register an input port.
virtual void unLock()
Unlock the guarded mutex.
FwIndexType getNum_bufferAllocate_OutputPorts() const
FwIndexType getNum_framedDeallocate_OutputPorts() const
void set_bufferOut_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferOut[portNum].
void set_comOut_OutputPort(FwIndexType portNum, Fw::InputComPort *port)
Connect port to comOut[portNum].
FwIndexType getNum_bufferDeallocate_OutputPorts() const
void lock()
lock the mutex and assert success