7 #ifndef Drv_UdpComponentAc_HPP
8 #define Drv_UdpComponentAc_HPP
109 #if FW_PORT_SERIALIZATION
120 Fw::InputSerializePort* port
126 Fw::InputSerializePort* port
132 Fw::InputSerializePort* port
145 const char* compName =
""
PlatformIndexType FwIndexType
C++-compatible configuration header for fprime configuration.
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
@ NUM_ALLOCATE_OUTPUT_PORTS
@ NUM_DEALLOCATE_OUTPUT_PORTS
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.
friend class UdpComponentBaseFriend
Friend class for white-box testing.
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.