F´ Flight Software - C/C++ Documentation devel
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
Drv::UdpComponentBase Class Referenceabstract

Auto-generated base for Udp component. More...

#include <Drv/Udp/UdpComponentAc.hpp>

Inheritance diagram for Drv::UdpComponentBase:
Fw::PassiveComponentBase Fw::ObjBase Drv::UdpComponentImpl

Public Member Functions

void init (NATIVE_INT_TYPE instance=0)
 Initialize UdpComponentBase object.
 
Drv::InputByteStreamSendPortget_send_InputPort (NATIVE_INT_TYPE portNum)
 
void set_allocate_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputBufferGetPort *port)
 Connect port to allocate[portNum].
 
void set_deallocate_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputBufferSendPort *port)
 Connect port to deallocate[portNum].
 
void set_ready_OutputPort (NATIVE_INT_TYPE portNum, Drv::InputByteStreamReadyPort *port)
 Connect port to ready[portNum].
 
void set_recv_OutputPort (NATIVE_INT_TYPE portNum, Drv::InputByteStreamRecvPort *port)
 Connect port to recv[portNum].
 
- Public Member Functions inherited from Fw::PassiveComponentBase
void setIdBase (const U32)
 Set the ID base.
 
U32 getIdBase () const
 

Protected Types

enum  { NUM_SEND_INPUT_PORTS = 1 }
 Enumerations for numbers of typed input ports. More...
 
enum  { NUM_ALLOCATE_OUTPUT_PORTS = 1 , NUM_DEALLOCATE_OUTPUT_PORTS = 1 , NUM_READY_OUTPUT_PORTS = 1 , NUM_RECV_OUTPUT_PORTS = 1 }
 Enumerations for numbers of typed output ports. More...
 

Protected Member Functions

 UdpComponentBase (const char *compName="")
 Construct UdpComponentBase object.
 
virtual ~UdpComponentBase ()
 Destroy UdpComponentBase object.
 
NATIVE_INT_TYPE getNum_send_InputPorts () const
 
NATIVE_INT_TYPE getNum_allocate_OutputPorts () const
 
NATIVE_INT_TYPE getNum_deallocate_OutputPorts () const
 
NATIVE_INT_TYPE getNum_ready_OutputPorts () const
 
NATIVE_INT_TYPE getNum_recv_OutputPorts () const
 
bool isConnected_allocate_OutputPort (NATIVE_INT_TYPE portNum)
 
bool isConnected_deallocate_OutputPort (NATIVE_INT_TYPE portNum)
 
bool isConnected_ready_OutputPort (NATIVE_INT_TYPE portNum)
 
bool isConnected_recv_OutputPort (NATIVE_INT_TYPE portNum)
 
virtual Drv::SendStatus send_handler (NATIVE_INT_TYPE portNum, Fw::Buffer &sendBuffer)=0
 Handler for input port send.
 
Drv::SendStatus send_handlerBase (NATIVE_INT_TYPE portNum, Fw::Buffer &sendBuffer)
 Handler base-class function for input port send.
 
Fw::Buffer allocate_out (NATIVE_INT_TYPE portNum, U32 size)
 Invoke output port allocate.
 
void deallocate_out (NATIVE_INT_TYPE portNum, Fw::Buffer &fwBuffer)
 Invoke output port deallocate.
 
void ready_out (NATIVE_INT_TYPE portNum)
 Invoke output port ready.
 
void recv_out (NATIVE_INT_TYPE portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus)
 Invoke output port recv.
 
virtual void lock ()
 Lock the guarded mutex.
 
virtual void unLock ()
 Unlock the guarded mutex.
 
- Protected Member Functions inherited from Fw::PassiveComponentBase
 PassiveComponentBase (const char *name)
 Named constructor.
 
virtual ~PassiveComponentBase ()
 Destructor.
 
void init (NATIVE_INT_TYPE instance)
 Initialization function.
 
NATIVE_INT_TYPE getInstance () const
 
- Protected Member Functions inherited from Fw::ObjBase
 ObjBase (const char *name)
 ObjBase constructor.
 
