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

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

#include <Svc/Framer/FramerComponentAc.hpp>

Inheritance diagram for Svc::FramerComponentBase:
Fw::PassiveComponentBase Fw::ObjBase Svc::Framer

Public Member Functions

void init (NATIVE_INT_TYPE instance=0)
 Initialize FramerComponentBase object. More...
 
Fw::InputBufferSendPortget_bufferIn_InputPort (NATIVE_INT_TYPE portNum)
 
Fw::InputComPortget_comIn_InputPort (NATIVE_INT_TYPE portNum)
 
Fw::InputSuccessConditionPortget_comStatusIn_InputPort (NATIVE_INT_TYPE portNum)
 
void set_bufferDeallocate_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputBufferSendPort *port)
 Connect port to bufferDeallocate[portNum]. More...
 
void set_comStatusOut_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputSuccessConditionPort *port)
 Connect port to comStatusOut[portNum]. More...
 
void set_framedAllocate_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputBufferGetPort *port)
 Connect port to framedAllocate[portNum]. More...
 
void set_framedOut_OutputPort (NATIVE_INT_TYPE portNum, Drv::InputByteStreamSendPort *port)
 Connect port to framedOut[portNum]. More...
 
- Public Member Functions inherited from Fw::PassiveComponentBase
void setIdBase (const U32)
 Set the ID base. More...
 
U32 getIdBase () const
 

Protected Types

enum  { NUM_BUFFERIN_INPUT_PORTS = 1 , NUM_COMIN_INPUT_PORTS = 1 , NUM_COMSTATUSIN_INPUT_PORTS = 1 }
 Enumerations for numbers of typed input ports. More...
 
enum  { NUM_BUFFERDEALLOCATE_OUTPUT_PORTS = 1 , NUM_COMSTATUSOUT_OUTPUT_PORTS = 1 , NUM_FRAMEDALLOCATE_OUTPUT_PORTS = 1 , NUM_FRAMEDOUT_OUTPUT_PORTS = 1 }
 Enumerations for numbers of typed output ports. More...
 

Protected Member Functions

 FramerComponentBase (const char *compName="")
 Construct FramerComponentBase object. More...
 
virtual ~FramerComponentBase ()
 Destroy FramerComponentBase object. More...
 
NATIVE_INT_TYPE getNum_bufferIn_InputPorts () const
 
NATIVE_INT_TYPE getNum_comIn_InputPorts () const
 
NATIVE_INT_TYPE getNum_comStatusIn_InputPorts () const
 
NATIVE_INT_TYPE getNum_bufferDeallocate_OutputPorts () const
 
NATIVE_INT_TYPE getNum_comStatusOut_OutputPorts () const
 
NATIVE_INT_TYPE getNum_framedAllocate_OutputPorts () const
 
NATIVE_INT_TYPE getNum_framedOut_OutputPorts () const
 
bool isConnected_bufferDeallocate_OutputPort (NATIVE_INT_TYPE portNum)
 
bool isConnected_comStatusOut_OutputPort (NATIVE_INT_TYPE portNum)
 
bool isConnected_framedAllocate_OutputPort (NATIVE_INT_TYPE portNum)
 
bool isConnected_framedOut_OutputPort (NATIVE_INT_TYPE portNum)
 
virtual void bufferIn_handler (NATIVE_INT_TYPE portNum, Fw::Buffer &fwBuffer)=0
 Handler for input port bufferIn. More...
 
virtual void comIn_handler (NATIVE_INT_TYPE portNum, Fw::ComBuffer &data, U32 context)=0
 Handler for input port comIn. More...
 
virtual void comStatusIn_handler (NATIVE_INT_TYPE portNum, Fw::Success &condition)=0
 Handler for input port comStatusIn. More...
 
void bufferIn_handlerBase (NATIVE_INT_TYPE portNum, Fw::Buffer &fwBuffer)
 Handler base-class function for input port bufferIn. More...
 
void comIn_handlerBase (NATIVE_INT_TYPE portNum, Fw::ComBuffer &data, U32 context)
 Handler base-class function for input port comIn. More...
 
void comStatusIn_handlerBase (NATIVE_INT_TYPE portNum, Fw::Success &condition)
 Handler base-class function for input port comStatusIn. More...
 
