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

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

#include <Svc/CmdSplitter/CmdSplitterComponentAc.hpp>

Inheritance diagram for Svc::CmdSplitterComponentBase:
Fw::PassiveComponentBase Fw::ObjBase Svc::CmdSplitter

Public Member Functions

void init (FwEnumStoreType instance=0)
 Initialize CmdSplitterComponentBase object. More...
 
Fw::InputComPortget_CmdBuff_InputPort (FwIndexType portNum)
 
Fw::InputCmdResponsePortget_seqCmdStatus_InputPort (FwIndexType portNum)
 
void set_LocalCmd_OutputPort (FwIndexType portNum, Fw::InputComPort *port)
 Connect port to LocalCmd[portNum]. More...
 
void set_RemoteCmd_OutputPort (FwIndexType portNum, Fw::InputComPort *port)
 Connect port to RemoteCmd[portNum]. More...
 
void set_forwardSeqCmdStatus_OutputPort (FwIndexType portNum, Fw::InputCmdResponsePort *port)
 Connect port to forwardSeqCmdStatus[portNum]. More...
 
- Public Member Functions inherited from Fw::PassiveComponentBase
void setIdBase (const FwIdType)
 Set the ID base. More...
 
FwIdType getIdBase () const
 

Protected Types

enum  { NUM_CMDBUFF_INPUT_PORTS = 5, NUM_SEQCMDSTATUS_INPUT_PORTS = 5 }
 Enumerations for numbers of typed input ports. More...
 
enum  { NUM_LOCALCMD_OUTPUT_PORTS = 5, NUM_REMOTECMD_OUTPUT_PORTS = 5, NUM_FORWARDSEQCMDSTATUS_OUTPUT_PORTS = 5 }
 Enumerations for numbers of typed output ports. More...
 

Protected Member Functions

 CmdSplitterComponentBase (const char *compName="")
 Construct CmdSplitterComponentBase object. More...
 
virtual ~CmdSplitterComponentBase ()
 Destroy CmdSplitterComponentBase object. More...
 
FwIndexType getNum_CmdBuff_InputPorts () const
 
FwIndexType getNum_seqCmdStatus_InputPorts () const
 
FwIndexType getNum_LocalCmd_OutputPorts () const
 
FwIndexType getNum_RemoteCmd_OutputPorts () const
 
FwIndexType getNum_forwardSeqCmdStatus_OutputPorts () const
 
bool isConnected_LocalCmd_OutputPort (FwIndexType portNum)
 
bool isConnected_RemoteCmd_OutputPort (FwIndexType portNum)
 
bool isConnected_forwardSeqCmdStatus_OutputPort (FwIndexType portNum)
 
virtual void CmdBuff_handler (FwIndexType portNum, Fw::ComBuffer &data, U32 context)=0
 Handler for input port CmdBuff. More...
 
virtual void seqCmdStatus_handler (FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)=0
 Handler for input port seqCmdStatus. More...
 
void CmdBuff_handlerBase (FwIndexType portNum, Fw::ComBuffer &data, U32 context)
 Handler base-class function for input port CmdBuff. More...
 
void seqCmdStatus_handlerBase (FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)
 Handler base-class function for input port seqCmdStatus. More...
 
void LocalCmd_out (FwIndexType portNum, Fw::ComBuffer &data, U32 context)
 Invoke output port LocalCmd. More...
 
void RemoteCmd_out (FwIndexType portNum, Fw::ComBuffer &data, U32 context)
 Invoke output port RemoteCmd. More...
 
void forwardSeqCmdStatus_out (FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)
 Invoke output port forwardSeqCmdStatus. 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...
 

Friends

class CmdSplitterTesterBase
 Friend class tester to support autocoded test harness. More...
 
class CmdSplitterTester
 Friend class tester implementation to support white-box testing. More...
 

Detailed Description

Auto-generated base for CmdSplitter component.

A component for splitting incoming commands to local or remote

Definition at line 23 of file CmdSplitterComponentAc.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of typed input ports.

Enumerator
NUM_CMDBUFF_INPUT_PORTS 
NUM_SEQCMDSTATUS_INPUT_PORTS 

Definition at line 43 of file CmdSplitterComponentAc.hpp.

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of typed output ports.

Enumerator
NUM_LOCALCMD_OUTPUT_PORTS 
NUM_REMOTECMD_OUTPUT_PORTS 
NUM_FORWARDSEQCMDSTATUS_OUTPUT_PORTS 

Definition at line 49 of file CmdSplitterComponentAc.hpp.

Constructor & Destructor Documentation

◆ CmdSplitterComponentBase()

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

Construct CmdSplitterComponentBase object.

Parameters
compNameThe component name

Definition at line 259 of file CmdSplitterComponentAc.cpp.

◆ ~CmdSplitterComponentBase()

Svc::CmdSplitterComponentBase::~CmdSplitterComponentBase ( )
protectedvirtual

Destroy CmdSplitterComponentBase object.

Definition at line 266 of file CmdSplitterComponentAc.cpp.

Member Function Documentation

◆ CmdBuff_handler()

virtual void Svc::CmdSplitterComponentBase::CmdBuff_handler ( FwIndexType  portNum,
Fw::ComBuffer data,
U32  context 
)
protectedpure virtual

Handler for input port CmdBuff.

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

◆ CmdBuff_handlerBase()

void Svc::CmdSplitterComponentBase::CmdBuff_handlerBase ( FwIndexType  portNum,
Fw::ComBuffer data,
U32  context 
)
protected

Handler base-class function for input port CmdBuff.

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

Definition at line 353 of file CmdSplitterComponentAc.cpp.

◆ forwardSeqCmdStatus_out()

void Svc::CmdSplitterComponentBase::forwardSeqCmdStatus_out ( FwIndexType  portNum,
FwOpcodeType  opCode,
U32  cmdSeq,
const Fw::CmdResponse response 
)
protected

Invoke output port forwardSeqCmdStatus.

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

Definition at line 445 of file CmdSplitterComponentAc.cpp.

◆ get_CmdBuff_InputPort()

Fw::InputComPort * Svc::CmdSplitterComponentBase::get_CmdBuff_InputPort ( FwIndexType  portNum)

Get typed input port at index

Returns
CmdBuff[portNum]
Parameters
portNumThe port number

Definition at line 137 of file CmdSplitterComponentAc.cpp.

◆ get_seqCmdStatus_InputPort()

Fw::InputCmdResponsePort * Svc::CmdSplitterComponentBase::get_seqCmdStatus_InputPort ( FwIndexType  portNum)

Get typed input port at index

Returns
seqCmdStatus[portNum]
Parameters
portNumThe port number

Definition at line 148 of file CmdSplitterComponentAc.cpp.

◆ getNum_CmdBuff_InputPorts()

FwIndexType Svc::CmdSplitterComponentBase::getNum_CmdBuff_InputPorts ( ) const
protected

Get the number of CmdBuff input ports

Returns
The number of CmdBuff input ports

Definition at line 276 of file CmdSplitterComponentAc.cpp.

◆ getNum_forwardSeqCmdStatus_OutputPorts()

FwIndexType Svc::CmdSplitterComponentBase::getNum_forwardSeqCmdStatus_OutputPorts ( ) const
protected

Get the number of forwardSeqCmdStatus output ports

Returns
The number of forwardSeqCmdStatus output ports

Definition at line 304 of file CmdSplitterComponentAc.cpp.

◆ getNum_LocalCmd_OutputPorts()

FwIndexType Svc::CmdSplitterComponentBase::getNum_LocalCmd_OutputPorts ( ) const
protected

Get the number of LocalCmd output ports

Returns
The number of LocalCmd output ports

Definition at line 292 of file CmdSplitterComponentAc.cpp.

◆ getNum_RemoteCmd_OutputPorts()

FwIndexType Svc::CmdSplitterComponentBase::getNum_RemoteCmd_OutputPorts ( ) const
protected

Get the number of RemoteCmd output ports

Returns
The number of RemoteCmd output ports

Definition at line 298 of file CmdSplitterComponentAc.cpp.

◆ getNum_seqCmdStatus_InputPorts()

FwIndexType Svc::CmdSplitterComponentBase::getNum_seqCmdStatus_InputPorts ( ) const
protected

Get the number of seqCmdStatus input ports

