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_deallocate_OutputPort[port].
init();
77 #if FW_OBJECT_NAMES == 1
81 this->m_objName.toChar(),
84 this->m_deallocate_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());
139 return &this->m_send_InputPort[portNum];
157 this->m_allocate_OutputPort[portNum].
addCallPort(port);
171 this->m_deallocate_OutputPort[portNum].
addCallPort(port);
185 this->m_ready_OutputPort[portNum].
addCallPort(port);
199 this->m_recv_OutputPort[portNum].
addCallPort(port);
202 #if FW_PORT_SERIALIZATION
211 Fw::InputSerializePort* port
219 this->m_deallocate_OutputPort[portNum].registerSerialPort(port);
225 Fw::InputSerializePort* port
233 this->m_ready_OutputPort[portNum].registerSerialPort(port);
239 Fw::InputSerializePort* port
247 this->m_recv_OutputPort[portNum].registerSerialPort(port);
258 Fw::PassiveComponentBase(compName)
319 return this->m_allocate_OutputPort[portNum].
isConnected();
330 return this->m_deallocate_OutputPort[portNum].
isConnected();
341 return this->m_ready_OutputPort[portNum].
isConnected();
352 return this->m_recv_OutputPort[portNum].
isConnected();
404 return this->m_allocate_OutputPort[portNum].
invoke(
419 this->m_deallocate_OutputPort[portNum].
invoke(
431 this->m_ready_OutputPort[portNum].
invoke();
445 this->m_recv_OutputPort[portNum].
invoke(
461 this->m_guardedPortMutex.
lock();
467 this->m_guardedPortMutex.
unLock();
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
#define PRI_PlatformIntType
PlatformAssertArgType FwAssertArgType
PlatformIndexType FwIndexType
void invoke()
Invoke a port interface.
void addCallPort(InputByteStreamReadyPort *callPort)
Register an input port.
void init()
Initialization function.
void init()
Initialization function.
void addCallPort(InputByteStreamRecvPort *callPort)
Register an input port.
void invoke(Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus)
Invoke a port interface.
Status associated with the received data.
Status returned by the send call.
Auto-generated base for Udp component.
void set_allocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to allocate[portNum].
void deallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port deallocate.
virtual void unLock()
Unlock the guarded mutex.
void recv_out(FwIndexType portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus)
Invoke output port recv.
void ready_out(FwIndexType portNum)
Invoke output port ready.
bool isConnected_deallocate_OutputPort(FwIndexType portNum)
bool isConnected_recv_OutputPort(FwIndexType portNum)
Drv::SendStatus send_handlerBase(FwIndexType portNum, Fw::Buffer &sendBuffer)
Handler base-class function for input port send.
FwIndexType getNum_allocate_OutputPorts() const
void set_ready_OutputPort(FwIndexType portNum, Drv::InputByteStreamReadyPort *port)
Connect port to ready[portNum].
Drv::InputByteStreamSendPort * get_send_InputPort(FwIndexType portNum)
FwIndexType getNum_send_InputPorts() const
Fw::Buffer allocate_out(FwIndexType portNum, U32 size)
Invoke output port allocate.
bool isConnected_ready_OutputPort(FwIndexType portNum)
FwIndexType getNum_deallocate_OutputPorts() const
virtual Drv::SendStatus send_handler(FwIndexType portNum, Fw::Buffer &sendBuffer)=0
Handler for input port send.
virtual ~UdpComponentBase()
Destroy UdpComponentBase object.
FwIndexType getNum_recv_OutputPorts() const
virtual void lock()
Lock the guarded mutex.
FwIndexType getNum_ready_OutputPorts() const
void set_recv_OutputPort(FwIndexType portNum, Drv::InputByteStreamRecvPort *port)
Connect port to recv[portNum].
UdpComponentBase(const char *compName="")
Construct UdpComponentBase object.
bool isConnected_allocate_OutputPort(FwIndexType portNum)
void set_deallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to deallocate[portNum].
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 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