void bufferDeallocate_out (NATIVE_INT_TYPE portNum, Fw::Buffer &fwBuffer)
 Invoke output port bufferDeallocate. More...
 
void comStatusOut_out (NATIVE_INT_TYPE portNum, Fw::Success &condition)
 Invoke output port comStatusOut. More...
 
Fw::Buffer framedAllocate_out (NATIVE_INT_TYPE portNum, U32 size)
 Invoke output port framedAllocate. More...
 
Drv::SendStatus framedOut_out (NATIVE_INT_TYPE portNum, Fw::Buffer &sendBuffer)
 Invoke output port framedOut. More...
 
virtual void lock ()
 Lock the guarded mutex. More...
 
virtual void unLock ()
 Unlock the guarded mutex. More...
 
- Protected Member Functions inherited from Fw::PassiveComponentBase
 PassiveComponentBase (const char *name)
 Named constructor. More...
 
virtual ~PassiveComponentBase ()
 Destructor. More...
 
void init (NATIVE_INT_TYPE instance)
 Initialization function. More...
 
NATIVE_INT_TYPE 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 FramerComponentBaseFriend
 Friend class for white-box testing. More...
 

Detailed Description

Auto-generated base for Framer component.

A component for framing input for transmission to the ground

Definition at line 27 of file FramerComponentAc.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of typed input ports.

Enumerator
NUM_BUFFERIN_INPUT_PORTS 
NUM_COMIN_INPUT_PORTS 
NUM_COMSTATUSIN_INPUT_PORTS 

Definition at line 45 of file FramerComponentAc.hpp.

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of typed output ports.

Enumerator
NUM_BUFFERDEALLOCATE_OUTPUT_PORTS 
NUM_COMSTATUSOUT_OUTPUT_PORTS 
NUM_FRAMEDALLOCATE_OUTPUT_PORTS 
NUM_FRAMEDOUT_OUTPUT_PORTS 

Definition at line 52 of file FramerComponentAc.hpp.

Constructor & Destructor Documentation

◆ FramerComponentBase()

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

Construct FramerComponentBase object.

Parameters
compNameThe component name

Definition at line 369 of file FramerComponentAc.cpp.

◆ ~FramerComponentBase()

Svc::FramerComponentBase::~FramerComponentBase ( )
protectedvirtual

Destroy FramerComponentBase object.

Definition at line 376 of file FramerComponentAc.cpp.

Member Function Documentation

◆ bufferDeallocate_out()

void Svc::FramerComponentBase::bufferDeallocate_out ( NATIVE_INT_TYPE  portNum,
Fw::Buffer fwBuffer 
)
protected

Invoke output port bufferDeallocate.

Parameters
portNumThe port number
fwBufferThe buffer

Definition at line 561 of file FramerComponentAc.cpp.

◆ bufferIn_handler()

virtual void Svc::FramerComponentBase::bufferIn_handler ( NATIVE_INT_TYPE  portNum,
Fw::Buffer fwBuffer 
)
protectedpure virtual

Handler for input port bufferIn.

Parameters
portNumThe port number
fwBufferThe buffer

◆ bufferIn_handlerBase()

void Svc::FramerComponentBase::bufferIn_handlerBase ( NATIVE_INT_TYPE  portNum,
Fw::Buffer fwBuffer 
)
protected

Handler base-class function for input port bufferIn.

Parameters
portNumThe port number
fwBufferThe buffer

Definition at line 486 of file FramerComponentAc.cpp.

◆ comIn_handler()

virtual void Svc::FramerComponentBase::comIn_handler ( NATIVE_INT_TYPE  portNum,
Fw::ComBuffer data,
U32  context 
)
protectedpure virtual

Handler for input port comIn.

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

◆ comIn_handlerBase()

void Svc::FramerComponentBase::comIn_handlerBase ( NATIVE_INT_TYPE  portNum,
Fw::ComBuffer data,
U32  context 
)
protected

Handler base-class function for input port comIn.

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

Definition at line 511 of file FramerComponentAc.cpp.

◆ comStatusIn_handler()

