![]() |
F´ Flight Software - C/C++ Documentation devel
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Svc/CmdSequencer/CmdSequencerImpl.hpp>
Classes | |
class | FPrimeSequence |
A sequence that uses the F Prime binary format. More... | |
class | Sequence |
A sequence with unspecified binary format. More... | |
Public Member Functions | |
CmdSequencerComponentImpl (const char *compName) | |
Construct a CmdSequencer. | |
void | init (const NATIVE_INT_TYPE queueDepth, const NATIVE_INT_TYPE instance) |
Initialize a CmdSequencer. | |
void | setTimeout (const NATIVE_UINT_TYPE seconds) |
void | setSequenceFormat (Sequence &sequence) |
void | allocateBuffer (const NATIVE_INT_TYPE identifier, Fw::MemAllocator &allocator, const NATIVE_UINT_TYPE bytes) |
void | loadSequence (const Fw::String &fileName) |
void | deallocateBuffer (Fw::MemAllocator &allocator) |
Return allocated buffer. Call during shutdown. | |
~CmdSequencerComponentImpl () | |
Destroy a CmdDispatcherComponentBase. | |
![]() | |
void | init (NATIVE_INT_TYPE queueDepth, NATIVE_INT_TYPE instance=0) |
Initialize CmdSequencerComponentBase object. | |
Fw::InputCmdPort * | get_cmdIn_InputPort (NATIVE_INT_TYPE portNum) |
Fw::InputCmdResponsePort * | get_cmdResponseIn_InputPort (NATIVE_INT_TYPE portNum) |
Svc::InputPingPort * | get_pingIn_InputPort (NATIVE_INT_TYPE portNum) |
Svc::InputSchedPort * | get_schedIn_InputPort (NATIVE_INT_TYPE portNum) |
Svc::InputCmdSeqCancelPort * | get_seqCancelIn_InputPort (NATIVE_INT_TYPE portNum) |
Svc::InputCmdSeqInPort * | get_seqRunIn_InputPort (NATIVE_INT_TYPE portNum) |
void | set_cmdRegOut_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputCmdRegPort *port) |
Connect port to cmdRegOut[portNum]. | |
void | set_cmdResponseOut_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputCmdResponsePort *port) |
Connect port to cmdResponseOut[portNum]. | |
void | set_logOut_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputLogPort *port) |
Connect port to logOut[portNum]. | |
void | set_timeCaller_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputTimePort *port) |
Connect port to timeCaller[portNum]. | |
void | set_tlmOut_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputTlmPort *port) |
Connect port to tlmOut[portNum]. | |
void | set_comCmdOut_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputComPort *port) |
Connect port to comCmdOut[portNum]. | |
void | set_pingOut_OutputPort (NATIVE_INT_TYPE portNum, Svc::InputPingPort *port) |
Connect port to pingOut[portNum]. | |
void | set_seqDone_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputCmdResponsePort *port) |
Connect port to seqDone[portNum]. | |
void | regCommands () |
Register commands with the Command Dispatcher. | |
![]() | |
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 | |
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 | |
void | exit () |
exit task in active component | |
Os::Task::TaskStatus | join (void **value_ptr) |
provide return value of thread if value_ptr is not NULL | |
![]() | |
void | setIdBase (const U32) |
Set the ID base. | |
U32 | getIdBase () const |
Definition at line 22 of file CmdSequencerImpl.hpp.
Svc::CmdSequencerComponentImpl::CmdSequencerComponentImpl | ( | const char * | compName | ) |
Construct a CmdSequencer.
compName | The component name |
Definition at line 25 of file CmdSequencerImpl.cpp.
Svc::CmdSequencerComponentImpl::~CmdSequencerComponentImpl | ( | ) |
Destroy a CmdDispatcherComponentBase.
Definition at line 87 of file CmdSequencerImpl.cpp.
void Svc::CmdSequencerComponentImpl::allocateBuffer | ( | const NATIVE_INT_TYPE | identifier, |
Fw::MemAllocator & | allocator, | ||
const NATIVE_UINT_TYPE | bytes ) |
Give the sequence a memory buffer. Call this after constructor and init, and after setting the sequence format, but before task is spawned.
identifier | The identifier |
allocator | The allocator |
bytes | The number of bytes |
Definition at line 62 of file CmdSequencerImpl.cpp.
void Svc::CmdSequencerComponentImpl::deallocateBuffer | ( | Fw::MemAllocator & | allocator | ) |
Return allocated buffer. Call during shutdown.
allocator | The allocator |
Definition at line 81 of file CmdSequencerImpl.cpp.
void Svc::CmdSequencerComponentImpl::init | ( | const NATIVE_INT_TYPE | queueDepth, |
const NATIVE_INT_TYPE | instance ) |
Initialize a CmdSequencer.
queueDepth | The queue depth |
instance | The instance number |
Definition at line 47 of file CmdSequencerImpl.cpp.
void Svc::CmdSequencerComponentImpl::loadSequence | ( | const Fw::String & | fileName | ) |
(Optional) Load a sequence to run later. When you call this function, the event ports must be connected.
fileName | The file name |
Definition at line 72 of file CmdSequencerImpl.cpp.
void Svc::CmdSequencerComponentImpl::setSequenceFormat | ( | Sequence & | sequence | ) |
(Optional) Set the sequence format. CmdSequencer will use the sequence object you pass in to load and run sequences. By default, it uses an FPrimeSequence object.
sequence | The sequence object |
Definition at line 56 of file CmdSequencerImpl.cpp.
void Svc::CmdSequencerComponentImpl::setTimeout | ( | const NATIVE_UINT_TYPE | seconds | ) |
(Optional) Set a timeout. Sequence will quit if a command takes longer than the number of seconds in the timeout value.
seconds | The number of seconds |
Definition at line 52 of file CmdSequencerImpl.cpp.