F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
Fw::InputDpRequestPort Class Reference

#include <Fw/Dp/DpRequestPortAc.hpp>

Inheritance diagram for Fw::InputDpRequestPort:
Fw::InputPortBase Fw::PortBase Fw::ObjBase

Public Types

enum  { SERIALIZED_SIZE }
 
typedef void(* CompFuncPtr) (Fw::PassiveComponentBase *callComp, FwIndexType portNum, FwDpIdType id, FwSizeType dataSize)
 The port callback function type. More...
 

Public Member Functions

 InputDpRequestPort ()
 Constructor. More...
 
void init ()
 Initialization function. More...
 
void addCallComp (Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
 Register a component. More...
 
void invoke (FwDpIdType id, FwSizeType dataSize)
 Invoke a port interface. More...
 
- Public Member Functions inherited from Fw::InputPortBase
void setPortNum (NATIVE_INT_TYPE portNum)
 
- Public Member Functions inherited from Fw::PortBase
bool isConnected ()
 

Additional Inherited Members

- Protected Member Functions inherited from Fw::InputPortBase
 InputPortBase ()
 
virtual ~InputPortBase ()
 
- Protected Member Functions inherited from Fw::PortBase
 PortBase ()
 
virtual ~PortBase ()
 
- Protected Member Functions inherited from Fw::ObjBase
 ObjBase (const char *name)
 ObjBase constructor. More...
 
virtual ~ObjBase ()
 Destructor. More...
 
void init ()
 Object initializer. More...
 
- Protected Attributes inherited from Fw::InputPortBase
PassiveComponentBasem_comp
 
NATIVE_INT_TYPE m_portNum
 
- Protected Attributes inherited from Fw::PortBase
Fw::ObjBasem_connObj
 

Detailed Description

Input DpRequest port Port for sending a request for a data product buffer to back a data product container. The request is for a buffer large enough to hold a data product packet with the requested data size.

Definition at line 27 of file DpRequestPortAc.hpp.

Member Typedef Documentation

◆ CompFuncPtr

typedef void(* Fw::InputDpRequestPort::CompFuncPtr) (Fw::PassiveComponentBase *callComp, FwIndexType portNum, FwDpIdType id, FwSizeType dataSize)

The port callback function type.

Definition at line 51 of file DpRequestPortAc.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
SERIALIZED_SIZE 

The size of the serial representations of the port arguments.

Definition at line 37 of file DpRequestPortAc.hpp.

Constructor & Destructor Documentation

◆ InputDpRequestPort()

Fw::InputDpRequestPort::InputDpRequestPort ( )

Constructor.

Definition at line 47 of file DpRequestPortAc.cpp.

Member Function Documentation

◆ addCallComp()

void Fw::InputDpRequestPort::addCallComp ( Fw::PassiveComponentBase callComp,
CompFuncPtr  funcPtr 
)

Register a component.

Parameters
callCompThe containing component
funcPtrThe port callback function

Definition at line 61 of file DpRequestPortAc.cpp.

◆ init()

void Fw::InputDpRequestPort::init ( )
virtual

Initialization function.

Reimplemented from Fw::InputPortBase.

Definition at line 55 of file DpRequestPortAc.cpp.

◆ invoke()

void Fw::InputDpRequestPort::invoke ( FwDpIdType  id,
FwSizeType  dataSize 
)

Invoke a port interface.

Parameters
idThe container ID
dataSizeThe data size of the requested buffer

Definition at line 75 of file DpRequestPortAc.cpp.


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