F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Svc::GenericHubComponentBase Class Referenceabstract

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

#include <Svc/GenericHub/GenericHubComponentAc.hpp>

Inheritance diagram for Svc::GenericHubComponentBase:
Fw::PassiveComponentBase Fw::ObjBase Svc::GenericHub

Public Member Functions

void init (FwEnumStoreType instance=0)
 Initialize GenericHubComponentBase object. More...
 
Fw::InputBufferSendPort * get_bufferIn_InputPort (FwIndexType portNum)
 
Fw::InputBufferSendPort * get_bufferOutReturn_InputPort (FwIndexType portNum)
 
Fw::InputComPort * get_cmdDispIn_InputPort (FwIndexType portNum)
 
Fw::InputCmdResponsePort * get_cmdRespIn_InputPort (FwIndexType portNum)
 
Fw::InputLogPort * get_eventIn_InputPort (FwIndexType portNum)
 
Fw::InputBufferSendPort * get_fromBufferDriver_InputPort (FwIndexType portNum)
 
Fw::InputTlmPort * get_tlmIn_InputPort (FwIndexType portNum)
 
Fw::InputBufferSendPort * get_toBufferDriverReturn_InputPort (FwIndexType portNum)
 
Fw::InputSerializePort * get_serialIn_InputPort (FwIndexType portNum)
 
void set_allocate_OutputPort (FwIndexType portNum, Fw::InputBufferGetPort *port)
 Connect port to allocate[portNum]. More...
 
void set_bufferInReturn_OutputPort (FwIndexType portNum, Fw::InputBufferSendPort *port)
 Connect port to bufferInReturn[portNum]. More...
 
void set_bufferOut_OutputPort (FwIndexType portNum, Fw::InputBufferSendPort *port)
 Connect port to bufferOut[portNum]. More...
 
void set_cmdDispOut_OutputPort (FwIndexType portNum, Fw::InputComPort *port)
 Connect port to cmdDispOut[portNum]. More...
 
void set_cmdRespOut_OutputPort (FwIndexType portNum, Fw::InputCmdResponsePort *port)
 Connect port to cmdRespOut[portNum]. More...
 
void set_deallocate_OutputPort (FwIndexType portNum, Fw::InputBufferSendPort *port)
 Connect port to deallocate[portNum]. More...
 
void set_eventOut_OutputPort (FwIndexType portNum, Fw::InputLogPort *port)
 Connect port to eventOut[portNum]. More...
 
void set_fromBufferDriverReturn_OutputPort (FwIndexType portNum, Fw::InputBufferSendPort *port)
 Connect port to fromBufferDriverReturn[portNum]. More...
 
void set_tlmOut_OutputPort (FwIndexType portNum, Fw::InputTlmPort *port)
 Connect port to tlmOut[portNum]. More...
 
void set_toBufferDriver_OutputPort (FwIndexType portNum, Fw::InputBufferSendPort *port)
 Connect port to toBufferDriver[portNum]. More...
 
- Public Member Functions inherited from Fw::PassiveComponentBase
void setIdBase (const FwIdType)
 Set the ID base. More...
 
FwIdType getIdBase () const
 
virtual void deinit ()
 Deinitialization function. More...
 

Protected Types

enum  {
  NUM_BUFFERIN_INPUT_PORTS = 10, NUM_BUFFEROUTRETURN_INPUT_PORTS = 10, NUM_CMDDISPIN_INPUT_PORTS = 5, NUM_CMDRESPIN_INPUT_PORTS = 5,
  NUM_EVENTIN_INPUT_PORTS = 1, NUM_FROMBUFFERDRIVER_INPUT_PORTS = 1, NUM_TLMIN_INPUT_PORTS = 1, NUM_TOBUFFERDRIVERRETURN_INPUT_PORTS = 1
}
 Enumerations for numbers of typed input ports. More...
 
enum  { NUM_SERIALIN_INPUT_PORTS = 10 }
 Enumerations for numbers of serial input ports. More...
 
enum  {
  NUM_ALLOCATE_OUTPUT_PORTS = 1, NUM_BUFFERINRETURN_OUTPUT_PORTS = 10, NUM_BUFFEROUT_OUTPUT_PORTS = 10, NUM_CMDDISPOUT_OUTPUT_PORTS = 5,
  NUM_CMDRESPOUT_OUTPUT_PORTS = 5, NUM_DEALLOCATE_OUTPUT_PORTS = 1, NUM_EVENTOUT_OUTPUT_PORTS = 1, NUM_FROMBUFFERDRIVERRETURN_OUTPUT_PORTS = 1,
  NUM_TLMOUT_OUTPUT_PORTS = 1, NUM_TOBUFFERDRIVER_OUTPUT_PORTS = 1
}
 Enumerations for numbers of typed output ports. More...
 
enum  { NUM_SERIALOUT_OUTPUT_PORTS = 10 }
 Enumerations for numbers of serial output ports. More...
 

Protected Member Functions

 GenericHubComponentBase (const char *compName="")
 Construct GenericHubComponentBase object. More...
 
virtual ~GenericHubComponentBase ()
 Destroy GenericHubComponentBase object. More...
 
bool isConnected_allocate_OutputPort (FwIndexType portNum) const
 
bool isConnected_bufferInReturn_OutputPort (FwIndexType portNum) const
 
bool isConnected_bufferOut_OutputPort (FwIndexType portNum) const
 
bool isConnected_cmdDispOut_OutputPort (FwIndexType portNum) const
 
bool isConnected_cmdRespOut_OutputPort (FwIndexType portNum) const
 
bool isConnected_deallocate_OutputPort (FwIndexType portNum) const
 