virtual ~ObjBase ()
 Destructor.
 
void init ()
 Object initializer.
 

Friends

class UdpComponentBaseFriend
 Friend class for white-box testing.
 

Detailed Description

Auto-generated base for Udp component.

Definition at line 25 of file UdpComponentAc.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of typed input ports.

Enumerator
NUM_SEND_INPUT_PORTS 

Definition at line 43 of file UdpComponentAc.hpp.

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of typed output ports.

Enumerator
NUM_ALLOCATE_OUTPUT_PORTS 
NUM_DEALLOCATE_OUTPUT_PORTS 
NUM_READY_OUTPUT_PORTS 
NUM_RECV_OUTPUT_PORTS 

Definition at line 48 of file UdpComponentAc.hpp.

Constructor & Destructor Documentation

◆ UdpComponentBase()

Drv::UdpComponentBase::UdpComponentBase ( const char * compName = "")
protected

Construct UdpComponentBase object.

Parameters
compNameThe component name

Definition at line 267 of file UdpComponentAc.cpp.

◆ ~UdpComponentBase()

Drv::UdpComponentBase::~UdpComponentBase ( )
protectedvirtual

Destroy UdpComponentBase object.

Definition at line 274 of file UdpComponentAc.cpp.

Member Function Documentation

◆ allocate_out()

Fw::Buffer Drv::UdpComponentBase::allocate_out ( NATIVE_INT_TYPE portNum,
U32 size )
protected

Invoke output port allocate.

Parameters
portNumThe port number

Definition at line 405 of file UdpComponentAc.cpp.

◆ deallocate_out()

void Drv::UdpComponentBase::deallocate_out ( NATIVE_INT_TYPE portNum,
Fw::Buffer & fwBuffer )
protected

Invoke output port deallocate.

Parameters
portNumThe port number

Definition at line 420 of file UdpComponentAc.cpp.

◆ get_send_InputPort()

Drv::InputByteStreamSendPort * Drv::UdpComponentBase::get_send_InputPort ( NATIVE_INT_TYPE portNum)

Get typed input port at index

Returns
send[portNum]
Parameters
portNumThe port number

Definition at line 142 of file UdpComponentAc.cpp.

◆ getNum_allocate_OutputPorts()

NATIVE_INT_TYPE Drv::UdpComponentBase::getNum_allocate_OutputPorts ( ) const
protected

Get the number of allocate output ports

Returns
The number of allocate output ports

Definition at line 294 of file UdpComponentAc.cpp.

◆ getNum_deallocate_OutputPorts()

NATIVE_INT_TYPE Drv::UdpComponentBase::getNum_deallocate_OutputPorts ( ) const
protected

Get the number of deallocate output ports

Returns
The number of deallocate output ports

Definition at line 300 of file UdpComponentAc.cpp.

◆ getNum_ready_OutputPorts()

NATIVE_INT_TYPE Drv::UdpComponentBase::getNum_ready_OutputPorts ( ) const
protected

Get the number of ready output ports

Returns
The number of ready output ports

Definition at line 306 of file UdpComponentAc.cpp.

◆ getNum_recv_OutputPorts()

NATIVE_INT_TYPE Drv::UdpComponentBase::getNum_recv_OutputPorts ( ) const
protected

Get the number of recv output ports

Returns
The number of recv output ports

Definition at line 312 of file UdpComponentAc.cpp.

◆ getNum_send_InputPorts()

NATIVE_INT_TYPE Drv::UdpComponentBase::getNum_send_InputPorts ( ) const
protected

Get the number of send input ports

Returns
The number of send input ports

Definition at line 284 of file UdpComponentAc.cpp.

◆ init()

void Drv::UdpComponentBase::init ( NATIVE_INT_TYPE instance = 0)

Initialize UdpComponentBase object.

Parameters
instanceThe instance number

Definition at line 21 of file UdpComponentAc.cpp.

◆ isConnected_allocate_OutputPort()

bool Drv::UdpComponentBase::isConnected_allocate_OutputPort ( NATIVE_INT_TYPE portNum)
protected

Check whether port allocate is connected

