10 #if FW_ENABLE_TEXT_LOGGING 32 this->m_send_InputPort[port].
init();
39 #if FW_OBJECT_NAMES == 1 43 this->m_objName.toChar(),
46 this->m_send_InputPort[port].setObjName(portName.
toChar());
56 this->m_allocate_OutputPort[port].
init();
58 #if FW_OBJECT_NAMES == 1 62 this->m_objName.toChar(),
65 this->m_allocate_OutputPort[port].setObjName(portName.
toChar());
75 this->m_dataReturnOut_OutputPort[port].
init();
77 #if FW_OBJECT_NAMES == 1 81 this->m_objName.toChar(),
84 this->m_dataReturnOut_OutputPort[port].setObjName(portName.
toChar());
94 this->m_ready_OutputPort[port].
init();
96 #if FW_OBJECT_NAMES == 1 100 this->m_objName.toChar(),
103 this->m_ready_OutputPort[port].setObjName(portName.
toChar());
113 this->m_recv_OutputPort[port].
init();
115 #if FW_OBJECT_NAMES == 1 119 this->m_objName.toChar(),
122 this->m_recv_OutputPort[port].setObjName(portName.
toChar());
136 static_cast<FwAssertArgType>(portNum)
139 return &this->m_send_InputPort[portNum];
154 static_cast<FwAssertArgType>(portNum)
157 this->m_allocate_OutputPort[portNum].
addCallPort(port);
168 static_cast<FwAssertArgType>(portNum)
171 this->m_dataReturnOut_OutputPort[portNum].
addCallPort(port);
182 static_cast<FwAssertArgType>(portNum)
185 this->m_ready_OutputPort[portNum].
addCallPort(port);
196 static_cast<FwAssertArgType>(portNum)
199 this->m_recv_OutputPort[portNum].
addCallPort(port);
202 #if FW_PORT_SERIALIZATION 211 Fw::InputSerializePort* port
216 static_cast<FwAssertArgType>(portNum)
219 this->m_dataReturnOut_OutputPort[portNum].registerSerialPort(port);
225 Fw::InputSerializePort* port
230 static_cast<FwAssertArgType>(portNum)
233 this->m_ready_OutputPort[portNum].registerSerialPort(port);
239 Fw::InputSerializePort* port
244 static_cast<FwAssertArgType>(portNum)
247 this->m_recv_OutputPort[portNum].registerSerialPort(port);
258 Fw::PassiveComponentBase(compName)
316 static_cast<FwAssertArgType>(portNum)
319 return this->m_allocate_OutputPort[portNum].
isConnected();
327 static_cast<FwAssertArgType>(portNum)
330 return this->m_dataReturnOut_OutputPort[portNum].
isConnected();
338 static_cast<FwAssertArgType>(portNum)
341 return this->m_ready_OutputPort[portNum].
isConnected();
349 static_cast<FwAssertArgType>(portNum)
352 return this->m_recv_OutputPort[portNum].
isConnected();
370 static_cast<FwAssertArgType>(portNum)
398 static_cast<FwAssertArgType>(portNum)
402 this->m_allocate_OutputPort[portNum].isConnected(),
403 static_cast<FwAssertArgType>(portNum)
405 return this->m_allocate_OutputPort[portNum].
invoke(
419 static_cast<FwAssertArgType>(portNum)
423 this->m_dataReturnOut_OutputPort[portNum].isConnected(),
424 static_cast<FwAssertArgType>(portNum)
426 this->m_dataReturnOut_OutputPort[portNum].
invoke(
437 static_cast<FwAssertArgType>(portNum)
441 this->m_ready_OutputPort[portNum].isConnected(),
442 static_cast<FwAssertArgType>(portNum)
444 this->m_ready_OutputPort[portNum].
invoke();
456 static_cast<FwAssertArgType>(portNum)
460 this->m_recv_OutputPort[portNum].isConnected(),
461 static_cast<FwAssertArgType>(portNum)
463 this->m_recv_OutputPort[portNum].
invoke(
479 this->m_guardedPortMutex.
lock();
485 this->m_guardedPortMutex.
unLock();
492 void UdpComponentBase ::
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
void set_dataReturnOut_OutputPort(FwIndexType portNum, Drv::InputByteStreamDataPort *port)
Connect port to dataReturnOut[portNum].
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].
virtual void unLock()
Unlock the guarded mutex.
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &buffer, const Drv::ByteStreamStatus &status)
Invoke output port dataReturnOut.
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.
Status returned by the send call.
FwIndexType getNum_dataReturnOut_OutputPorts() const
void invoke(Fw::Buffer &buffer, const Drv::ByteStreamStatus &status) const
Invoke a port interface.
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.
Fw::InputBufferSendPort * get_send_InputPort(FwIndexType portNum)
bool isConnected_dataReturnOut_OutputPort(FwIndexType portNum)
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
Fw::Buffer allocate_out(FwIndexType portNum, U32 size)
Invoke output port allocate.
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.
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
void init()
Initialization function.
void ready_out(FwIndexType portNum)
Invoke output port ready.
virtual void lock()
Lock the guarded mutex.
void init()
Initialization function.
FwIndexType getNum_send_InputPorts() const
void lock()
lock the mutex and assert success