bool isConnected_eventOut_OutputPort (FwIndexType portNum) const
 
bool isConnected_fromBufferDriverReturn_OutputPort (FwIndexType portNum) const
 
bool isConnected_tlmOut_OutputPort (FwIndexType portNum) const
 
bool isConnected_toBufferDriver_OutputPort (FwIndexType portNum) const
 
bool isConnected_serialOut_OutputPort (FwIndexType portNum) const
 
virtual void bufferIn_handler (FwIndexType portNum, Fw::Buffer &fwBuffer)=0
 Handler for input port bufferIn. More...
 
virtual void bufferOutReturn_handler (FwIndexType portNum, Fw::Buffer &fwBuffer)=0
 Handler for input port bufferOutReturn. More...
 
virtual void cmdDispIn_handler (FwIndexType portNum, Fw::ComBuffer &data, U32 context)=0
 Handler for input port cmdDispIn. More...
 
virtual void cmdRespIn_handler (FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)=0
 Handler for input port cmdRespIn. More...
 
virtual void eventIn_handler (FwIndexType portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args)=0
 Handler for input port eventIn. More...
 
virtual void fromBufferDriver_handler (FwIndexType portNum, Fw::Buffer &fwBuffer)=0
 Handler for input port fromBufferDriver. More...
 
virtual void tlmIn_handler (FwIndexType portNum, FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val)=0
 Handler for input port tlmIn. More...
 
virtual void toBufferDriverReturn_handler (FwIndexType portNum, Fw::Buffer &fwBuffer)=0
 Handler for input port toBufferDriverReturn. More...
 
void bufferIn_handlerBase (FwIndexType portNum, Fw::Buffer &fwBuffer)
 Handler base-class function for input port bufferIn. More...
 
void bufferOutReturn_handlerBase (FwIndexType portNum, Fw::Buffer &fwBuffer)
 Handler base-class function for input port bufferOutReturn. More...
 
void cmdDispIn_handlerBase (FwIndexType portNum, Fw::ComBuffer &data, U32 context)
 Handler base-class function for input port cmdDispIn. More...
 
void cmdRespIn_handlerBase (FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)
 Handler base-class function for input port cmdRespIn. More...
 
void eventIn_handlerBase (FwIndexType portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args)
 Handler base-class function for input port eventIn. More...
 
void fromBufferDriver_handlerBase (FwIndexType portNum, Fw::Buffer &fwBuffer)
 Handler base-class function for input port fromBufferDriver. More...
 
void tlmIn_handlerBase (FwIndexType portNum, FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val)
 Handler base-class function for input port tlmIn. More...
 
void toBufferDriverReturn_handlerBase (FwIndexType portNum, Fw::Buffer &fwBuffer)
 Handler base-class function for input port toBufferDriverReturn. More...
 
virtual void serialIn_handler (FwIndexType portNum, Fw::LinearBufferBase &buffer)=0
 Handler for input port serialIn. More...
 
void serialIn_handlerBase (FwIndexType portNum, Fw::LinearBufferBase &buffer)
 Handler base-class function for input port serialIn. More...
 
Fw::Buffer allocate_out (FwIndexType portNum, FwSizeType size) const
 Invoke output port allocate. More...
 
void bufferInReturn_out (FwIndexType portNum, Fw::Buffer &fwBuffer) const
 Invoke output port bufferInReturn. More...
 
void bufferOut_out (FwIndexType portNum, Fw::Buffer &fwBuffer) const
 Invoke output port bufferOut. More...
 
void cmdDispOut_out (FwIndexType portNum, Fw::ComBuffer &data, U32 context) const
 Invoke output port cmdDispOut. More...
 
void cmdRespOut_out (FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response) const
 Invoke output port cmdRespOut. More...
 
void deallocate_out (FwIndexType portNum, Fw::Buffer &fwBuffer) const
 Invoke output port deallocate. More...
 
void eventOut_out (FwIndexType portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args) const
 Invoke output port eventOut. More...
 
void fromBufferDriverReturn_out (FwIndexType portNum, Fw::Buffer &fwBuffer) const
 Invoke output port fromBufferDriverReturn. More...
 
void tlmOut_out (FwIndexType portNum, FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val) const
 Invoke output port tlmOut. More...
 
void toBufferDriver_out (FwIndexType portNum, Fw::Buffer &fwBuffer) const
 Invoke output port toBufferDriver. More...
 
Fw::SerializeStatus serialOut_out (FwIndexType portNum, Fw::LinearBufferBase &buffer)
 Invoke output port serialOut. More...
 
- Protected Member Functions inherited from Fw::PassiveComponentBase
 PassiveComponentBase (const char *name)
 Named constructor. More...
 
virtual ~PassiveComponentBase ()
 Destructor. More...
 
void init (FwEnumStoreType instance)
 Initialization function. More...
 
FwEnumStoreType getInstance () const
 
- Protected Member Functions inherited from Fw::ObjBase
 ObjBase (const char *name)
 ObjBase constructor. More...
 
virtual ~ObjBase ()
 Destructor. More...
 
void init ()
 Object initializer. More...
 

Static Protected Member Functions

static constexpr FwIndexType getNum_bufferIn_InputPorts ()
 
static constexpr FwIndexType getNum_bufferOutReturn_InputPorts ()
 
static constexpr FwIndexType getNum_cmdDispIn_InputPorts ()
 
static constexpr FwIndexType getNum_cmdRespIn_InputPorts ()
 
static constexpr FwIndexType getNum_eventIn_InputPorts ()
 
static constexpr FwIndexType getNum_fromBufferDriver_InputPorts ()
 
static constexpr FwIndexType getNum_tlmIn_InputPorts ()
 