virtual void Svc::FramerComponentBase::comStatusIn_handler ( NATIVE_INT_TYPE  portNum,
Fw::Success condition 
)
protectedpure virtual

Handler for input port comStatusIn.

Parameters
portNumThe port number
conditionCondition success/failure

◆ comStatusIn_handlerBase()

void Svc::FramerComponentBase::comStatusIn_handlerBase ( NATIVE_INT_TYPE  portNum,
Fw::Success condition 
)
protected

Handler base-class function for input port comStatusIn.

Parameters
portNumThe port number
conditionCondition success/failure

Definition at line 538 of file FramerComponentAc.cpp.

◆ comStatusOut_out()

void Svc::FramerComponentBase::comStatusOut_out ( NATIVE_INT_TYPE  portNum,
Fw::Success condition 
)
protected

Invoke output port comStatusOut.

Parameters
portNumThe port number
conditionCondition success/failure

Definition at line 576 of file FramerComponentAc.cpp.

◆ framedAllocate_out()

Fw::Buffer Svc::FramerComponentBase::framedAllocate_out ( NATIVE_INT_TYPE  portNum,
U32  size 
)
protected

Invoke output port framedAllocate.

Parameters
portNumThe port number
sizeThe requested size

Definition at line 591 of file FramerComponentAc.cpp.

◆ framedOut_out()

Drv::SendStatus Svc::FramerComponentBase::framedOut_out ( NATIVE_INT_TYPE  portNum,
Fw::Buffer sendBuffer 
)
protected

Invoke output port framedOut.

Parameters
portNumThe port number
sendBufferData to send

Definition at line 606 of file FramerComponentAc.cpp.

◆ get_bufferIn_InputPort()

Fw::InputBufferSendPort * Svc::FramerComponentBase::get_bufferIn_InputPort ( NATIVE_INT_TYPE  portNum)

Get typed input port at index

Returns
bufferIn[portNum]
Parameters
portNumThe port number

Definition at line 236 of file FramerComponentAc.cpp.

◆ get_comIn_InputPort()

Fw::InputComPort * Svc::FramerComponentBase::get_comIn_InputPort ( NATIVE_INT_TYPE  portNum)

Get typed input port at index

Returns
comIn[portNum]
Parameters
portNumThe port number

Definition at line 247 of file FramerComponentAc.cpp.

◆ get_comStatusIn_InputPort()

Fw::InputSuccessConditionPort * Svc::FramerComponentBase::get_comStatusIn_InputPort ( NATIVE_INT_TYPE  portNum)

Get typed input port at index

Returns
comStatusIn[portNum]
Parameters
portNumThe port number

Definition at line 258 of file FramerComponentAc.cpp.

◆ getNum_bufferDeallocate_OutputPorts()

NATIVE_INT_TYPE Svc::FramerComponentBase::getNum_bufferDeallocate_OutputPorts ( ) const
protected

Get the number of bufferDeallocate output ports

Returns
The number of bufferDeallocate output ports

Definition at line 408 of file FramerComponentAc.cpp.

◆ getNum_bufferIn_InputPorts()

NATIVE_INT_TYPE Svc::FramerComponentBase::getNum_bufferIn_InputPorts ( ) const
protected

Get the number of bufferIn input ports

Returns
The number of bufferIn input ports

Definition at line 386 of file FramerComponentAc.cpp.

◆ getNum_comIn_InputPorts()

NATIVE_INT_TYPE Svc::FramerComponentBase::getNum_comIn_InputPorts ( ) const
protected

Get the number of comIn input ports

Returns
The number of comIn input ports

Definition at line 392 of file FramerComponentAc.cpp.

◆ getNum_comStatusIn_InputPorts()

NATIVE_INT_TYPE Svc::FramerComponentBase::getNum_comStatusIn_InputPorts ( ) const
protected

Get the number of comStatusIn input ports

Returns
The number of comStatusIn input ports

Definition at line 398 of file FramerComponentAc.cpp.

◆ getNum_comStatusOut_OutputPorts()

NATIVE_INT_TYPE Svc::FramerComponentBase::getNum_comStatusOut_OutputPorts ( ) const
protected

Get the number of comStatusOut output ports

Returns
The number of comStatusOut output ports

Definition at line 414 of file FramerComponentAc.cpp.

◆ getNum_framedAllocate_OutputPorts()

NATIVE_INT_TYPE Svc::FramerComponentBase::getNum_framedAllocate_OutputPorts ( ) const
protected

Get the number of framedAllocate output ports

Returns
The number of framedAllocate output ports

Definition at line 420 of file FramerComponentAc.cpp.

◆ getNum_framedOut_OutputPorts()

NATIVE_INT_TYPE Svc::FramerComponentBase::getNum_framedOut_OutputPorts ( ) const
protected

Get the number of framedOut output ports

Returns
The number of framedOut output ports

Definition at line 426 of file FramerComponentAc.cpp.

◆ init()

void Svc::FramerComponentBase::init ( NATIVE_INT_TYPE  instance = 0)

Initialize FramerComponentBase object.

Parameters
instanceThe instance number

Definition at line 21 of file FramerComponentAc.cpp.

◆ isConnected_bufferDeallocate_OutputPort()

bool Svc::FramerComponentBase::isConnected_bufferDeallocate_OutputPort ( NATIVE_INT_TYPE  portNum)
protected

Check whether port bufferDeallocate is connected

Returns
Whether port bufferDeallocate is connected
Parameters
portNumThe port number

Definition at line 436 of file FramerComponentAc.cpp.

◆ isConnected_comStatusOut_OutputPort()

bool Svc::FramerComponentBase::isConnected_comStatusOut_OutputPort ( NATIVE_INT_TYPE  portNum)
protected

Check whether port comStatusOut is connected

Returns
Whether port comStatusOut is connected
Parameters
portNumThe port number

Definition at line 447 of file FramerComponentAc.cpp.

◆ isConnected_framedAllocate_OutputPort()

bool Svc::FramerComponentBase::isConnected_framedAllocate_OutputPort ( NATIVE_INT_TYPE  portNum)
protected

Check whether port framedAllocate is connected

Returns
Whether port framedAllocate is connected
Parameters
portNumThe port number

Definition at line 458 of file FramerComponentAc.cpp.

◆ isConnected_framedOut_OutputPort()

bool Svc::FramerComponentBase::isConnected_framedOut_OutputPort ( NATIVE_INT_TYPE  portNum)
protected

Check whether port framedOut is connected

Returns
Whether port framedOut is connected
Parameters
portNumThe port number

Definition at line 469 of file FramerComponentAc.cpp.

◆ lock()

void Svc::FramerComponentBase::lock ( )
protectedvirtual

Lock the guarded mutex.

Definition at line 628 of file FramerComponentAc.cpp.

◆ set_bufferDeallocate_OutputPort()

void Svc::FramerComponentBase::set_bufferDeallocate_OutputPort ( NATIVE_INT_TYPE  portNum,
Fw::InputBufferSendPort port 
)

Connect port to bufferDeallocate[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 273 of file FramerComponentAc.cpp.

◆ set_comStatusOut_OutputPort()

void Svc::FramerComponentBase::set_comStatusOut_OutputPort ( NATIVE_INT_TYPE  portNum,
Fw::InputSuccessConditionPort port 
)

Connect port to comStatusOut[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 287 of file FramerComponentAc.cpp.

◆ set_framedAllocate_OutputPort()

void Svc::FramerComponentBase::set_framedAllocate_OutputPort ( NATIVE_INT_TYPE  portNum,
Fw::InputBufferGetPort port 
)

Connect port to framedAllocate[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 301 of file FramerComponentAc.cpp.

◆ set_framedOut_OutputPort()

void Svc::FramerComponentBase::set_framedOut_OutputPort ( NATIVE_INT_TYPE  portNum,
Drv::InputByteStreamSendPort port 
)

Connect port to framedOut[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 315 of file FramerComponentAc.cpp.

◆ unLock()

void Svc::FramerComponentBase::unLock ( )
protectedvirtual

Unlock the guarded mutex.

Definition at line 634 of file FramerComponentAc.cpp.

Friends And Related Function Documentation

◆ FramerComponentBaseFriend

friend class FramerComponentBaseFriend
friend

Friend class for white-box testing.

Definition at line 36 of file FramerComponentAc.hpp.


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