11#if FW_ENABLE_TEXT_LOGGING
21 void UdpComponentBase ::
30 port < static_cast<PlatformIntType>(this->getNum_send_InputPorts());
33 this->m_send_InputPort[port].init();
34 this->m_send_InputPort[port].addCallComp(
38 this->m_send_InputPort[port].setPortNum(port);
40#if FW_OBJECT_NAMES == 1
49 this->m_send_InputPort[port].setObjName(portName);
56 port < static_cast<PlatformIntType>(this->getNum_allocate_OutputPorts());
59 this->m_allocate_OutputPort[port].init();
61#if FW_OBJECT_NAMES == 1
70 this->m_allocate_OutputPort[port].setObjName(portName);
77 port < static_cast<PlatformIntType>(this->getNum_deallocate_OutputPorts());
80 this->m_deallocate_OutputPort[port].init();
82#if FW_OBJECT_NAMES == 1
91 this->m_deallocate_OutputPort[port].setObjName(portName);
98 port < static_cast<PlatformIntType>(this->getNum_ready_OutputPorts());
101 this->m_ready_OutputPort[port].init();
103#if FW_OBJECT_NAMES == 1
112 this->m_ready_OutputPort[port].setObjName(portName);
119 port < static_cast<PlatformIntType>(this->getNum_recv_OutputPorts());
122 this->m_recv_OutputPort[port].init();
124#if FW_OBJECT_NAMES == 1
133 this->m_recv_OutputPort[port].setObjName(portName);
21 void UdpComponentBase :: {
…}
146 portNum < this->getNum_send_InputPorts(),
150 return &this->m_send_InputPort[portNum];
157 void UdpComponentBase ::
158 set_allocate_OutputPort(
164 portNum < this->getNum_allocate_OutputPorts(),
168 this->m_allocate_OutputPort[portNum].addCallPort(port);
157 void UdpComponentBase :: {
…}
171 void UdpComponentBase ::
172 set_deallocate_OutputPort(
178 portNum < this->getNum_deallocate_OutputPorts(),
182 this->m_deallocate_OutputPort[portNum].addCallPort(port);
171 void UdpComponentBase :: {
…}
185 void UdpComponentBase ::
186 set_ready_OutputPort(
192 portNum < this->getNum_ready_OutputPorts(),
196 this->m_ready_OutputPort[portNum].addCallPort(port);
185 void UdpComponentBase :: {
…}
199 void UdpComponentBase ::
206 portNum < this->getNum_recv_OutputPorts(),
210 this->m_recv_OutputPort[portNum].addCallPort(port);
199 void UdpComponentBase :: {
…}
213#if FW_PORT_SERIALIZATION
219 void UdpComponentBase ::
220 set_deallocate_OutputPort(
222 Fw::InputSerializePort* port
226 portNum < this->getNum_deallocate_OutputPorts(),
230 this->m_deallocate_OutputPort[portNum].registerSerialPort(port);
233 void UdpComponentBase ::
234 set_ready_OutputPort(
236 Fw::InputSerializePort* port
240 portNum < this->getNum_ready_OutputPorts(),
244 this->m_ready_OutputPort[portNum].registerSerialPort(port);
247 void UdpComponentBase ::
250 Fw::InputSerializePort* port
254 portNum < this->getNum_recv_OutputPorts(),
258 this->m_recv_OutputPort[portNum].registerSerialPort(port);
268 UdpComponentBase(
const char* compName) :
269 Fw::PassiveComponentBase(compName)
267 UdpComponentBase :: {
…}
274 UdpComponentBase :: {
…}
285 getNum_send_InputPorts()
const
295 getNum_allocate_OutputPorts()
const
301 getNum_deallocate_OutputPorts()
const
307 getNum_ready_OutputPorts()
const
313 getNum_recv_OutputPorts()
const
322 bool UdpComponentBase ::
326 portNum < this->getNum_allocate_OutputPorts(),
330 return this->m_allocate_OutputPort[portNum].isConnected();
322 bool UdpComponentBase :: {
…}
333 bool UdpComponentBase ::
337 portNum < this->getNum_deallocate_OutputPorts(),
341 return this->m_deallocate_OutputPort[portNum].isConnected();
333 bool UdpComponentBase :: {
…}
344 bool UdpComponentBase ::
348 portNum < this->getNum_ready_OutputPorts(),
352 return this->m_ready_OutputPort[portNum].isConnected();
344 bool UdpComponentBase :: {
…}
355 bool UdpComponentBase ::
359 portNum < this->getNum_recv_OutputPorts(),
363 return this->m_recv_OutputPort[portNum].isConnected();
355 bool UdpComponentBase :: {
…}
380 portNum < this->getNum_send_InputPorts(),
390 retVal = this->send_handler(
412 portNum < this->getNum_allocate_OutputPorts(),
415 return this->m_allocate_OutputPort[portNum].invoke(
420 void UdpComponentBase ::
427 portNum < this->getNum_deallocate_OutputPorts(),
430 this->m_deallocate_OutputPort[portNum].invoke(
420 void UdpComponentBase :: {
…}
435 void UdpComponentBase ::
439 portNum < this->getNum_ready_OutputPorts(),
442 this->m_ready_OutputPort[portNum].invoke();
435 void UdpComponentBase :: {
…}
445 void UdpComponentBase ::
453 portNum < this->getNum_recv_OutputPorts(),
456 this->m_recv_OutputPort[portNum].invoke(
445 void UdpComponentBase :: {
…}
469 void UdpComponentBase ::
472 this->m_guardedPortMutex.lock();
469 void UdpComponentBase :: {
…}
475 void UdpComponentBase ::
478 this->m_guardedPortMutex.unLock();
475 void UdpComponentBase :: {
…}
PlatformIntType NATIVE_INT_TYPE
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
int PlatformIntType
DefaultTypes.hpp provides fallback defaults for the platform types.
#define PRI_PlatformIntType
PlatformAssertArgType FwAssertArgType
Status associated with the received data.
Status returned by the send call.
Auto-generated base for Udp component.
Drv::SendStatus send_handlerBase(NATIVE_INT_TYPE portNum, Fw::Buffer &sendBuffer)
Handler base-class function for input port send.
void init()
Object initializer.