static constexpr FwIndexType getNum_toBufferDriverReturn_InputPorts ()
 
static constexpr FwIndexType getNum_serialIn_InputPorts ()
 
static constexpr FwIndexType getNum_allocate_OutputPorts ()
 
static constexpr FwIndexType getNum_bufferInReturn_OutputPorts ()
 
static constexpr FwIndexType getNum_bufferOut_OutputPorts ()
 
static constexpr FwIndexType getNum_cmdDispOut_OutputPorts ()
 
static constexpr FwIndexType getNum_cmdRespOut_OutputPorts ()
 
static constexpr FwIndexType getNum_deallocate_OutputPorts ()
 
static constexpr FwIndexType getNum_eventOut_OutputPorts ()
 
static constexpr FwIndexType getNum_fromBufferDriverReturn_OutputPorts ()
 
static constexpr FwIndexType getNum_tlmOut_OutputPorts ()
 
static constexpr FwIndexType getNum_toBufferDriver_OutputPorts ()
 
static constexpr FwIndexType getNum_serialOut_OutputPorts ()
 

Friends

class GenericHubTesterBase
 Friend class tester to support autocoded test harness. More...
 
class GenericHubTester
 Friend class tester implementation to support white-box testing. More...
 

Detailed Description

Auto-generated base for GenericHub component.


In F Prime, a hub is a mechanism for implementing logical port connections that physically span two F Prime deployments. The pattern is called a "hub" because any number of logical connections may be multiplexed through a single pair of hubs. For example, a pair of logical connections like this

        A1 --> B1
        A2 --> B2,

where Ai and Bi are component instances in separate deployments A and B, can be implemented using hubs HA and HB like this:

A1 -->--+       +-->-- B1
        |       |
        HA ~~> HB
        |       |
A2 -->--+       +-->-- B2

The notation ~~> represents data transport between deployments, e.g., via shared memory or across a network connection.

The GenericHub component provides a generic capability for implementing a hub. Typically there is a pair of instances of GenericHub, one in each deployment, and each instance is paired with a driver for doing the communication. Sending data between the deployments looks like this:

FSW --> GenericHub --> Driver ~~> Driver --> GenericHub --> FSW

The driver must be a buffer driver, i.e., any combination of component instances that sends and receives Fw.Buffer objects across a network. For example, the driver may be a pair consisting of (1) a ByteStreamDriver component that implements ByteStreamDriverInterface and (2) a ByteStreamBufferAdapter.

The driver is specific to the transport mechanism. The GenericHub may be paired with any driver that conforms to

Definition at line 75 of file GenericHubComponentAc.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of typed input ports.

Enumerator
NUM_BUFFERIN_INPUT_PORTS 
NUM_BUFFEROUTRETURN_INPUT_PORTS 
NUM_CMDDISPIN_INPUT_PORTS 
NUM_CMDRESPIN_INPUT_PORTS 
NUM_EVENTIN_INPUT_PORTS 
NUM_FROMBUFFERDRIVER_INPUT_PORTS 
NUM_TLMIN_INPUT_PORTS 
NUM_TOBUFFERDRIVERRETURN_INPUT_PORTS 

Definition at line 95 of file GenericHubComponentAc.hpp.

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of serial input ports.

Enumerator
NUM_SERIALIN_INPUT_PORTS 

Definition at line 107 of file GenericHubComponentAc.hpp.

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of typed output ports.

Enumerator
NUM_ALLOCATE_OUTPUT_PORTS 
NUM_BUFFERINRETURN_OUTPUT_PORTS 
NUM_BUFFEROUT_OUTPUT_PORTS 
NUM_CMDDISPOUT_OUTPUT_PORTS 
NUM_CMDRESPOUT_OUTPUT_PORTS 
NUM_DEALLOCATE_OUTPUT_PORTS 
NUM_EVENTOUT_OUTPUT_PORTS 
NUM_FROMBUFFERDRIVERRETURN_OUTPUT_PORTS 
NUM_TLMOUT_OUTPUT_PORTS 
NUM_TOBUFFERDRIVER_OUTPUT_PORTS 

Definition at line 112 of file GenericHubComponentAc.hpp.

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of serial output ports.

Enumerator
NUM_SERIALOUT_OUTPUT_PORTS 

Definition at line 126 of file GenericHubComponentAc.hpp.

Constructor & Destructor Documentation

◆ GenericHubComponentBase()

Svc::GenericHubComponentBase::GenericHubComponentBase ( const char *  compName = "")
protected

Construct GenericHubComponentBase object.

Parameters
compNameThe component name

Definition at line 916 of file GenericHubComponentAc.cpp.

◆ ~GenericHubComponentBase()

Svc::GenericHubComponentBase::~GenericHubComponentBase ( )
protectedvirtual

Destroy GenericHubComponentBase object.

Definition at line 923 of file GenericHubComponentAc.cpp.

Member Function Documentation

◆ allocate_out()

Fw::Buffer Svc::GenericHubComponentBase::allocate_out ( FwIndexType  portNum,
FwSizeType  size 
) const
protected

Invoke output port allocate.

Parameters
portNumThe port number
sizeThe requested size

Definition at line 1271 of file GenericHubComponentAc.cpp.

◆ bufferIn_handler()

virtual void Svc::GenericHubComponentBase::bufferIn_handler ( FwIndexType  portNum,
Fw::Buffer &  fwBuffer 
)
protectedpure virtual

Handler for input port bufferIn.

Parameters
portNumThe port number
fwBufferThe buffer

◆ bufferIn_handlerBase()

void Svc::GenericHubComponentBase::bufferIn_handlerBase ( FwIndexType  portNum,
Fw::Buffer &  fwBuffer 
)
protected

