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());
160 static_cast<FwAssertArgType>(portNum)
163 return &this->m_recvReturnIn_InputPort[portNum];
171 static_cast<FwAssertArgType>(portNum)
174 return &this->m_send_InputPort[portNum];
189 static_cast<FwAssertArgType>(portNum)
192 this->m_allocate_OutputPort[portNum].
addCallPort(port);
203 static_cast<FwAssertArgType>(portNum)
206 this->m_deallocate_OutputPort[portNum].
addCallPort(port);
217 static_cast<FwAssertArgType>(portNum)
220 this->m_ready_OutputPort[portNum].
addCallPort(port);
231 static_cast<FwAssertArgType>(portNum)
234 this->m_recv_OutputPort[portNum].
addCallPort(port);
237 #if FW_PORT_SERIALIZATION 246 Fw::InputSerializePort* port
251 static_cast<FwAssertArgType>(portNum)
254 this->m_deallocate_OutputPort[portNum].registerSerialPort(port);
260 Fw::InputSerializePort* port
265 static_cast<FwAssertArgType>(portNum)
268 this->m_ready_OutputPort[portNum].registerSerialPort(port);
274 Fw::InputSerializePort* port
279 static_cast<FwAssertArgType>(portNum)
282 this->m_recv_OutputPort[portNum].registerSerialPort(port);
293 Fw::PassiveComponentBase(compName)
313 static_cast<FwAssertArgType>(portNum)
316 return this->m_allocate_OutputPort[portNum].
isConnected();
324 static_cast<FwAssertArgType>(portNum)
327 return this->m_deallocate_OutputPort[portNum].
isConnected();
335 static_cast<FwAssertArgType>(portNum)
338 return this->m_ready_OutputPort[portNum].
isConnected();
346 static_cast<FwAssertArgType>(portNum)
349 return this->m_recv_OutputPort[portNum].
isConnected();
367 static_cast<FwAssertArgType>(portNum)
392 static_cast<FwAssertArgType>(portNum)
424 static_cast<FwAssertArgType>(portNum)
428 this->m_allocate_OutputPort[portNum].isConnected(),
429 static_cast<FwAssertArgType>(portNum)
431 return this->m_allocate_OutputPort[portNum].
invoke(
444 static_cast<FwAssertArgType>(portNum)
448 this->m_deallocate_OutputPort[portNum].isConnected(),
449 static_cast<FwAssertArgType>(portNum)
451 this->m_deallocate_OutputPort[portNum].
invoke(
461 static_cast<FwAssertArgType>(portNum)
465 this->m_ready_OutputPort[portNum].isConnected(),
466 static_cast<FwAssertArgType>(portNum)
468 this->m_ready_OutputPort[portNum].
invoke();
480 static_cast<FwAssertArgType>(portNum)
484 this->m_recv_OutputPort[portNum].isConnected(),
485 static_cast<FwAssertArgType>(portNum)
487 this->m_recv_OutputPort[portNum].
invoke(
503 this->m_guardedPortMutex.
lock();
509 this->m_guardedPortMutex.
unLock();
516 void UdpComponentBase ::
540 return compPtr->send_handlerBase(
virtual ~UdpComponentBase()
Destroy UdpComponentBase object.
void recv_out(FwIndexType portNum, Fw::Buffer &buffer, const Drv::ByteStreamStatus &status)
Invoke output port recv.
void addCallPort(InputByteStreamReadyPort *callPort)
Register an input port.
static constexpr FwIndexType getNum_ready_OutputPorts()
PlatformSizeType FwSizeType
bool isConnected_recv_OutputPort(FwIndexType portNum)
virtual Drv::ByteStreamStatus send_handler(FwIndexType portNum, Fw::Buffer &sendBuffer)=0
Handler for input port send.
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.
static constexpr FwIndexType getNum_allocate_OutputPorts()
static constexpr FwIndexType getNum_send_InputPorts()
void init()
Object initializer.
void addCallPort(InputBufferGetPort *callPort)
Register an input port.
Fw::Buffer allocate_out(FwIndexType portNum, FwSizeType size)
Invoke output port allocate.
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
Convert to a C-style char*.
bool isConnected_ready_OutputPort(FwIndexType portNum)
UdpComponentBase(const char *compName="")
Construct UdpComponentBase object.
void set_deallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to deallocate[portNum].
static constexpr FwIndexType getNum_recv_OutputPorts()
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
Fw::Buffer invoke(FwSizeType size) const
Invoke a port interface.
Drv::ByteStreamStatus send_handlerBase(FwIndexType portNum, Fw::Buffer &sendBuffer)
Handler base-class function for input port send.
void init()
Initialization function.
static constexpr FwIndexType getNum_recvReturnIn_InputPorts()
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.
Drv::InputByteStreamSendPort * get_send_InputPort(FwIndexType portNum)
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)
void recvReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port recvReturnIn.
static constexpr FwIndexType getNum_deallocate_OutputPorts()
void init()
Initialization function.
void ready_out(FwIndexType portNum)
Invoke output port ready.
virtual void lock()
Lock the guarded mutex.
Implementation of malloc based allocator.
void init()
Initialization function.
void lock()
lock the mutex and assert success