F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
|
Go to the documentation of this file.
31 m_FPrimeSequence(*this),
32 m_sequence(&this->m_FPrimeSequence),
39 m_totalExecutedCount(0),
40 m_sequencesCompletedCount(0),
160 if (filename !=
"") {
162 const bool status = this->loadFile(cmdStr);
204 bool CmdSequencerComponentImpl ::
210 this->log_ACTIVITY_LO_CS_SequenceLoaded(logFileName);
277 Fw::Time currTime = this->getTime();
287 this->m_executedCount
322 this->m_executedCount
392 Fw::Time currentTime = this->getTime();
425 this->m_executedCount,
CmdSequencerComponentImpl(const char *compName)
Construct a CmdSequencer.
NATIVE_UINT_TYPE m_timeout
timeout value
U32 m_sequencesCompletedCount
The total number of sequences completed.
PRIVATE FwOpcodeType opcode
The command opcode.
void log_ACTIVITY_HI_CS_PortSequenceStarted(Fw::LogStringArg &filename)
void deallocateBuffer(Fw::MemAllocator &allocator)
Deallocate the buffer.
Auto-generated base for CmdSequencer component.
Descriptor m_descriptor
The descriptor.
void CS_RUN_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &fileName)
Handler for command CS_RUN.
void setTimeout(NATIVE_UINT_TYPE seconds)
void pingIn_handler(NATIVE_INT_TYPE portNum, U32 key)
Handler for ping port.
void CS_CANCEL_cmdHandler(FwOpcodeType opCode, U32 cmdSeq)
void tlmWrite_CS_CancelCommands(U32 arg)
RunMode m_runMode
The run mode.
virtual void clear(void)=0
@ END_OF_SEQUENCE
end of sequence
void log_ACTIVITY_LO_CS_CommandComplete(Fw::LogStringArg &fileName, U32 recordNumber, U32 opCode)
void log_ACTIVITY_HI_CS_SequenceComplete(Fw::LogStringArg &fileName)
void tlmWrite_CS_Errors(U32 arg)
PRIVATE FwOpcodeType U32 Fw::CommandResponse response
< The command response
void performCmd_Step(void)
Perform a Step command.
U32 getUSeconds(void) const
void tlmWrite_CS_SequencesCompleted(U32 arg)
void log_ACTIVITY_HI_CS_ModeSwitched(SeqMode mode)
void pingOut_out(NATIVE_INT_TYPE portNum, U32 key)
void log_WARNING_HI_CS_SequenceTimeout(Fw::LogStringArg &filename, U32 command)
void seqDone_out(NATIVE_INT_TYPE portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CommandResponse response)
virtual bool loadFile(const Fw::CmdStringArg &fileName)=0
bool requireRunMode(RunMode mode)
U32 m_totalExecutedCount
The total number of commands executed across all sequences.
void log_WARNING_LO_CS_NoSequenceActive(void)
virtual void cmdResponseIn_handler(NATIVE_INT_TYPE portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CommandResponse response)=0
Handler for input port cmdResponseIn.
void CS_START_cmdHandler(FwOpcodeType opcode, U32 cmdSeq)
void allocateBuffer(const NATIVE_INT_TYPE identifier, Fw::MemAllocator &allocator, const NATIVE_UINT_TYPE bytes)
virtual void reset(void)=0
void init(void)
Object initializer.
void CS_MANUAL_cmdHandler(FwOpcodeType opcode, U32 cmdSeq)
void log_ACTIVITY_HI_CS_CmdStepped(Fw::LogStringArg &filename, U32 command)
void sequenceComplete(void)
Record a sequence complete event.
@ COMMAND_EXECUTION_ERROR
Fw::ComBuffer m_command
The command.
PRIVATE FwOpcodeType U32 cmdSeq
The command sequence number.
void allocateBuffer(const NATIVE_INT_TYPE identifier, Fw::MemAllocator &allocator, const NATIVE_UINT_TYPE bytes)
Give the sequence representation a memory buffer.
void log_WARNING_HI_CS_UnexpectedCompletion(U32 opcode)
virtual void CS_AUTO_cmdHandler(FwOpcodeType opCode, U32 cmdSeq)=0
Handler for command CS_AUTO.
#define FwOpcodeType
Type representation for a command opcode.
void commandError(const U32 number, const U32 opCode, const U32 error)
Record an error in executing a sequence command.
void log_WARNING_HI_CS_CommandError(Fw::LogStringArg &fileName, U32 recordNumber, U32 opCode, U32 errorStatus)
bool isConnected_seqDone_OutputPort(NATIVE_INT_TYPE portNum)
U32 m_executedCount
The number of commands executed in this sequence.
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
void setTimeBase(TimeBase timeBase)
void deallocateBuffer(Fw::MemAllocator &allocator)
Return allocated buffer. Call during shutdown.
void log_ACTIVITY_HI_CS_SequenceCanceled(Fw::LogStringArg &fileName)
Timer m_cmdTimeoutTimer
timeout timer
void performCmd_Step_ABSOLUTE(Fw::Time ¤tTime)
Perform a Step command with an absolute time.
const Header & getHeader(void) const
Get the sequence header.
StepMode m_stepMode
The step mode.
void error(void)
Record an error.
void performCmd_Step_RELATIVE(Fw::Time ¤tTime)
Perform a Step command with a relative time.
U32 getSeconds(void) const
PROTECTED U32 const Fw::CmdStringArg & fileName
void performCmd_Cancel(void)
Perform a Cancel command.
void CS_VALIDATE_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &fileName)
void CS_STEP_cmdHandler(FwOpcodeType opcode, U32 cmdSeq)
~CmdSequencerComponentImpl(void)
Destroy a CmdDispatcherComponentBase.
U32 m_errorCount
The number of errors.
void log_ACTIVITY_HI_CS_CmdStarted(Fw::LogStringArg &filename)
U32 m_cancelCmdCount
The number of Cancel commands executed.
U32 m_loadCmdCount
The number of Load commands executed.
Sequence * m_sequence
The abstract sequence.
Timer m_cmdTimer
The command time timer.
Fw::LogStringArg & getLogFileName(void)
Sequence::Record m_record
The sequence record currently being processed.
void tlmWrite_CS_CommandsExecuted(U32 arg)
virtual void nextRecord(Record &record)=0
void setTimeContext(FwTimeContextStoreType context)
static Time add(Time &a, Time &b)
A sequence with unspecified binary format.
void setCmdTimeout(const Fw::Time ¤tTime)
Set command timeout timer.
Fw::Time m_timeTag
The time tag. NOTE: timeBase and context not filled in.
int NATIVE_INT_TYPE
native integer type declaration
virtual bool hasMoreRecords(void) const =0
void commandComplete(const U32 opCode)
Record a completed command.
void schedIn_handler(NATIVE_INT_TYPE portNum, NATIVE_UINT_TYPE order)
Handler for input port schedIn.
void setSequenceFormat(Sequence &sequence)
void log_WARNING_HI_CS_InvalidMode(void)
void seqRunIn_handler(NATIVE_INT_TYPE portNum, Fw::EightyCharString &filename)
Handler for input port seqRunIn.
void loadSequence(const Fw::EightyCharString &fileName)
void log_ACTIVITY_HI_CS_SequenceValid(Fw::LogStringArg &filename)