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

#include <Svc/GenericHub/GenericHub.hpp>

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

Public Types

enum  HubType {
  HUB_TYPE_PORT, HUB_TYPE_BUFFER, HUB_TYPE_EVENT, HUB_TYPE_CHANNEL,
  HUB_TYPE_CMD_DISP, HUB_TYPE_CMD_RESP, HUB_TYPE_MAX
}
 

Public Member Functions

 GenericHub (const char *const compName)
 
 ~GenericHub ()
 
- Public Member Functions inherited from Svc::GenericHubComponentBase
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...
 

Additional Inherited Members

- Protected Types inherited from Svc::GenericHubComponentBase
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 inherited from Svc::GenericHubComponentBase
 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
 
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...
 
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 inherited from Svc::GenericHubComponentBase
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 ()
 

Detailed Description

Definition at line 20 of file GenericHub.hpp.

Member Enumeration Documentation

◆ HubType

HubType:

Type of serialized data on the wire. Allows for expanding them on the opposing end.

Enumerator
HUB_TYPE_PORT 

Port type transmission.

HUB_TYPE_BUFFER 

Buffer type transmission.

HUB_TYPE_EVENT 

Event transmission.

HUB_TYPE_CHANNEL 

Telemetry channel type.

HUB_TYPE_CMD_DISP 

Command dispatch type.

HUB_TYPE_CMD_RESP 

Command response type.

HUB_TYPE_MAX 

Definition at line 27 of file GenericHub.hpp.

Constructor & Destructor Documentation

◆ GenericHub()

Svc::GenericHub::GenericHub ( const char *const  compName)

Construct object GenericHub

Parameters
compNameThe component name

Definition at line 27 of file GenericHub.cpp.

◆ ~GenericHub()

Svc::GenericHub::~GenericHub ( )

Destroy object GenericHub

Definition at line 29 of file GenericHub.cpp.


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