Returns
Whether port allocate is connected
Parameters
portNumThe port number

Definition at line 322 of file UdpComponentAc.cpp.

◆ isConnected_deallocate_OutputPort()

bool Drv::UdpComponentBase::isConnected_deallocate_OutputPort ( NATIVE_INT_TYPE portNum)
protected

Check whether port deallocate is connected

Returns
Whether port deallocate is connected
Parameters
portNumThe port number

Definition at line 333 of file UdpComponentAc.cpp.

◆ isConnected_ready_OutputPort()

bool Drv::UdpComponentBase::isConnected_ready_OutputPort ( NATIVE_INT_TYPE portNum)
protected

Check whether port ready is connected

Returns
Whether port ready is connected
Parameters
portNumThe port number

Definition at line 344 of file UdpComponentAc.cpp.

◆ isConnected_recv_OutputPort()

bool Drv::UdpComponentBase::isConnected_recv_OutputPort ( NATIVE_INT_TYPE portNum)
protected

Check whether port recv is connected

Returns
Whether port recv is connected
Parameters
portNumThe port number

Definition at line 355 of file UdpComponentAc.cpp.

◆ lock()

void Drv::UdpComponentBase::lock ( )
protectedvirtual

Lock the guarded mutex.

Definition at line 469 of file UdpComponentAc.cpp.

◆ ready_out()

void Drv::UdpComponentBase::ready_out ( NATIVE_INT_TYPE portNum)
protected

Invoke output port ready.

Parameters
portNumThe port number

Definition at line 435 of file UdpComponentAc.cpp.

◆ recv_out()

void Drv::UdpComponentBase::recv_out ( NATIVE_INT_TYPE portNum,
Fw::Buffer & recvBuffer,
const Drv::RecvStatus & recvStatus )
protected

Invoke output port recv.

Parameters
portNumThe port number

Definition at line 445 of file UdpComponentAc.cpp.

◆ send_handler()

virtual Drv::SendStatus Drv::UdpComponentBase::send_handler ( NATIVE_INT_TYPE portNum,
Fw::Buffer & sendBuffer )
protectedpure virtual

Handler for input port send.

Parameters
portNumThe port number
sendBufferData to send

◆ send_handlerBase()

Drv::SendStatus Drv::UdpComponentBase::send_handlerBase ( NATIVE_INT_TYPE portNum,
Fw::Buffer & sendBuffer )
protected

Handler base-class function for input port send.

Parameters
portNumThe port number
sendBufferData to send

Definition at line 372 of file UdpComponentAc.cpp.

◆ set_allocate_OutputPort()

void Drv::UdpComponentBase::set_allocate_OutputPort ( NATIVE_INT_TYPE portNum,
Fw::InputBufferGetPort * port )

Connect port to allocate[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 157 of file UdpComponentAc.cpp.

◆ set_deallocate_OutputPort()

void Drv::UdpComponentBase::set_deallocate_OutputPort ( NATIVE_INT_TYPE portNum,
Fw::InputBufferSendPort * port )

Connect port to deallocate[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 171 of file UdpComponentAc.cpp.

◆ set_ready_OutputPort()

void Drv::UdpComponentBase::set_ready_OutputPort ( NATIVE_INT_TYPE portNum,
Drv::InputByteStreamReadyPort * port )

Connect port to ready[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 185 of file UdpComponentAc.cpp.

◆ set_recv_OutputPort()

void Drv::UdpComponentBase::set_recv_OutputPort ( NATIVE_INT_TYPE portNum,
Drv::InputByteStreamRecvPort * port )

Connect port to recv[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 199 of file UdpComponentAc.cpp.

◆ unLock()

void Drv::UdpComponentBase::unLock ( )
protectedvirtual

Unlock the guarded mutex.

Definition at line 475 of file UdpComponentAc.cpp.

Friends And Related Symbol Documentation

◆ UdpComponentBaseFriend

friend class UdpComponentBaseFriend
friend

Friend class for white-box testing.

Definition at line 34 of file UdpComponentAc.hpp.


The documentation for this class was generated from the following files: