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

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

#include <Svc/FprimeFramer/FprimeFramerComponentAc.hpp>

Inheritance diagram for Svc::FprimeFramerComponentBase:
Fw::PassiveComponentBase Fw::ObjBase Svc::FprimeFramer

Public Member Functions

void init (FwEnumStoreType instance=0)
 Initialize FprimeFramerComponentBase object. More...
 
Fw::InputSuccessConditionPortget_comStatusIn_InputPort (FwIndexType portNum)
 
Svc::InputComDataWithContextPortget_dataIn_InputPort (FwIndexType portNum)
 
Svc::InputComDataWithContextPortget_dataReturnIn_InputPort (FwIndexType portNum)
 
void set_timeCaller_OutputPort (FwIndexType portNum, Fw::InputTimePort *port)
 Connect port to timeCaller[portNum]. More...
 
void set_bufferAllocate_OutputPort (FwIndexType portNum, Fw::InputBufferGetPort *port)
 Connect port to bufferAllocate[portNum]. More...
 
void set_bufferDeallocate_OutputPort (FwIndexType portNum, Fw::InputBufferSendPort *port)
 Connect port to bufferDeallocate[portNum]. More...
 
void set_comStatusOut_OutputPort (FwIndexType portNum, Fw::InputSuccessConditionPort *port)
 Connect port to comStatusOut[portNum]. More...
 
void set_dataOut_OutputPort (FwIndexType portNum, Svc::InputComDataWithContextPort *port)
 Connect port to dataOut[portNum]. More...
 
void set_dataReturnOut_OutputPort (FwIndexType portNum, Svc::InputComDataWithContextPort *port)
 Connect port to dataReturnOut[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_COMSTATUSIN_INPUT_PORTS = 1, NUM_DATAIN_INPUT_PORTS = 1, NUM_DATARETURNIN_INPUT_PORTS = 1 }
 Enumerations for numbers of typed input ports. More...
 
enum  { NUM_TIMECALLER_OUTPUT_PORTS = 1 }
 Enumerations for numbers of special output ports. More...
 
enum  {
  NUM_BUFFERALLOCATE_OUTPUT_PORTS = 1, NUM_BUFFERDEALLOCATE_OUTPUT_PORTS = 1, NUM_COMSTATUSOUT_OUTPUT_PORTS = 1, NUM_DATAOUT_OUTPUT_PORTS = 1,
  NUM_DATARETURNOUT_OUTPUT_PORTS = 1
}
 Enumerations for numbers of typed output ports. More...
 

Protected Member Functions

 FprimeFramerComponentBase (const char *compName="")
 Construct FprimeFramerComponentBase object. More...
 
virtual ~FprimeFramerComponentBase ()
 Destroy FprimeFramerComponentBase object. More...
 
FwIndexType getNum_comStatusIn_InputPorts () const
 
FwIndexType getNum_dataIn_InputPorts () const
 
FwIndexType getNum_dataReturnIn_InputPorts () const
 
FwIndexType getNum_timeCaller_OutputPorts () const
 
FwIndexType getNum_bufferAllocate_OutputPorts () const
 
FwIndexType getNum_bufferDeallocate_OutputPorts () const
 
FwIndexType getNum_comStatusOut_OutputPorts () const
 
FwIndexType getNum_dataOut_OutputPorts () const
 
FwIndexType getNum_dataReturnOut_OutputPorts () const
 
bool isConnected_timeCaller_OutputPort (FwIndexType portNum)
 
bool isConnected_bufferAllocate_OutputPort (FwIndexType portNum)
 
bool isConnected_bufferDeallocate_OutputPort (FwIndexType portNum)
 
bool isConnected_comStatusOut_OutputPort (FwIndexType portNum)
 
bool isConnected_dataOut_OutputPort (FwIndexType portNum)
 
bool isConnected_dataReturnOut_OutputPort (FwIndexType portNum)
 
virtual void comStatusIn_handler (FwIndexType portNum, Fw::Success &condition)=0
 Handler for input port comStatusIn. More...
 
virtual void dataIn_handler (FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
 Handler for input port dataIn. More...
 
virtual void dataReturnIn_handler (FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
 Handler for input port dataReturnIn. More...
 
void comStatusIn_handlerBase (FwIndexType portNum, Fw::Success &condition)
 Handler base-class function for input port comStatusIn. More...
 
void dataIn_handlerBase (FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
 Handler base-class function for input port dataIn. More...
 
void dataReturnIn_handlerBase (FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
 Handler base-class function for input port dataReturnIn. More...
 
Fw::Buffer bufferAllocate_out (FwIndexType portNum, U32 size)
 Invoke output port bufferAllocate. More...
 
void bufferDeallocate_out (FwIndexType portNum, Fw::Buffer &fwBuffer)
 Invoke output port bufferDeallocate. More...
 
void comStatusOut_out (FwIndexType portNum, Fw::Success &condition)
 Invoke output port comStatusOut. More...
 
void dataOut_out (FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
 Invoke output port dataOut. More...
 
void dataReturnOut_out (FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
 Invoke output port dataReturnOut. More...
 
Fw::Time getTime () const
 
- 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 FprimeFramerTesterBase
 Friend class tester to support autocoded test harness. More...
 
class FprimeFramerTester
 Friend class tester implementation to support white-box testing. More...
 

Detailed Description

Auto-generated base for FprimeFramer component.

Framer implementation for the F Prime protocol

Definition at line 26 of file FprimeFramerComponentAc.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of typed input ports.

Enumerator
NUM_COMSTATUSIN_INPUT_PORTS 
NUM_DATAIN_INPUT_PORTS 
NUM_DATARETURNIN_INPUT_PORTS 

Definition at line 46 of file FprimeFramerComponentAc.hpp.

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of special output ports.

Enumerator
NUM_TIMECALLER_OUTPUT_PORTS 

Definition at line 53 of file FprimeFramerComponentAc.hpp.

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of typed output ports.

Enumerator
NUM_BUFFERALLOCATE_OUTPUT_PORTS 
NUM_BUFFERDEALLOCATE_OUTPUT_PORTS 
NUM_COMSTATUSOUT_OUTPUT_PORTS 
NUM_DATAOUT_OUTPUT_PORTS 
NUM_DATARETURNOUT_OUTPUT_PORTS 

Definition at line 58 of file FprimeFramerComponentAc.hpp.

Constructor & Destructor Documentation

◆ FprimeFramerComponentBase()

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

Construct FprimeFramerComponentBase object.

Parameters
compNameThe component name

Definition at line 433 of file FprimeFramerComponentAc.cpp.

◆ ~FprimeFramerComponentBase()

Svc::FprimeFramerComponentBase::~FprimeFramerComponentBase ( )
protectedvirtual

Destroy FprimeFramerComponentBase object.

Definition at line 440 of file FprimeFramerComponentAc.cpp.

Member Function Documentation

◆ bufferAllocate_out()

Fw::Buffer Svc::FprimeFramerComponentBase::bufferAllocate_out ( FwIndexType  portNum,
U32  size 
)
protected

Invoke output port bufferAllocate.

Parameters
portNumThe port number
sizeThe requested size

Definition at line 657 of file FprimeFramerComponentAc.cpp.

◆ bufferDeallocate_out()

void Svc::FprimeFramerComponentBase::bufferDeallocate_out ( FwIndexType  portNum,
Fw::Buffer fwBuffer 
)
protected

Invoke output port bufferDeallocate.

Parameters
portNumThe port number
fwBufferThe buffer

Definition at line 677 of file FprimeFramerComponentAc.cpp.

◆ comStatusIn_handler()

virtual void Svc::FprimeFramerComponentBase::comStatusIn_handler ( FwIndexType  portNum,
Fw::Success condition 
)
protectedpure virtual

Handler for input port comStatusIn.

Parameters
portNumThe port number
conditionCondition success/failure

◆ comStatusIn_handlerBase()

void Svc::FprimeFramerComponentBase::comStatusIn_handlerBase ( FwIndexType  portNum,
Fw::Success condition 
)
protected

Handler base-class function for input port comStatusIn.

Parameters
portNumThe port number
conditionCondition success/failure

Definition at line 592 of file FprimeFramerComponentAc.cpp.

◆ comStatusOut_out()

void Svc::FprimeFramerComponentBase::comStatusOut_out ( FwIndexType  portNum,
Fw::Success condition 
)
protected

Invoke output port comStatusOut.

Parameters
portNumThe port number
conditionCondition success/failure

Definition at line 697 of file FprimeFramerComponentAc.cpp.

◆ dataIn_handler()

virtual void Svc::FprimeFramerComponentBase::dataIn_handler ( FwIndexType  portNum,
Fw::Buffer data,
const ComCfg::FrameContext context 
)
protectedpure virtual

Handler for input port dataIn.

Parameters
portNumThe port number

◆ dataIn_handlerBase()

void Svc::FprimeFramerComponentBase::dataIn_handlerBase ( FwIndexType  portNum,
Fw::Buffer data,
const ComCfg::FrameContext context 
)
protected

Handler base-class function for input port dataIn.

Parameters
portNumThe port number

Definition at line 611 of file FprimeFramerComponentAc.cpp.

◆ dataOut_out()

void Svc::FprimeFramerComponentBase::dataOut_out ( FwIndexType  portNum,
Fw::Buffer data,
const ComCfg::FrameContext context 
)
protected

Invoke output port dataOut.

Parameters
portNumThe port number

Definition at line 717 of file FprimeFramerComponentAc.cpp.

◆ dataReturnIn_handler()

virtual void Svc::FprimeFramerComponentBase::dataReturnIn_handler ( FwIndexType  portNum,
Fw::Buffer data,
const ComCfg::FrameContext context 
)
protectedpure virtual

Handler for input port dataReturnIn.

Parameters
portNumThe port number

◆ dataReturnIn_handlerBase()

void Svc::FprimeFramerComponentBase::dataReturnIn_handlerBase ( FwIndexType  portNum,
Fw::Buffer data,
const ComCfg::FrameContext context 
)
protected

Handler base-class function for input port dataReturnIn.

Parameters
portNumThe port number

Definition at line 632 of file FprimeFramerComponentAc.cpp.

◆ dataReturnOut_out()

void Svc::FprimeFramerComponentBase::dataReturnOut_out ( FwIndexType  portNum,
Fw::Buffer data,
const ComCfg::FrameContext context 
)
protected

Invoke output port dataReturnOut.

Parameters
portNumThe port number

Definition at line 739 of file FprimeFramerComponentAc.cpp.

◆ get_comStatusIn_InputPort()

Fw::InputSuccessConditionPort * Svc::FprimeFramerComponentBase::get_comStatusIn_InputPort ( FwIndexType  portNum)

Get typed input port at index

Returns
comStatusIn[portNum]
Parameters
portNumThe port number

Definition at line 218 of file FprimeFramerComponentAc.cpp.

◆ get_dataIn_InputPort()

Svc::InputComDataWithContextPort * Svc::FprimeFramerComponentBase::get_dataIn_InputPort ( FwIndexType  portNum)

Get typed input port at index

Returns
dataIn[portNum]
Parameters
portNumThe port number

Definition at line 229 of file FprimeFramerComponentAc.cpp.

◆ get_dataReturnIn_InputPort()

Svc::InputComDataWithContextPort * Svc::FprimeFramerComponentBase::get_dataReturnIn_InputPort ( FwIndexType  portNum)

Get typed input port at index

Returns
dataReturnIn[portNum]
Parameters
portNumThe port number

Definition at line 240 of file FprimeFramerComponentAc.cpp.

◆ getNum_bufferAllocate_OutputPorts()

FwIndexType Svc::FprimeFramerComponentBase::getNum_bufferAllocate_OutputPorts ( ) const
protected

Get the number of bufferAllocate output ports

Returns
The number of bufferAllocate output ports

Definition at line 482 of file FprimeFramerComponentAc.cpp.

◆ getNum_bufferDeallocate_OutputPorts()

FwIndexType Svc::FprimeFramerComponentBase::getNum_bufferDeallocate_OutputPorts ( ) const
protected

Get the number of bufferDeallocate output ports

Returns
The number of bufferDeallocate output ports

Definition at line 488 of file FprimeFramerComponentAc.cpp.

◆ getNum_comStatusIn_InputPorts()

FwIndexType Svc::FprimeFramerComponentBase::getNum_comStatusIn_InputPorts ( ) const
protected

Get the number of comStatusIn input ports

Returns
The number of comStatusIn input ports

Definition at line 450 of file FprimeFramerComponentAc.cpp.

◆ getNum_comStatusOut_OutputPorts()

FwIndexType Svc::FprimeFramerComponentBase::getNum_comStatusOut_OutputPorts ( ) const
protected

Get the number of comStatusOut output ports

Returns
The number of comStatusOut output ports

Definition at line 494 of file FprimeFramerComponentAc.cpp.

◆ getNum_dataIn_InputPorts()

FwIndexType Svc::FprimeFramerComponentBase::getNum_dataIn_InputPorts ( ) const
protected

Get the number of dataIn input ports

Returns
The number of dataIn input ports

Definition at line 456 of file FprimeFramerComponentAc.cpp.

◆ getNum_dataOut_OutputPorts()

FwIndexType Svc::FprimeFramerComponentBase::getNum_dataOut_OutputPorts ( ) const
protected

Get the number of dataOut output ports

Returns
The number of dataOut output ports

Definition at line 500 of file FprimeFramerComponentAc.cpp.

◆ getNum_dataReturnIn_InputPorts()

FwIndexType Svc::FprimeFramerComponentBase::getNum_dataReturnIn_InputPorts ( ) const
protected

Get the number of dataReturnIn input ports

Returns
The number of dataReturnIn input ports

Definition at line 462 of file FprimeFramerComponentAc.cpp.

◆ getNum_dataReturnOut_OutputPorts()

FwIndexType Svc::FprimeFramerComponentBase::getNum_dataReturnOut_OutputPorts ( ) const
protected

Get the number of dataReturnOut output ports

Returns
The number of dataReturnOut output ports

Definition at line 506 of file FprimeFramerComponentAc.cpp.

◆ getNum_timeCaller_OutputPorts()

FwIndexType Svc::FprimeFramerComponentBase::getNum_timeCaller_OutputPorts ( ) const
protected

Get the number of timeCaller output ports

Returns
The number of timeCaller output ports

Definition at line 472 of file FprimeFramerComponentAc.cpp.

◆ getTime()

Fw::Time Svc::FprimeFramerComponentBase::getTime ( ) const
protected

Get the time

\return The current time

Definition at line 765 of file FprimeFramerComponentAc.cpp.

◆ init()

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

Initialize FprimeFramerComponentBase object.

Parameters
instanceThe instance number

Definition at line 21 of file FprimeFramerComponentAc.cpp.

◆ isConnected_bufferAllocate_OutputPort()

bool Svc::FprimeFramerComponentBase::isConnected_bufferAllocate_OutputPort ( FwIndexType  portNum)
protected

Check whether port bufferAllocate is connected

Returns
Whether port bufferAllocate is connected
Parameters
portNumThe port number

Definition at line 531 of file FprimeFramerComponentAc.cpp.

◆ isConnected_bufferDeallocate_OutputPort()

bool Svc::FprimeFramerComponentBase::isConnected_bufferDeallocate_OutputPort ( FwIndexType  portNum)
protected

Check whether port bufferDeallocate is connected

Returns
Whether port bufferDeallocate is connected
Parameters
portNumThe port number

Definition at line 542 of file FprimeFramerComponentAc.cpp.

◆ isConnected_comStatusOut_OutputPort()

bool Svc::FprimeFramerComponentBase::isConnected_comStatusOut_OutputPort ( FwIndexType  portNum)
protected

Check whether port comStatusOut is connected

Returns
Whether port comStatusOut is connected
Parameters
portNumThe port number

Definition at line 553 of file FprimeFramerComponentAc.cpp.

◆ isConnected_dataOut_OutputPort()

bool Svc::FprimeFramerComponentBase::isConnected_dataOut_OutputPort ( FwIndexType  portNum)
protected

Check whether port dataOut is connected

Returns
Whether port dataOut is connected
Parameters
portNumThe port number

Definition at line 564 of file FprimeFramerComponentAc.cpp.

◆ isConnected_dataReturnOut_OutputPort()

bool Svc::FprimeFramerComponentBase::isConnected_dataReturnOut_OutputPort ( FwIndexType  portNum)
protected

Check whether port dataReturnOut is connected

Returns
Whether port dataReturnOut is connected
Parameters
portNumThe port number

Definition at line 575 of file FprimeFramerComponentAc.cpp.

◆ isConnected_timeCaller_OutputPort()

bool Svc::FprimeFramerComponentBase::isConnected_timeCaller_OutputPort ( FwIndexType  portNum)
protected

Check whether port timeCaller is connected

Returns
Whether port timeCaller is connected
Parameters
portNumThe port number

Definition at line 516 of file FprimeFramerComponentAc.cpp.

◆ set_bufferAllocate_OutputPort()

void Svc::FprimeFramerComponentBase::set_bufferAllocate_OutputPort ( FwIndexType  portNum,
Fw::InputBufferGetPort port 
)

Connect port to bufferAllocate[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 273 of file FprimeFramerComponentAc.cpp.

◆ set_bufferDeallocate_OutputPort()

void Svc::FprimeFramerComponentBase::set_bufferDeallocate_OutputPort ( FwIndexType  portNum,
Fw::InputBufferSendPort port 
)

Connect port to bufferDeallocate[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 287 of file FprimeFramerComponentAc.cpp.

◆ set_comStatusOut_OutputPort()

void Svc::FprimeFramerComponentBase::set_comStatusOut_OutputPort ( FwIndexType  portNum,
Fw::InputSuccessConditionPort port 
)

Connect port to comStatusOut[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 301 of file FprimeFramerComponentAc.cpp.

◆ set_dataOut_OutputPort()

void Svc::FprimeFramerComponentBase::set_dataOut_OutputPort ( FwIndexType  portNum,
Svc::InputComDataWithContextPort port 
)

Connect port to dataOut[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 315 of file FprimeFramerComponentAc.cpp.

◆ set_dataReturnOut_OutputPort()

void Svc::FprimeFramerComponentBase::set_dataReturnOut_OutputPort ( FwIndexType  portNum,
Svc::InputComDataWithContextPort port 
)

Connect port to dataReturnOut[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 329 of file FprimeFramerComponentAc.cpp.

◆ set_timeCaller_OutputPort()

void Svc::FprimeFramerComponentBase::set_timeCaller_OutputPort ( FwIndexType  portNum,
Fw::InputTimePort port 
)

Connect port to timeCaller[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 255 of file FprimeFramerComponentAc.cpp.

Friends And Related Function Documentation

◆ FprimeFramerTester

friend class FprimeFramerTester
friend

Friend class tester implementation to support white-box testing.

Definition at line 37 of file FprimeFramerComponentAc.hpp.

◆ FprimeFramerTesterBase

friend class FprimeFramerTesterBase
friend

Friend class tester to support autocoded test harness.

Definition at line 35 of file FprimeFramerComponentAc.hpp.


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