Handler base-class function for input port bufferIn.

Parameters
portNumThe port number
fwBufferThe buffer

Definition at line 1072 of file GenericHubComponentAc.cpp.

◆ bufferInReturn_out()

void Svc::GenericHubComponentBase::bufferInReturn_out ( FwIndexType  portNum,
Fw::Buffer &  fwBuffer 
) const
protected

Invoke output port bufferInReturn.

Parameters
portNumThe port number
fwBufferThe buffer

Definition at line 1291 of file GenericHubComponentAc.cpp.

◆ bufferOut_out()

void Svc::GenericHubComponentBase::bufferOut_out ( FwIndexType  portNum,
Fw::Buffer &  fwBuffer 
) const
protected

Invoke output port bufferOut.

Parameters
portNumThe port number
fwBufferThe buffer

Definition at line 1311 of file GenericHubComponentAc.cpp.

◆ bufferOutReturn_handler()

virtual void Svc::GenericHubComponentBase::bufferOutReturn_handler ( FwIndexType  portNum,
Fw::Buffer &  fwBuffer 
)
protectedpure virtual

Handler for input port bufferOutReturn.

Parameters
portNumThe port number
fwBufferThe buffer

◆ bufferOutReturn_handlerBase()

void Svc::GenericHubComponentBase::bufferOutReturn_handlerBase ( FwIndexType  portNum,
Fw::Buffer &  fwBuffer 
)
protected

Handler base-class function for input port bufferOutReturn.

Parameters
portNumThe port number
fwBufferThe buffer

Definition at line 1091 of file GenericHubComponentAc.cpp.

◆ cmdDispIn_handler()

virtual void Svc::GenericHubComponentBase::cmdDispIn_handler ( FwIndexType  portNum,
Fw::ComBuffer &  data,
U32  context 
)
protectedpure virtual

Handler for input port cmdDispIn.

Parameters
portNumThe port number
dataBuffer containing packet data
contextCall context value; meaning chosen by user

◆ cmdDispIn_handlerBase()

void Svc::GenericHubComponentBase::cmdDispIn_handlerBase ( FwIndexType  portNum,
Fw::ComBuffer &  data,
U32  context 
)
protected

Handler base-class function for input port cmdDispIn.

Parameters
portNumThe port number
dataBuffer containing packet data
contextCall context value; meaning chosen by user

Definition at line 1110 of file GenericHubComponentAc.cpp.

◆ cmdDispOut_out()

void Svc::GenericHubComponentBase::cmdDispOut_out ( FwIndexType  portNum,
Fw::ComBuffer &  data,
U32  context 
) const
protected

Invoke output port cmdDispOut.

Parameters
portNumThe port number
dataBuffer containing packet data
contextCall context value; meaning chosen by user

Definition at line 1331 of file GenericHubComponentAc.cpp.

◆ cmdRespIn_handler()

virtual void Svc::GenericHubComponentBase::cmdRespIn_handler ( FwIndexType  portNum,
FwOpcodeType  opCode,
U32  cmdSeq,
const Fw::CmdResponse &  response 
)
protectedpure virtual

Handler for input port cmdRespIn.

Parameters
portNumThe port number
opCodeCommand Op Code
cmdSeqCommand Sequence
responseThe command response argument

◆ cmdRespIn_handlerBase()

void Svc::GenericHubComponentBase::cmdRespIn_handlerBase ( FwIndexType  portNum,
FwOpcodeType  opCode,
U32  cmdSeq,
const Fw::CmdResponse &  response 
)
protected

Handler base-class function for input port cmdRespIn.

Parameters
portNumThe port number
opCodeCommand Op Code
cmdSeqCommand Sequence
responseThe command response argument

Definition at line 1131 of file GenericHubComponentAc.cpp.

◆ cmdRespOut_out()

void Svc::GenericHubComponentBase::cmdRespOut_out ( FwIndexType  portNum,
FwOpcodeType  opCode,
U32  cmdSeq,
const Fw::CmdResponse &  response 
) const
protected

Invoke output port cmdRespOut.

Parameters
portNumThe port number
opCodeCommand Op Code
cmdSeqCommand Sequence
responseThe command response argument

Definition at line 1353 of file GenericHubComponentAc.cpp.

◆ deallocate_out()

void Svc::GenericHubComponentBase::deallocate_out ( FwIndexType  portNum,
Fw::Buffer &  fwBuffer 
) const
protected

Invoke output port deallocate.

Parameters
portNumThe port number
fwBufferThe buffer

Definition at line 1377 of file GenericHubComponentAc.cpp.

◆ eventIn_handler()

virtual void Svc::GenericHubComponentBase::eventIn_handler ( FwIndexType  portNum,
FwEventIdType  id,
Fw::Time &  timeTag,
const Fw::LogSeverity &  severity,
Fw::LogBuffer &  args 
)
protectedpure virtual

Handler for input port eventIn.

Parameters
portNumThe port number
idLog ID
timeTagTime Tag
severityThe severity argument
argsBuffer containing serialized log entry

◆ eventIn_handlerBase()

void Svc::GenericHubComponentBase::eventIn_handlerBase ( FwIndexType  portNum,
FwEventIdType  id,
Fw::Time &  timeTag,
const Fw::LogSeverity &  severity,
Fw::LogBuffer &  args 
)
protected

Handler base-class function for input port eventIn.

Parameters
portNumThe port number
idLog ID
timeTagTime Tag
severityThe severity argument
argsBuffer containing serialized log entry

Definition at line 1154 of file GenericHubComponentAc.cpp.

◆ eventOut_out()

