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

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

#include <Svc/FprimeDeframer/FprimeDeframerComponentAc.hpp>

Inheritance diagram for Svc::FprimeDeframerComponentBase:
Fw::PassiveComponentBase Fw::ObjBase Svc::FprimeDeframer

Public Member Functions

void init (FwEnumStoreType instance=0)
 Initialize FprimeDeframerComponentBase object. More...
 
Svc::InputComDataWithContextPortget_dataIn_InputPort (FwIndexType portNum)
 
Svc::InputComDataWithContextPortget_dataReturnIn_InputPort (FwIndexType portNum)
 
void set_logOut_OutputPort (FwIndexType portNum, Fw::InputLogPort *port)
 Connect port to logOut[portNum]. More...
 
void set_timeCaller_OutputPort (FwIndexType portNum, Fw::InputTimePort *port)
 Connect port to timeCaller[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_DATAIN_INPUT_PORTS = 1, NUM_DATARETURNIN_INPUT_PORTS = 1 }
 Enumerations for numbers of typed input ports. More...
 
enum  { NUM_LOGOUT_OUTPUT_PORTS = 1, NUM_LOGTEXTOUT_OUTPUT_PORTS = 1, NUM_TIMECALLER_OUTPUT_PORTS = 1 }
 Enumerations for numbers of special output ports. More...
 
enum  { NUM_DATAOUT_OUTPUT_PORTS = 1, NUM_DATARETURNOUT_OUTPUT_PORTS = 1 }
 Enumerations for numbers of typed output ports. More...
 
enum  { EVENTID_INVALIDBUFFERRECEIVED = 0x0, EVENTID_INVALIDSTARTWORD = 0x1, EVENTID_INVALIDLENGTHRECEIVED = 0x2, EVENTID_INVALIDCHECKSUM = 0x3 }
 Event IDs. More...
 

Protected Member Functions

 FprimeDeframerComponentBase (const char *compName="")
 Construct FprimeDeframerComponentBase object. More...
 
virtual ~FprimeDeframerComponentBase ()
 Destroy FprimeDeframerComponentBase object. More...
 
FwIndexType getNum_dataIn_InputPorts () const
 
FwIndexType getNum_dataReturnIn_InputPorts () const
 
FwIndexType getNum_logOut_OutputPorts () const
 
FwIndexType getNum_timeCaller_OutputPorts () const
 
FwIndexType getNum_dataOut_OutputPorts () const
 
FwIndexType getNum_dataReturnOut_OutputPorts () const
 
bool isConnected_logOut_OutputPort (FwIndexType portNum)
 
bool isConnected_timeCaller_OutputPort (FwIndexType portNum)
 
bool isConnected_dataOut_OutputPort (FwIndexType portNum)
 
bool isConnected_dataReturnOut_OutputPort (FwIndexType portNum)
 
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 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...
 
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...
 
void log_WARNING_HI_InvalidBufferReceived () const
 
void log_WARNING_HI_InvalidStartWord () const
 
void log_WARNING_HI_InvalidLengthReceived () const
 
void log_WARNING_HI_InvalidChecksum () const
 
Fw::Time getTime () const
 
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 (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 FprimeDeframerTesterBase
 Friend class tester to support autocoded test harness. More...
 
class FprimeDeframerTester
 Friend class tester implementation to support white-box testing. More...
 

Detailed Description

Auto-generated base for FprimeDeframer component.

A component for deframing input received from the ground via a FrameAccumulator

Definition at line 32 of file FprimeDeframerComponentAc.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of typed input ports.

Enumerator
NUM_DATAIN_INPUT_PORTS 
NUM_DATARETURNIN_INPUT_PORTS 

Definition at line 52 of file FprimeDeframerComponentAc.hpp.

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of special output ports.

Enumerator
NUM_LOGOUT_OUTPUT_PORTS 
NUM_LOGTEXTOUT_OUTPUT_PORTS 
NUM_TIMECALLER_OUTPUT_PORTS 

Definition at line 58 of file FprimeDeframerComponentAc.hpp.

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of typed output ports.

Enumerator
NUM_DATAOUT_OUTPUT_PORTS 
NUM_DATARETURNOUT_OUTPUT_PORTS 

Definition at line 65 of file FprimeDeframerComponentAc.hpp.

◆ anonymous enum

anonymous enum
protected

Event IDs.

Enumerator
EVENTID_INVALIDBUFFERRECEIVED 

An invalid frame was received (too short to be a frame)

EVENTID_INVALIDSTARTWORD 

An invalid frame was received (start word is wrong)

EVENTID_INVALIDLENGTHRECEIVED 

An invalid frame was received (length is wrong)

EVENTID_INVALIDCHECKSUM 

An invalid frame was received (checksum mismatch)

Definition at line 71 of file FprimeDeframerComponentAc.hpp.

Constructor & Destructor Documentation

◆ FprimeDeframerComponentBase()

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

Construct FprimeDeframerComponentBase object.

Parameters
compNameThe component name

Definition at line 375 of file FprimeDeframerComponentAc.cpp.

◆ ~FprimeDeframerComponentBase()

Svc::FprimeDeframerComponentBase::~FprimeDeframerComponentBase ( )
protectedvirtual

Destroy FprimeDeframerComponentBase object.

Definition at line 382 of file FprimeDeframerComponentAc.cpp.

Member Function Documentation

◆ dataIn_handler()

virtual void Svc::FprimeDeframerComponentBase::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::FprimeDeframerComponentBase::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 519 of file FprimeDeframerComponentAc.cpp.

◆ dataOut_out()

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

Invoke output port dataOut.

Parameters
portNumThe port number

Definition at line 571 of file FprimeDeframerComponentAc.cpp.

◆ dataReturnIn_handler()

virtual void Svc::FprimeDeframerComponentBase::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::FprimeDeframerComponentBase::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 546 of file FprimeDeframerComponentAc.cpp.

◆ dataReturnOut_out()

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

Invoke output port dataReturnOut.

Parameters
portNumThe port number

Definition at line 593 of file FprimeDeframerComponentAc.cpp.

◆ get_dataIn_InputPort()

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

Get typed input port at index

Returns
dataIn[portNum]
Parameters
portNumThe port number

Definition at line 177 of file FprimeDeframerComponentAc.cpp.

◆ get_dataReturnIn_InputPort()

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

Get typed input port at index

Returns
dataReturnIn[portNum]
Parameters
portNumThe port number

Definition at line 188 of file FprimeDeframerComponentAc.cpp.

◆ getNum_dataIn_InputPorts()

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

Get the number of dataIn input ports

Returns
The number of dataIn input ports

Definition at line 392 of file FprimeDeframerComponentAc.cpp.

◆ getNum_dataOut_OutputPorts()

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

Get the number of dataOut output ports

Returns
The number of dataOut output ports

Definition at line 434 of file FprimeDeframerComponentAc.cpp.

◆ getNum_dataReturnIn_InputPorts()

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

Get the number of dataReturnIn input ports

Returns
The number of dataReturnIn input ports

Definition at line 398 of file FprimeDeframerComponentAc.cpp.

◆ getNum_dataReturnOut_OutputPorts()

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

Get the number of dataReturnOut output ports

Returns
The number of dataReturnOut output ports

Definition at line 440 of file FprimeDeframerComponentAc.cpp.

◆ getNum_logOut_OutputPorts()

FwIndexType Svc::FprimeDeframerComponentBase::getNum_logOut_OutputPorts ( ) const
protected

Get the number of logOut output ports

Returns
The number of logOut output ports

Definition at line 408 of file FprimeDeframerComponentAc.cpp.

◆ getNum_timeCaller_OutputPorts()

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

Get the number of timeCaller output ports

Returns
The number of timeCaller output ports

Definition at line 424 of file FprimeDeframerComponentAc.cpp.

◆ getTime()

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

Get the time

\return The current time

Definition at line 883 of file FprimeDeframerComponentAc.cpp.

◆ init()

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

Initialize FprimeDeframerComponentBase object.

Parameters
instanceThe instance number

Definition at line 21 of file FprimeDeframerComponentAc.cpp.

◆ isConnected_dataOut_OutputPort()

bool Svc::FprimeDeframerComponentBase::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 491 of file FprimeDeframerComponentAc.cpp.

◆ isConnected_dataReturnOut_OutputPort()

bool Svc::FprimeDeframerComponentBase::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 502 of file FprimeDeframerComponentAc.cpp.

◆ isConnected_logOut_OutputPort()

bool Svc::FprimeDeframerComponentBase::isConnected_logOut_OutputPort ( FwIndexType  portNum)
protected

Check whether port logOut is connected

Returns
Whether port logOut is connected
Parameters
portNumThe port number

Definition at line 450 of file FprimeDeframerComponentAc.cpp.

◆ isConnected_timeCaller_OutputPort()

bool Svc::FprimeDeframerComponentBase::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 476 of file FprimeDeframerComponentAc.cpp.

◆ lock()

void Svc::FprimeDeframerComponentBase::lock ( )
protectedvirtual

Lock the guarded mutex.

Definition at line 903 of file FprimeDeframerComponentAc.cpp.

◆ log_WARNING_HI_InvalidBufferReceived()

void Svc::FprimeDeframerComponentBase::log_WARNING_HI_InvalidBufferReceived ( ) const
protected

Log event InvalidBufferReceived

An invalid frame was received (too short to be a frame)

Definition at line 619 of file FprimeDeframerComponentAc.cpp.

◆ log_WARNING_HI_InvalidChecksum()

void Svc::FprimeDeframerComponentBase::log_WARNING_HI_InvalidChecksum ( ) const
protected

Log event InvalidChecksum

An invalid frame was received (checksum mismatch)

Definition at line 814 of file FprimeDeframerComponentAc.cpp.

◆ log_WARNING_HI_InvalidLengthReceived()

void Svc::FprimeDeframerComponentBase::log_WARNING_HI_InvalidLengthReceived ( ) const
protected

Log event InvalidLengthReceived

An invalid frame was received (length is wrong)

Definition at line 749 of file FprimeDeframerComponentAc.cpp.

◆ log_WARNING_HI_InvalidStartWord()

void Svc::FprimeDeframerComponentBase::log_WARNING_HI_InvalidStartWord ( ) const
protected

Log event InvalidStartWord

An invalid frame was received (start word is wrong)

Definition at line 684 of file FprimeDeframerComponentAc.cpp.

◆ set_dataOut_OutputPort()

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

Connect port to dataOut[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 253 of file FprimeDeframerComponentAc.cpp.

◆ set_dataReturnOut_OutputPort()

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

Connect port to dataReturnOut[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 267 of file FprimeDeframerComponentAc.cpp.

◆ set_logOut_OutputPort()

void Svc::FprimeDeframerComponentBase::set_logOut_OutputPort ( FwIndexType  portNum,
Fw::InputLogPort port 
)

Connect port to logOut[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 203 of file FprimeDeframerComponentAc.cpp.

◆ set_timeCaller_OutputPort()

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

Connect port to timeCaller[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 235 of file FprimeDeframerComponentAc.cpp.

◆ unLock()

void Svc::FprimeDeframerComponentBase::unLock ( )
protectedvirtual

Unlock the guarded mutex.

Definition at line 909 of file FprimeDeframerComponentAc.cpp.

Friends And Related Function Documentation

◆ FprimeDeframerTester

friend class FprimeDeframerTester
friend

Friend class tester implementation to support white-box testing.

Definition at line 43 of file FprimeDeframerComponentAc.hpp.

◆ FprimeDeframerTesterBase

friend class FprimeDeframerTesterBase
friend

Friend class tester to support autocoded test harness.

Definition at line 41 of file FprimeDeframerComponentAc.hpp.


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