![]() |
F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
Auto-generated base for ActiveRateGroup component. More...
#include <Svc/ActiveRateGroup/ActiveRateGroupComponentAc.hpp>
Public Member Functions | |
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 |
Protected Types | |
enum | { NUM_CYCLEIN_INPUT_PORTS = 1 , NUM_PINGIN_INPUT_PORTS = 1 } |
Enumerations for numbers of typed input ports. More... | |
enum | { NUM_LOG_OUTPUT_PORTS = 1 , NUM_LOGTEXT_OUTPUT_PORTS = 1 , NUM_TIME_OUTPUT_PORTS = 1 , NUM_TLM_OUTPUT_PORTS = 1 } |
Enumerations for numbers of special output ports. More... | |
enum | { NUM_PINGOUT_OUTPUT_PORTS = 1 , NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS = 10 } |
Enumerations for numbers of typed output ports. More... | |
enum | { EVENTID_RATEGROUPSTARTED = 0x0 , EVENTID_RATEGROUPCYCLESLIP = 0x1 } |
Event IDs. More... | |
enum | { CHANNELID_RGMAXTIME = 0x0 , CHANNELID_RGCYCLESLIPS = 0x1 } |
Channel IDs. More... | |
Protected Member Functions | |
ActiveRateGroupComponentBase (const char *compName="") | |
Construct ActiveRateGroupComponentBase object. More... | |
virtual | ~ActiveRateGroupComponentBase () |
Destroy ActiveRateGroupComponentBase object. More... | |
NATIVE_INT_TYPE | getNum_CycleIn_InputPorts () const |
NATIVE_INT_TYPE | getNum_PingIn_InputPorts () const |
NATIVE_INT_TYPE | getNum_Log_OutputPorts () const |
NATIVE_INT_TYPE | getNum_Time_OutputPorts () const |
NATIVE_INT_TYPE | getNum_Tlm_OutputPorts () const |
NATIVE_INT_TYPE | getNum_PingOut_OutputPorts () const |
NATIVE_INT_TYPE | getNum_RateGroupMemberOut_OutputPorts () const |
bool | isConnected_Log_OutputPort (NATIVE_INT_TYPE portNum) |
bool | isConnected_Time_OutputPort (NATIVE_INT_TYPE portNum) |
bool | isConnected_Tlm_OutputPort (NATIVE_INT_TYPE portNum) |
bool | isConnected_PingOut_OutputPort (NATIVE_INT_TYPE portNum) |
bool | isConnected_RateGroupMemberOut_OutputPort (NATIVE_INT_TYPE portNum) |
virtual void | CycleIn_handler (NATIVE_INT_TYPE portNum, Svc::TimerVal &cycleStart)=0 |
Handler for input port CycleIn. More... | |
virtual void | PingIn_handler (NATIVE_INT_TYPE portNum, U32 key)=0 |
Handler for input port PingIn. More... | |
void | CycleIn_handlerBase (NATIVE_INT_TYPE portNum, Svc::TimerVal &cycleStart) |
Handler base-class function for input port CycleIn. More... | |
void | PingIn_handlerBase (NATIVE_INT_TYPE portNum, U32 key) |
Handler base-class function for input port PingIn. More... | |
virtual void | CycleIn_preMsgHook (NATIVE_INT_TYPE portNum, Svc::TimerVal &cycleStart) |
Pre-message hook for async input port CycleIn. More... | |
virtual void | PingIn_preMsgHook (NATIVE_INT_TYPE portNum, U32 key) |
Pre-message hook for async input port PingIn. More... | |
void | PingOut_out (NATIVE_INT_TYPE portNum, U32 key) |
Invoke output port PingOut. More... | |
void | RateGroupMemberOut_out (NATIVE_INT_TYPE portNum, NATIVE_UINT_TYPE context) |
Invoke output port RateGroupMemberOut. More... | |
void | log_DIAGNOSTIC_RateGroupStarted () |
void | log_WARNING_HI_RateGroupCycleSlip (U32 cycle) |
void | tlmWrite_RgMaxTime (U32 arg, Fw::Time _tlmTime=Fw::Time()) |
void | tlmWrite_RgCycleSlips (U32 arg, Fw::Time _tlmTime=Fw::Time()) |
Fw::Time | getTime () |
![]() | |
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... | |
virtual void | loop () |
The function that will loop dispatching messages. More... | |
virtual void | finalizer () |
A function that will be called after exiting the loop. More... | |
![]() | |
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... | |
![]() | |
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 |
![]() | |
ObjBase (const char *name) | |
ObjBase constructor. More... | |
virtual | ~ObjBase () |
Destructor. More... | |
void | init () |
Object initializer. More... | |
Friends | |
class | ActiveRateGroupComponentBaseFriend |
Friend class for white-box testing. More... | |
Additional Inherited Members | |
![]() | |
enum | { ACTIVE_COMPONENT_EXIT } |
![]() | |
enum | MsgDispatchStatus { MSG_DISPATCH_OK , MSG_DISPATCH_EMPTY , MSG_DISPATCH_ERROR , MSG_DISPATCH_EXIT } |
![]() | |
Os::Task | m_task |
task object for active component More... | |
![]() | |
Os::Queue | m_queue |
queue object for active component More... | |
Auto-generated base for ActiveRateGroup component.
A rate group active component with input and output scheduler ports
Definition at line 32 of file ActiveRateGroupComponentAc.hpp.
|
protected |
Event IDs.
Enumerator | |
---|---|
EVENTID_RATEGROUPSTARTED | Informational event that rate group has started. |
EVENTID_RATEGROUPCYCLESLIP | Warning event that rate group has had a cycle slip. |
Definition at line 70 of file ActiveRateGroupComponentAc.hpp.
|
protected |
Channel IDs.
Enumerator | |
---|---|
CHANNELID_RGMAXTIME | Channel ID for RgMaxTime. |
CHANNELID_RGCYCLESLIPS | Channel ID for RgCycleSlips. |
Definition at line 76 of file ActiveRateGroupComponentAc.hpp.
|
protected |
Enumerations for numbers of typed input ports.
Enumerator | |
---|---|
NUM_CYCLEIN_INPUT_PORTS | |
NUM_PINGIN_INPUT_PORTS |
Definition at line 50 of file ActiveRateGroupComponentAc.hpp.
|
protected |
Enumerations for numbers of special output ports.
Enumerator | |
---|---|
NUM_LOG_OUTPUT_PORTS | |
NUM_LOGTEXT_OUTPUT_PORTS | |
NUM_TIME_OUTPUT_PORTS | |
NUM_TLM_OUTPUT_PORTS |
Definition at line 56 of file ActiveRateGroupComponentAc.hpp.
|
protected |
Enumerations for numbers of typed output ports.
Enumerator | |
---|---|
NUM_PINGOUT_OUTPUT_PORTS | |
NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS |
Definition at line 64 of file ActiveRateGroupComponentAc.hpp.
|
protected |
Construct ActiveRateGroupComponentBase object.
compName | The component name |
Definition at line 547 of file ActiveRateGroupComponentAc.cpp.
|
protectedvirtual |
Destroy ActiveRateGroupComponentBase object.
Definition at line 560 of file ActiveRateGroupComponentAc.cpp.
|
protectedpure virtual |
Handler for input port CycleIn.
portNum | The port number |
cycleStart | Cycle start timer value |
|
protected |
Handler base-class function for input port CycleIn.
portNum | The port number |
cycleStart | Cycle start timer value |
Definition at line 714 of file ActiveRateGroupComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port CycleIn.
portNum | The port number |
cycleStart | Cycle start timer value |
Definition at line 833 of file ActiveRateGroupComponentAc.cpp.
Svc::InputCyclePort * Svc::ActiveRateGroupComponentBase::get_CycleIn_InputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Get typed input port at index
portNum | The port number |
Definition at line 321 of file ActiveRateGroupComponentAc.cpp.
Svc::InputPingPort * Svc::ActiveRateGroupComponentBase::get_PingIn_InputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Get typed input port at index
portNum | The port number |
Definition at line 332 of file ActiveRateGroupComponentAc.cpp.
|
protected |
Get the number of CycleIn input ports
Definition at line 570 of file ActiveRateGroupComponentAc.cpp.
|
protected |
Get the number of Log output ports
Definition at line 586 of file ActiveRateGroupComponentAc.cpp.
|
protected |
Get the number of PingIn input ports
Definition at line 576 of file ActiveRateGroupComponentAc.cpp.
|
protected |
Get the number of PingOut output ports
Definition at line 618 of file ActiveRateGroupComponentAc.cpp.
|
protected |
Get the number of RateGroupMemberOut output ports
Definition at line 624 of file ActiveRateGroupComponentAc.cpp.
|
protected |
Get the number of Time output ports
Definition at line 602 of file ActiveRateGroupComponentAc.cpp.
|
protected |
Get the number of Tlm output ports
Definition at line 608 of file ActiveRateGroupComponentAc.cpp.
|
protected |
Get the time
\return The current time
Definition at line 1152 of file ActiveRateGroupComponentAc.cpp.
void Svc::ActiveRateGroupComponentBase::init | ( | NATIVE_INT_TYPE | queueDepth, |
NATIVE_INT_TYPE | instance = 0 |
||
) |
Initialize ActiveRateGroupComponentBase object.
queueDepth | The queue depth |
instance | The instance number |
Definition at line 70 of file ActiveRateGroupComponentAc.cpp.
|
protected |
Check whether port Log is connected
portNum | The port number |
Definition at line 634 of file ActiveRateGroupComponentAc.cpp.
|
protected |
Check whether port PingOut is connected
portNum | The port number |
Definition at line 686 of file ActiveRateGroupComponentAc.cpp.
|
protected |
Check whether port RateGroupMemberOut is connected
portNum | The port number |
Definition at line 697 of file ActiveRateGroupComponentAc.cpp.
|
protected |
Check whether port Time is connected
portNum | The port number |
Definition at line 660 of file ActiveRateGroupComponentAc.cpp.
|
protected |
Check whether port Tlm is connected
portNum | The port number |
Definition at line 671 of file ActiveRateGroupComponentAc.cpp.
|
protected |
Log event RateGroupStarted
Informational event that rate group has started
Definition at line 889 of file ActiveRateGroupComponentAc.cpp.
|
protected |
Log event RateGroupCycleSlip
Warning event that rate group has had a cycle slip
cycle | The cycle where the cycle occurred |
Definition at line 960 of file ActiveRateGroupComponentAc.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 772 of file ActiveRateGroupComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port PingIn.
portNum | The port number |
key | Value to return to pinger |
Definition at line 842 of file ActiveRateGroupComponentAc.cpp.
|
protected |
Invoke output port PingOut.
portNum | The port number |
key | Value to return to pinger |
Definition at line 855 of file ActiveRateGroupComponentAc.cpp.
|
protected |
Invoke output port RateGroupMemberOut.
portNum | The port number |
context | The call order |
Definition at line 870 of file ActiveRateGroupComponentAc.cpp.
void Svc::ActiveRateGroupComponentBase::set_Log_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
Fw::InputLogPort * | port | ||
) |
Connect port to Log[portNum].
portNum | The port number |
port | The input port |
Definition at line 347 of file ActiveRateGroupComponentAc.cpp.
void Svc::ActiveRateGroupComponentBase::set_PingOut_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
Svc::InputPingPort * | port | ||
) |
Connect port to PingOut[portNum].
portNum | The port number |
port | The input port |
Definition at line 411 of file ActiveRateGroupComponentAc.cpp.
void Svc::ActiveRateGroupComponentBase::set_RateGroupMemberOut_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
Svc::InputSchedPort * | port | ||
) |
Connect port to RateGroupMemberOut[portNum].
portNum | The port number |
port | The input port |
Definition at line 425 of file ActiveRateGroupComponentAc.cpp.
void Svc::ActiveRateGroupComponentBase::set_Time_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
Fw::InputTimePort * | port | ||
) |
Connect port to Time[portNum].
portNum | The port number |
port | The input port |
Definition at line 379 of file ActiveRateGroupComponentAc.cpp.
void Svc::ActiveRateGroupComponentBase::set_Tlm_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
Fw::InputTlmPort * | port | ||
) |
Connect port to Tlm[portNum].
portNum | The port number |
port | The input port |
Definition at line 393 of file ActiveRateGroupComponentAc.cpp.
|
protected |
Write telemetry channel RgCycleSlips
Cycle slips for rate group
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1100 of file ActiveRateGroupComponentAc.cpp.
|
protected |
Write telemetry channel RgMaxTime
Max execution time rate group
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1052 of file ActiveRateGroupComponentAc.cpp.
|
friend |
Friend class for white-box testing.
Definition at line 41 of file ActiveRateGroupComponentAc.hpp.