void Svc::GenericHubComponentBase::eventOut_out ( FwIndexType  portNum,
FwEventIdType  id,
Fw::Time &  timeTag,
const Fw::LogSeverity &  severity,
Fw::LogBuffer &  args 
) const
protected

Invoke output port eventOut.

Parameters
portNumThe port number
idLog ID
timeTagTime Tag
severityThe severity argument
argsBuffer containing serialized log entry

Definition at line 1397 of file GenericHubComponentAc.cpp.

◆ fromBufferDriver_handler()

virtual void Svc::GenericHubComponentBase::fromBufferDriver_handler ( FwIndexType  portNum,
Fw::Buffer &  fwBuffer 
)
protectedpure virtual

Handler for input port fromBufferDriver.

Parameters
portNumThe port number
fwBufferThe buffer

◆ fromBufferDriver_handlerBase()

void Svc::GenericHubComponentBase::fromBufferDriver_handlerBase ( FwIndexType  portNum,
Fw::Buffer &  fwBuffer 
)
protected

Handler base-class function for input port fromBufferDriver.

Parameters
portNumThe port number
fwBufferThe buffer

Definition at line 1179 of file GenericHubComponentAc.cpp.

◆ fromBufferDriverReturn_out()

void Svc::GenericHubComponentBase::fromBufferDriverReturn_out ( FwIndexType  portNum,
Fw::Buffer &  fwBuffer 
) const
protected

Invoke output port fromBufferDriverReturn.

Parameters
portNumThe port number
fwBufferThe buffer

Definition at line 1423 of file GenericHubComponentAc.cpp.

◆ get_bufferIn_InputPort()

Fw::InputBufferSendPort * Svc::GenericHubComponentBase::get_bufferIn_InputPort ( FwIndexType  portNum)

Get typed input port at index

Returns
bufferIn[portNum]
Parameters
portNumThe port number

Definition at line 499 of file GenericHubComponentAc.cpp.

◆ get_bufferOutReturn_InputPort()

Fw::InputBufferSendPort * Svc::GenericHubComponentBase::get_bufferOutReturn_InputPort ( FwIndexType  portNum)

Get typed input port at index

Returns
bufferOutReturn[portNum]
Parameters
portNumThe port number

Definition at line 510 of file GenericHubComponentAc.cpp.

◆ get_cmdDispIn_InputPort()

Fw::InputComPort * Svc::GenericHubComponentBase::get_cmdDispIn_InputPort ( FwIndexType  portNum)

Get typed input port at index

Returns
cmdDispIn[portNum]
Parameters
portNumThe port number

Definition at line 521 of file GenericHubComponentAc.cpp.

◆ get_cmdRespIn_InputPort()

Fw::InputCmdResponsePort * Svc::GenericHubComponentBase::get_cmdRespIn_InputPort ( FwIndexType  portNum)

Get typed input port at index

Returns
cmdRespIn[portNum]
Parameters
portNumThe port number

Definition at line 532 of file GenericHubComponentAc.cpp.

◆ get_eventIn_InputPort()

Fw::InputLogPort * Svc::GenericHubComponentBase::get_eventIn_InputPort ( FwIndexType  portNum)

Get typed input port at index

Returns
eventIn[portNum]
Parameters
portNumThe port number

Definition at line 543 of file GenericHubComponentAc.cpp.

◆ get_fromBufferDriver_InputPort()

Fw::InputBufferSendPort * Svc::GenericHubComponentBase::get_fromBufferDriver_InputPort ( FwIndexType  portNum)

Get typed input port at index

Returns
fromBufferDriver[portNum]
Parameters
portNumThe port number

Definition at line 554 of file GenericHubComponentAc.cpp.

◆ get_serialIn_InputPort()

Fw::InputSerializePort * Svc::GenericHubComponentBase::get_serialIn_InputPort ( FwIndexType  portNum)

Get serial input port at index

Returns
serialIn[portNum]
Parameters
portNumThe port number

Definition at line 595 of file GenericHubComponentAc.cpp.

◆ get_tlmIn_InputPort()

Fw::InputTlmPort * Svc::GenericHubComponentBase::get_tlmIn_InputPort ( FwIndexType  portNum)

Get typed input port at index

Returns
tlmIn[portNum]
Parameters
portNumThe port number

Definition at line 565 of file GenericHubComponentAc.cpp.

◆ get_toBufferDriverReturn_InputPort()

Fw::InputBufferSendPort * Svc::GenericHubComponentBase::get_toBufferDriverReturn_InputPort ( FwIndexType  portNum)

Get typed input port at index

Returns
toBufferDriverReturn[portNum]
Parameters
portNumThe port number

Definition at line 576 of file GenericHubComponentAc.cpp.

◆ getNum_allocate_OutputPorts()

static constexpr FwIndexType Svc::GenericHubComponentBase::getNum_allocate_OutputPorts ( )
inlinestaticprotected

Get the number of allocate output ports

Returns
The number of allocate output ports

Definition at line 472 of file GenericHubComponentAc.hpp.

◆ getNum_bufferIn_InputPorts()

static constexpr FwIndexType Svc::GenericHubComponentBase::getNum_bufferIn_InputPorts ( )
inlinestaticprotected

Get the number of bufferIn input ports

Returns
The number of bufferIn input ports

Definition at line 397 of file GenericHubComponentAc.hpp.

◆ getNum_bufferInReturn_OutputPorts()

static constexpr FwIndexType Svc::GenericHubComponentBase::getNum_bufferInReturn_OutputPorts ( )
inlinestaticprotected

Get the number of bufferInReturn output ports

Returns
The number of bufferInReturn output ports

Definition at line 479 of file GenericHubComponentAc.hpp.

