F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
Auto-generated base for BufferAccumulator component. More...
#include <Svc/BufferAccumulator/BufferAccumulatorComponentAc.hpp>
Protected Member Functions | |
BufferAccumulatorComponentBase (const char *compName="") | |
Construct BufferAccumulatorComponentBase object. More... | |
virtual | ~BufferAccumulatorComponentBase () |
Destroy BufferAccumulatorComponentBase object. More... | |
FwIndexType | getNum_cmdIn_InputPorts () const |
FwIndexType | getNum_bufferSendInFill_InputPorts () const |
FwIndexType | getNum_bufferSendInReturn_InputPorts () const |
FwIndexType | getNum_pingIn_InputPorts () const |
FwIndexType | getNum_cmdRegOut_OutputPorts () const |
FwIndexType | getNum_cmdResponseOut_OutputPorts () const |
FwIndexType | getNum_eventOut_OutputPorts () const |
FwIndexType | getNum_timeCaller_OutputPorts () const |
FwIndexType | getNum_tlmOut_OutputPorts () const |
FwIndexType | getNum_bufferSendOutDrain_OutputPorts () const |
FwIndexType | getNum_bufferSendOutReturn_OutputPorts () const |
FwIndexType | getNum_pingOut_OutputPorts () const |
bool | isConnected_cmdRegOut_OutputPort (FwIndexType portNum) |
bool | isConnected_cmdResponseOut_OutputPort (FwIndexType portNum) |
bool | isConnected_eventOut_OutputPort (FwIndexType portNum) |
bool | isConnected_timeCaller_OutputPort (FwIndexType portNum) |
bool | isConnected_tlmOut_OutputPort (FwIndexType portNum) |
bool | isConnected_bufferSendOutDrain_OutputPort (FwIndexType portNum) |
bool | isConnected_bufferSendOutReturn_OutputPort (FwIndexType portNum) |
bool | isConnected_pingOut_OutputPort (FwIndexType portNum) |
virtual void | bufferSendInFill_handler (FwIndexType portNum, Fw::Buffer &fwBuffer)=0 |
Handler for input port bufferSendInFill. More... | |
virtual void | bufferSendInReturn_handler (FwIndexType portNum, Fw::Buffer &fwBuffer)=0 |
Handler for input port bufferSendInReturn. More... | |
virtual void | pingIn_handler (FwIndexType portNum, U32 key)=0 |
Handler for input port pingIn. More... | |
void | bufferSendInFill_handlerBase (FwIndexType portNum, Fw::Buffer &fwBuffer) |
Handler base-class function for input port bufferSendInFill. More... | |
void | bufferSendInReturn_handlerBase (FwIndexType portNum, Fw::Buffer &fwBuffer) |
Handler base-class function for input port bufferSendInReturn. More... | |
void | pingIn_handlerBase (FwIndexType portNum, U32 key) |
Handler base-class function for input port pingIn. More... | |
virtual void | bufferSendInFill_preMsgHook (FwIndexType portNum, Fw::Buffer &fwBuffer) |
Pre-message hook for async input port bufferSendInFill. More... | |
virtual void | bufferSendInReturn_preMsgHook (FwIndexType portNum, Fw::Buffer &fwBuffer) |
Pre-message hook for async input port bufferSendInReturn. More... | |
virtual void | pingIn_preMsgHook (FwIndexType portNum, U32 key) |
Pre-message hook for async input port pingIn. More... | |
void | bufferSendOutDrain_out (FwIndexType portNum, Fw::Buffer &fwBuffer) |
Invoke output port bufferSendOutDrain. More... | |
void | bufferSendOutReturn_out (FwIndexType portNum, Fw::Buffer &fwBuffer) |
Invoke output port bufferSendOutReturn. More... | |
void | pingOut_out (FwIndexType portNum, U32 key) |
Invoke output port pingOut. More... | |
void | cmdResponse_out (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response) |
Emit command response. More... | |
virtual void | BA_SetMode_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, Svc::BufferAccumulator_OpState mode)=0 |
virtual void | BA_DrainBuffers_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, U32 numToDrain, Svc::BufferAccumulator_BlockMode blockMode)=0 |
void | BA_SetMode_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
void | BA_DrainBuffers_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
virtual void | BA_SetMode_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
Pre-message hook for command BA_SetMode. More... | |
virtual void | BA_DrainBuffers_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
Pre-message hook for command BA_DrainBuffers. More... | |
void | log_ACTIVITY_HI_BA_BufferAccepted () |
void | log_WARNING_HI_BA_QueueFull () |
void | log_WARNING_HI_BA_StillDraining (U32 numDrained, U32 numToDrain) |
void | log_WARNING_HI_BA_AlreadyDraining () |
void | log_WARNING_HI_BA_DrainStalled (U32 numDrained, U32 numToDrain) |
void | log_ACTIVITY_HI_BA_PartialDrainDone (U32 numDrained) |
void | log_WARNING_LO_BA_NonBlockDrain (U32 numWillDrain, U32 numReqDrain) |
void | tlmWrite_BA_NumQueuedBuffers (U32 arg, Fw::Time _tlmTime=Fw::Time()) |
Fw::Time | getTime () |
Protected Member Functions inherited from Fw::ActiveComponentBase | |
ActiveComponentBase (const char *name) | |
Constructor. More... | |
virtual | ~ActiveComponentBase () |
Destructor. More... | |
void | init (NATIVE_INT_TYPE instance) |
initialization code More... | |
virtual void | preamble () |
A function that will be called before the event loop is entered. More... | |
MsgDispatchStatus | dispatch () |
The function that will dispatching messages. More... | |
virtual void | finalizer () |
A function that will be called after exiting the loop. More... | |
Protected Member Functions inherited from Fw::QueuedComponentBase | |
QueuedComponentBase (const char *name) | |
Constructor. More... | |
virtual | ~QueuedComponentBase () |
Destructor. More... | |
void | init (NATIVE_INT_TYPE instance) |
initialization function More... | |
Os::Queue::QueueStatus | createQueue (NATIVE_INT_TYPE depth, NATIVE_INT_TYPE msgSize) |
NATIVE_INT_TYPE | getNumMsgsDropped () |
return number of messages dropped More... | |
void | incNumMsgDropped () |
increment the number of messages dropped 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 | BufferAccumulatorComponentBaseFriend |
Friend class for white-box testing. More... | |
Additional Inherited Members | |
Public Types inherited from Fw::ActiveComponentBase | |
enum | { ACTIVE_COMPONENT_EXIT } |
Public Types inherited from Fw::QueuedComponentBase | |
enum | MsgDispatchStatus { MSG_DISPATCH_OK , MSG_DISPATCH_EMPTY , MSG_DISPATCH_ERROR , MSG_DISPATCH_EXIT } |
Protected Attributes inherited from Fw::ActiveComponentBase | |
Os::Task | m_task |
task object for active component More... | |
Protected Attributes inherited from Fw::QueuedComponentBase | |
Os::Queue | m_queue |
queue object for active component More... | |
Auto-generated base for BufferAccumulator component.
Definition at line 35 of file BufferAccumulatorComponentAc.hpp.
|
protected |
Enumerations for numbers of special input ports.
Enumerator | |
---|---|
NUM_CMDIN_INPUT_PORTS |
Definition at line 53 of file BufferAccumulatorComponentAc.hpp.
|
protected |
Enumerations for numbers of typed input ports.
Enumerator | |
---|---|
NUM_BUFFERSENDINFILL_INPUT_PORTS | |
NUM_BUFFERSENDINRETURN_INPUT_PORTS | |
NUM_PINGIN_INPUT_PORTS |
Definition at line 58 of file BufferAccumulatorComponentAc.hpp.
|
protected |
Enumerations for numbers of special output ports.
Enumerator | |
---|---|
NUM_CMDREGOUT_OUTPUT_PORTS | |
NUM_CMDRESPONSEOUT_OUTPUT_PORTS | |
NUM_EVENTOUT_OUTPUT_PORTS | |
NUM_EVENTOUTTEXT_OUTPUT_PORTS | |
NUM_TIMECALLER_OUTPUT_PORTS | |
NUM_TLMOUT_OUTPUT_PORTS |
Definition at line 65 of file BufferAccumulatorComponentAc.hpp.
|
protected |
Enumerations for numbers of typed output ports.
Enumerator | |
---|---|
NUM_BUFFERSENDOUTDRAIN_OUTPUT_PORTS | |
NUM_BUFFERSENDOUTRETURN_OUTPUT_PORTS | |
NUM_PINGOUT_OUTPUT_PORTS |
Definition at line 75 of file BufferAccumulatorComponentAc.hpp.
|
protected |
Command opcodes.
Enumerator | |
---|---|
OPCODE_BA_SETMODE | Set the mode. |
OPCODE_BA_DRAINBUFFERS | Drain the commanded number of buffers. |
Definition at line 82 of file BufferAccumulatorComponentAc.hpp.
|
protected |
Event IDs.
Definition at line 88 of file BufferAccumulatorComponentAc.hpp.
|
protected |
Channel IDs.
Enumerator | |
---|---|
CHANNELID_BA_NUMQUEUEDBUFFERS | Channel ID for BA_NumQueuedBuffers. |
Definition at line 99 of file BufferAccumulatorComponentAc.hpp.
|
protected |
Construct BufferAccumulatorComponentBase object.
compName | The component name |
Definition at line 720 of file BufferAccumulatorComponentAc.cpp.
|
protectedvirtual |
Destroy BufferAccumulatorComponentBase object.
Definition at line 727 of file BufferAccumulatorComponentAc.cpp.
|
protectedpure virtual |
Handler for command BA_DrainBuffers
Drain the commanded number of buffers
opCode | The opcode |
cmdSeq | The command sequence number |
|
protected |
Base-class handler function for command BA_DrainBuffers
Drain the commanded number of buffers
opCode | The opcode |
cmdSeq | The command sequence number |
args | The command argument buffer |
Definition at line 1271 of file BufferAccumulatorComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command BA_DrainBuffers.
opCode | The opcode |
cmdSeq | The command sequence number |
Definition at line 1349 of file BufferAccumulatorComponentAc.cpp.
|
protectedpure virtual |
Handler for command BA_SetMode
Set the mode
opCode | The opcode |
cmdSeq | The command sequence number |
|
protected |
Base-class handler function for command BA_SetMode
Set the mode
opCode | The opcode |
cmdSeq | The command sequence number |
args | The command argument buffer |
Definition at line 1212 of file BufferAccumulatorComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command BA_SetMode.
opCode | The opcode |
cmdSeq | The command sequence number |
Definition at line 1338 of file BufferAccumulatorComponentAc.cpp.
|
protectedpure virtual |
Handler for input port bufferSendInFill.
portNum | The port number |
fwBuffer | The buffer |
|
protected |
Handler base-class function for input port bufferSendInFill.
portNum | The port number |
fwBuffer | The buffer |
Definition at line 948 of file BufferAccumulatorComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port bufferSendInFill.
portNum | The port number |
fwBuffer | The buffer |
Definition at line 1115 of file BufferAccumulatorComponentAc.cpp.
|
protectedpure virtual |
Handler for input port bufferSendInReturn.
portNum | The port number |
fwBuffer | The buffer |
|
protected |
Handler base-class function for input port bufferSendInReturn.
portNum | The port number |
fwBuffer | The buffer |
Definition at line 1001 of file BufferAccumulatorComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port bufferSendInReturn.
portNum | The port number |
fwBuffer | The buffer |
Definition at line 1124 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Invoke output port bufferSendOutDrain.
portNum | The port number |
fwBuffer | The buffer |
Definition at line 1146 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Invoke output port bufferSendOutReturn.
portNum | The port number |
fwBuffer | The buffer |
Definition at line 1161 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Emit command response.
opCode | The opcode |
cmdSeq | The command sequence number |
response | The command response |
Definition at line 1195 of file BufferAccumulatorComponentAc.cpp.
Fw::InputBufferSendPort * Svc::BufferAccumulatorComponentBase::get_bufferSendInFill_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
portNum | The port number |
Definition at line 381 of file BufferAccumulatorComponentAc.cpp.
Fw::InputBufferSendPort * Svc::BufferAccumulatorComponentBase::get_bufferSendInReturn_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
portNum | The port number |
Definition at line 392 of file BufferAccumulatorComponentAc.cpp.
Fw::InputCmdPort * Svc::BufferAccumulatorComponentBase::get_cmdIn_InputPort | ( | FwIndexType | portNum | ) |
Get special input port at index
portNum | The port number |
Definition at line 366 of file BufferAccumulatorComponentAc.cpp.
Svc::InputPingPort * Svc::BufferAccumulatorComponentBase::get_pingIn_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
portNum | The port number |
Definition at line 403 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Get the number of bufferSendInFill input ports
Definition at line 747 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Get the number of bufferSendInReturn input ports
Definition at line 753 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Get the number of bufferSendOutDrain output ports
Definition at line 813 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Get the number of bufferSendOutReturn output ports
Definition at line 819 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Get the number of cmdIn input ports
Definition at line 737 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Get the number of cmdRegOut output ports
Definition at line 769 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Get the number of cmdResponseOut output ports
Definition at line 775 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Get the number of eventOut output ports
Definition at line 781 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Get the number of pingIn input ports
Definition at line 759 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Get the number of pingOut output ports
Definition at line 825 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Get the number of timeCaller output ports
Definition at line 797 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Get the number of tlmOut output ports
Definition at line 803 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Get the time
\return The current time
Definition at line 1988 of file BufferAccumulatorComponentAc.cpp.
void Svc::BufferAccumulatorComponentBase::init | ( | FwQueueSizeType | queueDepth, |
FwEnumStoreType | instance = 0 |
||
) |
Initialize BufferAccumulatorComponentBase object.
queueDepth | The queue depth |
instance | The instance number |
Definition at line 74 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Check whether port bufferSendOutDrain is connected
portNum | The port number |
Definition at line 909 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Check whether port bufferSendOutReturn is connected
portNum | The port number |
Definition at line 920 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Check whether port cmdRegOut is connected
portNum | The port number |
Definition at line 835 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Check whether port cmdResponseOut is connected
portNum | The port number |
Definition at line 846 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Check whether port eventOut is connected
portNum | The port number |
Definition at line 857 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Check whether port pingOut is connected
portNum | The port number |
Definition at line 931 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Check whether port timeCaller is connected
portNum | The port number |
Definition at line 883 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Check whether port tlmOut is connected
portNum | The port number |
Definition at line 894 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Log event BA_BufferAccepted
The Buffer Accumulator instance accepted and enqueued a buffer. To avoid uncontrolled sending of events, this event occurs only when the previous buffer received caused a QueueFull error.
Definition at line 1364 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Log event BA_PartialDrainDone
Finished DrainBuffers command
Definition at line 1763 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Log event BA_AlreadyDraining
Got DrainBuffers command while in DRAIN mode
Definition at line 1596 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Log event BA_DrainStalled
Ran out of buffers while executing DrainBuffers command
Definition at line 1661 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Log event BA_QueueFull
The Buffer Accumulator instance received a buffer when its queue was full. To avoid uncontrolled sending of events, this event occurs only when the previous buffer received did not cause a QueueFull error.
Definition at line 1429 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Log event BA_StillDraining
Got DrainBuffers command while executing DrainBuffers command
Definition at line 1494 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Log event BA_NonBlockDrain
Not enough buffers to complete requested drain, and NOBLOCK was set; will only drain what we have
Definition at line 1845 of file BufferAccumulatorComponentAc.cpp.
|
protectedpure virtual |
Handler for input port pingIn.
portNum | The port number |
key | Value to return to pinger |
|
protected |
Handler base-class function for input port pingIn.
portNum | The port number |
key | Value to return to pinger |
Definition at line 1054 of file BufferAccumulatorComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port pingIn.
portNum | The port number |
key | Value to return to pinger |
Definition at line 1133 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Invoke output port pingOut.
portNum | The port number |
key | Value to return to pinger |
Definition at line 1176 of file BufferAccumulatorComponentAc.cpp.
void Svc::BufferAccumulatorComponentBase::regCommands | ( | ) |
Register commands with the Command Dispatcher.
Connect the dispatcher first
Definition at line 702 of file BufferAccumulatorComponentAc.cpp.
void Svc::BufferAccumulatorComponentBase::set_bufferSendOutDrain_OutputPort | ( | FwIndexType | portNum, |
Fw::InputBufferSendPort * | port | ||
) |
Connect port to bufferSendOutDrain[portNum].
portNum | The port number |
port | The input port |
Definition at line 510 of file BufferAccumulatorComponentAc.cpp.
void Svc::BufferAccumulatorComponentBase::set_bufferSendOutReturn_OutputPort | ( | FwIndexType | portNum, |
Fw::InputBufferSendPort * | port | ||
) |
Connect port to bufferSendOutReturn[portNum].
portNum | The port number |
port | The input port |
Definition at line 524 of file BufferAccumulatorComponentAc.cpp.
void Svc::BufferAccumulatorComponentBase::set_cmdRegOut_OutputPort | ( | FwIndexType | portNum, |
Fw::InputCmdRegPort * | port | ||
) |
Connect port to cmdRegOut[portNum].
portNum | The port number |
port | The input port |
Definition at line 418 of file BufferAccumulatorComponentAc.cpp.
void Svc::BufferAccumulatorComponentBase::set_cmdResponseOut_OutputPort | ( | FwIndexType | portNum, |
Fw::InputCmdResponsePort * | port | ||
) |
Connect port to cmdResponseOut[portNum].
portNum | The port number |
port | The input port |
Definition at line 432 of file BufferAccumulatorComponentAc.cpp.
void Svc::BufferAccumulatorComponentBase::set_eventOut_OutputPort | ( | FwIndexType | portNum, |
Fw::InputLogPort * | port | ||
) |
Connect port to eventOut[portNum].
portNum | The port number |
port | The input port |
Definition at line 446 of file BufferAccumulatorComponentAc.cpp.
void Svc::BufferAccumulatorComponentBase::set_pingOut_OutputPort | ( | FwIndexType | portNum, |
Svc::InputPingPort * | port | ||
) |
Connect port to pingOut[portNum].
portNum | The port number |
port | The input port |
Definition at line 538 of file BufferAccumulatorComponentAc.cpp.
void Svc::BufferAccumulatorComponentBase::set_timeCaller_OutputPort | ( | FwIndexType | portNum, |
Fw::InputTimePort * | port | ||
) |
Connect port to timeCaller[portNum].
portNum | The port number |
port | The input port |
Definition at line 478 of file BufferAccumulatorComponentAc.cpp.
void Svc::BufferAccumulatorComponentBase::set_tlmOut_OutputPort | ( | FwIndexType | portNum, |
Fw::InputTlmPort * | port | ||
) |
Connect port to tlmOut[portNum].
portNum | The port number |
port | The input port |
Definition at line 492 of file BufferAccumulatorComponentAc.cpp.
|
protected |
Write telemetry channel BA_NumQueuedBuffers
The number of buffers queued
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1951 of file BufferAccumulatorComponentAc.cpp.
|
friend |
Friend class for white-box testing.
Definition at line 44 of file BufferAccumulatorComponentAc.hpp.