10 #if FW_ENABLE_TEXT_LOGGING 32 this->m_recvReturnIn_InputPort[port].
init();
37 this->m_recvReturnIn_InputPort[port].
setPortNum(port);
39 #if FW_OBJECT_NAMES == 1 43 this->m_objName.toChar(),
46 this->m_recvReturnIn_InputPort[port].setObjName(portName.
toChar());
56 this->m_send_InputPort[port].
init();
63 #if FW_OBJECT_NAMES == 1 67 this->m_objName.toChar(),
70 this->m_send_InputPort[port].setObjName(portName.
toChar());
80 this->m_allocate_OutputPort[port].
init();
82 #if FW_OBJECT_NAMES == 1 86 this->m_objName.toChar(),
89 this->m_allocate_OutputPort[port].setObjName(portName.
toChar());
99 this->m_deallocate_OutputPort[port].
init();
101 #if FW_OBJECT_NAMES == 1 105 this->m_objName.toChar(),
108 this->m_deallocate_OutputPort[port].setObjName(portName.
toChar());
118 this->m_ready_OutputPort[port].
init();
120 #if FW_OBJECT_NAMES == 1 124 this->m_objName.toChar(),
127 this->m_ready_OutputPort[port].setObjName(portName.
toChar());
137 this->m_recv_OutputPort[port].
init();
139 #if FW_OBJECT_NAMES == 1 143 this->m_objName.toChar(),
146 this->m_recv_OutputPort[port].setObjName(portName.
toChar());
156 this->m_sendReturnOut_OutputPort[port].
init();
158 #if FW_OBJECT_NAMES == 1 162 this->m_objName.toChar(),
165 this->m_sendReturnOut_OutputPort[port].setObjName(portName.
toChar());
179 static_cast<FwAssertArgType>(portNum)
182 return &this->m_recvReturnIn_InputPort[portNum];
190 static_cast<FwAssertArgType>(portNum)
193 return &this->m_send_InputPort[portNum];
208 static_cast<FwAssertArgType>(portNum)
211 this->m_allocate_OutputPort[portNum].
addCallPort(port);
222 static_cast<FwAssertArgType>(portNum)
225 this->m_deallocate_OutputPort[portNum].
addCallPort(port);
236 static_cast<FwAssertArgType>(portNum)
239 this->m_ready_OutputPort[portNum].
addCallPort(port);
250 static_cast<FwAssertArgType>(portNum)
253 this->m_recv_OutputPort[portNum].
addCallPort(port);
264 static_cast<FwAssertArgType>(portNum)
267 this->m_sendReturnOut_OutputPort[portNum].
addCallPort(port);
270 #if FW_PORT_SERIALIZATION 279 Fw::InputSerializePort* port
284 static_cast<FwAssertArgType>(portNum)
287 this->m_deallocate_OutputPort[portNum].registerSerialPort(port);
293 Fw::InputSerializePort* port
298 static_cast<FwAssertArgType>(portNum)
301 this->m_ready_OutputPort[portNum].registerSerialPort(port);
307 Fw::InputSerializePort* port
312 static_cast<FwAssertArgType>(portNum)
315 this->m_recv_OutputPort[portNum].registerSerialPort(port);
321 Fw::InputSerializePort* port
326 static_cast<FwAssertArgType>(portNum)
329 this->m_sendReturnOut_OutputPort[portNum].registerSerialPort(port);
340 Fw::PassiveComponentBase(compName)
410 static_cast<FwAssertArgType>(portNum)
413 return this->m_allocate_OutputPort[portNum].
isConnected();
421 static_cast<FwAssertArgType>(portNum)
424 return this->m_deallocate_OutputPort[portNum].
isConnected();
432 static_cast<FwAssertArgType>(portNum)
435 return this->m_ready_OutputPort[portNum].
isConnected();
443 static_cast<FwAssertArgType>(portNum)
446 return this->m_recv_OutputPort[portNum].
isConnected();
454 static_cast<FwAssertArgType>(portNum)
457 return this->m_sendReturnOut_OutputPort[portNum].
isConnected();
475 static_cast<FwAssertArgType>(portNum)
500 static_cast<FwAssertArgType>(portNum)
528 static_cast<FwAssertArgType>(portNum)
532 this->m_allocate_OutputPort[portNum].isConnected(),
533 static_cast<FwAssertArgType>(portNum)
535 return this->m_allocate_OutputPort[portNum].
invoke(
548 static_cast<FwAssertArgType>(portNum)
552 this->m_deallocate_OutputPort[portNum].isConnected(),
553 static_cast<FwAssertArgType>(portNum)
555 this->m_deallocate_OutputPort[portNum].
invoke(
565 static_cast<FwAssertArgType>(portNum)
569 this->m_ready_OutputPort[portNum].isConnected(),
570 static_cast<FwAssertArgType>(portNum)
572 this->m_ready_OutputPort[portNum].
invoke();
584 static_cast<FwAssertArgType>(portNum)
588 this->m_recv_OutputPort[portNum].isConnected(),
589 static_cast<FwAssertArgType>(portNum)
591 this->m_recv_OutputPort[portNum].
invoke(
606 static_cast<FwAssertArgType>(portNum)
610 this->m_sendReturnOut_OutputPort[portNum].isConnected(),
611 static_cast<FwAssertArgType>(portNum)
613 this->m_sendReturnOut_OutputPort[portNum].
invoke(
629 this->m_guardedPortMutex.
lock();
635 this->m_guardedPortMutex.
unLock();
642 void UdpComponentBase ::
657 void UdpComponentBase ::
666 compPtr->send_handlerBase(
virtual ~UdpComponentBase()
Destroy UdpComponentBase object.
void send_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port send.
void recv_out(FwIndexType portNum, Fw::Buffer &buffer, const Drv::ByteStreamStatus &status)
Invoke output port recv.
void addCallPort(InputByteStreamReadyPort *callPort)
Register an input port.
FwIndexType getNum_allocate_OutputPorts() const
Fw::Buffer invoke(U32 size) const
Invoke a port interface.
bool isConnected_recv_OutputPort(FwIndexType portNum)
void unLock()
unlock the mutex and assert success
void set_recv_OutputPort(FwIndexType portNum, Drv::InputByteStreamDataPort *port)
Connect port to recv[portNum].
void set_sendReturnOut_OutputPort(FwIndexType portNum, Drv::InputByteStreamDataPort *port)
Connect port to sendReturnOut[portNum].
virtual void unLock()
Unlock the guarded mutex.
void init()
Object initializer.
FwIndexType getNum_ready_OutputPorts() const
void addCallPort(InputBufferGetPort *callPort)
Register an input port.
void addCallPort(InputByteStreamDataPort *callPort)
Register an input port.
bool isConnected_deallocate_OutputPort(FwIndexType portNum)
Status returned by the send call.
void invoke(Fw::Buffer &buffer, const Drv::ByteStreamStatus &status) const
Invoke a port interface.
void invoke(Fw::Buffer &fwBuffer) const
Invoke a port interface.
void deallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port deallocate.
void addCallPort(InputBufferSendPort *callPort)
Register an input port.
const char * toChar() const
bool isConnected_ready_OutputPort(FwIndexType portNum)
UdpComponentBase(const char *compName="")
Construct UdpComponentBase object.
virtual void send_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port send.
void set_deallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to deallocate[portNum].
Fw::InputBufferSendPort * get_send_InputPort(FwIndexType portNum)
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
Fw::Buffer allocate_out(FwIndexType portNum, U32 size)
Invoke output port allocate.
bool isConnected_sendReturnOut_OutputPort(FwIndexType portNum)
void init()
Initialization function.
virtual void recvReturnIn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port recvReturnIn.
void set_allocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to allocate[portNum].
bool isConnected_allocate_OutputPort(FwIndexType portNum)
void init()
Initialization function.
FwIndexType getNum_recv_OutputPorts() const
PlatformIndexType FwIndexType
void set_ready_OutputPort(FwIndexType portNum, Drv::InputByteStreamReadyPort *port)
Connect port to ready[portNum].
void invoke() const
Invoke a port interface.
Auto-generated base for Udp component.
Fw::InputBufferSendPort * get_recvReturnIn_InputPort(FwIndexType portNum)
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
void recvReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port recvReturnIn.
void init()
Initialization function.
void ready_out(FwIndexType portNum)
Invoke output port ready.
FwIndexType getNum_deallocate_OutputPorts() const
virtual void lock()
Lock the guarded mutex.
void sendReturnOut_out(FwIndexType portNum, Fw::Buffer &buffer, const Drv::ByteStreamStatus &status)
Invoke output port sendReturnOut.
void init()
Initialization function.
FwIndexType getNum_sendReturnOut_OutputPorts() const
FwIndexType getNum_send_InputPorts() const
FwIndexType getNum_recvReturnIn_InputPorts() const
void lock()
lock the mutex and assert success