◆ getNum_bufferOut_OutputPorts()

static constexpr FwIndexType Svc::GenericHubComponentBase::getNum_bufferOut_OutputPorts ( )
inlinestaticprotected

Get the number of bufferOut output ports

Returns
The number of bufferOut output ports

Definition at line 486 of file GenericHubComponentAc.hpp.

◆ getNum_bufferOutReturn_InputPorts()

static constexpr FwIndexType Svc::GenericHubComponentBase::getNum_bufferOutReturn_InputPorts ( )
inlinestaticprotected

Get the number of bufferOutReturn input ports

Returns
The number of bufferOutReturn input ports

Definition at line 404 of file GenericHubComponentAc.hpp.

◆ getNum_cmdDispIn_InputPorts()

static constexpr FwIndexType Svc::GenericHubComponentBase::getNum_cmdDispIn_InputPorts ( )
inlinestaticprotected

Get the number of cmdDispIn input ports

Returns
The number of cmdDispIn input ports

Definition at line 411 of file GenericHubComponentAc.hpp.

◆ getNum_cmdDispOut_OutputPorts()

static constexpr FwIndexType Svc::GenericHubComponentBase::getNum_cmdDispOut_OutputPorts ( )
inlinestaticprotected

Get the number of cmdDispOut output ports

Returns
The number of cmdDispOut output ports

Definition at line 493 of file GenericHubComponentAc.hpp.

◆ getNum_cmdRespIn_InputPorts()

static constexpr FwIndexType Svc::GenericHubComponentBase::getNum_cmdRespIn_InputPorts ( )
inlinestaticprotected

Get the number of cmdRespIn input ports

Returns
The number of cmdRespIn input ports

Definition at line 418 of file GenericHubComponentAc.hpp.

◆ getNum_cmdRespOut_OutputPorts()

static constexpr FwIndexType Svc::GenericHubComponentBase::getNum_cmdRespOut_OutputPorts ( )
inlinestaticprotected

Get the number of cmdRespOut output ports

Returns
The number of cmdRespOut output ports

Definition at line 500 of file GenericHubComponentAc.hpp.

◆ getNum_deallocate_OutputPorts()

static constexpr FwIndexType Svc::GenericHubComponentBase::getNum_deallocate_OutputPorts ( )
inlinestaticprotected

Get the number of deallocate output ports

Returns
The number of deallocate output ports

Definition at line 507 of file GenericHubComponentAc.hpp.

◆ getNum_eventIn_InputPorts()

static constexpr FwIndexType Svc::GenericHubComponentBase::getNum_eventIn_InputPorts ( )
inlinestaticprotected

Get the number of eventIn input ports

Returns
The number of eventIn input ports

Definition at line 425 of file GenericHubComponentAc.hpp.

◆ getNum_eventOut_OutputPorts()

static constexpr FwIndexType Svc::GenericHubComponentBase::getNum_eventOut_OutputPorts ( )
inlinestaticprotected

Get the number of eventOut output ports

Returns
The number of eventOut output ports

Definition at line 514 of file GenericHubComponentAc.hpp.

◆ getNum_fromBufferDriver_InputPorts()

static constexpr FwIndexType Svc::GenericHubComponentBase::getNum_fromBufferDriver_InputPorts ( )
inlinestaticprotected

Get the number of fromBufferDriver input ports

Returns
The number of fromBufferDriver input ports

Definition at line 432 of file GenericHubComponentAc.hpp.

◆ getNum_fromBufferDriverReturn_OutputPorts()

static constexpr FwIndexType Svc::GenericHubComponentBase::getNum_fromBufferDriverReturn_OutputPorts ( )
inlinestaticprotected

Get the number of fromBufferDriverReturn output ports

Returns
The number of fromBufferDriverReturn output ports

Definition at line 521 of file GenericHubComponentAc.hpp.

◆ getNum_serialIn_InputPorts()

static constexpr FwIndexType Svc::GenericHubComponentBase::getNum_serialIn_InputPorts ( )
inlinestaticprotected

Get the number of serialIn input ports

Returns
The number of serialIn input ports

Definition at line 459 of file GenericHubComponentAc.hpp.

◆ getNum_serialOut_OutputPorts()

static constexpr FwIndexType Svc::GenericHubComponentBase::getNum_serialOut_OutputPorts ( )
inlinestaticprotected

Get the number of serialOut output ports

Returns
The number of serialOut output ports

Definition at line 548 of file GenericHubComponentAc.hpp.

◆ getNum_tlmIn_InputPorts()

static constexpr FwIndexType Svc::GenericHubComponentBase::getNum_tlmIn_InputPorts ( )
inlinestaticprotected

Get the number of tlmIn input ports

Returns
The number of tlmIn input ports

Definition at line 439 of file GenericHubComponentAc.hpp.

◆ getNum_tlmOut_OutputPorts()

static constexpr FwIndexType Svc::GenericHubComponentBase::getNum_tlmOut_OutputPorts ( )
inlinestaticprotected

Get the number of tlmOut output ports

Returns
The number of tlmOut output ports

Definition at line 528 of file GenericHubComponentAc.hpp.

◆ getNum_toBufferDriver_OutputPorts()

static constexpr FwIndexType Svc::GenericHubComponentBase::getNum_toBufferDriver_OutputPorts ( )
inlinestaticprotected

Get the number of toBufferDriver output ports

Returns
The number of toBufferDriver output ports

Definition at line 535 of file GenericHubComponentAc.hpp.

◆ getNum_toBufferDriverReturn_InputPorts()

static constexpr FwIndexType Svc::GenericHubComponentBase::getNum_toBufferDriverReturn_InputPorts ( )
inlinestaticprotected

