![]() |
F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
Executes a set of components as part of a rate group. More...
#include <Svc/ActiveRateGroup/ActiveRateGroup.hpp>
Public Member Functions | |
ActiveRateGroup (const char *compName) | |
ActiveRateGroup constructor. More... | |
void | init (NATIVE_INT_TYPE queueDepth, NATIVE_INT_TYPE instance) |
ActiveRateGroup initialization function. More... | |
void | configure (NATIVE_INT_TYPE contexts[], NATIVE_INT_TYPE numContexts) |
ActiveRateGroup configuration function. More... | |
~ActiveRateGroup () | |
ActiveRateGroup destructor. More... | |
![]() | |
void | init (NATIVE_INT_TYPE queueDepth, NATIVE_INT_TYPE instance=0) |
Initialize ActiveRateGroupComponentBase object. More... | |
Svc::InputCyclePort * | get_CycleIn_InputPort (NATIVE_INT_TYPE portNum) |
Svc::InputPingPort * | get_PingIn_InputPort (NATIVE_INT_TYPE portNum) |
void | set_Log_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputLogPort *port) |
Connect port to Log[portNum]. More... | |
void | set_Time_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputTimePort *port) |
Connect port to Time[portNum]. More... | |
void | set_Tlm_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputTlmPort *port) |
Connect port to Tlm[portNum]. More... | |
void | set_PingOut_OutputPort (NATIVE_INT_TYPE portNum, Svc::InputPingPort *port) |
Connect port to PingOut[portNum]. More... | |
void | set_RateGroupMemberOut_OutputPort (NATIVE_INT_TYPE portNum, Svc::InputSchedPort *port) |
Connect port to RateGroupMemberOut[portNum]. More... | |
![]() | |
void | start (NATIVE_UINT_TYPE priority=Os::Task::TASK_DEFAULT, NATIVE_UINT_TYPE stackSize=Os::Task::TASK_DEFAULT, NATIVE_UINT_TYPE cpuAffinity=Os::Task::TASK_DEFAULT, NATIVE_UINT_TYPE identifier=Os::Task::TASK_DEFAULT) |
called by instantiator when task is to be started More... | |
DEPRECATED (void start(NATIVE_INT_TYPE identifier, NATIVE_INT_TYPE priority, NATIVE_INT_TYPE stackSize, NATIVE_INT_TYPE cpuAffinity=-1), "Please switch to start(NATIVE_UINT_TYPE priority, NATIVE_UINT_TYPE stackSize, NATIVE_UINT_TYPE cpuAffinity, NATIVE_UINT_TYPE identifier)") | |
called by instantiator when task is to be started More... | |
void | exit () |
exit task in active component More... | |
Os::Task::TaskStatus | join (void **value_ptr) |
provide return value of thread if value_ptr is not NULL More... | |
![]() | |
void | setIdBase (const U32) |
Set the ID base. More... | |
U32 | getIdBase () const |
Static Public Attributes | |
static constexpr NATIVE_INT_TYPE | CONNECTION_COUNT_MAX = NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS |
Executes a set of components as part of a rate group.
ActiveRateGroup takes an input cycle call to begin the rate group cycle. It calls each output port in succession and passes the value in the context array at the index corresponding to the output port number. It keeps track of the execution time of the rate group and detects overruns.
Definition at line 31 of file ActiveRateGroup.hpp.
Svc::ActiveRateGroup::ActiveRateGroup | ( | const char * | compName | ) |
ActiveRateGroup constructor.
The constructor of the class clears all the flags and copies the contents of the context array to private storage.
compName | Name of the component |
Definition at line 23 of file ActiveRateGroup.cpp.
Svc::ActiveRateGroup::~ActiveRateGroup | ( | ) |
ActiveRateGroup destructor.
The destructor of the class is empty
Definition at line 51 of file ActiveRateGroup.cpp.
void Svc::ActiveRateGroup::configure | ( | NATIVE_INT_TYPE | contexts[], |
NATIVE_INT_TYPE | numContexts | ||
) |
ActiveRateGroup configuration function.
The configuration function takes an array of context values to pass to members of the rate group.
contexts | Array of integers that contain the context values that will be sent to each member component. The index of the array corresponds to the output port number. |
numContexts | The number of elements in the context array. |
Definition at line 33 of file ActiveRateGroup.cpp.
void Svc::ActiveRateGroup::init | ( | NATIVE_INT_TYPE | queueDepth, |
NATIVE_INT_TYPE | instance | ||
) |
ActiveRateGroup initialization function.
The initialization function of the class initializes the member ports and the component base class
queueDepth | Depth of the active component message queue |
instance | Identifies the instance of the rate group component |
Definition at line 47 of file ActiveRateGroup.cpp.
|
staticconstexpr |
Definition at line 33 of file ActiveRateGroup.hpp.