![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
Auto-generated base for ActivePhaser component. More...
#include <Svc/ActivePhaser/ActivePhaserComponentAc.hpp>
Public Member Functions | |
| void | init (FwSizeType queueDepth, FwEnumStoreType instance=0) |
| Initialize ActivePhaserComponentBase object. More... | |
| Svc::InputCyclePort * | get_CycleIn_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_tlmOut_OutputPort (FwIndexType portNum, Fw::InputTlmPort *port) |
| Connect port to tlmOut[portNum]. More... | |
| void | set_PhaserMemberOut_OutputPort (FwIndexType portNum, Svc::InputSchedPort *port) |
| Connect port to PhaserMemberOut[portNum]. More... | |
Public Member Functions inherited from Fw::ActiveComponentBase | |
| void | start (FwTaskPriorityType priority=Os::Task::TASK_PRIORITY_DEFAULT, FwSizeType stackSize=Os::Task::TASK_DEFAULT, FwSizeType cpuAffinity=Os::Task::TASK_DEFAULT, FwTaskIdType identifier=static_cast< FwTaskIdType >(Os::Task::TASK_DEFAULT)) |
| called by instantiator when task is to be started More... | |
| void | exit () |
| exit task in active component More... | |
| Os::Task::Status | join () |
| Join the thread. More... | |
| DEPRECATED (Os::Task::Status join(void **value_ptr), "Switch to .join()") | |
| Join to thread with discarded value_ptr. More... | |
Public Member Functions inherited from Fw::PassiveComponentBase | |
| void | setIdBase (const FwIdType) |
| Set the ID base. More... | |
| FwIdType | getIdBase () const |
Protected Types | |
| enum | { NUM_CYCLEIN_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, NUM_TLMOUT_OUTPUT_PORTS = 1 } |
| Enumerations for numbers of special output ports. More... | |
| enum | { NUM_PHASERMEMBEROUT_OUTPUT_PORTS = 10 } |
| Enumerations for numbers of typed output ports. More... | |
| enum | { EVENTID_MISSEDDEADLINE = 0x0 } |
| Event IDs. More... | |
| enum | { EVENTID_MISSEDDEADLINE_THROTTLE = 5 } |
| Event throttle values: sets initial value of countdown variables. More... | |
Protected Types inherited from Fw::ActiveComponentBase | |
| enum | Lifecycle { CREATED, DISPATCHING, FINALIZING, DONE } |
| Tracks the lifecycle of the component. More... | |
Protected Member Functions | |
| ActivePhaserComponentBase (const char *compName="") | |
| Construct ActivePhaserComponentBase object. More... | |
| virtual | ~ActivePhaserComponentBase () |
| Destroy ActivePhaserComponentBase object. More... | |
| bool | isConnected_logOut_OutputPort (FwIndexType portNum) |
| bool | isConnected_timeCaller_OutputPort (FwIndexType portNum) |
| bool | isConnected_tlmOut_OutputPort (FwIndexType portNum) |
| bool | isConnected_PhaserMemberOut_OutputPort (FwIndexType portNum) |
| virtual void | CycleIn_handler (FwIndexType portNum, Os::RawTime &cycleStart)=0 |
| Handler for input port CycleIn. More... | |
| void | CycleIn_handlerBase (FwIndexType portNum, Os::RawTime &cycleStart) |
| Handler base-class function for input port CycleIn. More... | |
| virtual void | CycleIn_preMsgHook (FwIndexType portNum, Os::RawTime &cycleStart) |
| Pre-message hook for async input port CycleIn. More... | |
| void | PhaserMemberOut_out (FwIndexType portNum, U32 context) |
| Invoke output port PhaserMemberOut. More... | |
| virtual void | Tick_internalInterfaceHandler ()=0 |
| Internal interface handler for Tick. More... | |
| void | Tick_internalInterfaceInvoke () |
| Internal interface base-class function for Tick. More... | |
| void | log_WARNING_HI_MissedDeadline (FwIndexType p, U32 start, U32 length, U32 ticks) |
| void | log_WARNING_HI_MissedDeadline_ThrottleClear () |
| Reset throttle value for MissedDeadline. More... | |
| Fw::Time | getTime () const |
Protected Member Functions inherited from Fw::ActiveComponentBase | |
| ActiveComponentBase (const char *name) | |
| Constructor. More... | |
| virtual | ~ActiveComponentBase () |
| Destructor. More... | |
| void | init (FwEnumStoreType 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 (FwEnumStoreType instance) |
| initialization function More... | |
| Os::Queue::Status | createQueue (FwSizeType depth, FwSizeType msgSize) |
| FwSizeType | 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 (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... | |
Static Protected Member Functions | |
| static constexpr FwIndexType | getNum_CycleIn_InputPorts () |
| static constexpr FwIndexType | getNum_logOut_OutputPorts () |
| static constexpr FwIndexType | getNum_timeCaller_OutputPorts () |
| static constexpr FwIndexType | getNum_tlmOut_OutputPorts () |
| static constexpr FwIndexType | getNum_PhaserMemberOut_OutputPorts () |
Friends | |
| class | ActivePhaserTesterBase |
| Friend class tester to support autocoded test harness. More... | |
| class | ActivePhaserTester |
| Friend class tester implementation to support 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 ActivePhaser component.
A rate group active component that schedules output port calls at pre-defined start times
Definition at line 34 of file ActivePhaserComponentAc.hpp.
|
protected |
Enumerations for numbers of typed input ports.
| Enumerator | |
|---|---|
| NUM_CYCLEIN_INPUT_PORTS | |
Definition at line 54 of file ActivePhaserComponentAc.hpp.
|
protected |
Enumerations for numbers of special output ports.
| Enumerator | |
|---|---|
| NUM_LOGOUT_OUTPUT_PORTS | |
| NUM_LOGTEXTOUT_OUTPUT_PORTS | |
| NUM_TIMECALLER_OUTPUT_PORTS | |
| NUM_TLMOUT_OUTPUT_PORTS | |
Definition at line 59 of file ActivePhaserComponentAc.hpp.
|
protected |
Enumerations for numbers of typed output ports.
| Enumerator | |
|---|---|
| NUM_PHASERMEMBEROUT_OUTPUT_PORTS | |
Definition at line 67 of file ActivePhaserComponentAc.hpp.
|
protected |
Event IDs.
| Enumerator | |
|---|---|
| EVENTID_MISSEDDEADLINE | Warning event that rate group has had a missed deadline. |
Definition at line 72 of file ActivePhaserComponentAc.hpp.
|
protected |
Event throttle values: sets initial value of countdown variables.
| Enumerator | |
|---|---|
| EVENTID_MISSEDDEADLINE_THROTTLE | Throttle reset count for MissedDeadline. |
Definition at line 77 of file ActivePhaserComponentAc.hpp.
|
protected |
Construct ActivePhaserComponentBase object.
| compName | The component name |
Definition at line 402 of file ActivePhaserComponentAc.cpp.
|
protectedvirtual |
Destroy ActivePhaserComponentBase object.
Definition at line 409 of file ActivePhaserComponentAc.cpp.
|
protectedpure virtual |
Handler for input port CycleIn.
| portNum | The port number |
| cycleStart | Cycle start timestamp |
|
protected |
Handler base-class function for input port CycleIn.
| portNum | The port number |
| cycleStart | Cycle start timestamp |
Definition at line 488 of file ActivePhaserComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port CycleIn.
| portNum | The port number |
| cycleStart | Cycle start timestamp |
Definition at line 554 of file ActivePhaserComponentAc.cpp.
| Svc::InputCyclePort * Svc::ActivePhaserComponentBase::get_CycleIn_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 215 of file ActivePhaserComponentAc.cpp.
|
inlinestaticprotected |
Get the number of CycleIn input ports
Definition at line 229 of file ActivePhaserComponentAc.hpp.
|
inlinestaticprotected |
Get the number of logOut output ports
Definition at line 242 of file ActivePhaserComponentAc.hpp.
|
inlinestaticprotected |
Get the number of PhaserMemberOut output ports
Definition at line 280 of file ActivePhaserComponentAc.hpp.
|
inlinestaticprotected |
Get the number of timeCaller output ports
Definition at line 260 of file ActivePhaserComponentAc.hpp.
|
inlinestaticprotected |
Get the number of tlmOut output ports
Definition at line 267 of file ActivePhaserComponentAc.hpp.
|
protected |
| void Svc::ActivePhaserComponentBase::init | ( | FwSizeType | queueDepth, |
| FwEnumStoreType | instance = 0 |
||
| ) |
Initialize ActivePhaserComponentBase object.
| queueDepth | The queue depth |
| instance | The instance number |
Definition at line 70 of file ActivePhaserComponentAc.cpp.
|
protected |
Check whether port logOut is connected
| portNum | The port number |
Definition at line 419 of file ActivePhaserComponentAc.cpp.
|
protected |
Check whether port PhaserMemberOut is connected
| portNum | The port number |
Definition at line 471 of file ActivePhaserComponentAc.cpp.
|
protected |
Check whether port timeCaller is connected
| portNum | The port number |
Definition at line 445 of file ActivePhaserComponentAc.cpp.
|
protected |
Check whether port tlmOut is connected
| portNum | The port number |
Definition at line 456 of file ActivePhaserComponentAc.cpp.
|
protected |
Log event MissedDeadline
Warning event that rate group has had a missed deadline
| p | Port that is delayed |
| start | Start of execution window |
| length | Length of the execution window |
| ticks | Time in ticks the deadline was late |
Definition at line 630 of file ActivePhaserComponentAc.cpp.
|
protected |
Reset throttle value for MissedDeadline.
Definition at line 780 of file ActivePhaserComponentAc.cpp.
|
protected |
Invoke output port PhaserMemberOut.
| portNum | The port number |
| context | The call order |
Definition at line 567 of file ActivePhaserComponentAc.cpp.
| void Svc::ActivePhaserComponentBase::set_logOut_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputLogPort * | port | ||
| ) |
Connect port to logOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 230 of file ActivePhaserComponentAc.cpp.
| void Svc::ActivePhaserComponentBase::set_PhaserMemberOut_OutputPort | ( | FwIndexType | portNum, |
| Svc::InputSchedPort * | port | ||
| ) |
Connect port to PhaserMemberOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 294 of file ActivePhaserComponentAc.cpp.
| void Svc::ActivePhaserComponentBase::set_timeCaller_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputTimePort * | port | ||
| ) |
Connect port to timeCaller[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 262 of file ActivePhaserComponentAc.cpp.
| void Svc::ActivePhaserComponentBase::set_tlmOut_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputTlmPort * | port | ||
| ) |
Connect port to tlmOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 276 of file ActivePhaserComponentAc.cpp.
|
protectedpure virtual |
Internal interface handler for Tick.
|
protected |
Internal interface base-class function for Tick.
Definition at line 591 of file ActivePhaserComponentAc.cpp.
|
friend |
Friend class tester implementation to support white-box testing.
Definition at line 45 of file ActivePhaserComponentAc.hpp.
|
friend |
Friend class tester to support autocoded test harness.
Definition at line 43 of file ActivePhaserComponentAc.hpp.