Get the number of toBufferDriverReturn input ports

Returns
The number of toBufferDriverReturn input ports

Definition at line 446 of file GenericHubComponentAc.hpp.

◆ init()

void Svc::GenericHubComponentBase::init ( FwEnumStoreType  instance = 0)

Initialize GenericHubComponentBase object.

Parameters
instanceThe instance number

Definition at line 21 of file GenericHubComponentAc.cpp.

◆ isConnected_allocate_OutputPort()

bool Svc::GenericHubComponentBase::isConnected_allocate_OutputPort ( FwIndexType  portNum) const
protected

Check whether port allocate is connected

Returns
Whether port allocate is connected
Parameters
portNumThe port number

Definition at line 935 of file GenericHubComponentAc.cpp.

◆ isConnected_bufferInReturn_OutputPort()

bool Svc::GenericHubComponentBase::isConnected_bufferInReturn_OutputPort ( FwIndexType  portNum) const
protected

Check whether port bufferInReturn is connected

Returns
Whether port bufferInReturn is connected
Parameters
portNumThe port number

Definition at line 946 of file GenericHubComponentAc.cpp.

◆ isConnected_bufferOut_OutputPort()

bool Svc::GenericHubComponentBase::isConnected_bufferOut_OutputPort ( FwIndexType  portNum) const
protected

Check whether port bufferOut is connected

Returns
Whether port bufferOut is connected
Parameters
portNumThe port number

Definition at line 957 of file GenericHubComponentAc.cpp.

◆ isConnected_cmdDispOut_OutputPort()

bool Svc::GenericHubComponentBase::isConnected_cmdDispOut_OutputPort ( FwIndexType  portNum) const
protected

Check whether port cmdDispOut is connected

Returns
Whether port cmdDispOut is connected
Parameters
portNumThe port number

Definition at line 968 of file GenericHubComponentAc.cpp.

◆ isConnected_cmdRespOut_OutputPort()

bool Svc::GenericHubComponentBase::isConnected_cmdRespOut_OutputPort ( FwIndexType  portNum) const
protected

Check whether port cmdRespOut is connected

Returns
Whether port cmdRespOut is connected
Parameters
portNumThe port number

Definition at line 979 of file GenericHubComponentAc.cpp.

◆ isConnected_deallocate_OutputPort()

bool Svc::GenericHubComponentBase::isConnected_deallocate_OutputPort ( FwIndexType  portNum) const
protected

Check whether port deallocate is connected

Returns
Whether port deallocate is connected
Parameters
portNumThe port number

Definition at line 990 of file GenericHubComponentAc.cpp.

◆ isConnected_eventOut_OutputPort()

bool Svc::GenericHubComponentBase::isConnected_eventOut_OutputPort ( FwIndexType  portNum) const
protected

Check whether port eventOut is connected

Returns
Whether port eventOut is connected
Parameters
portNumThe port number

Definition at line 1001 of file GenericHubComponentAc.cpp.

◆ isConnected_fromBufferDriverReturn_OutputPort()

bool Svc::GenericHubComponentBase::isConnected_fromBufferDriverReturn_OutputPort ( FwIndexType  portNum) const
protected

Check whether port fromBufferDriverReturn is connected

Returns
Whether port fromBufferDriverReturn is connected
Parameters
portNumThe port number

Definition at line 1012 of file GenericHubComponentAc.cpp.

◆ isConnected_serialOut_OutputPort()

bool Svc::GenericHubComponentBase::isConnected_serialOut_OutputPort ( FwIndexType  portNum) const
protected

Check whether port serialOut is connected

Returns
Whether port serialOut is connected
Parameters
portNumThe port number

Definition at line 1053 of file GenericHubComponentAc.cpp.

◆ isConnected_tlmOut_OutputPort()

bool Svc::GenericHubComponentBase::isConnected_tlmOut_OutputPort ( FwIndexType  portNum) const
protected

Check whether port tlmOut is connected

Returns
Whether port tlmOut is connected
Parameters
portNumThe port number

Definition at line 1023 of file GenericHubComponentAc.cpp.

◆ isConnected_toBufferDriver_OutputPort()

bool Svc::GenericHubComponentBase::isConnected_toBufferDriver_OutputPort ( FwIndexType  portNum) const
protected

Check whether port toBufferDriver is connected

Returns
Whether port toBufferDriver is connected
Parameters
portNumThe port number

Definition at line 1034 of file GenericHubComponentAc.cpp.

◆ serialIn_handler()

virtual void Svc::GenericHubComponentBase::serialIn_handler ( FwIndexType  portNum,
Fw::LinearBufferBase &  buffer 
)
protectedpure virtual

Handler for input port serialIn.

Parameters
portNumThe port number
bufferThe serialization buffer

◆ serialIn_handlerBase()

void Svc::GenericHubComponentBase::serialIn_handlerBase ( FwIndexType  portNum,
Fw::LinearBufferBase &  buffer 
)
protected

Handler base-class function for input port serialIn.

Parameters
portNumThe port number
bufferThe serialization buffer

Definition at line 1246 of file GenericHubComponentAc.cpp.

◆ serialOut_out()

Fw::SerializeStatus Svc::GenericHubComponentBase::serialOut_out ( FwIndexType  portNum,
Fw::LinearBufferBase &  buffer 
)
protected

Invoke output port serialOut.

Parameters
portNumThe port number
bufferThe serialization buffer

Definition at line 1495 of file GenericHubComponentAc.cpp.

◆ set_allocate_OutputPort()

void Svc::GenericHubComponentBase::set_allocate_OutputPort ( FwIndexType  portNum,
Fw::InputBufferGetPort *  port 
)