Returns
The number of seqCmdStatus input ports

Definition at line 282 of file CmdSplitterComponentAc.cpp.

◆ init()

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

Initialize CmdSplitterComponentBase object.

Parameters
instanceThe instance number

Definition at line 21 of file CmdSplitterComponentAc.cpp.

◆ isConnected_forwardSeqCmdStatus_OutputPort()

bool Svc::CmdSplitterComponentBase::isConnected_forwardSeqCmdStatus_OutputPort ( FwIndexType  portNum)
protected

Check whether port forwardSeqCmdStatus is connected

Returns
Whether port forwardSeqCmdStatus is connected
Parameters
portNumThe port number

Definition at line 336 of file CmdSplitterComponentAc.cpp.

◆ isConnected_LocalCmd_OutputPort()

bool Svc::CmdSplitterComponentBase::isConnected_LocalCmd_OutputPort ( FwIndexType  portNum)
protected

Check whether port LocalCmd is connected

Returns
Whether port LocalCmd is connected
Parameters
portNumThe port number

Definition at line 314 of file CmdSplitterComponentAc.cpp.

◆ isConnected_RemoteCmd_OutputPort()

bool Svc::CmdSplitterComponentBase::isConnected_RemoteCmd_OutputPort ( FwIndexType  portNum)
protected

Check whether port RemoteCmd is connected

Returns
Whether port RemoteCmd is connected
Parameters
portNumThe port number

Definition at line 325 of file CmdSplitterComponentAc.cpp.

◆ LocalCmd_out()

void Svc::CmdSplitterComponentBase::LocalCmd_out ( FwIndexType  portNum,
Fw::ComBuffer data,
U32  context 
)
protected

Invoke output port LocalCmd.

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

Definition at line 401 of file CmdSplitterComponentAc.cpp.

◆ RemoteCmd_out()

void Svc::CmdSplitterComponentBase::RemoteCmd_out ( FwIndexType  portNum,
Fw::ComBuffer data,
U32  context 
)
protected

Invoke output port RemoteCmd.

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

Definition at line 423 of file CmdSplitterComponentAc.cpp.

◆ seqCmdStatus_handler()

virtual void Svc::CmdSplitterComponentBase::seqCmdStatus_handler ( FwIndexType  portNum,
FwOpcodeType  opCode,
U32  cmdSeq,
const Fw::CmdResponse response 
)
protectedpure virtual

Handler for input port seqCmdStatus.

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

◆ seqCmdStatus_handlerBase()

void Svc::CmdSplitterComponentBase::seqCmdStatus_handlerBase ( FwIndexType  portNum,
FwOpcodeType  opCode,
U32  cmdSeq,
const Fw::CmdResponse response 
)
protected

Handler base-class function for input port seqCmdStatus.

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

Definition at line 374 of file CmdSplitterComponentAc.cpp.

◆ set_forwardSeqCmdStatus_OutputPort()

void Svc::CmdSplitterComponentBase::set_forwardSeqCmdStatus_OutputPort ( FwIndexType  portNum,
Fw::InputCmdResponsePort port 
)

Connect port to forwardSeqCmdStatus[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 191 of file CmdSplitterComponentAc.cpp.

◆ set_LocalCmd_OutputPort()

void Svc::CmdSplitterComponentBase::set_LocalCmd_OutputPort ( FwIndexType  portNum,
Fw::InputComPort port 
)

Connect port to LocalCmd[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 163 of file CmdSplitterComponentAc.cpp.

◆ set_RemoteCmd_OutputPort()

void Svc::CmdSplitterComponentBase::set_RemoteCmd_OutputPort ( FwIndexType  portNum,
Fw::InputComPort port 
)

Connect port to RemoteCmd[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 177 of file CmdSplitterComponentAc.cpp.

Friends And Related Function Documentation

◆ CmdSplitterTester

friend class CmdSplitterTester
friend

Friend class tester implementation to support white-box testing.

Definition at line 34 of file CmdSplitterComponentAc.hpp.

◆ CmdSplitterTesterBase

friend class CmdSplitterTesterBase
friend

Friend class tester to support autocoded test harness.

Definition at line 32 of file CmdSplitterComponentAc.hpp.


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