Connect port to allocate[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 614 of file GenericHubComponentAc.cpp.

◆ set_bufferInReturn_OutputPort()

void Svc::GenericHubComponentBase::set_bufferInReturn_OutputPort ( FwIndexType  portNum,
Fw::InputBufferSendPort *  port 
)

Connect port to bufferInReturn[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 628 of file GenericHubComponentAc.cpp.

◆ set_bufferOut_OutputPort()

void Svc::GenericHubComponentBase::set_bufferOut_OutputPort ( FwIndexType  portNum,
Fw::InputBufferSendPort *  port 
)

Connect port to bufferOut[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 642 of file GenericHubComponentAc.cpp.

◆ set_cmdDispOut_OutputPort()

void Svc::GenericHubComponentBase::set_cmdDispOut_OutputPort ( FwIndexType  portNum,
Fw::InputComPort *  port 
)

Connect port to cmdDispOut[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 656 of file GenericHubComponentAc.cpp.

◆ set_cmdRespOut_OutputPort()

void Svc::GenericHubComponentBase::set_cmdRespOut_OutputPort ( FwIndexType  portNum,
Fw::InputCmdResponsePort *  port 
)

Connect port to cmdRespOut[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 670 of file GenericHubComponentAc.cpp.

◆ set_deallocate_OutputPort()

void Svc::GenericHubComponentBase::set_deallocate_OutputPort ( FwIndexType  portNum,
Fw::InputBufferSendPort *  port 
)

Connect port to deallocate[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 684 of file GenericHubComponentAc.cpp.

◆ set_eventOut_OutputPort()

void Svc::GenericHubComponentBase::set_eventOut_OutputPort ( FwIndexType  portNum,
Fw::InputLogPort *  port 
)

Connect port to eventOut[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 698 of file GenericHubComponentAc.cpp.

◆ set_fromBufferDriverReturn_OutputPort()

void Svc::GenericHubComponentBase::set_fromBufferDriverReturn_OutputPort ( FwIndexType  portNum,
Fw::InputBufferSendPort *  port 
)

Connect port to fromBufferDriverReturn[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 712 of file GenericHubComponentAc.cpp.

◆ set_tlmOut_OutputPort()

void Svc::GenericHubComponentBase::set_tlmOut_OutputPort ( FwIndexType  portNum,
Fw::InputTlmPort *  port 
)

Connect port to tlmOut[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 726 of file GenericHubComponentAc.cpp.

◆ set_toBufferDriver_OutputPort()

void Svc::GenericHubComponentBase::set_toBufferDriver_OutputPort ( FwIndexType  portNum,
Fw::InputBufferSendPort *  port 
)

Connect port to toBufferDriver[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 740 of file GenericHubComponentAc.cpp.

◆ tlmIn_handler()

virtual void Svc::GenericHubComponentBase::tlmIn_handler ( FwIndexType  portNum,
FwChanIdType  id,
Fw::Time &  timeTag,
Fw::TlmBuffer &  val 
)
protectedpure virtual

Handler for input port tlmIn.

Parameters
portNumThe port number
idTelemetry Channel ID
timeTagTime Tag
valBuffer containing serialized telemetry value

◆ tlmIn_handlerBase()

void Svc::GenericHubComponentBase::tlmIn_handlerBase ( FwIndexType  portNum,
FwChanIdType  id,
Fw::Time &  timeTag,
Fw::TlmBuffer &  val 
)
protected

Handler base-class function for input port tlmIn.

Parameters
portNumThe port number
idTelemetry Channel ID
timeTagTime Tag
valBuffer containing serialized telemetry value

Definition at line 1198 of file GenericHubComponentAc.cpp.

◆ tlmOut_out()

void Svc::GenericHubComponentBase::tlmOut_out ( FwIndexType  portNum,
FwChanIdType  id,
Fw::Time &  timeTag,
Fw::TlmBuffer &  val 
) const
protected

Invoke output port tlmOut.

Parameters
portNumThe port number
idTelemetry Channel ID
timeTagTime Tag
valBuffer containing serialized telemetry value

Definition at line 1443 of file GenericHubComponentAc.cpp.

◆ toBufferDriver_out()

void Svc::GenericHubComponentBase::toBufferDriver_out ( FwIndexType  portNum,
Fw::Buffer &  fwBuffer 
) const
protected

Invoke output port toBufferDriver.

Parameters
portNumThe port number
fwBufferThe buffer

Definition at line 1467 of file GenericHubComponentAc.cpp.

◆ toBufferDriverReturn_handler()

virtual void Svc::GenericHubComponentBase::toBufferDriverReturn_handler ( FwIndexType  portNum,
Fw::Buffer &  fwBuffer 
)
protectedpure virtual

Handler for input port toBufferDriverReturn.

Parameters
portNumThe port number
fwBufferThe buffer

◆ toBufferDriverReturn_handlerBase()

void Svc::GenericHubComponentBase::toBufferDriverReturn_handlerBase ( FwIndexType  portNum,
Fw::Buffer &  fwBuffer 
)
protected

Handler base-class function for input port toBufferDriverReturn.

Parameters
portNumThe port number
fwBufferThe buffer

Definition at line 1221 of file GenericHubComponentAc.cpp.

Friends And Related Function Documentation

◆ GenericHubTester

friend class GenericHubTester
friend

Friend class tester implementation to support white-box testing.

Definition at line 86 of file GenericHubComponentAc.hpp.

◆ GenericHubTesterBase

friend class GenericHubTesterBase
friend

Friend class tester to support autocoded test harness.

Definition at line 84 of file GenericHubComponentAc.hpp.


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