F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
FpySequencerComponentAc.cpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title FpySequencerComponentAc.cpp
3 // \author Generated by fpp-to-cpp
4 // \brief cpp file for FpySequencer component base class
5 // ======================================================================
6 
7 #include "Fw/Prm/ParamValid.hpp"
8 #include "Fw/Types/Assert.hpp"
10 #if FW_ENABLE_TEXT_LOGGING
11 #include "Fw/Types/String.hpp"
12 #endif
14 
15 namespace Svc {
16 
17  namespace {
18 
19  // Constant definitions for the state machine signal buffer
20  namespace SmSignalBuffer {
21 
22  // Union for computing the max size of a signal type
23  union SignalTypeUnion {
24  BYTE size_of_Svc_FpySequencer_BreakpointArgs[Svc::FpySequencer_BreakpointArgs::SERIALIZED_SIZE];
25  BYTE size_of_Svc_FpySequencer_SequenceExecutionArgs[Svc::FpySequencer_SequenceExecutionArgs::SERIALIZED_SIZE];
26  };
27 
28  // The serialized size
29  static constexpr FwSizeType SERIALIZED_SIZE =
30  2 * sizeof(FwEnumStoreType) +
31  sizeof(SignalTypeUnion);
32 
33  }
34 
35  enum MsgTypeEnum {
36  FPYSEQUENCER_COMPONENT_EXIT = Fw::ActiveComponentBase::ACTIVE_COMPONENT_EXIT,
37  CMDRESPONSEIN_CMDRESPONSE,
38  PINGIN_PING,
39  SEQCANCELIN_CMDSEQCANCEL,
40  SEQRUNIN_CMDSEQIN,
41  CMD_RUN,
42  CMD_RUN_ARGS,
43  CMD_VALIDATE,
44  CMD_VALIDATE_ARGS,
45  CMD_RUN_VALIDATED,
46  CMD_CANCEL,
47  CMD_SET_BREAKPOINT,
48  CMD_BREAK,
49  CMD_CONTINUE,
50  CMD_CLEAR_BREAKPOINT,
51  CMD_STEP,
52  CMD_DUMP_STACK_TO_FILE,
53  INT_IF_CHECKTIMERSINTERNAL,
54  INT_IF_DIRECTIVE_ALLOCATE,
55  INT_IF_DIRECTIVE_CALL,
56  INT_IF_DIRECTIVE_CONSTCMD,
57  INT_IF_DIRECTIVE_DISCARD,
58  INT_IF_DIRECTIVE_EXIT,
59  INT_IF_DIRECTIVE_GETFIELD,
60  INT_IF_DIRECTIVE_GOTO,
61  INT_IF_DIRECTIVE_IF,
62  INT_IF_DIRECTIVE_LOADABS,
63  INT_IF_DIRECTIVE_LOADREL,
64  INT_IF_DIRECTIVE_MEMCMP,
65  INT_IF_DIRECTIVE_NOOP,
66  INT_IF_DIRECTIVE_PEEK,
67  INT_IF_DIRECTIVE_POPEVENT,
68  INT_IF_DIRECTIVE_POPSERIALIZABLE,
69  INT_IF_DIRECTIVE_PUSHPRM,
70  INT_IF_DIRECTIVE_PUSHRAND,
71  INT_IF_DIRECTIVE_PUSHTIME,
72  INT_IF_DIRECTIVE_PUSHTLMVAL,
73  INT_IF_DIRECTIVE_PUSHTLMVALANDTIME,
74  INT_IF_DIRECTIVE_PUSHVAL,
75  INT_IF_DIRECTIVE_RETURN,
76  INT_IF_DIRECTIVE_SETSEED,
77  INT_IF_DIRECTIVE_STACKCMD,
78  INT_IF_DIRECTIVE_STACKOP,
79  INT_IF_DIRECTIVE_STOREABS,
80  INT_IF_DIRECTIVE_STOREABSCONSTOFFSET,
81  INT_IF_DIRECTIVE_STOREREL,
82  INT_IF_DIRECTIVE_STORERELCONSTOFFSET,
83  INT_IF_DIRECTIVE_WAITABS,
84  INT_IF_DIRECTIVE_WAITREL,
85  INT_IF_TLMWRITEINTERNAL,
86  INTERNAL_STATE_MACHINE_SIGNAL,
87  };
88 
89  // Get the max size by constructing a union of the async input, command, and
90  // internal port serialization sizes
91  union BuffUnion {
92  BYTE cmdResponseInPortSize[Fw::CmdResponsePortBuffer::CAPACITY];
94  BYTE seqRunInPortSize[Svc::CmdSeqInPortBuffer::CAPACITY];
96  // Size of directive_allocate argument list
97  BYTE directive_allocateIntIfSize[
99  sizeof(U64)
100  ];
101  // Size of directive_call argument list
102  BYTE directive_callIntIfSize[
104  sizeof(U64)
105  ];
106  // Size of directive_constCmd argument list
107  BYTE directive_constCmdIntIfSize[
109  sizeof(U64)
110  ];
111  // Size of directive_discard argument list
112  BYTE directive_discardIntIfSize[
114  sizeof(U64)
115  ];
116  // Size of directive_exit argument list
117  BYTE directive_exitIntIfSize[
119  sizeof(U64)
120  ];
121  // Size of directive_getField argument list
122  BYTE directive_getFieldIntIfSize[
124  sizeof(U64)
125  ];
126  // Size of directive_goto argument list
127  BYTE directive_gotoIntIfSize[
129  sizeof(U64)
130  ];
131  // Size of directive_if argument list
132  BYTE directive_ifIntIfSize[
134  sizeof(U64)
135  ];
136  // Size of directive_loadAbs argument list
137  BYTE directive_loadAbsIntIfSize[
139  sizeof(U64)
140  ];
141  // Size of directive_loadRel argument list
142  BYTE directive_loadRelIntIfSize[
144  sizeof(U64)
145  ];
146  // Size of directive_memCmp argument list
147  BYTE directive_memCmpIntIfSize[
149  sizeof(U64)
150  ];
151  // Size of directive_noOp argument list
152  BYTE directive_noOpIntIfSize[
154  sizeof(U64)
155  ];
156  // Size of directive_peek argument list
157  BYTE directive_peekIntIfSize[
159  sizeof(U64)
160  ];
161  // Size of directive_popEvent argument list
162  BYTE directive_popEventIntIfSize[
164  sizeof(U64)
165  ];
166  // Size of directive_popSerializable argument list
167  BYTE directive_popSerializableIntIfSize[
169  sizeof(U64)
170  ];
171  // Size of directive_pushPrm argument list
172  BYTE directive_pushPrmIntIfSize[
174  sizeof(U64)
175  ];
176  // Size of directive_pushRand argument list
177  BYTE directive_pushRandIntIfSize[
179  sizeof(U64)
180  ];
181  // Size of directive_pushTime argument list
182  BYTE directive_pushTimeIntIfSize[
184  sizeof(U64)
185  ];
186  // Size of directive_pushTlmVal argument list
187  BYTE directive_pushTlmValIntIfSize[
189  sizeof(U64)
190  ];
191  // Size of directive_pushTlmValAndTime argument list
192  BYTE directive_pushTlmValAndTimeIntIfSize[
194  sizeof(U64)
195  ];
196  // Size of directive_pushVal argument list
197  BYTE directive_pushValIntIfSize[
199  sizeof(U64)
200  ];
201  // Size of directive_return argument list
202  BYTE directive_returnIntIfSize[
204  sizeof(U64)
205  ];
206  // Size of directive_setSeed argument list
207  BYTE directive_setSeedIntIfSize[
209  sizeof(U64)
210  ];
211  // Size of directive_stackCmd argument list
212  BYTE directive_stackCmdIntIfSize[
214  sizeof(U64)
215  ];
216  // Size of directive_stackOp argument list
217  BYTE directive_stackOpIntIfSize[
219  sizeof(U64)
220  ];
221  // Size of directive_storeAbs argument list
222  BYTE directive_storeAbsIntIfSize[
224  sizeof(U64)
225  ];
226  // Size of directive_storeAbsConstOffset argument list
227  BYTE directive_storeAbsConstOffsetIntIfSize[
229  sizeof(U64)
230  ];
231  // Size of directive_storeRel argument list
232  BYTE directive_storeRelIntIfSize[
234  sizeof(U64)
235  ];
236  // Size of directive_storeRelConstOffset argument list
237  BYTE directive_storeRelConstOffsetIntIfSize[
239  sizeof(U64)
240  ];
241  // Size of directive_waitAbs argument list
242  BYTE directive_waitAbsIntIfSize[
244  sizeof(U64)
245  ];
246  // Size of directive_waitRel argument list
247  BYTE directive_waitRelIntIfSize[
249  sizeof(U64)
250  ];
251  // Size of buffer for internal state machine signals
252  // The internal SmSignalBuffer stores the state machine id, the
253  // signal id, and the signal data
254  BYTE internalSmBufferSize[SmSignalBuffer::SERIALIZED_SIZE];
255  };
256 
257  // Define a message buffer class large enough to handle all the
258  // asynchronous inputs to the component
259  class ComponentIpcSerializableBuffer :
260  public Fw::LinearBufferBase
261  {
262 
263  public:
264 
265  enum {
266  // Offset into data in buffer: Size of message ID and port number
267  DATA_OFFSET = sizeof(FwEnumStoreType) + sizeof(FwIndexType),
268  // Max data size
269  MAX_DATA_SIZE = sizeof(BuffUnion),
270  // Max message size: Size of message id + size of port + max data size
271  SERIALIZATION_SIZE = DATA_OFFSET + MAX_DATA_SIZE
272  };
273 
274  ComponentIpcSerializableBuffer() : Fw::LinearBufferBase(m_buff, sizeof(m_buff)) {
275 
276  }
277 
278  private:
279  // Should be the max of all the input ports serialized sizes...
280  U8 m_buff[SERIALIZATION_SIZE];
281 
282  };
283  }
284 
285  // ----------------------------------------------------------------------
286  // Types for internal state machines
287  // ----------------------------------------------------------------------
288 
291  m_component(component)
292  {
293 
294  }
295 
298  {
299  this->initBase(static_cast<FwEnumStoreType>(smId));
300  }
301 
303  getId() const
304  {
305  return static_cast<FpySequencerComponentBase::SmId>(this->m_id);
306  }
307 
308  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
309  action_signalEntered(Signal signal)
310  {
311  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_signalEntered(this->getId(), signal);
312  }
313 
314  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
315  action_setSequenceFilePath(
316  Signal signal,
318  )
319  {
320  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_setSequenceFilePath(this->getId(), signal, value);
321  }
322 
323  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
324  action_setSequenceBlockState(
325  Signal signal,
327  )
328  {
329  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_setSequenceBlockState(this->getId(), signal, value);
330  }
331 
332  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
333  action_setSequenceArguments(
334  Signal signal,
336  )
337  {
338  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_setSequenceArguments(this->getId(), signal, value);
339  }
340 
341  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
342  action_validate(Signal signal)
343  {
344  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_validate(this->getId(), signal);
345  }
346 
347  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
348  action_report_seqSucceeded(Signal signal)
349  {
350  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_report_seqSucceeded(this->getId(), signal);
351  }
352 
353  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
354  action_report_seqCancelled(Signal signal)
355  {
356  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_report_seqCancelled(this->getId(), signal);
357  }
358 
359  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
360  action_report_seqFailed(Signal signal)
361  {
362  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_report_seqFailed(this->getId(), signal);
363  }
364 
365  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
366  action_report_seqStarted(Signal signal)
367  {
368  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_report_seqStarted(this->getId(), signal);
369  }
370 
371  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
372  action_setGoalState_RUNNING(Signal signal)
373  {
374  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_setGoalState_RUNNING(this->getId(), signal);
375  }
376 
377  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
378  action_setGoalState_VALID(Signal signal)
379  {
380  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_setGoalState_VALID(this->getId(), signal);
381  }
382 
383  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
384  action_setGoalState_IDLE(Signal signal)
385  {
386  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_setGoalState_IDLE(this->getId(), signal);
387  }
388 
389  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
390  action_sendCmdResponse_OK(Signal signal)
391  {
392  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_sendCmdResponse_OK(this->getId(), signal);
393  }
394 
395  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
396  action_sendCmdResponse_EXECUTION_ERROR(Signal signal)
397  {
398  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_sendCmdResponse_EXECUTION_ERROR(this->getId(), signal);
399  }
400 
401  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
402  action_clearSequenceFile(Signal signal)
403  {
404  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_clearSequenceFile(this->getId(), signal);
405  }
406 
407  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
408  action_clearBreakpoint(Signal signal)
409  {
410  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_clearBreakpoint(this->getId(), signal);
411  }
412 
413  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
414  action_clearSequenceArguments(Signal signal)
415  {
416  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_clearSequenceArguments(this->getId(), signal);
417  }
418 
419  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
420  action_checkShouldWake(Signal signal)
421  {
422  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_checkShouldWake(this->getId(), signal);
423  }
424 
425  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
426  action_dispatchStatement(Signal signal)
427  {
428  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_dispatchStatement(this->getId(), signal);
429  }
430 
431  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
432  action_resetRuntime(Signal signal)
433  {
434  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_resetRuntime(this->getId(), signal);
435  }
436 
437  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
438  action_checkStatementTimeout(Signal signal)
439  {
440  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_checkStatementTimeout(this->getId(), signal);
441  }
442 
443  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
444  action_incrementSequenceCounter(Signal signal)
445  {
446  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_incrementSequenceCounter(this->getId(), signal);
447  }
448 
449  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
450  action_pushArgsToStack(Signal signal)
451  {
452  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_pushArgsToStack(this->getId(), signal);
453  }
454 
455  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
456  action_report_seqBroken(Signal signal)
457  {
458  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_report_seqBroken(this->getId(), signal);
459  }
460 
461  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
462  action_setBreakpoint(
463  Signal signal,
465  )
466  {
467  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_setBreakpoint(this->getId(), signal, value);
468  }
469 
470  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
471  action_setBreakBeforeNextLine(Signal signal)
472  {
473  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_setBreakBeforeNextLine(this->getId(), signal);
474  }
475 
476  void FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
477  action_clearBreakBeforeNextLine(Signal signal)
478  {
479  this->m_component.Svc_FpySequencer_SequencerStateMachine_action_clearBreakBeforeNextLine(this->getId(), signal);
480  }
481 
482  bool FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
483  guard_goalStateIs_RUNNING(Signal signal) const
484  {
485  return this->m_component.Svc_FpySequencer_SequencerStateMachine_guard_goalStateIs_RUNNING(this->getId(), signal);
486  }
487 
488  bool FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
489  guard_shouldBreak(Signal signal) const
490  {
491  return this->m_component.Svc_FpySequencer_SequencerStateMachine_guard_shouldBreak(this->getId(), signal);
492  }
493 
494  bool FpySequencerComponentBase::Svc_FpySequencer_SequencerStateMachine ::
495  guard_breakOnce(Signal signal) const
496  {
497  return this->m_component.Svc_FpySequencer_SequencerStateMachine_guard_breakOnce(this->getId(), signal);
498  }
499 
500  // ----------------------------------------------------------------------
501  // Component initialization
502  // ----------------------------------------------------------------------
503 
506  FwSizeType queueDepth,
507  FwEnumStoreType instance
508  )
509  {
510  // Initialize base class
512 
513  // Initialize state machine instances
514  this->m_stateMachine_sequencer.init(SmId::sequencer);
515 
516 #if !FW_DIRECT_PORT_CALLS
517  // Connect input port cmdIn
518  for (
519  FwIndexType port = 0;
520  port < static_cast<FwIndexType>(this->getNum_cmdIn_InputPorts());
521  port++
522  ) {
523  this->m_cmdIn_InputPort[port].init();
524  this->m_cmdIn_InputPort[port].addCallComp(
525  this,
526  m_p_cmdIn_in
527  );
528  this->m_cmdIn_InputPort[port].setPortNum(port);
529 
530 #if FW_OBJECT_NAMES == 1
531  Fw::ObjectName portName;
532  portName.format(
533  "%s_cmdIn_InputPort[%" PRI_FwIndexType "]",
534  this->m_objName.toChar(),
535  port
536  );
537  this->m_cmdIn_InputPort[port].setObjName(portName.toChar());
538 #endif
539  }
540 #endif
541 
542 #if !FW_DIRECT_PORT_CALLS
543  // Connect input port checkTimers
544  for (
545  FwIndexType port = 0;
546  port < static_cast<FwIndexType>(this->getNum_checkTimers_InputPorts());
547  port++
548  ) {
549  this->m_checkTimers_InputPort[port].init();
550  this->m_checkTimers_InputPort[port].addCallComp(
551  this,
552  m_p_checkTimers_in
553  );
554  this->m_checkTimers_InputPort[port].setPortNum(port);
555 
556 #if FW_OBJECT_NAMES == 1
557  Fw::ObjectName portName;
558  portName.format(
559  "%s_checkTimers_InputPort[%" PRI_FwIndexType "]",
560  this->m_objName.toChar(),
561  port
562  );
563  this->m_checkTimers_InputPort[port].setObjName(portName.toChar());
564 #endif
565  }
566 #endif
567 
568 #if !FW_DIRECT_PORT_CALLS
569  // Connect input port cmdResponseIn
570  for (
571  FwIndexType port = 0;
572  port < static_cast<FwIndexType>(this->getNum_cmdResponseIn_InputPorts());
573  port++
574  ) {
575  this->m_cmdResponseIn_InputPort[port].init();
576  this->m_cmdResponseIn_InputPort[port].addCallComp(
577  this,
578  m_p_cmdResponseIn_in
579  );
580  this->m_cmdResponseIn_InputPort[port].setPortNum(port);
581 
582 #if FW_OBJECT_NAMES == 1
583  Fw::ObjectName portName;
584  portName.format(
585  "%s_cmdResponseIn_InputPort[%" PRI_FwIndexType "]",
586  this->m_objName.toChar(),
587  port
588  );
589  this->m_cmdResponseIn_InputPort[port].setObjName(portName.toChar());
590 #endif
591  }
592 #endif
593 
594 #if !FW_DIRECT_PORT_CALLS
595  // Connect input port pingIn
596  for (
597  FwIndexType port = 0;
598  port < static_cast<FwIndexType>(this->getNum_pingIn_InputPorts());
599  port++
600  ) {
601  this->m_pingIn_InputPort[port].init();
602  this->m_pingIn_InputPort[port].addCallComp(
603  this,
604  m_p_pingIn_in
605  );
606  this->m_pingIn_InputPort[port].setPortNum(port);
607 
608 #if FW_OBJECT_NAMES == 1
609  Fw::ObjectName portName;
610  portName.format(
611  "%s_pingIn_InputPort[%" PRI_FwIndexType "]",
612  this->m_objName.toChar(),
613  port
614  );
615  this->m_pingIn_InputPort[port].setObjName(portName.toChar());
616 #endif
617  }
618 #endif
619 
620 #if !FW_DIRECT_PORT_CALLS
621  // Connect input port seqCancelIn
622  for (
623  FwIndexType port = 0;
624  port < static_cast<FwIndexType>(this->getNum_seqCancelIn_InputPorts());
625  port++
626  ) {
627  this->m_seqCancelIn_InputPort[port].init();
628  this->m_seqCancelIn_InputPort[port].addCallComp(
629  this,
630  m_p_seqCancelIn_in
631  );
632  this->m_seqCancelIn_InputPort[port].setPortNum(port);
633 
634 #if FW_OBJECT_NAMES == 1
635  Fw::ObjectName portName;
636  portName.format(
637  "%s_seqCancelIn_InputPort[%" PRI_FwIndexType "]",
638  this->m_objName.toChar(),
639  port
640  );
641  this->m_seqCancelIn_InputPort[port].setObjName(portName.toChar());
642 #endif
643  }
644 #endif
645 
646 #if !FW_DIRECT_PORT_CALLS
647  // Connect input port seqRunIn
648  for (
649  FwIndexType port = 0;
650  port < static_cast<FwIndexType>(this->getNum_seqRunIn_InputPorts());
651  port++
652  ) {
653  this->m_seqRunIn_InputPort[port].init();
654  this->m_seqRunIn_InputPort[port].addCallComp(
655  this,
656  m_p_seqRunIn_in
657  );
658  this->m_seqRunIn_InputPort[port].setPortNum(port);
659 
660 #if FW_OBJECT_NAMES == 1
661  Fw::ObjectName portName;
662  portName.format(
663  "%s_seqRunIn_InputPort[%" PRI_FwIndexType "]",
664  this->m_objName.toChar(),
665  port
666  );
667  this->m_seqRunIn_InputPort[port].setObjName(portName.toChar());
668 #endif
669  }
670 #endif
671 
672 #if !FW_DIRECT_PORT_CALLS
673  // Connect input port tlmWrite
674  for (
675  FwIndexType port = 0;
676  port < static_cast<FwIndexType>(this->getNum_tlmWrite_InputPorts());
677  port++
678  ) {
679  this->m_tlmWrite_InputPort[port].init();
680  this->m_tlmWrite_InputPort[port].addCallComp(
681  this,
682  m_p_tlmWrite_in
683  );
684  this->m_tlmWrite_InputPort[port].setPortNum(port);
685 
686 #if FW_OBJECT_NAMES == 1
687  Fw::ObjectName portName;
688  portName.format(
689  "%s_tlmWrite_InputPort[%" PRI_FwIndexType "]",
690  this->m_objName.toChar(),
691  port
692  );
693  this->m_tlmWrite_InputPort[port].setObjName(portName.toChar());
694 #endif
695  }
696 #endif
697 
698 #if !FW_DIRECT_PORT_CALLS
699  // Connect output port cmdRegOut
700  for (
701  FwIndexType port = 0;
702  port < static_cast<FwIndexType>(this->getNum_cmdRegOut_OutputPorts());
703  port++
704  ) {
705  this->m_cmdRegOut_OutputPort[port].init();
706 
707 #if FW_OBJECT_NAMES == 1
708  Fw::ObjectName portName;
709  portName.format(
710  "%s_cmdRegOut_OutputPort[%" PRI_FwIndexType "]",
711  this->m_objName.toChar(),
712  port
713  );
714  this->m_cmdRegOut_OutputPort[port].setObjName(portName.toChar());
715 #endif
716  }
717 #endif
718 
719 #if !FW_DIRECT_PORT_CALLS
720  // Connect output port cmdResponseOut
721  for (
722  FwIndexType port = 0;
723  port < static_cast<FwIndexType>(this->getNum_cmdResponseOut_OutputPorts());
724  port++
725  ) {
726  this->m_cmdResponseOut_OutputPort[port].init();
727 
728 #if FW_OBJECT_NAMES == 1
729  Fw::ObjectName portName;
730  portName.format(
731  "%s_cmdResponseOut_OutputPort[%" PRI_FwIndexType "]",
732  this->m_objName.toChar(),
733  port
734  );
735  this->m_cmdResponseOut_OutputPort[port].setObjName(portName.toChar());
736 #endif
737  }
738 #endif
739 
740 #if !FW_DIRECT_PORT_CALLS
741  // Connect output port logOut
742  for (
743  FwIndexType port = 0;
744  port < static_cast<FwIndexType>(this->getNum_logOut_OutputPorts());
745  port++
746  ) {
747  this->m_logOut_OutputPort[port].init();
748 
749 #if FW_OBJECT_NAMES == 1
750  Fw::ObjectName portName;
751  portName.format(
752  "%s_logOut_OutputPort[%" PRI_FwIndexType "]",
753  this->m_objName.toChar(),
754  port
755  );
756  this->m_logOut_OutputPort[port].setObjName(portName.toChar());
757 #endif
758  }
759 #endif
760 
761 #if !FW_DIRECT_PORT_CALLS && FW_ENABLE_TEXT_LOGGING
762  // Connect output port logTextOut
763  for (
764  FwIndexType port = 0;
765  port < static_cast<FwIndexType>(this->getNum_logTextOut_OutputPorts());
766  port++
767  ) {
768  this->m_logTextOut_OutputPort[port].init();
769 
770 #if FW_OBJECT_NAMES == 1
771  Fw::ObjectName portName;
772  portName.format(
773  "%s_logTextOut_OutputPort[%" PRI_FwIndexType "]",
774  this->m_objName.toChar(),
775  port
776  );
777  this->m_logTextOut_OutputPort[port].setObjName(portName.toChar());
778 #endif
779  }
780 #endif
781 
782 #if !FW_DIRECT_PORT_CALLS
783  // Connect output port prmGet
784  for (
785  FwIndexType port = 0;
786  port < static_cast<FwIndexType>(this->getNum_prmGet_OutputPorts());
787  port++
788  ) {
789  this->m_prmGet_OutputPort[port].init();
790 
791 #if FW_OBJECT_NAMES == 1
792  Fw::ObjectName portName;
793  portName.format(
794  "%s_prmGet_OutputPort[%" PRI_FwIndexType "]",
795  this->m_objName.toChar(),
796  port
797  );
798  this->m_prmGet_OutputPort[port].setObjName(portName.toChar());
799 #endif
800  }
801 #endif
802 
803 #if !FW_DIRECT_PORT_CALLS
804  // Connect output port prmSet
805  for (
806  FwIndexType port = 0;
807  port < static_cast<FwIndexType>(this->getNum_prmSet_OutputPorts());
808  port++
809  ) {
810  this->m_prmSet_OutputPort[port].init();
811 
812 #if FW_OBJECT_NAMES == 1
813  Fw::ObjectName portName;
814  portName.format(
815  "%s_prmSet_OutputPort[%" PRI_FwIndexType "]",
816  this->m_objName.toChar(),
817  port
818  );
819  this->m_prmSet_OutputPort[port].setObjName(portName.toChar());
820 #endif
821  }
822 #endif
823 
824 #if !FW_DIRECT_PORT_CALLS
825  // Connect output port timeCaller
826  for (
827  FwIndexType port = 0;
828  port < static_cast<FwIndexType>(this->getNum_timeCaller_OutputPorts());
829  port++
830  ) {
831  this->m_timeCaller_OutputPort[port].init();
832 
833 #if FW_OBJECT_NAMES == 1
834  Fw::ObjectName portName;
835  portName.format(
836  "%s_timeCaller_OutputPort[%" PRI_FwIndexType "]",
837  this->m_objName.toChar(),
838  port
839  );
840  this->m_timeCaller_OutputPort[port].setObjName(portName.toChar());
841 #endif
842  }
843 #endif
844 
845 #if !FW_DIRECT_PORT_CALLS
846  // Connect output port tlmOut
847  for (
848  FwIndexType port = 0;
849  port < static_cast<FwIndexType>(this->getNum_tlmOut_OutputPorts());
850  port++
851  ) {
852  this->m_tlmOut_OutputPort[port].init();
853 
854 #if FW_OBJECT_NAMES == 1
855  Fw::ObjectName portName;
856  portName.format(
857  "%s_tlmOut_OutputPort[%" PRI_FwIndexType "]",
858  this->m_objName.toChar(),
859  port
860  );
861  this->m_tlmOut_OutputPort[port].setObjName(portName.toChar());
862 #endif
863  }
864 #endif
865 
866 #if !FW_DIRECT_PORT_CALLS
867  // Connect output port cmdOut
868  for (
869  FwIndexType port = 0;
870  port < static_cast<FwIndexType>(this->getNum_cmdOut_OutputPorts());
871  port++
872  ) {
873  this->m_cmdOut_OutputPort[port].init();
874 
875 #if FW_OBJECT_NAMES == 1
876  Fw::ObjectName portName;
877  portName.format(
878  "%s_cmdOut_OutputPort[%" PRI_FwIndexType "]",
879  this->m_objName.toChar(),
880  port
881  );
882  this->m_cmdOut_OutputPort[port].setObjName(portName.toChar());
883 #endif
884  }
885 #endif
886 
887 #if !FW_DIRECT_PORT_CALLS
888  // Connect output port getParam
889  for (
890  FwIndexType port = 0;
891  port < static_cast<FwIndexType>(this->getNum_getParam_OutputPorts());
892  port++
893  ) {
894  this->m_getParam_OutputPort[port].init();
895 
896 #if FW_OBJECT_NAMES == 1
897  Fw::ObjectName portName;
898  portName.format(
899  "%s_getParam_OutputPort[%" PRI_FwIndexType "]",
900  this->m_objName.toChar(),
901  port
902  );
903  this->m_getParam_OutputPort[port].setObjName(portName.toChar());
904 #endif
905  }
906 #endif
907 
908 #if !FW_DIRECT_PORT_CALLS
909  // Connect output port getTlmChan
910  for (
911  FwIndexType port = 0;
912  port < static_cast<FwIndexType>(this->getNum_getTlmChan_OutputPorts());
913  port++
914  ) {
915  this->m_getTlmChan_OutputPort[port].init();
916 
917 #if FW_OBJECT_NAMES == 1
918  Fw::ObjectName portName;
919  portName.format(
920  "%s_getTlmChan_OutputPort[%" PRI_FwIndexType "]",
921  this->m_objName.toChar(),
922  port
923  );
924  this->m_getTlmChan_OutputPort[port].setObjName(portName.toChar());
925 #endif
926  }
927 #endif
928 
929 #if !FW_DIRECT_PORT_CALLS
930  // Connect output port pingOut
931  for (
932  FwIndexType port = 0;
933  port < static_cast<FwIndexType>(this->getNum_pingOut_OutputPorts());
934  port++
935  ) {
936  this->m_pingOut_OutputPort[port].init();
937 
938 #if FW_OBJECT_NAMES == 1
939  Fw::ObjectName portName;
940  portName.format(
941  "%s_pingOut_OutputPort[%" PRI_FwIndexType "]",
942  this->m_objName.toChar(),
943  port
944  );
945  this->m_pingOut_OutputPort[port].setObjName(portName.toChar());
946 #endif
947  }
948 #endif
949 
950 #if !FW_DIRECT_PORT_CALLS
951  // Connect output port seqDoneOut
952  for (
953  FwIndexType port = 0;
954  port < static_cast<FwIndexType>(this->getNum_seqDoneOut_OutputPorts());
955  port++
956  ) {
957  this->m_seqDoneOut_OutputPort[port].init();
958 
959 #if FW_OBJECT_NAMES == 1
960  Fw::ObjectName portName;
961  portName.format(
962  "%s_seqDoneOut_OutputPort[%" PRI_FwIndexType "]",
963  this->m_objName.toChar(),
964  port
965  );
966  this->m_seqDoneOut_OutputPort[port].setObjName(portName.toChar());
967 #endif
968  }
969 #endif
970 
971 #if !FW_DIRECT_PORT_CALLS
972  // Connect output port seqStartOut
973  for (
974  FwIndexType port = 0;
975  port < static_cast<FwIndexType>(this->getNum_seqStartOut_OutputPorts());
976  port++
977  ) {
978  this->m_seqStartOut_OutputPort[port].init();
979 
980 #if FW_OBJECT_NAMES == 1
981  Fw::ObjectName portName;
982  portName.format(
983  "%s_seqStartOut_OutputPort[%" PRI_FwIndexType "]",
984  this->m_objName.toChar(),
985  port
986  );
987  this->m_seqStartOut_OutputPort[port].setObjName(portName.toChar());
988 #endif
989  }
990 #endif
991 
992 #if !FW_DIRECT_PORT_CALLS
993  // Connect output port serialOut
994  for (
995  FwIndexType port = 0;
996  port < static_cast<FwIndexType>(this->getNum_serialOut_OutputPorts());
997  port++
998  ) {
999  this->m_serialOut_OutputPort[port].init();
1000 
1001 #if FW_OBJECT_NAMES == 1
1002  Fw::ObjectName portName;
1003  portName.format(
1004  "%s_serialOut_OutputPort[%" PRI_FwIndexType "]",
1005  this->m_objName.toChar(),
1006  port
1007  );
1008  this->m_serialOut_OutputPort[port].setObjName(portName.toChar());
1009 #endif
1010  }
1011 #endif
1012 
1013  // Create the queue
1014  Os::Queue::Status qStat = this->createQueue(
1015  queueDepth,
1016  static_cast<FwSizeType>(ComponentIpcSerializableBuffer::SERIALIZATION_SIZE)
1017  );
1018  FW_ASSERT(
1019  Os::Queue::Status::OP_OK == qStat,
1020  static_cast<FwAssertArgType>(qStat)
1021  );
1022  }
1023 
1024 #if !FW_DIRECT_PORT_CALLS
1025 
1026  // ----------------------------------------------------------------------
1027  // Getters for special input ports
1028  // ----------------------------------------------------------------------
1029 
1032  {
1033  FW_ASSERT(
1034  (0 <= portNum) && (portNum < this->getNum_cmdIn_InputPorts()),
1035  static_cast<FwAssertArgType>(portNum)
1036  );
1037 
1038  return &this->m_cmdIn_InputPort[portNum];
1039  }
1040 
1041 #endif
1042 
1043 #if !FW_DIRECT_PORT_CALLS
1044 
1045  // ----------------------------------------------------------------------
1046  // Getters for typed input ports
1047  // ----------------------------------------------------------------------
1048 
1051  {
1052  FW_ASSERT(
1053  (0 <= portNum) && (portNum < this->getNum_checkTimers_InputPorts()),
1054  static_cast<FwAssertArgType>(portNum)
1055  );
1056 
1057  return &this->m_checkTimers_InputPort[portNum];
1058  }
1059 
1062  {
1063  FW_ASSERT(
1064  (0 <= portNum) && (portNum < this->getNum_cmdResponseIn_InputPorts()),
1065  static_cast<FwAssertArgType>(portNum)
1066  );
1067 
1068  return &this->m_cmdResponseIn_InputPort[portNum];
1069  }
1070 
1073  {
1074  FW_ASSERT(
1075  (0 <= portNum) && (portNum < this->getNum_pingIn_InputPorts()),
1076  static_cast<FwAssertArgType>(portNum)
1077  );
1078 
1079  return &this->m_pingIn_InputPort[portNum];
1080  }
1081 
1084  {
1085  FW_ASSERT(
1086  (0 <= portNum) && (portNum < this->getNum_seqCancelIn_InputPorts()),
1087  static_cast<FwAssertArgType>(portNum)
1088  );
1089 
1090  return &this->m_seqCancelIn_InputPort[portNum];
1091  }
1092 
1095  {
1096  FW_ASSERT(
1097  (0 <= portNum) && (portNum < this->getNum_seqRunIn_InputPorts()),
1098  static_cast<FwAssertArgType>(portNum)
1099  );
1100 
1101  return &this->m_seqRunIn_InputPort[portNum];
1102  }
1103 
1106  {
1107  FW_ASSERT(
1108  (0 <= portNum) && (portNum < this->getNum_tlmWrite_InputPorts()),
1109  static_cast<FwAssertArgType>(portNum)
1110  );
1111 
1112  return &this->m_tlmWrite_InputPort[portNum];
1113  }
1114 
1115 #endif
1116 
1117 #if !FW_DIRECT_PORT_CALLS
1118 
1119  // ----------------------------------------------------------------------
1120  // Connect input ports to special output ports
1121  // ----------------------------------------------------------------------
1122 
1125  FwIndexType portNum,
1126  Fw::InputCmdRegPort* port
1127  )
1128  {
1129  FW_ASSERT(
1130  (0 <= portNum) && (portNum < this->getNum_cmdRegOut_OutputPorts()),
1131  static_cast<FwAssertArgType>(portNum)
1132  );
1133 
1134  this->m_cmdRegOut_OutputPort[portNum].addCallPort(port);
1135  }
1136 
1139  FwIndexType portNum,
1141  )
1142  {
1143  FW_ASSERT(
1144  (0 <= portNum) && (portNum < this->getNum_cmdResponseOut_OutputPorts()),
1145  static_cast<FwAssertArgType>(portNum)
1146  );
1147 
1148  this->m_cmdResponseOut_OutputPort[portNum].addCallPort(port);
1149  }
1150 
1153  FwIndexType portNum,
1154  Fw::InputLogPort* port
1155  )
1156  {
1157  FW_ASSERT(
1158  (0 <= portNum) && (portNum < this->getNum_logOut_OutputPorts()),
1159  static_cast<FwAssertArgType>(portNum)
1160  );
1161 
1162  this->m_logOut_OutputPort[portNum].addCallPort(port);
1163  }
1164 
1165 #if FW_ENABLE_TEXT_LOGGING == 1
1166 
1167  void FpySequencerComponentBase ::
1168  set_logTextOut_OutputPort(
1169  FwIndexType portNum,
1170  Fw::InputLogTextPort* port
1171  )
1172  {
1173  FW_ASSERT(
1174  (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
1175  static_cast<FwAssertArgType>(portNum)
1176  );
1177 
1178  this->m_logTextOut_OutputPort[portNum].addCallPort(port);
1179  }
1180 
1181 #endif
1182 
1185  FwIndexType portNum,
1186  Fw::InputPrmGetPort* port
1187  )
1188  {
1189  FW_ASSERT(
1190  (0 <= portNum) && (portNum < this->getNum_prmGet_OutputPorts()),
1191  static_cast<FwAssertArgType>(portNum)
1192  );
1193 
1194  this->m_prmGet_OutputPort[portNum].addCallPort(port);
1195  }
1196 
1199  FwIndexType portNum,
1200  Fw::InputPrmSetPort* port
1201  )
1202  {
1203  FW_ASSERT(
1204  (0 <= portNum) && (portNum < this->getNum_prmSet_OutputPorts()),
1205  static_cast<FwAssertArgType>(portNum)
1206  );
1207 
1208  this->m_prmSet_OutputPort[portNum].addCallPort(port);
1209  }
1210 
1213  FwIndexType portNum,
1214  Fw::InputTimePort* port
1215  )
1216  {
1217  FW_ASSERT(
1218  (0 <= portNum) && (portNum < this->getNum_timeCaller_OutputPorts()),
1219  static_cast<FwAssertArgType>(portNum)
1220  );
1221 
1222  this->m_timeCaller_OutputPort[portNum].addCallPort(port);
1223  }
1224 
1227  FwIndexType portNum,
1228  Fw::InputTlmPort* port
1229  )
1230  {
1231  FW_ASSERT(
1232  (0 <= portNum) && (portNum < this->getNum_tlmOut_OutputPorts()),
1233  static_cast<FwAssertArgType>(portNum)
1234  );
1235 
1236  this->m_tlmOut_OutputPort[portNum].addCallPort(port);
1237  }
1238 
1239 #endif
1240 
1241 #if !FW_DIRECT_PORT_CALLS
1242 
1243  // ----------------------------------------------------------------------
1244  // Connect typed input ports to typed output ports
1245  // ----------------------------------------------------------------------
1246 
1249  FwIndexType portNum,
1250  Fw::InputComPort* port
1251  )
1252  {
1253  FW_ASSERT(
1254  (0 <= portNum) && (portNum < this->getNum_cmdOut_OutputPorts()),
1255  static_cast<FwAssertArgType>(portNum)
1256  );
1257 
1258  this->m_cmdOut_OutputPort[portNum].addCallPort(port);
1259  }
1260 
1263  FwIndexType portNum,
1264  Fw::InputPrmGetPort* port
1265  )
1266  {
1267  FW_ASSERT(
1268  (0 <= portNum) && (portNum < this->getNum_getParam_OutputPorts()),
1269  static_cast<FwAssertArgType>(portNum)
1270  );
1271 
1272  this->m_getParam_OutputPort[portNum].addCallPort(port);
1273  }
1274 
1277  FwIndexType portNum,
1278  Fw::InputTlmGetPort* port
1279  )
1280  {
1281  FW_ASSERT(
1282  (0 <= portNum) && (portNum < this->getNum_getTlmChan_OutputPorts()),
1283  static_cast<FwAssertArgType>(portNum)
1284  );
1285 
1286  this->m_getTlmChan_OutputPort[portNum].addCallPort(port);
1287  }
1288 
1291  FwIndexType portNum,
1292  Svc::InputPingPort* port
1293  )
1294  {
1295  FW_ASSERT(
1296  (0 <= portNum) && (portNum < this->getNum_pingOut_OutputPorts()),
1297  static_cast<FwAssertArgType>(portNum)
1298  );
1299 
1300  this->m_pingOut_OutputPort[portNum].addCallPort(port);
1301  }
1302 
1305  FwIndexType portNum,
1307  )
1308  {
1309  FW_ASSERT(
1310  (0 <= portNum) && (portNum < this->getNum_seqDoneOut_OutputPorts()),
1311  static_cast<FwAssertArgType>(portNum)
1312  );
1313 
1314  this->m_seqDoneOut_OutputPort[portNum].addCallPort(port);
1315  }
1316 
1319  FwIndexType portNum,
1321  )
1322  {
1323  FW_ASSERT(
1324  (0 <= portNum) && (portNum < this->getNum_seqStartOut_OutputPorts()),
1325  static_cast<FwAssertArgType>(portNum)
1326  );
1327 
1328  this->m_seqStartOut_OutputPort[portNum].addCallPort(port);
1329  }
1330 
1331 #endif
1332 
1333 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION
1334 
1335  // ----------------------------------------------------------------------
1336  // Connect serial input ports to special output ports
1337  // ----------------------------------------------------------------------
1338 
1341  FwIndexType portNum,
1342  Fw::InputSerializePort* port
1343  )
1344  {
1345  FW_ASSERT(
1346  (0 <= portNum) && (portNum < this->getNum_cmdRegOut_OutputPorts()),
1347  static_cast<FwAssertArgType>(portNum)
1348  );
1349 
1350  this->m_cmdRegOut_OutputPort[portNum].registerSerialPort(port);
1351  }
1352 
1355  FwIndexType portNum,
1356  Fw::InputSerializePort* port
1357  )
1358  {
1359  FW_ASSERT(
1360  (0 <= portNum) && (portNum < this->getNum_cmdResponseOut_OutputPorts()),
1361  static_cast<FwAssertArgType>(portNum)
1362  );
1363 
1364  this->m_cmdResponseOut_OutputPort[portNum].registerSerialPort(port);
1365  }
1366 
1369  FwIndexType portNum,
1370  Fw::InputSerializePort* port
1371  )
1372  {
1373  FW_ASSERT(
1374  (0 <= portNum) && (portNum < this->getNum_logOut_OutputPorts()),
1375  static_cast<FwAssertArgType>(portNum)
1376  );
1377 
1378  this->m_logOut_OutputPort[portNum].registerSerialPort(port);
1379  }
1380 
1381 #if FW_ENABLE_TEXT_LOGGING == 1
1382 
1383  void FpySequencerComponentBase ::
1384  set_logTextOut_OutputPort(
1385  FwIndexType portNum,
1386  Fw::InputSerializePort* port
1387  )
1388  {
1389  FW_ASSERT(
1390  (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
1391  static_cast<FwAssertArgType>(portNum)
1392  );
1393 
1394  this->m_logTextOut_OutputPort[portNum].registerSerialPort(port);
1395  }
1396 
1397 #endif
1398 
1401  FwIndexType portNum,
1402  Fw::InputSerializePort* port
1403  )
1404  {
1405  FW_ASSERT(
1406  (0 <= portNum) && (portNum < this->getNum_prmSet_OutputPorts()),
1407  static_cast<FwAssertArgType>(portNum)
1408  );
1409 
1410  this->m_prmSet_OutputPort[portNum].registerSerialPort(port);
1411  }
1412 
1415  FwIndexType portNum,
1416  Fw::InputSerializePort* port
1417  )
1418  {
1419  FW_ASSERT(
1420  (0 <= portNum) && (portNum < this->getNum_timeCaller_OutputPorts()),
1421  static_cast<FwAssertArgType>(portNum)
1422  );
1423 
1424  this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
1425  }
1426 
1429  FwIndexType portNum,
1430  Fw::InputSerializePort* port
1431  )
1432  {
1433  FW_ASSERT(
1434  (0 <= portNum) && (portNum < this->getNum_tlmOut_OutputPorts()),
1435  static_cast<FwAssertArgType>(portNum)
1436  );
1437 
1438  this->m_tlmOut_OutputPort[portNum].registerSerialPort(port);
1439  }
1440 
1441 #endif
1442 
1443 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION
1444 
1445  // ----------------------------------------------------------------------
1446  // Connect serial input ports to typed output ports
1447  // ----------------------------------------------------------------------
1448 
1451  FwIndexType portNum,
1452  Fw::InputSerializePort* port
1453  )
1454  {
1455  FW_ASSERT(
1456  (0 <= portNum) && (portNum < this->getNum_cmdOut_OutputPorts()),
1457  static_cast<FwAssertArgType>(portNum)
1458  );
1459 
1460  this->m_cmdOut_OutputPort[portNum].registerSerialPort(port);
1461  }
1462 
1465  FwIndexType portNum,
1466  Fw::InputSerializePort* port
1467  )
1468  {
1469  FW_ASSERT(
1470  (0 <= portNum) && (portNum < this->getNum_pingOut_OutputPorts()),
1471  static_cast<FwAssertArgType>(portNum)
1472  );
1473 
1474  this->m_pingOut_OutputPort[portNum].registerSerialPort(port);
1475  }
1476 
1479  FwIndexType portNum,
1480  Fw::InputSerializePort* port
1481  )
1482  {
1483  FW_ASSERT(
1484  (0 <= portNum) && (portNum < this->getNum_seqDoneOut_OutputPorts()),
1485  static_cast<FwAssertArgType>(portNum)
1486  );
1487 
1488  this->m_seqDoneOut_OutputPort[portNum].registerSerialPort(port);
1489  }
1490 
1493  FwIndexType portNum,
1494  Fw::InputSerializePort* port
1495  )
1496  {
1497  FW_ASSERT(
1498  (0 <= portNum) && (portNum < this->getNum_seqStartOut_OutputPorts()),
1499  static_cast<FwAssertArgType>(portNum)
1500  );
1501 
1502  this->m_seqStartOut_OutputPort[portNum].registerSerialPort(port);
1503  }
1504 
1505 #endif
1506 
1507 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION
1508 
1509  // ----------------------------------------------------------------------
1510  // Connect typed and serial input ports to serial output ports
1511  // ----------------------------------------------------------------------
1512 
1513  void FpySequencerComponentBase ::
1514  set_serialOut_OutputPort(
1515  FwIndexType portNum,
1516  Fw::InputPortBase* port
1517  )
1518  {
1519  FW_ASSERT(
1520  (0 <= portNum) && (portNum < this->getNum_serialOut_OutputPorts()),
1521  static_cast<FwAssertArgType>(portNum)
1522  );
1523 
1524  this->m_serialOut_OutputPort[portNum].registerSerialPort(port);
1525  }
1526 
1527 #endif
1528 
1529  // ----------------------------------------------------------------------
1530  // Command registration
1531  // ----------------------------------------------------------------------
1532 
1535  {
1537 
1538  this->cmdRegOut_out(
1539  0,
1540  this->getIdBase() + OPCODE_RUN
1541  );
1542 
1543  this->cmdRegOut_out(
1544  0,
1545  this->getIdBase() + OPCODE_RUN_ARGS
1546  );
1547 
1548  this->cmdRegOut_out(
1549  0,
1550  this->getIdBase() + OPCODE_VALIDATE
1551  );
1552 
1553  this->cmdRegOut_out(
1554  0,
1556  );
1557 
1558  this->cmdRegOut_out(
1559  0,
1561  );
1562 
1563  this->cmdRegOut_out(
1564  0,
1565  this->getIdBase() + OPCODE_CANCEL
1566  );
1567 
1568  this->cmdRegOut_out(
1569  0,
1571  );
1572 
1573  this->cmdRegOut_out(
1574  0,
1575  this->getIdBase() + OPCODE_BREAK
1576  );
1577 
1578  this->cmdRegOut_out(
1579  0,
1580  this->getIdBase() + OPCODE_CONTINUE
1581  );
1582 
1583  this->cmdRegOut_out(
1584  0,
1586  );
1587 
1588  this->cmdRegOut_out(
1589  0,
1590  this->getIdBase() + OPCODE_STEP
1591  );
1592 
1593  this->cmdRegOut_out(
1594  0,
1596  );
1597 
1598  this->cmdRegOut_out(
1599  0,
1601  );
1602 
1603  this->cmdRegOut_out(
1604  0,
1606  );
1607 
1608  this->cmdRegOut_out(
1609  0,
1611  );
1612 
1613  this->cmdRegOut_out(
1614  0,
1616  );
1617  }
1618 
1619  // ----------------------------------------------------------------------
1620  // Parameter loading
1621  // ----------------------------------------------------------------------
1622 
1625  {
1627  const FwPrmIdType _baseId = static_cast<FwPrmIdType>(this->getIdBase());
1629 
1630  FwPrmIdType _id{};
1631  Fw::ParamBuffer _paramBuffer;
1632 
1633  _id = _baseId + PARAMID_STATEMENT_TIMEOUT_SECS;
1634 
1635  // Get serialized parameter STATEMENT_TIMEOUT_SECS
1636  this->m_param_STATEMENT_TIMEOUT_SECS_valid = this->prmGet_out(
1637  0,
1638  _id,
1639  _paramBuffer
1640  );
1641 
1642  this->m_paramLock.lock();
1643 
1644  // Deserialize parameter or use default value
1645  if (this->m_param_STATEMENT_TIMEOUT_SECS_valid == Fw::ParamValid::VALID) {
1646  _stat = _paramBuffer.deserializeTo(this->m_STATEMENT_TIMEOUT_SECS);
1647  if (_stat != Fw::FW_SERIALIZE_OK) {
1648  this->m_param_STATEMENT_TIMEOUT_SECS_valid = Fw::ParamValid::DEFAULT;
1649  }
1650  }
1651  else {
1652  this->m_param_STATEMENT_TIMEOUT_SECS_valid = Fw::ParamValid::DEFAULT;
1653  }
1654  if (this->m_param_STATEMENT_TIMEOUT_SECS_valid == Fw::ParamValid::DEFAULT) {
1655  this->m_STATEMENT_TIMEOUT_SECS = 0.0f;
1656  }
1657 
1658  this->m_paramLock.unlock();
1659  this->parameterLoaded(PARAMID_STATEMENT_TIMEOUT_SECS, this->m_param_STATEMENT_TIMEOUT_SECS_valid);
1660 
1661  _id = _baseId + PARAMID_SEQ_BASE_DIR;
1662 
1663  // Get serialized parameter SEQ_BASE_DIR
1664  this->m_param_SEQ_BASE_DIR_valid = this->prmGet_out(
1665  0,
1666  _id,
1667  _paramBuffer
1668  );
1669 
1670  this->m_paramLock.lock();
1671 
1672  // Deserialize parameter or use default value
1673  if (this->m_param_SEQ_BASE_DIR_valid == Fw::ParamValid::VALID) {
1674  _stat = _paramBuffer.deserializeTo(this->m_SEQ_BASE_DIR);
1675  if (_stat != Fw::FW_SERIALIZE_OK) {
1676  this->m_param_SEQ_BASE_DIR_valid = Fw::ParamValid::DEFAULT;
1677  }
1678  }
1679  else {
1680  this->m_param_SEQ_BASE_DIR_valid = Fw::ParamValid::DEFAULT;
1681  }
1682  if (this->m_param_SEQ_BASE_DIR_valid == Fw::ParamValid::DEFAULT) {
1683  this->m_SEQ_BASE_DIR = Fw::String("");
1684  }
1685 
1686  this->m_paramLock.unlock();
1687  this->parameterLoaded(PARAMID_SEQ_BASE_DIR, this->m_param_SEQ_BASE_DIR_valid);
1688 
1689  // Call notifier
1690  this->parametersLoaded();
1691  }
1692 
1693  // ----------------------------------------------------------------------
1694  // Component construction and destruction
1695  // ----------------------------------------------------------------------
1696 
1698  FpySequencerComponentBase(const char* compName) :
1699  Fw::ActiveComponentBase(compName),
1700  m_stateMachine_sequencer(*this)
1701  {
1702 
1703  }
1704 
1707  {
1708 
1709  }
1710 
1711 #if !FW_DIRECT_PORT_CALLS
1712 
1713  // ----------------------------------------------------------------------
1714  // Connection status queries for special output ports
1715  // ----------------------------------------------------------------------
1716 
1719  {
1720  FW_ASSERT(
1721  (0 <= portNum) && (portNum < this->getNum_cmdRegOut_OutputPorts()),
1722  static_cast<FwAssertArgType>(portNum)
1723  );
1724 
1725  return this->m_cmdRegOut_OutputPort[portNum].isConnected();
1726  }
1727 
1730  {
1731  FW_ASSERT(
1732  (0 <= portNum) && (portNum < this->getNum_cmdResponseOut_OutputPorts()),
1733  static_cast<FwAssertArgType>(portNum)
1734  );
1735 
1736  return this->m_cmdResponseOut_OutputPort[portNum].isConnected();
1737  }
1738 
1741  {
1742  FW_ASSERT(
1743  (0 <= portNum) && (portNum < this->getNum_logOut_OutputPorts()),
1744  static_cast<FwAssertArgType>(portNum)
1745  );
1746 
1747  return this->m_logOut_OutputPort[portNum].isConnected();
1748  }
1749 
1750 #if FW_ENABLE_TEXT_LOGGING == 1
1751 
1752  bool FpySequencerComponentBase ::
1753  isConnected_logTextOut_OutputPort(FwIndexType portNum) const
1754  {
1755  FW_ASSERT(
1756  (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
1757  static_cast<FwAssertArgType>(portNum)
1758  );
1759 
1760  return this->m_logTextOut_OutputPort[portNum].isConnected();
1761  }
1762 
1763 #endif
1764 
1767  {
1768  FW_ASSERT(
1769  (0 <= portNum) && (portNum < this->getNum_prmGet_OutputPorts()),
1770  static_cast<FwAssertArgType>(portNum)
1771  );
1772 
1773  return this->m_prmGet_OutputPort[portNum].isConnected();
1774  }
1775 
1778  {
1779  FW_ASSERT(
1780  (0 <= portNum) && (portNum < this->getNum_prmSet_OutputPorts()),
1781  static_cast<FwAssertArgType>(portNum)
1782  );
1783 
1784  return this->m_prmSet_OutputPort[portNum].isConnected();
1785  }
1786 
1789  {
1790  FW_ASSERT(
1791  (0 <= portNum) && (portNum < this->getNum_timeCaller_OutputPorts()),
1792  static_cast<FwAssertArgType>(portNum)
1793  );
1794 
1795  return this->m_timeCaller_OutputPort[portNum].isConnected();
1796  }
1797 
1800  {
1801  FW_ASSERT(
1802  (0 <= portNum) && (portNum < this->getNum_tlmOut_OutputPorts()),
1803  static_cast<FwAssertArgType>(portNum)
1804  );
1805 
1806  return this->m_tlmOut_OutputPort[portNum].isConnected();
1807  }
1808 
1809 #endif
1810 
1811 #if !FW_DIRECT_PORT_CALLS
1812 
1813  // ----------------------------------------------------------------------
1814  // Connection status queries for typed output ports
1815  // ----------------------------------------------------------------------
1816 
1819  {
1820  FW_ASSERT(
1821  (0 <= portNum) && (portNum < this->getNum_cmdOut_OutputPorts()),
1822  static_cast<FwAssertArgType>(portNum)
1823  );
1824 
1825  return this->m_cmdOut_OutputPort[portNum].isConnected();
1826  }
1827 
1830  {
1831  FW_ASSERT(
1832  (0 <= portNum) && (portNum < this->getNum_getParam_OutputPorts()),
1833  static_cast<FwAssertArgType>(portNum)
1834  );
1835 
1836  return this->m_getParam_OutputPort[portNum].isConnected();
1837  }
1838 
1841  {
1842  FW_ASSERT(
1843  (0 <= portNum) && (portNum < this->getNum_getTlmChan_OutputPorts()),
1844  static_cast<FwAssertArgType>(portNum)
1845  );
1846 
1847  return this->m_getTlmChan_OutputPort[portNum].isConnected();
1848  }
1849 
1852  {
1853  FW_ASSERT(
1854  (0 <= portNum) && (portNum < this->getNum_pingOut_OutputPorts()),
1855  static_cast<FwAssertArgType>(portNum)
1856  );
1857 
1858  return this->m_pingOut_OutputPort[portNum].isConnected();
1859  }
1860 
1863  {
1864  FW_ASSERT(
1865  (0 <= portNum) && (portNum < this->getNum_seqDoneOut_OutputPorts()),
1866  static_cast<FwAssertArgType>(portNum)
1867  );
1868 
1869  return this->m_seqDoneOut_OutputPort[portNum].isConnected();
1870  }
1871 
1874  {
1875  FW_ASSERT(
1876  (0 <= portNum) && (portNum < this->getNum_seqStartOut_OutputPorts()),
1877  static_cast<FwAssertArgType>(portNum)
1878  );
1879 
1880  return this->m_seqStartOut_OutputPort[portNum].isConnected();
1881  }
1882 
1883 #endif
1884 
1885 #if !FW_DIRECT_PORT_CALLS
1886 
1887  // ----------------------------------------------------------------------
1888  // Connection status queries for serial output ports
1889  // ----------------------------------------------------------------------
1890 
1893  {
1894  FW_ASSERT(
1895  (0 <= portNum) && (portNum < this->getNum_serialOut_OutputPorts()),
1896  static_cast<FwAssertArgType>(portNum)
1897  );
1898 
1899  return this->m_serialOut_OutputPort[portNum].isConnected();
1900  }
1901 
1902 #endif
1903 
1904  // ----------------------------------------------------------------------
1905  // Port handler base-class functions for special input ports
1906  //
1907  // Call these functions directly to bypass the corresponding ports
1908  // ----------------------------------------------------------------------
1909 
1912  FwIndexType portNum,
1913  FwOpcodeType opCode,
1914  U32 cmdSeq,
1915  Fw::CmdArgBuffer& args
1916  )
1917  {
1918 
1919  const U32 idBase = this->getIdBase();
1920  FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
1921 
1922  // Select base class function based on opcode
1923  switch (opCode - idBase) {
1924  case OPCODE_RUN: {
1925  this->RUN_cmdHandlerBase(
1926  opCode,
1927  cmdSeq,
1928  args
1929  );
1930  break;
1931  }
1932 
1933  case OPCODE_RUN_ARGS: {
1935  opCode,
1936  cmdSeq,
1937  args
1938  );
1939  break;
1940  }
1941 
1942  case OPCODE_VALIDATE: {
1944  opCode,
1945  cmdSeq,
1946  args
1947  );
1948  break;
1949  }
1950 
1951  case OPCODE_VALIDATE_ARGS: {
1953  opCode,
1954  cmdSeq,
1955  args
1956  );
1957  break;
1958  }
1959 
1960  case OPCODE_RUN_VALIDATED: {
1962  opCode,
1963  cmdSeq,
1964  args
1965  );
1966  break;
1967  }
1968 
1969  case OPCODE_CANCEL: {
1970  this->CANCEL_cmdHandlerBase(
1971  opCode,
1972  cmdSeq,
1973  args
1974  );
1975  break;
1976  }
1977 
1978  case OPCODE_SET_BREAKPOINT: {
1980  opCode,
1981  cmdSeq,
1982  args
1983  );
1984  break;
1985  }
1986 
1987  case OPCODE_BREAK: {
1988  this->BREAK_cmdHandlerBase(
1989  opCode,
1990  cmdSeq,
1991  args
1992  );
1993  break;
1994  }
1995 
1996  case OPCODE_CONTINUE: {
1998  opCode,
1999  cmdSeq,
2000  args
2001  );
2002  break;
2003  }
2004 
2005  case OPCODE_CLEAR_BREAKPOINT: {
2007  opCode,
2008  cmdSeq,
2009  args
2010  );
2011  break;
2012  }
2013 
2014  case OPCODE_STEP: {
2015  this->STEP_cmdHandlerBase(
2016  opCode,
2017  cmdSeq,
2018  args
2019  );
2020  break;
2021  }
2022 
2025  opCode,
2026  cmdSeq,
2027  args
2028  );
2029  break;
2030  }
2031 
2033  Fw::CmdResponse _cstat = this->paramSet_STATEMENT_TIMEOUT_SECS(args);
2034  this->cmdResponse_out(
2035  opCode,
2036  cmdSeq,
2037  _cstat
2038  );
2039  break;
2040  }
2041 
2043  Fw::CmdResponse _cstat = this->paramSave_STATEMENT_TIMEOUT_SECS();
2044  this->cmdResponse_out(
2045  opCode,
2046  cmdSeq,
2047  _cstat
2048  );
2049  break;
2050  }
2051 
2052  case OPCODE_SEQ_BASE_DIR_SET: {
2053  Fw::CmdResponse _cstat = this->paramSet_SEQ_BASE_DIR(args);
2054  this->cmdResponse_out(
2055  opCode,
2056  cmdSeq,
2057  _cstat
2058  );
2059  break;
2060  }
2061 
2062  case OPCODE_SEQ_BASE_DIR_SAVE: {
2063  Fw::CmdResponse _cstat = this->paramSave_SEQ_BASE_DIR();
2064  this->cmdResponse_out(
2065  opCode,
2066  cmdSeq,
2067  _cstat
2068  );
2069  break;
2070  }
2071  default:
2072  // Unknown opcode: ignore it
2073  break;
2074  }
2075  }
2076 
2077  // ----------------------------------------------------------------------
2078  // Port handler base-class functions for typed input ports
2079  //
2080  // Call these functions directly to bypass the corresponding ports
2081  // ----------------------------------------------------------------------
2082 
2085  FwIndexType portNum,
2086  U32 context
2087  )
2088  {
2089  // Make sure port number is valid
2090  FW_ASSERT(
2091  (0 <= portNum) && (portNum < this->getNum_checkTimers_InputPorts()),
2092  static_cast<FwAssertArgType>(portNum)
2093  );
2094 
2095  // Call handler function
2096  this->checkTimers_handler(
2097  portNum,
2098  context
2099  );
2100  }
2101 
2104  FwIndexType portNum,
2105  FwOpcodeType opCode,
2106  U32 cmdSeq,
2107  const Fw::CmdResponse& response
2108  )
2109  {
2110  // Make sure port number is valid
2111  FW_ASSERT(
2112  (0 <= portNum) && (portNum < this->getNum_cmdResponseIn_InputPorts()),
2113  static_cast<FwAssertArgType>(portNum)
2114  );
2115 
2116  // Call pre-message hook
2118  portNum,
2119  opCode,
2120  cmdSeq,
2121  response
2122  );
2123  ComponentIpcSerializableBuffer msg;
2125 
2126  // Serialize message ID
2127  _status = msg.serializeFrom(
2128  static_cast<FwEnumStoreType>(CMDRESPONSEIN_CMDRESPONSE)
2129  );
2130  FW_ASSERT(
2131  _status == Fw::FW_SERIALIZE_OK,
2132  static_cast<FwAssertArgType>(_status)
2133  );
2134 
2135  // Serialize port number
2136  _status = msg.serializeFrom(portNum);
2137  FW_ASSERT(
2138  _status == Fw::FW_SERIALIZE_OK,
2139  static_cast<FwAssertArgType>(_status)
2140  );
2141 
2142  // Serialize argument opCode
2143  _status = msg.serializeFrom(opCode);
2144  FW_ASSERT(
2145  _status == Fw::FW_SERIALIZE_OK,
2146  static_cast<FwAssertArgType>(_status)
2147  );
2148 
2149  // Serialize argument cmdSeq
2150  _status = msg.serializeFrom(cmdSeq);
2151  FW_ASSERT(
2152  _status == Fw::FW_SERIALIZE_OK,
2153  static_cast<FwAssertArgType>(_status)
2154  );
2155 
2156  // Serialize argument response
2157  _status = msg.serializeFrom(response);
2158  FW_ASSERT(
2159  _status == Fw::FW_SERIALIZE_OK,
2160  static_cast<FwAssertArgType>(_status)
2161  );
2162 
2163  // Send message
2165  Os::Queue::Status qStatus = this->m_queue.send(msg, 5, _block);
2166 
2167  FW_ASSERT(
2168  qStatus == Os::Queue::OP_OK,
2169  static_cast<FwAssertArgType>(qStatus)
2170  );
2171  }
2172 
2175  FwIndexType portNum,
2176  U32 key
2177  )
2178  {
2179  // Make sure port number is valid
2180  FW_ASSERT(
2181  (0 <= portNum) && (portNum < this->getNum_pingIn_InputPorts()),
2182  static_cast<FwAssertArgType>(portNum)
2183  );
2184 
2185  // Call pre-message hook
2187  portNum,
2188  key
2189  );
2190  ComponentIpcSerializableBuffer msg;
2192 
2193  // Serialize message ID
2194  _status = msg.serializeFrom(
2195  static_cast<FwEnumStoreType>(PINGIN_PING)
2196  );
2197  FW_ASSERT(
2198  _status == Fw::FW_SERIALIZE_OK,
2199  static_cast<FwAssertArgType>(_status)
2200  );
2201 
2202  // Serialize port number
2203  _status = msg.serializeFrom(portNum);
2204  FW_ASSERT(
2205  _status == Fw::FW_SERIALIZE_OK,
2206  static_cast<FwAssertArgType>(_status)
2207  );
2208 
2209  // Serialize argument key
2210  _status = msg.serializeFrom(key);
2211  FW_ASSERT(
2212  _status == Fw::FW_SERIALIZE_OK,
2213  static_cast<FwAssertArgType>(_status)
2214  );
2215 
2216  // Send message
2218  Os::Queue::Status qStatus = this->m_queue.send(msg, 10, _block);
2219 
2220  if (qStatus == Os::Queue::Status::FULL) {
2221  this->incNumMsgDropped();
2222  return;
2223  }
2224 
2225  FW_ASSERT(
2226  qStatus == Os::Queue::OP_OK,
2227  static_cast<FwAssertArgType>(qStatus)
2228  );
2229  }
2230 
2233  {
2234  // Make sure port number is valid
2235  FW_ASSERT(
2236  (0 <= portNum) && (portNum < this->getNum_seqCancelIn_InputPorts()),
2237  static_cast<FwAssertArgType>(portNum)
2238  );
2239 
2240  // Call pre-message hook
2241  seqCancelIn_preMsgHook(portNum);
2242  ComponentIpcSerializableBuffer msg;
2244 
2245  // Serialize message ID
2246  _status = msg.serializeFrom(
2247  static_cast<FwEnumStoreType>(SEQCANCELIN_CMDSEQCANCEL)
2248  );
2249  FW_ASSERT(
2250  _status == Fw::FW_SERIALIZE_OK,
2251  static_cast<FwAssertArgType>(_status)
2252  );
2253 
2254  // Serialize port number
2255  _status = msg.serializeFrom(portNum);
2256  FW_ASSERT(
2257  _status == Fw::FW_SERIALIZE_OK,
2258  static_cast<FwAssertArgType>(_status)
2259  );
2260 
2261  // Send message
2263  Os::Queue::Status qStatus = this->m_queue.send(msg, 8, _block);
2264 
2265  FW_ASSERT(
2266  qStatus == Os::Queue::OP_OK,
2267  static_cast<FwAssertArgType>(qStatus)
2268  );
2269  }
2270 
2273  FwIndexType portNum,
2274  const Fw::StringBase& filename,
2275  const Svc::SeqArgs& args
2276  )
2277  {
2278  // Make sure port number is valid
2279  FW_ASSERT(
2280  (0 <= portNum) && (portNum < this->getNum_seqRunIn_InputPorts()),
2281  static_cast<FwAssertArgType>(portNum)
2282  );
2283 
2284  // Call pre-message hook
2286  portNum,
2287  filename,
2288  args
2289  );
2290  ComponentIpcSerializableBuffer msg;
2292 
2293  // Serialize message ID
2294  _status = msg.serializeFrom(
2295  static_cast<FwEnumStoreType>(SEQRUNIN_CMDSEQIN)
2296  );
2297  FW_ASSERT(
2298  _status == Fw::FW_SERIALIZE_OK,
2299  static_cast<FwAssertArgType>(_status)
2300  );
2301 
2302  // Serialize port number
2303  _status = msg.serializeFrom(portNum);
2304  FW_ASSERT(
2305  _status == Fw::FW_SERIALIZE_OK,
2306  static_cast<FwAssertArgType>(_status)
2307  );
2308 
2309  // Serialize argument filename
2310  _status = filename.serializeTo(msg, 240);
2311  FW_ASSERT(
2312  _status == Fw::FW_SERIALIZE_OK,
2313  static_cast<FwAssertArgType>(_status)
2314  );
2315 
2316  // Serialize argument args
2317  _status = msg.serializeFrom(args);
2318  FW_ASSERT(
2319  _status == Fw::FW_SERIALIZE_OK,
2320  static_cast<FwAssertArgType>(_status)
2321  );
2322 
2323  // Send message
2325  Os::Queue::Status qStatus = this->m_queue.send(msg, 7, _block);
2326 
2327  FW_ASSERT(
2328  qStatus == Os::Queue::OP_OK,
2329  static_cast<FwAssertArgType>(qStatus)
2330  );
2331  }
2332 
2335  FwIndexType portNum,
2336  U32 context
2337  )
2338  {
2339  // Make sure port number is valid
2340  FW_ASSERT(
2341  (0 <= portNum) && (portNum < this->getNum_tlmWrite_InputPorts()),
2342  static_cast<FwAssertArgType>(portNum)
2343  );
2344 
2345  // Call handler function
2346  this->tlmWrite_handler(
2347  portNum,
2348  context
2349  );
2350  }
2351 
2352  // ----------------------------------------------------------------------
2353  // Pre-message hooks for typed async input ports
2354  //
2355  // Each of these functions is invoked just before processing a message
2356  // on the corresponding port. By default, they do nothing. You can
2357  // override them to provide specific pre-message behavior.
2358  // ----------------------------------------------------------------------
2359 
2362  FwIndexType portNum,
2363  FwOpcodeType opCode,
2364  U32 cmdSeq,
2365  const Fw::CmdResponse& response
2366  )
2367  {
2368  // Default: no-op
2369  }
2370 
2373  FwIndexType portNum,
2374  U32 key
2375  )
2376  {
2377  // Default: no-op
2378  }
2379 
2382  {
2383  // Default: no-op
2384  }
2385 
2388  FwIndexType portNum,
2389  const Fw::StringBase& filename,
2390  const Svc::SeqArgs& args
2391  )
2392  {
2393  // Default: no-op
2394  }
2395 
2396 #if !FW_DIRECT_PORT_CALLS
2397 
2398  // ----------------------------------------------------------------------
2399  // Invocation functions for typed output ports
2400  // ----------------------------------------------------------------------
2401 
2404  FwIndexType portNum,
2405  Fw::ComBuffer& data,
2406  U32 context
2407  ) const
2408  {
2409  FW_ASSERT(
2410  (0 <= portNum) && (portNum < this->getNum_cmdOut_OutputPorts()),
2411  static_cast<FwAssertArgType>(portNum)
2412  );
2413 
2414  FW_ASSERT(
2415  this->m_cmdOut_OutputPort[portNum].isConnected(),
2416  static_cast<FwAssertArgType>(portNum)
2417  );
2418  this->m_cmdOut_OutputPort[portNum].invoke(
2419  data,
2420  context
2421  );
2422  }
2423 
2426  FwIndexType portNum,
2427  FwPrmIdType id,
2428  Fw::ParamBuffer& val
2429  ) const
2430  {
2431  FW_ASSERT(
2432  (0 <= portNum) && (portNum < this->getNum_getParam_OutputPorts()),
2433  static_cast<FwAssertArgType>(portNum)
2434  );
2435 
2436  FW_ASSERT(
2437  this->m_getParam_OutputPort[portNum].isConnected(),
2438  static_cast<FwAssertArgType>(portNum)
2439  );
2440  return this->m_getParam_OutputPort[portNum].invoke(
2441  id,
2442  val
2443  );
2444  }
2445 
2448  FwIndexType portNum,
2449  FwChanIdType id,
2450  Fw::Time& timeTag,
2451  Fw::TlmBuffer& val
2452  ) const
2453  {
2454  FW_ASSERT(
2455  (0 <= portNum) && (portNum < this->getNum_getTlmChan_OutputPorts()),
2456  static_cast<FwAssertArgType>(portNum)
2457  );
2458 
2459  FW_ASSERT(
2460  this->m_getTlmChan_OutputPort[portNum].isConnected(),
2461  static_cast<FwAssertArgType>(portNum)
2462  );
2463  return this->m_getTlmChan_OutputPort[portNum].invoke(
2464  id,
2465  timeTag,
2466  val
2467  );
2468  }
2469 
2472  FwIndexType portNum,
2473  U32 key
2474  ) const
2475  {
2476  FW_ASSERT(
2477  (0 <= portNum) && (portNum < this->getNum_pingOut_OutputPorts()),
2478  static_cast<FwAssertArgType>(portNum)
2479  );
2480 
2481  FW_ASSERT(
2482  this->m_pingOut_OutputPort[portNum].isConnected(),
2483  static_cast<FwAssertArgType>(portNum)
2484  );
2485  this->m_pingOut_OutputPort[portNum].invoke(
2486  key
2487  );
2488  }
2489 
2492  FwIndexType portNum,
2493  FwOpcodeType opCode,
2494  U32 cmdSeq,
2495  const Fw::CmdResponse& response
2496  ) const
2497  {
2498  FW_ASSERT(
2499  (0 <= portNum) && (portNum < this->getNum_seqDoneOut_OutputPorts()),
2500  static_cast<FwAssertArgType>(portNum)
2501  );
2502 
2503  FW_ASSERT(
2504  this->m_seqDoneOut_OutputPort[portNum].isConnected(),
2505  static_cast<FwAssertArgType>(portNum)
2506  );
2507  this->m_seqDoneOut_OutputPort[portNum].invoke(
2508  opCode,
2509  cmdSeq,
2510  response
2511  );
2512  }
2513 
2516  FwIndexType portNum,
2517  const Fw::StringBase& filename,
2518  const Svc::SeqArgs& args
2519  ) const
2520  {
2521  FW_ASSERT(
2522  (0 <= portNum) && (portNum < this->getNum_seqStartOut_OutputPorts()),
2523  static_cast<FwAssertArgType>(portNum)
2524  );
2525 
2526  FW_ASSERT(
2527  this->m_seqStartOut_OutputPort[portNum].isConnected(),
2528  static_cast<FwAssertArgType>(portNum)
2529  );
2530  this->m_seqStartOut_OutputPort[portNum].invoke(
2531  filename,
2532  args
2533  );
2534  }
2535 
2536 #endif
2537 
2538 #if !FW_DIRECT_PORT_CALLS
2539 
2540  // ----------------------------------------------------------------------
2541  // Invocation functions for serial output ports
2542  // ----------------------------------------------------------------------
2543 
2546  FwIndexType portNum,
2547  Fw::LinearBufferBase& buffer
2548  )
2549  {
2550  FW_ASSERT(
2551  (0 <= portNum) && (portNum < this->getNum_serialOut_OutputPorts()),
2552  static_cast<FwAssertArgType>(portNum)
2553  );
2554 
2555  FW_ASSERT(
2556  this->m_serialOut_OutputPort[portNum].isConnected(),
2557  static_cast<FwAssertArgType>(portNum)
2558  );
2559  return this->m_serialOut_OutputPort[portNum].invokeSerial(
2560  buffer
2561  );
2562  }
2563 
2564 #endif
2565 
2566  // ----------------------------------------------------------------------
2567  // Hooks for internal ports
2568  //
2569  // Each of these functions is invoked just before dropping a message
2570  // on the corresponding internal port. You should override them to provide
2571  // specific drop behavior.
2572  // ----------------------------------------------------------------------
2573 
2574  // ----------------------------------------------------------------------
2575  // Internal interface base-class functions
2576  // ----------------------------------------------------------------------
2577 
2580  {
2581  ComponentIpcSerializableBuffer msg;
2583 
2584  // Serialize the message ID
2585  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_CHECKTIMERSINTERNAL));
2586  FW_ASSERT (
2587  _status == Fw::FW_SERIALIZE_OK,
2588  static_cast<FwAssertArgType>(_status)
2589  );
2590 
2591  // Fake port number to make message dequeue work
2592  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
2593  FW_ASSERT (
2594  _status == Fw::FW_SERIALIZE_OK,
2595  static_cast<FwAssertArgType>(_status)
2596  );
2597 
2598  // Send message
2600  Os::Queue::Status qStatus = this->m_queue.send(msg, 4, _block);
2601 
2602  FW_ASSERT(
2603  qStatus == Os::Queue::OP_OK,
2604  static_cast<FwAssertArgType>(qStatus)
2605  );
2606  }
2607 
2610  const Svc::FpySequencer_AllocateDirective& directive,
2611  U64 sequenceIndex
2612  )
2613  {
2614  ComponentIpcSerializableBuffer msg;
2616 
2617  // Serialize the message ID
2618  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_ALLOCATE));
2619  FW_ASSERT (
2620  _status == Fw::FW_SERIALIZE_OK,
2621  static_cast<FwAssertArgType>(_status)
2622  );
2623 
2624  // Fake port number to make message dequeue work
2625  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
2626  FW_ASSERT (
2627  _status == Fw::FW_SERIALIZE_OK,
2628  static_cast<FwAssertArgType>(_status)
2629  );
2630 
2631  _status = msg.serializeFrom(directive);
2632  FW_ASSERT(
2633  _status == Fw::FW_SERIALIZE_OK,
2634  static_cast<FwAssertArgType>(_status)
2635  );
2636 
2637  _status = msg.serializeFrom(sequenceIndex);
2638  FW_ASSERT(
2639  _status == Fw::FW_SERIALIZE_OK,
2640  static_cast<FwAssertArgType>(_status)
2641  );
2642 
2643  // Send message
2645  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
2646 
2647  FW_ASSERT(
2648  qStatus == Os::Queue::OP_OK,
2649  static_cast<FwAssertArgType>(qStatus)
2650  );
2651  }
2652 
2655  const Svc::FpySequencer_CallDirective& directive,
2656  U64 sequenceIndex
2657  )
2658  {
2659  ComponentIpcSerializableBuffer msg;
2661 
2662  // Serialize the message ID
2663  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_CALL));
2664  FW_ASSERT (
2665  _status == Fw::FW_SERIALIZE_OK,
2666  static_cast<FwAssertArgType>(_status)
2667  );
2668 
2669  // Fake port number to make message dequeue work
2670  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
2671  FW_ASSERT (
2672  _status == Fw::FW_SERIALIZE_OK,
2673  static_cast<FwAssertArgType>(_status)
2674  );
2675 
2676  _status = msg.serializeFrom(directive);
2677  FW_ASSERT(
2678  _status == Fw::FW_SERIALIZE_OK,
2679  static_cast<FwAssertArgType>(_status)
2680  );
2681 
2682  _status = msg.serializeFrom(sequenceIndex);
2683  FW_ASSERT(
2684  _status == Fw::FW_SERIALIZE_OK,
2685  static_cast<FwAssertArgType>(_status)
2686  );
2687 
2688  // Send message
2690  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
2691 
2692  FW_ASSERT(
2693  qStatus == Os::Queue::OP_OK,
2694  static_cast<FwAssertArgType>(qStatus)
2695  );
2696  }
2697 
2700  const Svc::FpySequencer_ConstCmdDirective& directive,
2701  U64 sequenceIndex
2702  )
2703  {
2704  ComponentIpcSerializableBuffer msg;
2706 
2707  // Serialize the message ID
2708  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_CONSTCMD));
2709  FW_ASSERT (
2710  _status == Fw::FW_SERIALIZE_OK,
2711  static_cast<FwAssertArgType>(_status)
2712  );
2713 
2714  // Fake port number to make message dequeue work
2715  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
2716  FW_ASSERT (
2717  _status == Fw::FW_SERIALIZE_OK,
2718  static_cast<FwAssertArgType>(_status)
2719  );
2720 
2721  _status = msg.serializeFrom(directive);
2722  FW_ASSERT(
2723  _status == Fw::FW_SERIALIZE_OK,
2724  static_cast<FwAssertArgType>(_status)
2725  );
2726 
2727  _status = msg.serializeFrom(sequenceIndex);
2728  FW_ASSERT(
2729  _status == Fw::FW_SERIALIZE_OK,
2730  static_cast<FwAssertArgType>(_status)
2731  );
2732 
2733  // Send message
2735  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
2736 
2737  FW_ASSERT(
2738  qStatus == Os::Queue::OP_OK,
2739  static_cast<FwAssertArgType>(qStatus)
2740  );
2741  }
2742 
2745  const Svc::FpySequencer_DiscardDirective& directive,
2746  U64 sequenceIndex
2747  )
2748  {
2749  ComponentIpcSerializableBuffer msg;
2751 
2752  // Serialize the message ID
2753  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_DISCARD));
2754  FW_ASSERT (
2755  _status == Fw::FW_SERIALIZE_OK,
2756  static_cast<FwAssertArgType>(_status)
2757  );
2758 
2759  // Fake port number to make message dequeue work
2760  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
2761  FW_ASSERT (
2762  _status == Fw::FW_SERIALIZE_OK,
2763  static_cast<FwAssertArgType>(_status)
2764  );
2765 
2766  _status = msg.serializeFrom(directive);
2767  FW_ASSERT(
2768  _status == Fw::FW_SERIALIZE_OK,
2769  static_cast<FwAssertArgType>(_status)
2770  );
2771 
2772  _status = msg.serializeFrom(sequenceIndex);
2773  FW_ASSERT(
2774  _status == Fw::FW_SERIALIZE_OK,
2775  static_cast<FwAssertArgType>(_status)
2776  );
2777 
2778  // Send message
2780  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
2781 
2782  FW_ASSERT(
2783  qStatus == Os::Queue::OP_OK,
2784  static_cast<FwAssertArgType>(qStatus)
2785  );
2786  }
2787 
2790  const Svc::FpySequencer_ExitDirective& directive,
2791  U64 sequenceIndex
2792  )
2793  {
2794  ComponentIpcSerializableBuffer msg;
2796 
2797  // Serialize the message ID
2798  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_EXIT));
2799  FW_ASSERT (
2800  _status == Fw::FW_SERIALIZE_OK,
2801  static_cast<FwAssertArgType>(_status)
2802  );
2803 
2804  // Fake port number to make message dequeue work
2805  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
2806  FW_ASSERT (
2807  _status == Fw::FW_SERIALIZE_OK,
2808  static_cast<FwAssertArgType>(_status)
2809  );
2810 
2811  _status = msg.serializeFrom(directive);
2812  FW_ASSERT(
2813  _status == Fw::FW_SERIALIZE_OK,
2814  static_cast<FwAssertArgType>(_status)
2815  );
2816 
2817  _status = msg.serializeFrom(sequenceIndex);
2818  FW_ASSERT(
2819  _status == Fw::FW_SERIALIZE_OK,
2820  static_cast<FwAssertArgType>(_status)
2821  );
2822 
2823  // Send message
2825  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
2826 
2827  FW_ASSERT(
2828  qStatus == Os::Queue::OP_OK,
2829  static_cast<FwAssertArgType>(qStatus)
2830  );
2831  }
2832 
2835  const Svc::FpySequencer_GetFieldDirective& directive,
2836  U64 sequenceIndex
2837  )
2838  {
2839  ComponentIpcSerializableBuffer msg;
2841 
2842  // Serialize the message ID
2843  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_GETFIELD));
2844  FW_ASSERT (
2845  _status == Fw::FW_SERIALIZE_OK,
2846  static_cast<FwAssertArgType>(_status)
2847  );
2848 
2849  // Fake port number to make message dequeue work
2850  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
2851  FW_ASSERT (
2852  _status == Fw::FW_SERIALIZE_OK,
2853  static_cast<FwAssertArgType>(_status)
2854  );
2855 
2856  _status = msg.serializeFrom(directive);
2857  FW_ASSERT(
2858  _status == Fw::FW_SERIALIZE_OK,
2859  static_cast<FwAssertArgType>(_status)
2860  );
2861 
2862  _status = msg.serializeFrom(sequenceIndex);
2863  FW_ASSERT(
2864  _status == Fw::FW_SERIALIZE_OK,
2865  static_cast<FwAssertArgType>(_status)
2866  );
2867 
2868  // Send message
2870  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
2871 
2872  FW_ASSERT(
2873  qStatus == Os::Queue::OP_OK,
2874  static_cast<FwAssertArgType>(qStatus)
2875  );
2876  }
2877 
2880  const Svc::FpySequencer_GotoDirective& directive,
2881  U64 sequenceIndex
2882  )
2883  {
2884  ComponentIpcSerializableBuffer msg;
2886 
2887  // Serialize the message ID
2888  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_GOTO));
2889  FW_ASSERT (
2890  _status == Fw::FW_SERIALIZE_OK,
2891  static_cast<FwAssertArgType>(_status)
2892  );
2893 
2894  // Fake port number to make message dequeue work
2895  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
2896  FW_ASSERT (
2897  _status == Fw::FW_SERIALIZE_OK,
2898  static_cast<FwAssertArgType>(_status)
2899  );
2900 
2901  _status = msg.serializeFrom(directive);
2902  FW_ASSERT(
2903  _status == Fw::FW_SERIALIZE_OK,
2904  static_cast<FwAssertArgType>(_status)
2905  );
2906 
2907  _status = msg.serializeFrom(sequenceIndex);
2908  FW_ASSERT(
2909  _status == Fw::FW_SERIALIZE_OK,
2910  static_cast<FwAssertArgType>(_status)
2911  );
2912 
2913  // Send message
2915  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
2916 
2917  FW_ASSERT(
2918  qStatus == Os::Queue::OP_OK,
2919  static_cast<FwAssertArgType>(qStatus)
2920  );
2921  }
2922 
2925  const Svc::FpySequencer_IfDirective& directive,
2926  U64 sequenceIndex
2927  )
2928  {
2929  ComponentIpcSerializableBuffer msg;
2931 
2932  // Serialize the message ID
2933  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_IF));
2934  FW_ASSERT (
2935  _status == Fw::FW_SERIALIZE_OK,
2936  static_cast<FwAssertArgType>(_status)
2937  );
2938 
2939  // Fake port number to make message dequeue work
2940  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
2941  FW_ASSERT (
2942  _status == Fw::FW_SERIALIZE_OK,
2943  static_cast<FwAssertArgType>(_status)
2944  );
2945 
2946  _status = msg.serializeFrom(directive);
2947  FW_ASSERT(
2948  _status == Fw::FW_SERIALIZE_OK,
2949  static_cast<FwAssertArgType>(_status)
2950  );
2951 
2952  _status = msg.serializeFrom(sequenceIndex);
2953  FW_ASSERT(
2954  _status == Fw::FW_SERIALIZE_OK,
2955  static_cast<FwAssertArgType>(_status)
2956  );
2957 
2958  // Send message
2960  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
2961 
2962  FW_ASSERT(
2963  qStatus == Os::Queue::OP_OK,
2964  static_cast<FwAssertArgType>(qStatus)
2965  );
2966  }
2967 
2970  const Svc::FpySequencer_LoadAbsDirective& directive,
2971  U64 sequenceIndex
2972  )
2973  {
2974  ComponentIpcSerializableBuffer msg;
2976 
2977  // Serialize the message ID
2978  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_LOADABS));
2979  FW_ASSERT (
2980  _status == Fw::FW_SERIALIZE_OK,
2981  static_cast<FwAssertArgType>(_status)
2982  );
2983 
2984  // Fake port number to make message dequeue work
2985  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
2986  FW_ASSERT (
2987  _status == Fw::FW_SERIALIZE_OK,
2988  static_cast<FwAssertArgType>(_status)
2989  );
2990 
2991  _status = msg.serializeFrom(directive);
2992  FW_ASSERT(
2993  _status == Fw::FW_SERIALIZE_OK,
2994  static_cast<FwAssertArgType>(_status)
2995  );
2996 
2997  _status = msg.serializeFrom(sequenceIndex);
2998  FW_ASSERT(
2999  _status == Fw::FW_SERIALIZE_OK,
3000  static_cast<FwAssertArgType>(_status)
3001  );
3002 
3003  // Send message
3005  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3006 
3007  FW_ASSERT(
3008  qStatus == Os::Queue::OP_OK,
3009  static_cast<FwAssertArgType>(qStatus)
3010  );
3011  }
3012 
3015  const Svc::FpySequencer_LoadRelDirective& directive,
3016  U64 sequenceIndex
3017  )
3018  {
3019  ComponentIpcSerializableBuffer msg;
3021 
3022  // Serialize the message ID
3023  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_LOADREL));
3024  FW_ASSERT (
3025  _status == Fw::FW_SERIALIZE_OK,
3026  static_cast<FwAssertArgType>(_status)
3027  );
3028 
3029  // Fake port number to make message dequeue work
3030  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
3031  FW_ASSERT (
3032  _status == Fw::FW_SERIALIZE_OK,
3033  static_cast<FwAssertArgType>(_status)
3034  );
3035 
3036  _status = msg.serializeFrom(directive);
3037  FW_ASSERT(
3038  _status == Fw::FW_SERIALIZE_OK,
3039  static_cast<FwAssertArgType>(_status)
3040  );
3041 
3042  _status = msg.serializeFrom(sequenceIndex);
3043  FW_ASSERT(
3044  _status == Fw::FW_SERIALIZE_OK,
3045  static_cast<FwAssertArgType>(_status)
3046  );
3047 
3048  // Send message
3050  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3051 
3052  FW_ASSERT(
3053  qStatus == Os::Queue::OP_OK,
3054  static_cast<FwAssertArgType>(qStatus)
3055  );
3056  }
3057 
3060  const Svc::FpySequencer_MemCmpDirective& directive,
3061  U64 sequenceIndex
3062  )
3063  {
3064  ComponentIpcSerializableBuffer msg;
3066 
3067  // Serialize the message ID
3068  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_MEMCMP));
3069  FW_ASSERT (
3070  _status == Fw::FW_SERIALIZE_OK,
3071  static_cast<FwAssertArgType>(_status)
3072  );
3073 
3074  // Fake port number to make message dequeue work
3075  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
3076  FW_ASSERT (
3077  _status == Fw::FW_SERIALIZE_OK,
3078  static_cast<FwAssertArgType>(_status)
3079  );
3080 
3081  _status = msg.serializeFrom(directive);
3082  FW_ASSERT(
3083  _status == Fw::FW_SERIALIZE_OK,
3084  static_cast<FwAssertArgType>(_status)
3085  );
3086 
3087  _status = msg.serializeFrom(sequenceIndex);
3088  FW_ASSERT(
3089  _status == Fw::FW_SERIALIZE_OK,
3090  static_cast<FwAssertArgType>(_status)
3091  );
3092 
3093  // Send message
3095  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3096 
3097  FW_ASSERT(
3098  qStatus == Os::Queue::OP_OK,
3099  static_cast<FwAssertArgType>(qStatus)
3100  );
3101  }
3102 
3105  const Svc::FpySequencer_NoOpDirective& directive,
3106  U64 sequenceIndex
3107  )
3108  {
3109  ComponentIpcSerializableBuffer msg;
3111 
3112  // Serialize the message ID
3113  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_NOOP));
3114  FW_ASSERT (
3115  _status == Fw::FW_SERIALIZE_OK,
3116  static_cast<FwAssertArgType>(_status)
3117  );
3118 
3119  // Fake port number to make message dequeue work
3120  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
3121  FW_ASSERT (
3122  _status == Fw::FW_SERIALIZE_OK,
3123  static_cast<FwAssertArgType>(_status)
3124  );
3125 
3126  _status = msg.serializeFrom(directive);
3127  FW_ASSERT(
3128  _status == Fw::FW_SERIALIZE_OK,
3129  static_cast<FwAssertArgType>(_status)
3130  );
3131 
3132  _status = msg.serializeFrom(sequenceIndex);
3133  FW_ASSERT(
3134  _status == Fw::FW_SERIALIZE_OK,
3135  static_cast<FwAssertArgType>(_status)
3136  );
3137 
3138  // Send message
3140  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3141 
3142  FW_ASSERT(
3143  qStatus == Os::Queue::OP_OK,
3144  static_cast<FwAssertArgType>(qStatus)
3145  );
3146  }
3147 
3150  const Svc::FpySequencer_PeekDirective& directive,
3151  U64 sequenceIndex
3152  )
3153  {
3154  ComponentIpcSerializableBuffer msg;
3156 
3157  // Serialize the message ID
3158  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_PEEK));
3159  FW_ASSERT (
3160  _status == Fw::FW_SERIALIZE_OK,
3161  static_cast<FwAssertArgType>(_status)
3162  );
3163 
3164  // Fake port number to make message dequeue work
3165  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
3166  FW_ASSERT (
3167  _status == Fw::FW_SERIALIZE_OK,
3168  static_cast<FwAssertArgType>(_status)
3169  );
3170 
3171  _status = msg.serializeFrom(directive);
3172  FW_ASSERT(
3173  _status == Fw::FW_SERIALIZE_OK,
3174  static_cast<FwAssertArgType>(_status)
3175  );
3176 
3177  _status = msg.serializeFrom(sequenceIndex);
3178  FW_ASSERT(
3179  _status == Fw::FW_SERIALIZE_OK,
3180  static_cast<FwAssertArgType>(_status)
3181  );
3182 
3183  // Send message
3185  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3186 
3187  FW_ASSERT(
3188  qStatus == Os::Queue::OP_OK,
3189  static_cast<FwAssertArgType>(qStatus)
3190  );
3191  }
3192 
3195  const Svc::FpySequencer_PopEventDirective& directive,
3196  U64 sequenceIndex
3197  )
3198  {
3199  ComponentIpcSerializableBuffer msg;
3201 
3202  // Serialize the message ID
3203  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_POPEVENT));
3204  FW_ASSERT (
3205  _status == Fw::FW_SERIALIZE_OK,
3206  static_cast<FwAssertArgType>(_status)
3207  );
3208 
3209  // Fake port number to make message dequeue work
3210  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
3211  FW_ASSERT (
3212  _status == Fw::FW_SERIALIZE_OK,
3213  static_cast<FwAssertArgType>(_status)
3214  );
3215 
3216  _status = msg.serializeFrom(directive);
3217  FW_ASSERT(
3218  _status == Fw::FW_SERIALIZE_OK,
3219  static_cast<FwAssertArgType>(_status)
3220  );
3221 
3222  _status = msg.serializeFrom(sequenceIndex);
3223  FW_ASSERT(
3224  _status == Fw::FW_SERIALIZE_OK,
3225  static_cast<FwAssertArgType>(_status)
3226  );
3227 
3228  // Send message
3230  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3231 
3232  FW_ASSERT(
3233  qStatus == Os::Queue::OP_OK,
3234  static_cast<FwAssertArgType>(qStatus)
3235  );
3236  }
3237 
3241  U64 sequenceIndex
3242  )
3243  {
3244  ComponentIpcSerializableBuffer msg;
3246 
3247  // Serialize the message ID
3248  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_POPSERIALIZABLE));
3249  FW_ASSERT (
3250  _status == Fw::FW_SERIALIZE_OK,
3251  static_cast<FwAssertArgType>(_status)
3252  );
3253 
3254  // Fake port number to make message dequeue work
3255  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
3256  FW_ASSERT (
3257  _status == Fw::FW_SERIALIZE_OK,
3258  static_cast<FwAssertArgType>(_status)
3259  );
3260 
3261  _status = msg.serializeFrom(directive);
3262  FW_ASSERT(
3263  _status == Fw::FW_SERIALIZE_OK,
3264  static_cast<FwAssertArgType>(_status)
3265  );
3266 
3267  _status = msg.serializeFrom(sequenceIndex);
3268  FW_ASSERT(
3269  _status == Fw::FW_SERIALIZE_OK,
3270  static_cast<FwAssertArgType>(_status)
3271  );
3272 
3273  // Send message
3275  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3276 
3277  FW_ASSERT(
3278  qStatus == Os::Queue::OP_OK,
3279  static_cast<FwAssertArgType>(qStatus)
3280  );
3281  }
3282 
3285  const Svc::FpySequencer_PushPrmDirective& directive,
3286  U64 sequenceIndex
3287  )
3288  {
3289  ComponentIpcSerializableBuffer msg;
3291 
3292  // Serialize the message ID
3293  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_PUSHPRM));
3294  FW_ASSERT (
3295  _status == Fw::FW_SERIALIZE_OK,
3296  static_cast<FwAssertArgType>(_status)
3297  );
3298 
3299  // Fake port number to make message dequeue work
3300  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
3301  FW_ASSERT (
3302  _status == Fw::FW_SERIALIZE_OK,
3303  static_cast<FwAssertArgType>(_status)
3304  );
3305 
3306  _status = msg.serializeFrom(directive);
3307  FW_ASSERT(
3308  _status == Fw::FW_SERIALIZE_OK,
3309  static_cast<FwAssertArgType>(_status)
3310  );
3311 
3312  _status = msg.serializeFrom(sequenceIndex);
3313  FW_ASSERT(
3314  _status == Fw::FW_SERIALIZE_OK,
3315  static_cast<FwAssertArgType>(_status)
3316  );
3317 
3318  // Send message
3320  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3321 
3322  FW_ASSERT(
3323  qStatus == Os::Queue::OP_OK,
3324  static_cast<FwAssertArgType>(qStatus)
3325  );
3326  }
3327 
3330  const Svc::FpySequencer_PushRandDirective& directive,
3331  U64 sequenceIndex
3332  )
3333  {
3334  ComponentIpcSerializableBuffer msg;
3336 
3337  // Serialize the message ID
3338  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_PUSHRAND));
3339  FW_ASSERT (
3340  _status == Fw::FW_SERIALIZE_OK,
3341  static_cast<FwAssertArgType>(_status)
3342  );
3343 
3344  // Fake port number to make message dequeue work
3345  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
3346  FW_ASSERT (
3347  _status == Fw::FW_SERIALIZE_OK,
3348  static_cast<FwAssertArgType>(_status)
3349  );
3350 
3351  _status = msg.serializeFrom(directive);
3352  FW_ASSERT(
3353  _status == Fw::FW_SERIALIZE_OK,
3354  static_cast<FwAssertArgType>(_status)
3355  );
3356 
3357  _status = msg.serializeFrom(sequenceIndex);
3358  FW_ASSERT(
3359  _status == Fw::FW_SERIALIZE_OK,
3360  static_cast<FwAssertArgType>(_status)
3361  );
3362 
3363  // Send message
3365  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3366 
3367  FW_ASSERT(
3368  qStatus == Os::Queue::OP_OK,
3369  static_cast<FwAssertArgType>(qStatus)
3370  );
3371  }
3372 
3375  const Svc::FpySequencer_PushTimeDirective& directive,
3376  U64 sequenceIndex
3377  )
3378  {
3379  ComponentIpcSerializableBuffer msg;
3381 
3382  // Serialize the message ID
3383  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_PUSHTIME));
3384  FW_ASSERT (
3385  _status == Fw::FW_SERIALIZE_OK,
3386  static_cast<FwAssertArgType>(_status)
3387  );
3388 
3389  // Fake port number to make message dequeue work
3390  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
3391  FW_ASSERT (
3392  _status == Fw::FW_SERIALIZE_OK,
3393  static_cast<FwAssertArgType>(_status)
3394  );
3395 
3396  _status = msg.serializeFrom(directive);
3397  FW_ASSERT(
3398  _status == Fw::FW_SERIALIZE_OK,
3399  static_cast<FwAssertArgType>(_status)
3400  );
3401 
3402  _status = msg.serializeFrom(sequenceIndex);
3403  FW_ASSERT(
3404  _status == Fw::FW_SERIALIZE_OK,
3405  static_cast<FwAssertArgType>(_status)
3406  );
3407 
3408  // Send message
3410  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3411 
3412  FW_ASSERT(
3413  qStatus == Os::Queue::OP_OK,
3414  static_cast<FwAssertArgType>(qStatus)
3415  );
3416  }
3417 
3420  const Svc::FpySequencer_PushTlmValDirective& directive,
3421  U64 sequenceIndex
3422  )
3423  {
3424  ComponentIpcSerializableBuffer msg;
3426 
3427  // Serialize the message ID
3428  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_PUSHTLMVAL));
3429  FW_ASSERT (
3430  _status == Fw::FW_SERIALIZE_OK,
3431  static_cast<FwAssertArgType>(_status)
3432  );
3433 
3434  // Fake port number to make message dequeue work
3435  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
3436  FW_ASSERT (
3437  _status == Fw::FW_SERIALIZE_OK,
3438  static_cast<FwAssertArgType>(_status)
3439  );
3440 
3441  _status = msg.serializeFrom(directive);
3442  FW_ASSERT(
3443  _status == Fw::FW_SERIALIZE_OK,
3444  static_cast<FwAssertArgType>(_status)
3445  );
3446 
3447  _status = msg.serializeFrom(sequenceIndex);
3448  FW_ASSERT(
3449  _status == Fw::FW_SERIALIZE_OK,
3450  static_cast<FwAssertArgType>(_status)
3451  );
3452 
3453  // Send message
3455  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3456 
3457  FW_ASSERT(
3458  qStatus == Os::Queue::OP_OK,
3459  static_cast<FwAssertArgType>(qStatus)
3460  );
3461  }
3462 
3466  U64 sequenceIndex
3467  )
3468  {
3469  ComponentIpcSerializableBuffer msg;
3471 
3472  // Serialize the message ID
3473  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_PUSHTLMVALANDTIME));
3474  FW_ASSERT (
3475  _status == Fw::FW_SERIALIZE_OK,
3476  static_cast<FwAssertArgType>(_status)
3477  );
3478 
3479  // Fake port number to make message dequeue work
3480  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
3481  FW_ASSERT (
3482  _status == Fw::FW_SERIALIZE_OK,
3483  static_cast<FwAssertArgType>(_status)
3484  );
3485 
3486  _status = msg.serializeFrom(directive);
3487  FW_ASSERT(
3488  _status == Fw::FW_SERIALIZE_OK,
3489  static_cast<FwAssertArgType>(_status)
3490  );
3491 
3492  _status = msg.serializeFrom(sequenceIndex);
3493  FW_ASSERT(
3494  _status == Fw::FW_SERIALIZE_OK,
3495  static_cast<FwAssertArgType>(_status)
3496  );
3497 
3498  // Send message
3500  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3501 
3502  FW_ASSERT(
3503  qStatus == Os::Queue::OP_OK,
3504  static_cast<FwAssertArgType>(qStatus)
3505  );
3506  }
3507 
3510  const Svc::FpySequencer_PushValDirective& directive,
3511  U64 sequenceIndex
3512  )
3513  {
3514  ComponentIpcSerializableBuffer msg;
3516 
3517  // Serialize the message ID
3518  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_PUSHVAL));
3519  FW_ASSERT (
3520  _status == Fw::FW_SERIALIZE_OK,
3521  static_cast<FwAssertArgType>(_status)
3522  );
3523 
3524  // Fake port number to make message dequeue work
3525  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
3526  FW_ASSERT (
3527  _status == Fw::FW_SERIALIZE_OK,
3528  static_cast<FwAssertArgType>(_status)
3529  );
3530 
3531  _status = msg.serializeFrom(directive);
3532  FW_ASSERT(
3533  _status == Fw::FW_SERIALIZE_OK,
3534  static_cast<FwAssertArgType>(_status)
3535  );
3536 
3537  _status = msg.serializeFrom(sequenceIndex);
3538  FW_ASSERT(
3539  _status == Fw::FW_SERIALIZE_OK,
3540  static_cast<FwAssertArgType>(_status)
3541  );
3542 
3543  // Send message
3545  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3546 
3547  FW_ASSERT(
3548  qStatus == Os::Queue::OP_OK,
3549  static_cast<FwAssertArgType>(qStatus)
3550  );
3551  }
3552 
3555  const Svc::FpySequencer_ReturnDirective& directive,
3556  U64 sequenceIndex
3557  )
3558  {
3559  ComponentIpcSerializableBuffer msg;
3561 
3562  // Serialize the message ID
3563  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_RETURN));
3564  FW_ASSERT (
3565  _status == Fw::FW_SERIALIZE_OK,
3566  static_cast<FwAssertArgType>(_status)
3567  );
3568 
3569  // Fake port number to make message dequeue work
3570  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
3571  FW_ASSERT (
3572  _status == Fw::FW_SERIALIZE_OK,
3573  static_cast<FwAssertArgType>(_status)
3574  );
3575 
3576  _status = msg.serializeFrom(directive);
3577  FW_ASSERT(
3578  _status == Fw::FW_SERIALIZE_OK,
3579  static_cast<FwAssertArgType>(_status)
3580  );
3581 
3582  _status = msg.serializeFrom(sequenceIndex);
3583  FW_ASSERT(
3584  _status == Fw::FW_SERIALIZE_OK,
3585  static_cast<FwAssertArgType>(_status)
3586  );
3587 
3588  // Send message
3590  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3591 
3592  FW_ASSERT(
3593  qStatus == Os::Queue::OP_OK,
3594  static_cast<FwAssertArgType>(qStatus)
3595  );
3596  }
3597 
3600  const Svc::FpySequencer_SetSeedDirective& directive,
3601  U64 sequenceIndex
3602  )
3603  {
3604  ComponentIpcSerializableBuffer msg;
3606 
3607  // Serialize the message ID
3608  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_SETSEED));
3609  FW_ASSERT (
3610  _status == Fw::FW_SERIALIZE_OK,
3611  static_cast<FwAssertArgType>(_status)
3612  );
3613 
3614  // Fake port number to make message dequeue work
3615  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
3616  FW_ASSERT (
3617  _status == Fw::FW_SERIALIZE_OK,
3618  static_cast<FwAssertArgType>(_status)
3619  );
3620 
3621  _status = msg.serializeFrom(directive);
3622  FW_ASSERT(
3623  _status == Fw::FW_SERIALIZE_OK,
3624  static_cast<FwAssertArgType>(_status)
3625  );
3626 
3627  _status = msg.serializeFrom(sequenceIndex);
3628  FW_ASSERT(
3629  _status == Fw::FW_SERIALIZE_OK,
3630  static_cast<FwAssertArgType>(_status)
3631  );
3632 
3633  // Send message
3635  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3636 
3637  FW_ASSERT(
3638  qStatus == Os::Queue::OP_OK,
3639  static_cast<FwAssertArgType>(qStatus)
3640  );
3641  }
3642 
3645  const Svc::FpySequencer_StackCmdDirective& directive,
3646  U64 sequenceIndex
3647  )
3648  {
3649  ComponentIpcSerializableBuffer msg;
3651 
3652  // Serialize the message ID
3653  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_STACKCMD));
3654  FW_ASSERT (
3655  _status == Fw::FW_SERIALIZE_OK,
3656  static_cast<FwAssertArgType>(_status)
3657  );
3658 
3659  // Fake port number to make message dequeue work
3660  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
3661  FW_ASSERT (
3662  _status == Fw::FW_SERIALIZE_OK,
3663  static_cast<FwAssertArgType>(_status)
3664  );
3665 
3666  _status = msg.serializeFrom(directive);
3667  FW_ASSERT(
3668  _status == Fw::FW_SERIALIZE_OK,
3669  static_cast<FwAssertArgType>(_status)
3670  );
3671 
3672  _status = msg.serializeFrom(sequenceIndex);
3673  FW_ASSERT(
3674  _status == Fw::FW_SERIALIZE_OK,
3675  static_cast<FwAssertArgType>(_status)
3676  );
3677 
3678  // Send message
3680  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3681 
3682  FW_ASSERT(
3683  qStatus == Os::Queue::OP_OK,
3684  static_cast<FwAssertArgType>(qStatus)
3685  );
3686  }
3687 
3690  const Svc::FpySequencer_StackOpDirective& directive,
3691  U64 sequenceIndex
3692  )
3693  {
3694  ComponentIpcSerializableBuffer msg;
3696 
3697  // Serialize the message ID
3698  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_STACKOP));
3699  FW_ASSERT (
3700  _status == Fw::FW_SERIALIZE_OK,
3701  static_cast<FwAssertArgType>(_status)
3702  );
3703 
3704  // Fake port number to make message dequeue work
3705  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
3706  FW_ASSERT (
3707  _status == Fw::FW_SERIALIZE_OK,
3708  static_cast<FwAssertArgType>(_status)
3709  );
3710 
3711  _status = msg.serializeFrom(directive);
3712  FW_ASSERT(
3713  _status == Fw::FW_SERIALIZE_OK,
3714  static_cast<FwAssertArgType>(_status)
3715  );
3716 
3717  _status = msg.serializeFrom(sequenceIndex);
3718  FW_ASSERT(
3719  _status == Fw::FW_SERIALIZE_OK,
3720  static_cast<FwAssertArgType>(_status)
3721  );
3722 
3723  // Send message
3725  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3726 
3727  FW_ASSERT(
3728  qStatus == Os::Queue::OP_OK,
3729  static_cast<FwAssertArgType>(qStatus)
3730  );
3731  }
3732 
3735  const Svc::FpySequencer_StoreAbsDirective& directive,
3736  U64 sequenceIndex
3737  )
3738  {
3739  ComponentIpcSerializableBuffer msg;
3741 
3742  // Serialize the message ID
3743  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_STOREABS));
3744  FW_ASSERT (
3745  _status == Fw::FW_SERIALIZE_OK,
3746  static_cast<FwAssertArgType>(_status)
3747  );
3748 
3749  // Fake port number to make message dequeue work
3750  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
3751  FW_ASSERT (
3752  _status == Fw::FW_SERIALIZE_OK,
3753  static_cast<FwAssertArgType>(_status)
3754  );
3755 
3756  _status = msg.serializeFrom(directive);
3757  FW_ASSERT(
3758  _status == Fw::FW_SERIALIZE_OK,
3759  static_cast<FwAssertArgType>(_status)
3760  );
3761 
3762  _status = msg.serializeFrom(sequenceIndex);
3763  FW_ASSERT(
3764  _status == Fw::FW_SERIALIZE_OK,
3765  static_cast<FwAssertArgType>(_status)
3766  );
3767 
3768  // Send message
3770  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3771 
3772  FW_ASSERT(
3773  qStatus == Os::Queue::OP_OK,
3774  static_cast<FwAssertArgType>(qStatus)
3775  );
3776  }
3777 
3781  U64 sequenceIndex
3782  )
3783  {
3784  ComponentIpcSerializableBuffer msg;
3786 
3787  // Serialize the message ID
3788  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_STOREABSCONSTOFFSET));
3789  FW_ASSERT (
3790  _status == Fw::FW_SERIALIZE_OK,
3791  static_cast<FwAssertArgType>(_status)
3792  );
3793 
3794  // Fake port number to make message dequeue work
3795  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
3796  FW_ASSERT (
3797  _status == Fw::FW_SERIALIZE_OK,
3798  static_cast<FwAssertArgType>(_status)
3799  );
3800 
3801  _status = msg.serializeFrom(directive);
3802  FW_ASSERT(
3803  _status == Fw::FW_SERIALIZE_OK,
3804  static_cast<FwAssertArgType>(_status)
3805  );
3806 
3807  _status = msg.serializeFrom(sequenceIndex);
3808  FW_ASSERT(
3809  _status == Fw::FW_SERIALIZE_OK,
3810  static_cast<FwAssertArgType>(_status)
3811  );
3812 
3813  // Send message
3815  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3816 
3817  FW_ASSERT(
3818  qStatus == Os::Queue::OP_OK,
3819  static_cast<FwAssertArgType>(qStatus)
3820  );
3821  }
3822 
3825  const Svc::FpySequencer_StoreRelDirective& directive,
3826  U64 sequenceIndex
3827  )
3828  {
3829  ComponentIpcSerializableBuffer msg;
3831 
3832  // Serialize the message ID
3833  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_STOREREL));
3834  FW_ASSERT (
3835  _status == Fw::FW_SERIALIZE_OK,
3836  static_cast<FwAssertArgType>(_status)
3837  );
3838 
3839  // Fake port number to make message dequeue work
3840  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
3841  FW_ASSERT (
3842  _status == Fw::FW_SERIALIZE_OK,
3843  static_cast<FwAssertArgType>(_status)
3844  );
3845 
3846  _status = msg.serializeFrom(directive);
3847  FW_ASSERT(
3848  _status == Fw::FW_SERIALIZE_OK,
3849  static_cast<FwAssertArgType>(_status)
3850  );
3851 
3852  _status = msg.serializeFrom(sequenceIndex);
3853  FW_ASSERT(
3854  _status == Fw::FW_SERIALIZE_OK,
3855  static_cast<FwAssertArgType>(_status)
3856  );
3857 
3858  // Send message
3860  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3861 
3862  FW_ASSERT(
3863  qStatus == Os::Queue::OP_OK,
3864  static_cast<FwAssertArgType>(qStatus)
3865  );
3866  }
3867 
3871  U64 sequenceIndex
3872  )
3873  {
3874  ComponentIpcSerializableBuffer msg;
3876 
3877  // Serialize the message ID
3878  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_STORERELCONSTOFFSET));
3879  FW_ASSERT (
3880  _status == Fw::FW_SERIALIZE_OK,
3881  static_cast<FwAssertArgType>(_status)
3882  );
3883 
3884  // Fake port number to make message dequeue work
3885  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
3886  FW_ASSERT (
3887  _status == Fw::FW_SERIALIZE_OK,
3888  static_cast<FwAssertArgType>(_status)
3889  );
3890 
3891  _status = msg.serializeFrom(directive);
3892  FW_ASSERT(
3893  _status == Fw::FW_SERIALIZE_OK,
3894  static_cast<FwAssertArgType>(_status)
3895  );
3896 
3897  _status = msg.serializeFrom(sequenceIndex);
3898  FW_ASSERT(
3899  _status == Fw::FW_SERIALIZE_OK,
3900  static_cast<FwAssertArgType>(_status)
3901  );
3902 
3903  // Send message
3905  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3906 
3907  FW_ASSERT(
3908  qStatus == Os::Queue::OP_OK,
3909  static_cast<FwAssertArgType>(qStatus)
3910  );
3911  }
3912 
3915  const Svc::FpySequencer_WaitAbsDirective& directive,
3916  U64 sequenceIndex
3917  )
3918  {
3919  ComponentIpcSerializableBuffer msg;
3921 
3922  // Serialize the message ID
3923  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_WAITABS));
3924  FW_ASSERT (
3925  _status == Fw::FW_SERIALIZE_OK,
3926  static_cast<FwAssertArgType>(_status)
3927  );
3928 
3929  // Fake port number to make message dequeue work
3930  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
3931  FW_ASSERT (
3932  _status == Fw::FW_SERIALIZE_OK,
3933  static_cast<FwAssertArgType>(_status)
3934  );
3935 
3936  _status = msg.serializeFrom(directive);
3937  FW_ASSERT(
3938  _status == Fw::FW_SERIALIZE_OK,
3939  static_cast<FwAssertArgType>(_status)
3940  );
3941 
3942  _status = msg.serializeFrom(sequenceIndex);
3943  FW_ASSERT(
3944  _status == Fw::FW_SERIALIZE_OK,
3945  static_cast<FwAssertArgType>(_status)
3946  );
3947 
3948  // Send message
3950  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3951 
3952  FW_ASSERT(
3953  qStatus == Os::Queue::OP_OK,
3954  static_cast<FwAssertArgType>(qStatus)
3955  );
3956  }
3957 
3960  const Svc::FpySequencer_WaitRelDirective& directive,
3961  U64 sequenceIndex
3962  )
3963  {
3964  ComponentIpcSerializableBuffer msg;
3966 
3967  // Serialize the message ID
3968  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_DIRECTIVE_WAITREL));
3969  FW_ASSERT (
3970  _status == Fw::FW_SERIALIZE_OK,
3971  static_cast<FwAssertArgType>(_status)
3972  );
3973 
3974  // Fake port number to make message dequeue work
3975  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
3976  FW_ASSERT (
3977  _status == Fw::FW_SERIALIZE_OK,
3978  static_cast<FwAssertArgType>(_status)
3979  );
3980 
3981  _status = msg.serializeFrom(directive);
3982  FW_ASSERT(
3983  _status == Fw::FW_SERIALIZE_OK,
3984  static_cast<FwAssertArgType>(_status)
3985  );
3986 
3987  _status = msg.serializeFrom(sequenceIndex);
3988  FW_ASSERT(
3989  _status == Fw::FW_SERIALIZE_OK,
3990  static_cast<FwAssertArgType>(_status)
3991  );
3992 
3993  // Send message
3995  Os::Queue::Status qStatus = this->m_queue.send(msg, 6, _block);
3996 
3997  FW_ASSERT(
3998  qStatus == Os::Queue::OP_OK,
3999  static_cast<FwAssertArgType>(qStatus)
4000  );
4001  }
4002 
4005  {
4006  ComponentIpcSerializableBuffer msg;
4008 
4009  // Serialize the message ID
4010  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_TLMWRITEINTERNAL));
4011  FW_ASSERT (
4012  _status == Fw::FW_SERIALIZE_OK,
4013  static_cast<FwAssertArgType>(_status)
4014  );
4015 
4016  // Fake port number to make message dequeue work
4017  _status = msg.serializeFrom(static_cast<FwIndexType>(0));
4018  FW_ASSERT (
4019  _status == Fw::FW_SERIALIZE_OK,
4020  static_cast<FwAssertArgType>(_status)
4021  );
4022 
4023  // Send message
4025  Os::Queue::Status qStatus = this->m_queue.send(msg, 1, _block);
4026 
4027  if (qStatus == Os::Queue::Status::FULL) {
4029  return;
4030  }
4031 
4032  FW_ASSERT(
4033  qStatus == Os::Queue::OP_OK,
4034  static_cast<FwAssertArgType>(qStatus)
4035  );
4036  }
4037 
4038  // ----------------------------------------------------------------------
4039  // State getter functions
4040  // ----------------------------------------------------------------------
4041 
4044  {
4045  return this->m_stateMachine_sequencer.getState();
4046  }
4047 
4048  // ----------------------------------------------------------------------
4049  // Signal send functions
4050  // ----------------------------------------------------------------------
4051 
4054  {
4055  ComponentIpcSerializableBuffer buffer;
4056  // Serialize the message type, port number, state ID, and signal
4057  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::cmd_VALIDATE), buffer);
4058  // Serialize the signal data
4059  const Fw::SerializeStatus status = buffer.serializeFrom(value);
4060  FW_ASSERT(status == Fw::FW_SERIALIZE_OK, static_cast<FwAssertArgType>(status));
4061  // Send the message and handle overflow
4062  this->sequencer_sendSignalFinish(buffer);
4063  }
4064 
4067  {
4068  ComponentIpcSerializableBuffer buffer;
4069  // Serialize the message type, port number, state ID, and signal
4070  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::cmd_RUN), buffer);
4071  // Serialize the signal data
4072  const Fw::SerializeStatus status = buffer.serializeFrom(value);
4073  FW_ASSERT(status == Fw::FW_SERIALIZE_OK, static_cast<FwAssertArgType>(status));
4074  // Send the message and handle overflow
4075  this->sequencer_sendSignalFinish(buffer);
4076  }
4077 
4080  {
4081  ComponentIpcSerializableBuffer buffer;
4082  // Serialize the message type, port number, state ID, and signal
4083  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::cmd_RUN_VALIDATED), buffer);
4084  // Serialize the signal data
4085  const Fw::SerializeStatus status = buffer.serializeFrom(value);
4086  FW_ASSERT(status == Fw::FW_SERIALIZE_OK, static_cast<FwAssertArgType>(status));
4087  // Send the message and handle overflow
4088  this->sequencer_sendSignalFinish(buffer);
4089  }
4090 
4093  {
4094  ComponentIpcSerializableBuffer buffer;
4095  // Serialize the message type, port number, state ID, and signal
4096  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::cmd_CANCEL), buffer);
4097  // Send the message and handle overflow
4098  this->sequencer_sendSignalFinish(buffer);
4099  }
4100 
4103  {
4104  ComponentIpcSerializableBuffer buffer;
4105  // Serialize the message type, port number, state ID, and signal
4106  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::cmd_SET_BREAKPOINT), buffer);
4107  // Serialize the signal data
4108  const Fw::SerializeStatus status = buffer.serializeFrom(value);
4109  FW_ASSERT(status == Fw::FW_SERIALIZE_OK, static_cast<FwAssertArgType>(status));
4110  // Send the message and handle overflow
4111  this->sequencer_sendSignalFinish(buffer);
4112  }
4113 
4116  {
4117  ComponentIpcSerializableBuffer buffer;
4118  // Serialize the message type, port number, state ID, and signal
4119  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::cmd_CLEAR_BREAKPOINT), buffer);
4120  // Send the message and handle overflow
4121  this->sequencer_sendSignalFinish(buffer);
4122  }
4123 
4126  {
4127  ComponentIpcSerializableBuffer buffer;
4128  // Serialize the message type, port number, state ID, and signal
4129  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::result_failure), buffer);
4130  // Send the message and handle overflow
4131  this->sequencer_sendSignalFinish(buffer);
4132  }
4133 
4136  {
4137  ComponentIpcSerializableBuffer buffer;
4138  // Serialize the message type, port number, state ID, and signal
4139  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::result_success), buffer);
4140  // Send the message and handle overflow
4141  this->sequencer_sendSignalFinish(buffer);
4142  }
4143 
4146  {
4147  ComponentIpcSerializableBuffer buffer;
4148  // Serialize the message type, port number, state ID, and signal
4149  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::entered), buffer);
4150  // Send the message and handle overflow
4151  this->sequencer_sendSignalFinish(buffer);
4152  }
4153 
4156  {
4157  ComponentIpcSerializableBuffer buffer;
4158  // Serialize the message type, port number, state ID, and signal
4159  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::result_dispatchStatement_success), buffer);
4160  // Send the message and handle overflow
4161  this->sequencer_sendSignalFinish(buffer);
4162  }
4163 
4166  {
4167  ComponentIpcSerializableBuffer buffer;
4168  // Serialize the message type, port number, state ID, and signal
4169  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::result_dispatchStatement_failure), buffer);
4170  // Send the message and handle overflow
4171  this->sequencer_sendSignalFinish(buffer);
4172  }
4173 
4176  {
4177  ComponentIpcSerializableBuffer buffer;
4178  // Serialize the message type, port number, state ID, and signal
4179  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::result_dispatchStatement_noMoreStatements), buffer);
4180  // Send the message and handle overflow
4181  this->sequencer_sendSignalFinish(buffer);
4182  }
4183 
4186  {
4187  ComponentIpcSerializableBuffer buffer;
4188  // Serialize the message type, port number, state ID, and signal
4189  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::checkTimersIn), buffer);
4190  // Send the message and handle overflow
4191  this->sequencer_sendSignalFinish(buffer);
4192  }
4193 
4196  {
4197  ComponentIpcSerializableBuffer buffer;
4198  // Serialize the message type, port number, state ID, and signal
4199  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::result_checkShouldWake_wakeup), buffer);
4200  // Send the message and handle overflow
4201  this->sequencer_sendSignalFinish(buffer);
4202  }
4203 
4206  {
4207  ComponentIpcSerializableBuffer buffer;
4208  // Serialize the message type, port number, state ID, and signal
4209  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::result_checkShouldWake_keepSleeping), buffer);
4210  // Send the message and handle overflow
4211  this->sequencer_sendSignalFinish(buffer);
4212  }
4213 
4216  {
4217  ComponentIpcSerializableBuffer buffer;
4218  // Serialize the message type, port number, state ID, and signal
4219  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::result_timeOpFailed), buffer);
4220  // Send the message and handle overflow
4221  this->sequencer_sendSignalFinish(buffer);
4222  }
4223 
4226  {
4227  ComponentIpcSerializableBuffer buffer;
4228  // Serialize the message type, port number, state ID, and signal
4229  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::stmtResponse_beginSleep), buffer);
4230  // Send the message and handle overflow
4231  this->sequencer_sendSignalFinish(buffer);
4232  }
4233 
4236  {
4237  ComponentIpcSerializableBuffer buffer;
4238  // Serialize the message type, port number, state ID, and signal
4239  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::stmtResponse_success), buffer);
4240  // Send the message and handle overflow
4241  this->sequencer_sendSignalFinish(buffer);
4242  }
4243 
4246  {
4247  ComponentIpcSerializableBuffer buffer;
4248  // Serialize the message type, port number, state ID, and signal
4249  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::stmtResponse_failure), buffer);
4250  // Send the message and handle overflow
4251  this->sequencer_sendSignalFinish(buffer);
4252  }
4253 
4256  {
4257  ComponentIpcSerializableBuffer buffer;
4258  // Serialize the message type, port number, state ID, and signal
4259  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::stmtResponse_unexpected), buffer);
4260  // Send the message and handle overflow
4261  this->sequencer_sendSignalFinish(buffer);
4262  }
4263 
4266  {
4267  ComponentIpcSerializableBuffer buffer;
4268  // Serialize the message type, port number, state ID, and signal
4269  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::stmtResponse_keepWaiting), buffer);
4270  // Send the message and handle overflow
4271  this->sequencer_sendSignalFinish(buffer);
4272  }
4273 
4276  {
4277  ComponentIpcSerializableBuffer buffer;
4278  // Serialize the message type, port number, state ID, and signal
4279  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::result_checkStatementTimeout_statementTimeout), buffer);
4280  // Send the message and handle overflow
4281  this->sequencer_sendSignalFinish(buffer);
4282  }
4283 
4286  {
4287  ComponentIpcSerializableBuffer buffer;
4288  // Serialize the message type, port number, state ID, and signal
4289  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::result_checkStatementTimeout_noTimeout), buffer);
4290  // Send the message and handle overflow
4291  this->sequencer_sendSignalFinish(buffer);
4292  }
4293 
4296  {
4297  ComponentIpcSerializableBuffer buffer;
4298  // Serialize the message type, port number, state ID, and signal
4299  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::cmd_CONTINUE), buffer);
4300  // Send the message and handle overflow
4301  this->sequencer_sendSignalFinish(buffer);
4302  }
4303 
4306  {
4307  ComponentIpcSerializableBuffer buffer;
4308  // Serialize the message type, port number, state ID, and signal
4309  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::cmd_BREAK), buffer);
4310  // Send the message and handle overflow
4311  this->sequencer_sendSignalFinish(buffer);
4312  }
4313 
4316  {
4317  ComponentIpcSerializableBuffer buffer;
4318  // Serialize the message type, port number, state ID, and signal
4319  this->sendSignalStart(SmId::sequencer, static_cast<FwEnumStoreType>(Svc_FpySequencer_SequencerStateMachine::Signal::cmd_STEP), buffer);
4320  // Send the message and handle overflow
4321  this->sequencer_sendSignalFinish(buffer);
4322  }
4323 
4324  // ----------------------------------------------------------------------
4325  // Command response
4326  // ----------------------------------------------------------------------
4327 
4330  FwOpcodeType opCode,
4331  U32 cmdSeq,
4332  Fw::CmdResponse response
4333  )
4334  {
4336  this->cmdResponseOut_out(0, opCode, cmdSeq, response);
4337  }
4338 
4339  // ----------------------------------------------------------------------
4340  // Command handler base-class functions
4341  //
4342  // Call these functions directly to bypass the command input port
4343  // ----------------------------------------------------------------------
4344 
4347  FwOpcodeType opCode,
4348  U32 cmdSeq,
4349  Fw::CmdArgBuffer& args
4350  )
4351  {
4352  // Call pre-message hook
4353  this->RUN_preMsgHook(opCode,cmdSeq);
4354 
4355  // Defer deserializing arguments to the message dispatcher
4356  // to avoid deserializing and reserializing just for IPC
4357  ComponentIpcSerializableBuffer msg;
4359 
4360  // Serialize for IPC
4361  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_RUN));
4362  FW_ASSERT (
4363  _status == Fw::FW_SERIALIZE_OK,
4364  static_cast<FwAssertArgType>(_status)
4365  );
4366 
4367  // Fake port number to make message dequeue work
4368  FwIndexType port = 0;
4369 
4370  _status = msg.serializeFrom(port);
4371  FW_ASSERT (
4372  _status == Fw::FW_SERIALIZE_OK,
4373  static_cast<FwAssertArgType>(_status)
4374  );
4375 
4376  _status = msg.serializeFrom(opCode);
4377  FW_ASSERT (
4378  _status == Fw::FW_SERIALIZE_OK,
4379  static_cast<FwAssertArgType>(_status)
4380  );
4381 
4382  _status = msg.serializeFrom(cmdSeq);
4383  FW_ASSERT (
4384  _status == Fw::FW_SERIALIZE_OK,
4385  static_cast<FwAssertArgType>(_status)
4386  );
4387 
4388  _status = msg.serializeFrom(args);
4389  FW_ASSERT (
4390  _status == Fw::FW_SERIALIZE_OK,
4391  static_cast<FwAssertArgType>(_status)
4392  );
4393 
4394  // Send message
4396  Os::Queue::Status qStatus = this->m_queue.send(msg, 7, _block);
4397 
4398  FW_ASSERT(
4399  qStatus == Os::Queue::OP_OK,
4400  static_cast<FwAssertArgType>(qStatus)
4401  );
4402  }
4403 
4406  FwOpcodeType opCode,
4407  U32 cmdSeq,
4408  Fw::CmdArgBuffer& args
4409  )
4410  {
4411  // Call pre-message hook
4412  this->RUN_ARGS_preMsgHook(opCode,cmdSeq);
4413 
4414  // Defer deserializing arguments to the message dispatcher
4415  // to avoid deserializing and reserializing just for IPC
4416  ComponentIpcSerializableBuffer msg;
4418 
4419  // Serialize for IPC
4420  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_RUN_ARGS));
4421  FW_ASSERT (
4422  _status == Fw::FW_SERIALIZE_OK,
4423  static_cast<FwAssertArgType>(_status)
4424  );
4425 
4426  // Fake port number to make message dequeue work
4427  FwIndexType port = 0;
4428 
4429  _status = msg.serializeFrom(port);
4430  FW_ASSERT (
4431  _status == Fw::FW_SERIALIZE_OK,
4432  static_cast<FwAssertArgType>(_status)
4433  );
4434 
4435  _status = msg.serializeFrom(opCode);
4436  FW_ASSERT (
4437  _status == Fw::FW_SERIALIZE_OK,
4438  static_cast<FwAssertArgType>(_status)
4439  );
4440 
4441  _status = msg.serializeFrom(cmdSeq);
4442  FW_ASSERT (
4443  _status == Fw::FW_SERIALIZE_OK,
4444  static_cast<FwAssertArgType>(_status)
4445  );
4446 
4447  _status = msg.serializeFrom(args);
4448  FW_ASSERT (
4449  _status == Fw::FW_SERIALIZE_OK,
4450  static_cast<FwAssertArgType>(_status)
4451  );
4452 
4453  // Send message
4455  Os::Queue::Status qStatus = this->m_queue.send(msg, 7, _block);
4456 
4457  FW_ASSERT(
4458  qStatus == Os::Queue::OP_OK,
4459  static_cast<FwAssertArgType>(qStatus)
4460  );
4461  }
4462 
4465  FwOpcodeType opCode,
4466  U32 cmdSeq,
4467  Fw::CmdArgBuffer& args
4468  )
4469  {
4470  // Call pre-message hook
4471  this->VALIDATE_preMsgHook(opCode,cmdSeq);
4472 
4473  // Defer deserializing arguments to the message dispatcher
4474  // to avoid deserializing and reserializing just for IPC
4475  ComponentIpcSerializableBuffer msg;
4477 
4478  // Serialize for IPC
4479  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_VALIDATE));
4480  FW_ASSERT (
4481  _status == Fw::FW_SERIALIZE_OK,
4482  static_cast<FwAssertArgType>(_status)
4483  );
4484 
4485  // Fake port number to make message dequeue work
4486  FwIndexType port = 0;
4487 
4488  _status = msg.serializeFrom(port);
4489  FW_ASSERT (
4490  _status == Fw::FW_SERIALIZE_OK,
4491  static_cast<FwAssertArgType>(_status)
4492  );
4493 
4494  _status = msg.serializeFrom(opCode);
4495  FW_ASSERT (
4496  _status == Fw::FW_SERIALIZE_OK,
4497  static_cast<FwAssertArgType>(_status)
4498  );
4499 
4500  _status = msg.serializeFrom(cmdSeq);
4501  FW_ASSERT (
4502  _status == Fw::FW_SERIALIZE_OK,
4503  static_cast<FwAssertArgType>(_status)
4504  );
4505 
4506  _status = msg.serializeFrom(args);
4507  FW_ASSERT (
4508  _status == Fw::FW_SERIALIZE_OK,
4509  static_cast<FwAssertArgType>(_status)
4510  );
4511 
4512  // Send message
4514  Os::Queue::Status qStatus = this->m_queue.send(msg, 7, _block);
4515 
4516  FW_ASSERT(
4517  qStatus == Os::Queue::OP_OK,
4518  static_cast<FwAssertArgType>(qStatus)
4519  );
4520  }
4521 
4524  FwOpcodeType opCode,
4525  U32 cmdSeq,
4526  Fw::CmdArgBuffer& args
4527  )
4528  {
4529  // Call pre-message hook
4530  this->VALIDATE_ARGS_preMsgHook(opCode,cmdSeq);
4531 
4532  // Defer deserializing arguments to the message dispatcher
4533  // to avoid deserializing and reserializing just for IPC
4534  ComponentIpcSerializableBuffer msg;
4536 
4537  // Serialize for IPC
4538  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_VALIDATE_ARGS));
4539  FW_ASSERT (
4540  _status == Fw::FW_SERIALIZE_OK,
4541  static_cast<FwAssertArgType>(_status)
4542  );
4543 
4544  // Fake port number to make message dequeue work
4545  FwIndexType port = 0;
4546 
4547  _status = msg.serializeFrom(port);
4548  FW_ASSERT (
4549  _status == Fw::FW_SERIALIZE_OK,
4550  static_cast<FwAssertArgType>(_status)
4551  );
4552 
4553  _status = msg.serializeFrom(opCode);
4554  FW_ASSERT (
4555  _status == Fw::FW_SERIALIZE_OK,
4556  static_cast<FwAssertArgType>(_status)
4557  );
4558 
4559  _status = msg.serializeFrom(cmdSeq);
4560  FW_ASSERT (
4561  _status == Fw::FW_SERIALIZE_OK,
4562  static_cast<FwAssertArgType>(_status)
4563  );
4564 
4565  _status = msg.serializeFrom(args);
4566  FW_ASSERT (
4567  _status == Fw::FW_SERIALIZE_OK,
4568  static_cast<FwAssertArgType>(_status)
4569  );
4570 
4571  // Send message
4573  Os::Queue::Status qStatus = this->m_queue.send(msg, 7, _block);
4574 
4575  FW_ASSERT(
4576  qStatus == Os::Queue::OP_OK,
4577  static_cast<FwAssertArgType>(qStatus)
4578  );
4579  }
4580 
4583  FwOpcodeType opCode,
4584  U32 cmdSeq,
4585  Fw::CmdArgBuffer& args
4586  )
4587  {
4588  // Call pre-message hook
4589  this->RUN_VALIDATED_preMsgHook(opCode,cmdSeq);
4590 
4591  // Defer deserializing arguments to the message dispatcher
4592  // to avoid deserializing and reserializing just for IPC
4593  ComponentIpcSerializableBuffer msg;
4595 
4596  // Serialize for IPC
4597  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_RUN_VALIDATED));
4598  FW_ASSERT (
4599  _status == Fw::FW_SERIALIZE_OK,
4600  static_cast<FwAssertArgType>(_status)
4601  );
4602 
4603  // Fake port number to make message dequeue work
4604  FwIndexType port = 0;
4605 
4606  _status = msg.serializeFrom(port);
4607  FW_ASSERT (
4608  _status == Fw::FW_SERIALIZE_OK,
4609  static_cast<FwAssertArgType>(_status)
4610  );
4611 
4612  _status = msg.serializeFrom(opCode);
4613  FW_ASSERT (
4614  _status == Fw::FW_SERIALIZE_OK,
4615  static_cast<FwAssertArgType>(_status)
4616  );
4617 
4618  _status = msg.serializeFrom(cmdSeq);
4619  FW_ASSERT (
4620  _status == Fw::FW_SERIALIZE_OK,
4621  static_cast<FwAssertArgType>(_status)
4622  );
4623 
4624  _status = msg.serializeFrom(args);
4625  FW_ASSERT (
4626  _status == Fw::FW_SERIALIZE_OK,
4627  static_cast<FwAssertArgType>(_status)
4628  );
4629 
4630  // Send message
4632  Os::Queue::Status qStatus = this->m_queue.send(msg, 7, _block);
4633 
4634  FW_ASSERT(
4635  qStatus == Os::Queue::OP_OK,
4636  static_cast<FwAssertArgType>(qStatus)
4637  );
4638  }
4639 
4642  FwOpcodeType opCode,
4643  U32 cmdSeq,
4644  Fw::CmdArgBuffer& args
4645  )
4646  {
4647  // Call pre-message hook
4648  this->CANCEL_preMsgHook(opCode,cmdSeq);
4649 
4650  // Defer deserializing arguments to the message dispatcher
4651  // to avoid deserializing and reserializing just for IPC
4652  ComponentIpcSerializableBuffer msg;
4654 
4655  // Serialize for IPC
4656  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_CANCEL));
4657  FW_ASSERT (
4658  _status == Fw::FW_SERIALIZE_OK,
4659  static_cast<FwAssertArgType>(_status)
4660  );
4661 
4662  // Fake port number to make message dequeue work
4663  FwIndexType port = 0;
4664 
4665  _status = msg.serializeFrom(port);
4666  FW_ASSERT (
4667  _status == Fw::FW_SERIALIZE_OK,
4668  static_cast<FwAssertArgType>(_status)
4669  );
4670 
4671  _status = msg.serializeFrom(opCode);
4672  FW_ASSERT (
4673  _status == Fw::FW_SERIALIZE_OK,
4674  static_cast<FwAssertArgType>(_status)
4675  );
4676 
4677  _status = msg.serializeFrom(cmdSeq);
4678  FW_ASSERT (
4679  _status == Fw::FW_SERIALIZE_OK,
4680  static_cast<FwAssertArgType>(_status)
4681  );
4682 
4683  _status = msg.serializeFrom(args);
4684  FW_ASSERT (
4685  _status == Fw::FW_SERIALIZE_OK,
4686  static_cast<FwAssertArgType>(_status)
4687  );
4688 
4689  // Send message
4691  Os::Queue::Status qStatus = this->m_queue.send(msg, 8, _block);
4692 
4693  FW_ASSERT(
4694  qStatus == Os::Queue::OP_OK,
4695  static_cast<FwAssertArgType>(qStatus)
4696  );
4697  }
4698 
4701  FwOpcodeType opCode,
4702  U32 cmdSeq,
4703  Fw::CmdArgBuffer& args
4704  )
4705  {
4706  // Call pre-message hook
4707  this->SET_BREAKPOINT_preMsgHook(opCode,cmdSeq);
4708 
4709  // Defer deserializing arguments to the message dispatcher
4710  // to avoid deserializing and reserializing just for IPC
4711  ComponentIpcSerializableBuffer msg;
4713 
4714  // Serialize for IPC
4715  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_SET_BREAKPOINT));
4716  FW_ASSERT (
4717  _status == Fw::FW_SERIALIZE_OK,
4718  static_cast<FwAssertArgType>(_status)
4719  );
4720 
4721  // Fake port number to make message dequeue work
4722  FwIndexType port = 0;
4723 
4724  _status = msg.serializeFrom(port);
4725  FW_ASSERT (
4726  _status == Fw::FW_SERIALIZE_OK,
4727  static_cast<FwAssertArgType>(_status)
4728  );
4729 
4730  _status = msg.serializeFrom(opCode);
4731  FW_ASSERT (
4732  _status == Fw::FW_SERIALIZE_OK,
4733  static_cast<FwAssertArgType>(_status)
4734  );
4735 
4736  _status = msg.serializeFrom(cmdSeq);
4737  FW_ASSERT (
4738  _status == Fw::FW_SERIALIZE_OK,
4739  static_cast<FwAssertArgType>(_status)
4740  );
4741 
4742  _status = msg.serializeFrom(args);
4743  FW_ASSERT (
4744  _status == Fw::FW_SERIALIZE_OK,
4745  static_cast<FwAssertArgType>(_status)
4746  );
4747 
4748  // Send message
4750  Os::Queue::Status qStatus = this->m_queue.send(msg, 7, _block);
4751 
4752  FW_ASSERT(
4753  qStatus == Os::Queue::OP_OK,
4754  static_cast<FwAssertArgType>(qStatus)
4755  );
4756  }
4757 
4760  FwOpcodeType opCode,
4761  U32 cmdSeq,
4762  Fw::CmdArgBuffer& args
4763  )
4764  {
4765  // Call pre-message hook
4766  this->BREAK_preMsgHook(opCode,cmdSeq);
4767 
4768  // Defer deserializing arguments to the message dispatcher
4769  // to avoid deserializing and reserializing just for IPC
4770  ComponentIpcSerializableBuffer msg;
4772 
4773  // Serialize for IPC
4774  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_BREAK));
4775  FW_ASSERT (
4776  _status == Fw::FW_SERIALIZE_OK,
4777  static_cast<FwAssertArgType>(_status)
4778  );
4779 
4780  // Fake port number to make message dequeue work
4781  FwIndexType port = 0;
4782 
4783  _status = msg.serializeFrom(port);
4784  FW_ASSERT (
4785  _status == Fw::FW_SERIALIZE_OK,
4786  static_cast<FwAssertArgType>(_status)
4787  );
4788 
4789  _status = msg.serializeFrom(opCode);
4790  FW_ASSERT (
4791  _status == Fw::FW_SERIALIZE_OK,
4792  static_cast<FwAssertArgType>(_status)
4793  );
4794 
4795  _status = msg.serializeFrom(cmdSeq);
4796  FW_ASSERT (
4797  _status == Fw::FW_SERIALIZE_OK,
4798  static_cast<FwAssertArgType>(_status)
4799  );
4800 
4801  _status = msg.serializeFrom(args);
4802  FW_ASSERT (
4803  _status == Fw::FW_SERIALIZE_OK,
4804  static_cast<FwAssertArgType>(_status)
4805  );
4806 
4807  // Send message
4809  Os::Queue::Status qStatus = this->m_queue.send(msg, 7, _block);
4810 
4811  FW_ASSERT(
4812  qStatus == Os::Queue::OP_OK,
4813  static_cast<FwAssertArgType>(qStatus)
4814  );
4815  }
4816 
4819  FwOpcodeType opCode,
4820  U32 cmdSeq,
4821  Fw::CmdArgBuffer& args
4822  )
4823  {
4824  // Call pre-message hook
4825  this->CONTINUE_preMsgHook(opCode,cmdSeq);
4826 
4827  // Defer deserializing arguments to the message dispatcher
4828  // to avoid deserializing and reserializing just for IPC
4829  ComponentIpcSerializableBuffer msg;
4831 
4832  // Serialize for IPC
4833  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_CONTINUE));
4834  FW_ASSERT (
4835  _status == Fw::FW_SERIALIZE_OK,
4836  static_cast<FwAssertArgType>(_status)
4837  );
4838 
4839  // Fake port number to make message dequeue work
4840  FwIndexType port = 0;
4841 
4842  _status = msg.serializeFrom(port);
4843  FW_ASSERT (
4844  _status == Fw::FW_SERIALIZE_OK,
4845  static_cast<FwAssertArgType>(_status)
4846  );
4847 
4848  _status = msg.serializeFrom(opCode);
4849  FW_ASSERT (
4850  _status == Fw::FW_SERIALIZE_OK,
4851  static_cast<FwAssertArgType>(_status)
4852  );
4853 
4854  _status = msg.serializeFrom(cmdSeq);
4855  FW_ASSERT (
4856  _status == Fw::FW_SERIALIZE_OK,
4857  static_cast<FwAssertArgType>(_status)
4858  );
4859 
4860  _status = msg.serializeFrom(args);
4861  FW_ASSERT (
4862  _status == Fw::FW_SERIALIZE_OK,
4863  static_cast<FwAssertArgType>(_status)
4864  );
4865 
4866  // Send message
4868  Os::Queue::Status qStatus = this->m_queue.send(msg, 7, _block);
4869 
4870  FW_ASSERT(
4871  qStatus == Os::Queue::OP_OK,
4872  static_cast<FwAssertArgType>(qStatus)
4873  );
4874  }
4875 
4878  FwOpcodeType opCode,
4879  U32 cmdSeq,
4880  Fw::CmdArgBuffer& args
4881  )
4882  {
4883  // Call pre-message hook
4884  this->CLEAR_BREAKPOINT_preMsgHook(opCode,cmdSeq);
4885 
4886  // Defer deserializing arguments to the message dispatcher
4887  // to avoid deserializing and reserializing just for IPC
4888  ComponentIpcSerializableBuffer msg;
4890 
4891  // Serialize for IPC
4892  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_CLEAR_BREAKPOINT));
4893  FW_ASSERT (
4894  _status == Fw::FW_SERIALIZE_OK,
4895  static_cast<FwAssertArgType>(_status)
4896  );
4897 
4898  // Fake port number to make message dequeue work
4899  FwIndexType port = 0;
4900 
4901  _status = msg.serializeFrom(port);
4902  FW_ASSERT (
4903  _status == Fw::FW_SERIALIZE_OK,
4904  static_cast<FwAssertArgType>(_status)
4905  );
4906 
4907  _status = msg.serializeFrom(opCode);
4908  FW_ASSERT (
4909  _status == Fw::FW_SERIALIZE_OK,
4910  static_cast<FwAssertArgType>(_status)
4911  );
4912 
4913  _status = msg.serializeFrom(cmdSeq);
4914  FW_ASSERT (
4915  _status == Fw::FW_SERIALIZE_OK,
4916  static_cast<FwAssertArgType>(_status)
4917  );
4918 
4919  _status = msg.serializeFrom(args);
4920  FW_ASSERT (
4921  _status == Fw::FW_SERIALIZE_OK,
4922  static_cast<FwAssertArgType>(_status)
4923  );
4924 
4925  // Send message
4927  Os::Queue::Status qStatus = this->m_queue.send(msg, 7, _block);
4928 
4929  FW_ASSERT(
4930  qStatus == Os::Queue::OP_OK,
4931  static_cast<FwAssertArgType>(qStatus)
4932  );
4933  }
4934 
4937  FwOpcodeType opCode,
4938  U32 cmdSeq,
4939  Fw::CmdArgBuffer& args
4940  )
4941  {
4942  // Call pre-message hook
4943  this->STEP_preMsgHook(opCode,cmdSeq);
4944 
4945  // Defer deserializing arguments to the message dispatcher
4946  // to avoid deserializing and reserializing just for IPC
4947  ComponentIpcSerializableBuffer msg;
4949 
4950  // Serialize for IPC
4951  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_STEP));
4952  FW_ASSERT (
4953  _status == Fw::FW_SERIALIZE_OK,
4954  static_cast<FwAssertArgType>(_status)
4955  );
4956 
4957  // Fake port number to make message dequeue work
4958  FwIndexType port = 0;
4959 
4960  _status = msg.serializeFrom(port);
4961  FW_ASSERT (
4962  _status == Fw::FW_SERIALIZE_OK,
4963  static_cast<FwAssertArgType>(_status)
4964  );
4965 
4966  _status = msg.serializeFrom(opCode);
4967  FW_ASSERT (
4968  _status == Fw::FW_SERIALIZE_OK,
4969  static_cast<FwAssertArgType>(_status)
4970  );
4971 
4972  _status = msg.serializeFrom(cmdSeq);
4973  FW_ASSERT (
4974  _status == Fw::FW_SERIALIZE_OK,
4975  static_cast<FwAssertArgType>(_status)
4976  );
4977 
4978  _status = msg.serializeFrom(args);
4979  FW_ASSERT (
4980  _status == Fw::FW_SERIALIZE_OK,
4981  static_cast<FwAssertArgType>(_status)
4982  );
4983 
4984  // Send message
4986  Os::Queue::Status qStatus = this->m_queue.send(msg, 7, _block);
4987 
4988  FW_ASSERT(
4989  qStatus == Os::Queue::OP_OK,
4990  static_cast<FwAssertArgType>(qStatus)
4991  );
4992  }
4993 
4996  FwOpcodeType opCode,
4997  U32 cmdSeq,
4998  Fw::CmdArgBuffer& args
4999  )
5000  {
5001  // Call pre-message hook
5002  this->DUMP_STACK_TO_FILE_preMsgHook(opCode,cmdSeq);
5003 
5004  // Defer deserializing arguments to the message dispatcher
5005  // to avoid deserializing and reserializing just for IPC
5006  ComponentIpcSerializableBuffer msg;
5008 
5009  // Serialize for IPC
5010  _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_DUMP_STACK_TO_FILE));
5011  FW_ASSERT (
5012  _status == Fw::FW_SERIALIZE_OK,
5013  static_cast<FwAssertArgType>(_status)
5014  );
5015 
5016  // Fake port number to make message dequeue work
5017  FwIndexType port = 0;
5018 
5019  _status = msg.serializeFrom(port);
5020  FW_ASSERT (
5021  _status == Fw::FW_SERIALIZE_OK,
5022  static_cast<FwAssertArgType>(_status)
5023  );
5024 
5025  _status = msg.serializeFrom(opCode);
5026  FW_ASSERT (
5027  _status == Fw::FW_SERIALIZE_OK,
5028  static_cast<FwAssertArgType>(_status)
5029  );
5030 
5031  _status = msg.serializeFrom(cmdSeq);
5032  FW_ASSERT (
5033  _status == Fw::FW_SERIALIZE_OK,
5034  static_cast<FwAssertArgType>(_status)
5035  );
5036 
5037  _status = msg.serializeFrom(args);
5038  FW_ASSERT (
5039  _status == Fw::FW_SERIALIZE_OK,
5040  static_cast<FwAssertArgType>(_status)
5041  );
5042 
5043  // Send message
5045  Os::Queue::Status qStatus = this->m_queue.send(msg, 7, _block);
5046 
5047  FW_ASSERT(
5048  qStatus == Os::Queue::OP_OK,
5049  static_cast<FwAssertArgType>(qStatus)
5050  );
5051  }
5052 
5053  // ----------------------------------------------------------------------
5054  // Pre-message hooks for async commands
5055  //
5056  // Each of these functions is invoked just before processing the
5057  // corresponding command. By default they do nothing. You can
5058  // override them to provide specific pre-command behavior.
5059  // ----------------------------------------------------------------------
5060 
5063  FwOpcodeType opCode,
5064  U32 cmdSeq
5065  )
5066  {
5067  // Defaults to no-op; can be overridden
5068  (void) opCode;
5069  (void) cmdSeq;
5070  }
5071 
5074  FwOpcodeType opCode,
5075  U32 cmdSeq
5076  )
5077  {
5078  // Defaults to no-op; can be overridden
5079  (void) opCode;
5080  (void) cmdSeq;
5081  }
5082 
5085  FwOpcodeType opCode,
5086  U32 cmdSeq
5087  )
5088  {
5089  // Defaults to no-op; can be overridden
5090  (void) opCode;
5091  (void) cmdSeq;
5092  }
5093 
5096  FwOpcodeType opCode,
5097  U32 cmdSeq
5098  )
5099  {
5100  // Defaults to no-op; can be overridden
5101  (void) opCode;
5102  (void) cmdSeq;
5103  }
5104 
5107  FwOpcodeType opCode,
5108  U32 cmdSeq
5109  )
5110  {
5111  // Defaults to no-op; can be overridden
5112  (void) opCode;
5113  (void) cmdSeq;
5114  }
5115 
5118  FwOpcodeType opCode,
5119  U32 cmdSeq
5120  )
5121  {
5122  // Defaults to no-op; can be overridden
5123  (void) opCode;
5124  (void) cmdSeq;
5125  }
5126 
5129  FwOpcodeType opCode,
5130  U32 cmdSeq
5131  )
5132  {
5133  // Defaults to no-op; can be overridden
5134  (void) opCode;
5135  (void) cmdSeq;
5136  }
5137 
5140  FwOpcodeType opCode,
5141  U32 cmdSeq
5142  )
5143  {
5144  // Defaults to no-op; can be overridden
5145  (void) opCode;
5146  (void) cmdSeq;
5147  }
5148 
5151  FwOpcodeType opCode,
5152  U32 cmdSeq
5153  )
5154  {
5155  // Defaults to no-op; can be overridden
5156  (void) opCode;
5157  (void) cmdSeq;
5158  }
5159 
5162  FwOpcodeType opCode,
5163  U32 cmdSeq
5164  )
5165  {
5166  // Defaults to no-op; can be overridden
5167  (void) opCode;
5168  (void) cmdSeq;
5169  }
5170 
5173  FwOpcodeType opCode,
5174  U32 cmdSeq
5175  )
5176  {
5177  // Defaults to no-op; can be overridden
5178  (void) opCode;
5179  (void) cmdSeq;
5180  }
5181 
5184  FwOpcodeType opCode,
5185  U32 cmdSeq
5186  )
5187  {
5188  // Defaults to no-op; can be overridden
5189  (void) opCode;
5190  (void) cmdSeq;
5191  }
5192 
5193  // ----------------------------------------------------------------------
5194  // Event logging functions
5195  // ----------------------------------------------------------------------
5196 
5199  {
5200  // Get the time
5201  Fw::Time _logTime;
5202  if (this->isConnected_timeCaller_OutputPort(0)) {
5203  this->timeCaller_out(0, _logTime);
5204  }
5205 
5206  const FwEventIdType _id = this->getIdBase() + EVENTID_INVALIDCOMMAND;
5207 
5208  // Emit the event on the log port
5209  if (this->isConnected_logOut_OutputPort(0)) {
5210  Fw::LogBuffer _logBuff;
5212 
5213 #if FW_AMPCS_COMPATIBLE
5214  // Serialize the number of arguments
5215  _status = _logBuff.serializeFrom(static_cast<U8>(1));
5216  FW_ASSERT(
5217  _status == Fw::FW_SERIALIZE_OK,
5218  static_cast<FwAssertArgType>(_status)
5219  );
5220 #endif
5221 
5222 #if FW_AMPCS_COMPATIBLE
5223  // Serialize the argument size
5224  _status = _logBuff.serializeFrom(
5225  static_cast<U8>(sizeof(I32))
5226  );
5227  FW_ASSERT(
5228  _status == Fw::FW_SERIALIZE_OK,
5229  static_cast<FwAssertArgType>(_status)
5230  );
5231 #endif
5232  _status = _logBuff.serializeFrom(state);
5233  FW_ASSERT(
5234  _status == Fw::FW_SERIALIZE_OK,
5235  static_cast<FwAssertArgType>(_status)
5236  );
5237 
5238  this->logOut_out(
5239  0,
5240  _id,
5241  _logTime,
5243  _logBuff
5244  );
5245  }
5246 
5247  // Emit the event on the text log port
5248 #if FW_ENABLE_TEXT_LOGGING
5249  if (this->isConnected_logTextOut_OutputPort(0)) {
5250 #if FW_OBJECT_NAMES == 1
5251  const char* _formatString =
5252  "(%s) %s: Cannot execute command in state %" PRIi32 "";
5253 #else
5254  const char* _formatString =
5255  "%s: Cannot execute command in state %" PRIi32 "";
5256 #endif
5257 
5258  Fw::TextLogString _logString;
5259  (void) _logString.format(
5260  _formatString,
5261 #if FW_OBJECT_NAMES == 1
5262  this->m_objName.toChar(),
5263 #endif
5264  "InvalidCommand ",
5265  state
5266  );
5267 
5268  this->logTextOut_out(
5269  0,
5270  _id,
5271  _logTime,
5273  _logString
5274  );
5275  }
5276 #endif
5277  }
5278 
5281  {
5282  // Get the time
5283  Fw::Time _logTime;
5284  if (this->isConnected_timeCaller_OutputPort(0)) {
5285  this->timeCaller_out(0, _logTime);
5286  }
5287 
5288  const FwEventIdType _id = this->getIdBase() + EVENTID_INVALIDSEQRUNCALL;
5289 
5290  // Emit the event on the log port
5291  if (this->isConnected_logOut_OutputPort(0)) {
5292  Fw::LogBuffer _logBuff;
5294 
5295 #if FW_AMPCS_COMPATIBLE
5296  // Serialize the number of arguments
5297  _status = _logBuff.serializeFrom(static_cast<U8>(1));
5298  FW_ASSERT(
5299  _status == Fw::FW_SERIALIZE_OK,
5300  static_cast<FwAssertArgType>(_status)
5301  );
5302 #endif
5303 
5304 #if FW_AMPCS_COMPATIBLE
5305  // Serialize the argument size
5306  _status = _logBuff.serializeFrom(
5307  static_cast<U8>(sizeof(I32))
5308  );
5309  FW_ASSERT(
5310  _status == Fw::FW_SERIALIZE_OK,
5311  static_cast<FwAssertArgType>(_status)
5312  );
5313 #endif
5314  _status = _logBuff.serializeFrom(state);
5315  FW_ASSERT(
5316  _status == Fw::FW_SERIALIZE_OK,
5317  static_cast<FwAssertArgType>(_status)
5318  );
5319 
5320  this->logOut_out(
5321  0,
5322  _id,
5323  _logTime,
5325  _logBuff
5326  );
5327  }
5328 
5329  // Emit the event on the text log port
5330 #if FW_ENABLE_TEXT_LOGGING
5331  if (this->isConnected_logTextOut_OutputPort(0)) {
5332 #if FW_OBJECT_NAMES == 1
5333  const char* _formatString =
5334  "(%s) %s: Cannot run sequence from a port in state %" PRIi32 "";
5335 #else
5336  const char* _formatString =
5337  "%s: Cannot run sequence from a port in state %" PRIi32 "";
5338 #endif
5339 
5340  Fw::TextLogString _logString;
5341  (void) _logString.format(
5342  _formatString,
5343 #if FW_OBJECT_NAMES == 1
5344  this->m_objName.toChar(),
5345 #endif
5346  "InvalidSeqRunCall ",
5347  state
5348  );
5349 
5350  this->logTextOut_out(
5351  0,
5352  _id,
5353  _logTime,
5355  _logString
5356  );
5357  }
5358 #endif
5359  }
5360 
5363  {
5364  // Get the time
5365  Fw::Time _logTime;
5366  if (this->isConnected_timeCaller_OutputPort(0)) {
5367  this->timeCaller_out(0, _logTime);
5368  }
5369 
5371 
5372  // Emit the event on the log port
5373  if (this->isConnected_logOut_OutputPort(0)) {
5374  Fw::LogBuffer _logBuff;
5376 
5377 #if FW_AMPCS_COMPATIBLE
5378  // Serialize the number of arguments
5379  _status = _logBuff.serializeFrom(static_cast<U8>(1));
5380  FW_ASSERT(
5381  _status == Fw::FW_SERIALIZE_OK,
5382  static_cast<FwAssertArgType>(_status)
5383  );
5384 #endif
5385 
5386 #if FW_AMPCS_COMPATIBLE
5387  // Serialize the argument size
5388  _status = _logBuff.serializeFrom(
5389  static_cast<U8>(sizeof(I32))
5390  );
5391  FW_ASSERT(
5392  _status == Fw::FW_SERIALIZE_OK,
5393  static_cast<FwAssertArgType>(_status)
5394  );
5395 #endif
5396  _status = _logBuff.serializeFrom(state);
5397  FW_ASSERT(
5398  _status == Fw::FW_SERIALIZE_OK,
5399  static_cast<FwAssertArgType>(_status)
5400  );
5401 
5402  this->logOut_out(
5403  0,
5404  _id,
5405  _logTime,
5407  _logBuff
5408  );
5409  }
5410 
5411  // Emit the event on the text log port
5412 #if FW_ENABLE_TEXT_LOGGING
5413  if (this->isConnected_logTextOut_OutputPort(0)) {
5414 #if FW_OBJECT_NAMES == 1
5415  const char* _formatString =
5416  "(%s) %s: Cannot cancel sequence from a port in state %" PRIi32 "";
5417 #else
5418  const char* _formatString =
5419  "%s: Cannot cancel sequence from a port in state %" PRIi32 "";
5420 #endif
5421 
5422  Fw::TextLogString _logString;
5423  (void) _logString.format(
5424  _formatString,
5425 #if FW_OBJECT_NAMES == 1
5426  this->m_objName.toChar(),
5427 #endif
5428  "InvalidSeqCancelCall ",
5429  state
5430  );
5431 
5432  this->logTextOut_out(
5433  0,
5434  _id,
5435  _logTime,
5437  _logString
5438  );
5439  }
5440 #endif
5441  }
5442 
5445  const Fw::StringBase& filePath,
5446  I32 errorCode
5447  ) const
5448  {
5449  // Get the time
5450  Fw::Time _logTime;
5451  if (this->isConnected_timeCaller_OutputPort(0)) {
5452  this->timeCaller_out(0, _logTime);
5453  }
5454 
5455  const FwEventIdType _id = this->getIdBase() + EVENTID_FILEOPENERROR;
5456 
5457  // Emit the event on the log port
5458  if (this->isConnected_logOut_OutputPort(0)) {
5459  Fw::LogBuffer _logBuff;
5461 
5462 #if FW_AMPCS_COMPATIBLE
5463  // Serialize the number of arguments
5464  _status = _logBuff.serializeFrom(static_cast<U8>(2));
5465  FW_ASSERT(
5466  _status == Fw::FW_SERIALIZE_OK,
5467  static_cast<FwAssertArgType>(_status)
5468  );
5469 #endif
5470 
5471  _status = filePath.serializeTo(
5472  _logBuff,
5473  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
5474  );
5475  FW_ASSERT(
5476  _status == Fw::FW_SERIALIZE_OK,
5477  static_cast<FwAssertArgType>(_status)
5478  );
5479 
5480 #if FW_AMPCS_COMPATIBLE
5481  // Serialize the argument size
5482  _status = _logBuff.serializeFrom(
5483  static_cast<U8>(sizeof(I32))
5484  );
5485  FW_ASSERT(
5486  _status == Fw::FW_SERIALIZE_OK,
5487  static_cast<FwAssertArgType>(_status)
5488  );
5489 #endif
5490  _status = _logBuff.serializeFrom(errorCode);
5491  FW_ASSERT(
5492  _status == Fw::FW_SERIALIZE_OK,
5493  static_cast<FwAssertArgType>(_status)
5494  );
5495 
5496  this->logOut_out(
5497  0,
5498  _id,
5499  _logTime,
5501  _logBuff
5502  );
5503  }
5504 
5505  // Emit the event on the text log port
5506 #if FW_ENABLE_TEXT_LOGGING
5507  if (this->isConnected_logTextOut_OutputPort(0)) {
5508 #if FW_OBJECT_NAMES == 1
5509  const char* _formatString =
5510  "(%s) %s: File open error encountered while opening %s: %" PRIi32 "";
5511 #else
5512  const char* _formatString =
5513  "%s: File open error encountered while opening %s: %" PRIi32 "";
5514 #endif
5515 
5516  Fw::TextLogString _logString;
5517  (void) _logString.format(
5518  _formatString,
5519 #if FW_OBJECT_NAMES == 1
5520  this->m_objName.toChar(),
5521 #endif
5522  "FileOpenError ",
5523  filePath.toChar(),
5524  errorCode
5525  );
5526 
5527  this->logTextOut_out(
5528  0,
5529  _id,
5530  _logTime,
5532  _logString
5533  );
5534  }
5535 #endif
5536  }
5537 
5540  FwSizeType writeSize,
5541  const Fw::StringBase& filePath,
5542  I32 errorCode
5543  ) const
5544  {
5545  // Get the time
5546  Fw::Time _logTime;
5547  if (this->isConnected_timeCaller_OutputPort(0)) {
5548  this->timeCaller_out(0, _logTime);
5549  }
5550 
5551  const FwEventIdType _id = this->getIdBase() + EVENTID_FILEWRITEERROR;
5552 
5553  // Emit the event on the log port
5554  if (this->isConnected_logOut_OutputPort(0)) {
5555  Fw::LogBuffer _logBuff;
5557 
5558 #if FW_AMPCS_COMPATIBLE
5559  // Serialize the number of arguments
5560  _status = _logBuff.serializeFrom(static_cast<U8>(3));
5561  FW_ASSERT(
5562  _status == Fw::FW_SERIALIZE_OK,
5563  static_cast<FwAssertArgType>(_status)
5564  );
5565 #endif
5566 
5567 #if FW_AMPCS_COMPATIBLE
5568  // Serialize the argument size
5569  _status = _logBuff.serializeFrom(
5570  static_cast<U8>(sizeof(FwSizeType))
5571  );
5572  FW_ASSERT(
5573  _status == Fw::FW_SERIALIZE_OK,
5574  static_cast<FwAssertArgType>(_status)
5575  );
5576 #endif
5577  _status = _logBuff.serializeFrom(writeSize);
5578  FW_ASSERT(
5579  _status == Fw::FW_SERIALIZE_OK,
5580  static_cast<FwAssertArgType>(_status)
5581  );
5582 
5583  _status = filePath.serializeTo(
5584  _logBuff,
5585  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
5586  );
5587  FW_ASSERT(
5588  _status == Fw::FW_SERIALIZE_OK,
5589  static_cast<FwAssertArgType>(_status)
5590  );
5591 
5592 #if FW_AMPCS_COMPATIBLE
5593  // Serialize the argument size
5594  _status = _logBuff.serializeFrom(
5595  static_cast<U8>(sizeof(I32))
5596  );
5597  FW_ASSERT(
5598  _status == Fw::FW_SERIALIZE_OK,
5599  static_cast<FwAssertArgType>(_status)
5600  );
5601 #endif
5602  _status = _logBuff.serializeFrom(errorCode);
5603  FW_ASSERT(
5604  _status == Fw::FW_SERIALIZE_OK,
5605  static_cast<FwAssertArgType>(_status)
5606  );
5607 
5608  this->logOut_out(
5609  0,
5610  _id,
5611  _logTime,
5613  _logBuff
5614  );
5615  }
5616 
5617  // Emit the event on the text log port
5618 #if FW_ENABLE_TEXT_LOGGING
5619  if (this->isConnected_logTextOut_OutputPort(0)) {
5620 #if FW_OBJECT_NAMES == 1
5621  const char* _formatString =
5622  "(%s) %s: File write error encountered while writing %" PRIu64 " bytes to %s: %" PRIi32 "";
5623 #else
5624  const char* _formatString =
5625  "%s: File write error encountered while writing %" PRIu64 " bytes to %s: %" PRIi32 "";
5626 #endif
5627 
5628  Fw::TextLogString _logString;
5629  (void) _logString.format(
5630  _formatString,
5631 #if FW_OBJECT_NAMES == 1
5632  this->m_objName.toChar(),
5633 #endif
5634  "FileWriteError ",
5635  writeSize,
5636  filePath.toChar(),
5637  errorCode
5638  );
5639 
5640  this->logTextOut_out(
5641  0,
5642  _id,
5643  _logTime,
5645  _logString
5646  );
5647  }
5648 #endif
5649  }
5650 
5653  const Svc::FpySequencer_FileReadStage& readStage,
5654  const Fw::StringBase& filePath,
5655  I32 errorCode
5656  ) const
5657  {
5658  // Get the time
5659  Fw::Time _logTime;
5660  if (this->isConnected_timeCaller_OutputPort(0)) {
5661  this->timeCaller_out(0, _logTime);
5662  }
5663 
5664  const FwEventIdType _id = this->getIdBase() + EVENTID_FILEREADERROR;
5665 
5666  // Emit the event on the log port
5667  if (this->isConnected_logOut_OutputPort(0)) {
5668  Fw::LogBuffer _logBuff;
5670 
5671 #if FW_AMPCS_COMPATIBLE
5672  // Serialize the number of arguments
5673  _status = _logBuff.serializeFrom(static_cast<U8>(3));
5674  FW_ASSERT(
5675  _status == Fw::FW_SERIALIZE_OK,
5676  static_cast<FwAssertArgType>(_status)
5677  );
5678 #endif
5679 
5680 #if FW_AMPCS_COMPATIBLE
5681  // Serialize the argument size
5682  _status = _logBuff.serializeFrom(
5684  );
5685  FW_ASSERT(
5686  _status == Fw::FW_SERIALIZE_OK,
5687  static_cast<FwAssertArgType>(_status)
5688  );
5689 #endif
5690  _status = _logBuff.serializeFrom(readStage);
5691  FW_ASSERT(
5692  _status == Fw::FW_SERIALIZE_OK,
5693  static_cast<FwAssertArgType>(_status)
5694  );
5695 
5696  _status = filePath.serializeTo(
5697  _logBuff,
5698  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
5699  );
5700  FW_ASSERT(
5701  _status == Fw::FW_SERIALIZE_OK,
5702  static_cast<FwAssertArgType>(_status)
5703  );
5704 
5705 #if FW_AMPCS_COMPATIBLE
5706  // Serialize the argument size
5707  _status = _logBuff.serializeFrom(
5708  static_cast<U8>(sizeof(I32))
5709  );
5710  FW_ASSERT(
5711  _status == Fw::FW_SERIALIZE_OK,
5712  static_cast<FwAssertArgType>(_status)
5713  );
5714 #endif
5715  _status = _logBuff.serializeFrom(errorCode);
5716  FW_ASSERT(
5717  _status == Fw::FW_SERIALIZE_OK,
5718  static_cast<FwAssertArgType>(_status)
5719  );
5720 
5721  this->logOut_out(
5722  0,
5723  _id,
5724  _logTime,
5726  _logBuff
5727  );
5728  }
5729 
5730  // Emit the event on the text log port
5731 #if FW_ENABLE_TEXT_LOGGING
5732  if (this->isConnected_logTextOut_OutputPort(0)) {
5733 #if FW_OBJECT_NAMES == 1
5734  const char* _formatString =
5735  "(%s) %s: File read error encountered while reading %s of file %s: %" PRIi32 "";
5736 #else
5737  const char* _formatString =
5738  "%s: File read error encountered while reading %s of file %s: %" PRIi32 "";
5739 #endif
5740 
5741  Fw::String readStageStr;
5742  readStage.toString(readStageStr);
5743 
5744  Fw::TextLogString _logString;
5745  (void) _logString.format(
5746  _formatString,
5747 #if FW_OBJECT_NAMES == 1
5748  this->m_objName.toChar(),
5749 #endif
5750  "FileReadError ",
5751  readStageStr.toChar(),
5752  filePath.toChar(),
5753  errorCode
5754  );
5755 
5756  this->logTextOut_out(
5757  0,
5758  _id,
5759  _logTime,
5761  _logString
5762  );
5763  }
5764 #endif
5765  }
5766 
5769  const Svc::FpySequencer_FileReadStage& readStage,
5770  const Fw::StringBase& filePath
5771  ) const
5772  {
5773  // Get the time
5774  Fw::Time _logTime;
5775  if (this->isConnected_timeCaller_OutputPort(0)) {
5776  this->timeCaller_out(0, _logTime);
5777  }
5778 
5779  const FwEventIdType _id = this->getIdBase() + EVENTID_ENDOFFILEERROR;
5780 
5781  // Emit the event on the log port
5782  if (this->isConnected_logOut_OutputPort(0)) {
5783  Fw::LogBuffer _logBuff;
5785 
5786 #if FW_AMPCS_COMPATIBLE
5787  // Serialize the number of arguments
5788  _status = _logBuff.serializeFrom(static_cast<U8>(2));
5789  FW_ASSERT(
5790  _status == Fw::FW_SERIALIZE_OK,
5791  static_cast<FwAssertArgType>(_status)
5792  );
5793 #endif
5794 
5795 #if FW_AMPCS_COMPATIBLE
5796  // Serialize the argument size
5797  _status = _logBuff.serializeFrom(
5799  );
5800  FW_ASSERT(
5801  _status == Fw::FW_SERIALIZE_OK,
5802  static_cast<FwAssertArgType>(_status)
5803  );
5804 #endif
5805  _status = _logBuff.serializeFrom(readStage);
5806  FW_ASSERT(
5807  _status == Fw::FW_SERIALIZE_OK,
5808  static_cast<FwAssertArgType>(_status)
5809  );
5810 
5811  _status = filePath.serializeTo(
5812  _logBuff,
5813  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
5814  );
5815  FW_ASSERT(
5816  _status == Fw::FW_SERIALIZE_OK,
5817  static_cast<FwAssertArgType>(_status)
5818  );
5819 
5820  this->logOut_out(
5821  0,
5822  _id,
5823  _logTime,
5825  _logBuff
5826  );
5827  }
5828 
5829  // Emit the event on the text log port
5830 #if FW_ENABLE_TEXT_LOGGING
5831  if (this->isConnected_logTextOut_OutputPort(0)) {
5832 #if FW_OBJECT_NAMES == 1
5833  const char* _formatString =
5834  "(%s) %s: End of file encountered unexpectedly while reading %s of file %s";
5835 #else
5836  const char* _formatString =
5837  "%s: End of file encountered unexpectedly while reading %s of file %s";
5838 #endif
5839 
5840  Fw::String readStageStr;
5841  readStage.toString(readStageStr);
5842 
5843  Fw::TextLogString _logString;
5844  (void) _logString.format(
5845  _formatString,
5846 #if FW_OBJECT_NAMES == 1
5847  this->m_objName.toChar(),
5848 #endif
5849  "EndOfFileError ",
5850  readStageStr.toChar(),
5851  filePath.toChar()
5852  );
5853 
5854  this->logTextOut_out(
5855  0,
5856  _id,
5857  _logTime,
5859  _logString
5860  );
5861  }
5862 #endif
5863  }
5864 
5867  const Svc::FpySequencer_FileReadStage& readStage,
5868  const Fw::StringBase& filePath,
5869  I32 errorCode,
5870  U64 buffLeft,
5871  U64 buffLength
5872  ) const
5873  {
5874  // Get the time
5875  Fw::Time _logTime;
5876  if (this->isConnected_timeCaller_OutputPort(0)) {
5877  this->timeCaller_out(0, _logTime);
5878  }
5879 
5881 
5882  // Emit the event on the log port
5883  if (this->isConnected_logOut_OutputPort(0)) {
5884  Fw::LogBuffer _logBuff;
5886 
5887 #if FW_AMPCS_COMPATIBLE
5888  // Serialize the number of arguments
5889  _status = _logBuff.serializeFrom(static_cast<U8>(5));
5890  FW_ASSERT(
5891  _status == Fw::FW_SERIALIZE_OK,
5892  static_cast<FwAssertArgType>(_status)
5893  );
5894 #endif
5895 
5896 #if FW_AMPCS_COMPATIBLE
5897  // Serialize the argument size
5898  _status = _logBuff.serializeFrom(
5900  );
5901  FW_ASSERT(
5902  _status == Fw::FW_SERIALIZE_OK,
5903  static_cast<FwAssertArgType>(_status)
5904  );
5905 #endif
5906  _status = _logBuff.serializeFrom(readStage);
5907  FW_ASSERT(
5908  _status == Fw::FW_SERIALIZE_OK,
5909  static_cast<FwAssertArgType>(_status)
5910  );
5911 
5912  _status = filePath.serializeTo(
5913  _logBuff,
5914  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
5915  );
5916  FW_ASSERT(
5917  _status == Fw::FW_SERIALIZE_OK,
5918  static_cast<FwAssertArgType>(_status)
5919  );
5920 
5921 #if FW_AMPCS_COMPATIBLE
5922  // Serialize the argument size
5923  _status = _logBuff.serializeFrom(
5924  static_cast<U8>(sizeof(I32))
5925  );
5926  FW_ASSERT(
5927  _status == Fw::FW_SERIALIZE_OK,
5928  static_cast<FwAssertArgType>(_status)
5929  );
5930 #endif
5931  _status = _logBuff.serializeFrom(errorCode);
5932  FW_ASSERT(
5933  _status == Fw::FW_SERIALIZE_OK,
5934  static_cast<FwAssertArgType>(_status)
5935  );
5936 
5937 #if FW_AMPCS_COMPATIBLE
5938  // Serialize the argument size
5939  _status = _logBuff.serializeFrom(
5940  static_cast<U8>(sizeof(U64))
5941  );
5942  FW_ASSERT(
5943  _status == Fw::FW_SERIALIZE_OK,
5944  static_cast<FwAssertArgType>(_status)
5945  );
5946 #endif
5947  _status = _logBuff.serializeFrom(buffLeft);
5948  FW_ASSERT(
5949  _status == Fw::FW_SERIALIZE_OK,
5950  static_cast<FwAssertArgType>(_status)
5951  );
5952 
5953 #if FW_AMPCS_COMPATIBLE
5954  // Serialize the argument size
5955  _status = _logBuff.serializeFrom(
5956  static_cast<U8>(sizeof(U64))
5957  );
5958  FW_ASSERT(
5959  _status == Fw::FW_SERIALIZE_OK,
5960  static_cast<FwAssertArgType>(_status)
5961  );
5962 #endif
5963  _status = _logBuff.serializeFrom(buffLength);
5964  FW_ASSERT(
5965  _status == Fw::FW_SERIALIZE_OK,
5966  static_cast<FwAssertArgType>(_status)
5967  );
5968 
5969  this->logOut_out(
5970  0,
5971  _id,
5972  _logTime,
5974  _logBuff
5975  );
5976  }
5977 
5978  // Emit the event on the text log port
5979 #if FW_ENABLE_TEXT_LOGGING
5980  if (this->isConnected_logTextOut_OutputPort(0)) {
5981 #if FW_OBJECT_NAMES == 1
5982  const char* _formatString =
5983  "(%s) %s: Deserialize error encountered while reading %s of file %s: %" PRIi32 " (%" PRIu64 " bytes left out of %" PRIu64 ")";
5984 #else
5985  const char* _formatString =
5986  "%s: Deserialize error encountered while reading %s of file %s: %" PRIi32 " (%" PRIu64 " bytes left out of %" PRIu64 ")";
5987 #endif
5988 
5989  Fw::String readStageStr;
5990  readStage.toString(readStageStr);
5991 
5992  Fw::TextLogString _logString;
5993  (void) _logString.format(
5994  _formatString,
5995 #if FW_OBJECT_NAMES == 1
5996  this->m_objName.toChar(),
5997 #endif
5998  "FileReadDeserializeError ",
5999  readStageStr.toChar(),
6000  filePath.toChar(),
6001  errorCode,
6002  buffLeft,
6003  buffLength
6004  );
6005 
6006  this->logTextOut_out(
6007  0,
6008  _id,
6009  _logTime,
6011  _logString
6012  );
6013  }
6014 #endif
6015  }
6016 
6019  U8 expected,
6020  U8 actual
6021  ) const
6022  {
6023  // Get the time
6024  Fw::Time _logTime;
6025  if (this->isConnected_timeCaller_OutputPort(0)) {
6026  this->timeCaller_out(0, _logTime);
6027  }
6028 
6029  const FwEventIdType _id = this->getIdBase() + EVENTID_WRONGSCHEMAVERSION;
6030 
6031  // Emit the event on the log port
6032  if (this->isConnected_logOut_OutputPort(0)) {
6033  Fw::LogBuffer _logBuff;
6035 
6036 #if FW_AMPCS_COMPATIBLE
6037  // Serialize the number of arguments
6038  _status = _logBuff.serializeFrom(static_cast<U8>(2));
6039  FW_ASSERT(
6040  _status == Fw::FW_SERIALIZE_OK,
6041  static_cast<FwAssertArgType>(_status)
6042  );
6043 #endif
6044 
6045 #if FW_AMPCS_COMPATIBLE
6046  // Serialize the argument size
6047  _status = _logBuff.serializeFrom(
6048  static_cast<U8>(sizeof(U8))
6049  );
6050  FW_ASSERT(
6051  _status == Fw::FW_SERIALIZE_OK,
6052  static_cast<FwAssertArgType>(_status)
6053  );
6054 #endif
6055  _status = _logBuff.serializeFrom(expected);
6056  FW_ASSERT(
6057  _status == Fw::FW_SERIALIZE_OK,
6058  static_cast<FwAssertArgType>(_status)
6059  );
6060 
6061 #if FW_AMPCS_COMPATIBLE
6062  // Serialize the argument size
6063  _status = _logBuff.serializeFrom(
6064  static_cast<U8>(sizeof(U8))
6065  );
6066  FW_ASSERT(
6067  _status == Fw::FW_SERIALIZE_OK,
6068  static_cast<FwAssertArgType>(_status)
6069  );
6070 #endif
6071  _status = _logBuff.serializeFrom(actual);
6072  FW_ASSERT(
6073  _status == Fw::FW_SERIALIZE_OK,
6074  static_cast<FwAssertArgType>(_status)
6075  );
6076 
6077  this->logOut_out(
6078  0,
6079  _id,
6080  _logTime,
6082  _logBuff
6083  );
6084  }
6085 
6086  // Emit the event on the text log port
6087 #if FW_ENABLE_TEXT_LOGGING
6088  if (this->isConnected_logTextOut_OutputPort(0)) {
6089 #if FW_OBJECT_NAMES == 1
6090  const char* _formatString =
6091  "(%s) %s: Expected schema version %" PRIu8 ", found %" PRIu8 "";
6092 #else
6093  const char* _formatString =
6094  "%s: Expected schema version %" PRIu8 ", found %" PRIu8 "";
6095 #endif
6096 
6097  Fw::TextLogString _logString;
6098  (void) _logString.format(
6099  _formatString,
6100 #if FW_OBJECT_NAMES == 1
6101  this->m_objName.toChar(),
6102 #endif
6103  "WrongSchemaVersion ",
6104  expected,
6105  actual
6106  );
6107 
6108  this->logTextOut_out(
6109  0,
6110  _id,
6111  _logTime,
6113  _logString
6114  );
6115  }
6116 #endif
6117  }
6118 
6121  U32 expected,
6122  U32 actual
6123  ) const
6124  {
6125  // Get the time
6126  Fw::Time _logTime;
6127  if (this->isConnected_timeCaller_OutputPort(0)) {
6128  this->timeCaller_out(0, _logTime);
6129  }
6130 
6131  const FwEventIdType _id = this->getIdBase() + EVENTID_WRONGCRC;
6132 
6133  // Emit the event on the log port
6134  if (this->isConnected_logOut_OutputPort(0)) {
6135  Fw::LogBuffer _logBuff;
6137 
6138 #if FW_AMPCS_COMPATIBLE
6139  // Serialize the number of arguments
6140  _status = _logBuff.serializeFrom(static_cast<U8>(2));
6141  FW_ASSERT(
6142  _status == Fw::FW_SERIALIZE_OK,
6143  static_cast<FwAssertArgType>(_status)
6144  );
6145 #endif
6146 
6147 #if FW_AMPCS_COMPATIBLE
6148  // Serialize the argument size
6149  _status = _logBuff.serializeFrom(
6150  static_cast<U8>(sizeof(U32))
6151  );
6152  FW_ASSERT(
6153  _status == Fw::FW_SERIALIZE_OK,
6154  static_cast<FwAssertArgType>(_status)
6155  );
6156 #endif
6157  _status = _logBuff.serializeFrom(expected);
6158  FW_ASSERT(
6159  _status == Fw::FW_SERIALIZE_OK,
6160  static_cast<FwAssertArgType>(_status)
6161  );
6162 
6163 #if FW_AMPCS_COMPATIBLE
6164  // Serialize the argument size
6165  _status = _logBuff.serializeFrom(
6166  static_cast<U8>(sizeof(U32))
6167  );
6168  FW_ASSERT(
6169  _status == Fw::FW_SERIALIZE_OK,
6170  static_cast<FwAssertArgType>(_status)
6171  );
6172 #endif
6173  _status = _logBuff.serializeFrom(actual);
6174  FW_ASSERT(
6175  _status == Fw::FW_SERIALIZE_OK,
6176  static_cast<FwAssertArgType>(_status)
6177  );
6178 
6179  this->logOut_out(
6180  0,
6181  _id,
6182  _logTime,
6184  _logBuff
6185  );
6186  }
6187 
6188  // Emit the event on the text log port
6189 #if FW_ENABLE_TEXT_LOGGING
6190  if (this->isConnected_logTextOut_OutputPort(0)) {
6191 #if FW_OBJECT_NAMES == 1
6192  const char* _formatString =
6193  "(%s) %s: Expected CRC %" PRIu32 ", actual was %" PRIu32 "";
6194 #else
6195  const char* _formatString =
6196  "%s: Expected CRC %" PRIu32 ", actual was %" PRIu32 "";
6197 #endif
6198 
6199  Fw::TextLogString _logString;
6200  (void) _logString.format(
6201  _formatString,
6202 #if FW_OBJECT_NAMES == 1
6203  this->m_objName.toChar(),
6204 #endif
6205  "WrongCRC ",
6206  expected,
6207  actual
6208  );
6209 
6210  this->logTextOut_out(
6211  0,
6212  _id,
6213  _logTime,
6215  _logString
6216  );
6217  }
6218 #endif
6219  }
6220 
6223  {
6224  // Get the time
6225  Fw::Time _logTime;
6226  if (this->isConnected_timeCaller_OutputPort(0)) {
6227  this->timeCaller_out(0, _logTime);
6228  }
6229 
6231 
6232  // Emit the event on the log port
6233  if (this->isConnected_logOut_OutputPort(0)) {
6234  Fw::LogBuffer _logBuff;
6236 
6237 #if FW_AMPCS_COMPATIBLE
6238  // Serialize the number of arguments
6239  _status = _logBuff.serializeFrom(static_cast<U8>(1));
6240  FW_ASSERT(
6241  _status == Fw::FW_SERIALIZE_OK,
6242  static_cast<FwAssertArgType>(_status)
6243  );
6244 #endif
6245 
6246 #if FW_AMPCS_COMPATIBLE
6247  // Serialize the argument size
6248  _status = _logBuff.serializeFrom(
6249  static_cast<U8>(sizeof(FwSizeType))
6250  );
6251  FW_ASSERT(
6252  _status == Fw::FW_SERIALIZE_OK,
6253  static_cast<FwAssertArgType>(_status)
6254  );
6255 #endif
6256  _status = _logBuff.serializeFrom(remaining);
6257  FW_ASSERT(
6258  _status == Fw::FW_SERIALIZE_OK,
6259  static_cast<FwAssertArgType>(_status)
6260  );
6261 
6262  this->logOut_out(
6263  0,
6264  _id,
6265  _logTime,
6267  _logBuff
6268  );
6269  }
6270 
6271  // Emit the event on the text log port
6272 #if FW_ENABLE_TEXT_LOGGING
6273  if (this->isConnected_logTextOut_OutputPort(0)) {
6274 #if FW_OBJECT_NAMES == 1
6275  const char* _formatString =
6276  "(%s) %s: File had %" PRIu64 " extra bytes at the end";
6277 #else
6278  const char* _formatString =
6279  "%s: File had %" PRIu64 " extra bytes at the end";
6280 #endif
6281 
6282  Fw::TextLogString _logString;
6283  (void) _logString.format(
6284  _formatString,
6285 #if FW_OBJECT_NAMES == 1
6286  this->m_objName.toChar(),
6287 #endif
6288  "ExtraBytesInSequence ",
6289  remaining
6290  );
6291 
6292  this->logTextOut_out(
6293  0,
6294  _id,
6295  _logTime,
6297  _logString
6298  );
6299  }
6300 #endif
6301  }
6302 
6305  U64 bufferSize,
6306  const Fw::StringBase& filePath
6307  ) const
6308  {
6309  // Get the time
6310  Fw::Time _logTime;
6311  if (this->isConnected_timeCaller_OutputPort(0)) {
6312  this->timeCaller_out(0, _logTime);
6313  }
6314 
6316 
6317  // Emit the event on the log port
6318  if (this->isConnected_logOut_OutputPort(0)) {
6319  Fw::LogBuffer _logBuff;
6321 
6322 #if FW_AMPCS_COMPATIBLE
6323  // Serialize the number of arguments
6324  _status = _logBuff.serializeFrom(static_cast<U8>(2));
6325  FW_ASSERT(
6326  _status == Fw::FW_SERIALIZE_OK,
6327  static_cast<FwAssertArgType>(_status)
6328  );
6329 #endif
6330 
6331 #if FW_AMPCS_COMPATIBLE
6332  // Serialize the argument size
6333  _status = _logBuff.serializeFrom(
6334  static_cast<U8>(sizeof(U64))
6335  );
6336  FW_ASSERT(
6337  _status == Fw::FW_SERIALIZE_OK,
6338  static_cast<FwAssertArgType>(_status)
6339  );
6340 #endif
6341  _status = _logBuff.serializeFrom(bufferSize);
6342  FW_ASSERT(
6343  _status == Fw::FW_SERIALIZE_OK,
6344  static_cast<FwAssertArgType>(_status)
6345  );
6346 
6347  _status = filePath.serializeTo(
6348  _logBuff,
6349  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
6350  );
6351  FW_ASSERT(
6352  _status == Fw::FW_SERIALIZE_OK,
6353  static_cast<FwAssertArgType>(_status)
6354  );
6355 
6356  this->logOut_out(
6357  0,
6358  _id,
6359  _logTime,
6361  _logBuff
6362  );
6363  }
6364 
6365  // Emit the event on the text log port
6366 #if FW_ENABLE_TEXT_LOGGING
6367  if (this->isConnected_logTextOut_OutputPort(0)) {
6368 #if FW_OBJECT_NAMES == 1
6369  const char* _formatString =
6370  "(%s) %s: Buffer capacity of %" PRIu64 " was not big enough for sequence %s";
6371 #else
6372  const char* _formatString =
6373  "%s: Buffer capacity of %" PRIu64 " was not big enough for sequence %s";
6374 #endif
6375 
6376  Fw::TextLogString _logString;
6377  (void) _logString.format(
6378  _formatString,
6379 #if FW_OBJECT_NAMES == 1
6380  this->m_objName.toChar(),
6381 #endif
6382  "InsufficientBufferSpace ",
6383  bufferSize,
6384  filePath.toChar()
6385  );
6386 
6387  this->logTextOut_out(
6388  0,
6389  _id,
6390  _logTime,
6392  _logString
6393  );
6394  }
6395 #endif
6396  }
6397 
6400  const Fw::StringBase& filePath,
6401  I32 errorCode
6402  ) const
6403  {
6404  // Get the time
6405  Fw::Time _logTime;
6406  if (this->isConnected_timeCaller_OutputPort(0)) {
6407  this->timeCaller_out(0, _logTime);
6408  }
6409 
6410  const FwEventIdType _id = this->getIdBase() + EVENTID_FILEAPIERROR;
6411 
6412  // Emit the event on the log port
6413  if (this->isConnected_logOut_OutputPort(0)) {
6414  Fw::LogBuffer _logBuff;
6416 
6417 #if FW_AMPCS_COMPATIBLE
6418  // Serialize the number of arguments
6419  _status = _logBuff.serializeFrom(static_cast<U8>(2));
6420  FW_ASSERT(
6421  _status == Fw::FW_SERIALIZE_OK,
6422  static_cast<FwAssertArgType>(_status)
6423  );
6424 #endif
6425 
6426  _status = filePath.serializeTo(
6427  _logBuff,
6428  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
6429  );
6430  FW_ASSERT(
6431  _status == Fw::FW_SERIALIZE_OK,
6432  static_cast<FwAssertArgType>(_status)
6433  );
6434 
6435 #if FW_AMPCS_COMPATIBLE
6436  // Serialize the argument size
6437  _status = _logBuff.serializeFrom(
6438  static_cast<U8>(sizeof(I32))
6439  );
6440  FW_ASSERT(
6441  _status == Fw::FW_SERIALIZE_OK,
6442  static_cast<FwAssertArgType>(_status)
6443  );
6444 #endif
6445  _status = _logBuff.serializeFrom(errorCode);
6446  FW_ASSERT(
6447  _status == Fw::FW_SERIALIZE_OK,
6448  static_cast<FwAssertArgType>(_status)
6449  );
6450 
6451  this->logOut_out(
6452  0,
6453  _id,
6454  _logTime,
6456  _logBuff
6457  );
6458  }
6459 
6460  // Emit the event on the text log port
6461 #if FW_ENABLE_TEXT_LOGGING
6462  if (this->isConnected_logTextOut_OutputPort(0)) {
6463 #if FW_OBJECT_NAMES == 1
6464  const char* _formatString =
6465  "(%s) %s: File system API error encountered while operating on file %s: %" PRIi32 "";
6466 #else
6467  const char* _formatString =
6468  "%s: File system API error encountered while operating on file %s: %" PRIi32 "";
6469 #endif
6470 
6471  Fw::TextLogString _logString;
6472  (void) _logString.format(
6473  _formatString,
6474 #if FW_OBJECT_NAMES == 1
6475  this->m_objName.toChar(),
6476 #endif
6477  "FileApiError ",
6478  filePath.toChar(),
6479  errorCode
6480  );
6481 
6482  this->logTextOut_out(
6483  0,
6484  _id,
6485  _logTime,
6487  _logString
6488  );
6489  }
6490 #endif
6491  }
6492 
6495  const Fw::StringBase& baseDir,
6496  const Fw::StringBase& fileName
6497  ) const
6498  {
6499  // Get the time
6500  Fw::Time _logTime;
6501  if (this->isConnected_timeCaller_OutputPort(0)) {
6502  this->timeCaller_out(0, _logTime);
6503  }
6504 
6506 
6507  // Emit the event on the log port
6508  if (this->isConnected_logOut_OutputPort(0)) {
6509  Fw::LogBuffer _logBuff;
6511 
6512 #if FW_AMPCS_COMPATIBLE
6513  // Serialize the number of arguments
6514  _status = _logBuff.serializeFrom(static_cast<U8>(2));
6515  FW_ASSERT(
6516  _status == Fw::FW_SERIALIZE_OK,
6517  static_cast<FwAssertArgType>(_status)
6518  );
6519 #endif
6520 
6521  _status = baseDir.serializeTo(
6522  _logBuff,
6523  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
6524  );
6525  FW_ASSERT(
6526  _status == Fw::FW_SERIALIZE_OK,
6527  static_cast<FwAssertArgType>(_status)
6528  );
6529 
6530  _status = fileName.serializeTo(
6531  _logBuff,
6532  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
6533  );
6534  FW_ASSERT(
6535  _status == Fw::FW_SERIALIZE_OK,
6536  static_cast<FwAssertArgType>(_status)
6537  );
6538 
6539  this->logOut_out(
6540  0,
6541  _id,
6542  _logTime,
6544  _logBuff
6545  );
6546  }
6547 
6548  // Emit the event on the text log port
6549 #if FW_ENABLE_TEXT_LOGGING
6550  if (this->isConnected_logTextOut_OutputPort(0)) {
6551 #if FW_OBJECT_NAMES == 1
6552  const char* _formatString =
6553  "(%s) %s: Sequence file path was truncated: base directory %s and file name %s together exceed the maximum path length";
6554 #else
6555  const char* _formatString =
6556  "%s: Sequence file path was truncated: base directory %s and file name %s together exceed the maximum path length";
6557 #endif
6558 
6559  Fw::TextLogString _logString;
6560  (void) _logString.format(
6561  _formatString,
6562 #if FW_OBJECT_NAMES == 1
6563  this->m_objName.toChar(),
6564 #endif
6565  "SequenceFilePathTooLong ",
6566  baseDir.toChar(),
6567  fileName.toChar()
6568  );
6569 
6570  this->logTextOut_out(
6571  0,
6572  _id,
6573  _logTime,
6575  _logString
6576  );
6577  }
6578 #endif
6579  }
6580 
6583  FwOpcodeType opCode,
6584  U32 stmtIdx,
6585  const Fw::StringBase& filePath,
6586  const Fw::CmdResponse& response
6587  ) const
6588  {
6589  // Get the time
6590  Fw::Time _logTime;
6591  if (this->isConnected_timeCaller_OutputPort(0)) {
6592  this->timeCaller_out(0, _logTime);
6593  }
6594 
6595  const FwEventIdType _id = this->getIdBase() + EVENTID_COMMANDFAILED;
6596 
6597  // Emit the event on the log port
6598  if (this->isConnected_logOut_OutputPort(0)) {
6599  Fw::LogBuffer _logBuff;
6601 
6602 #if FW_AMPCS_COMPATIBLE
6603  // Serialize the number of arguments
6604  _status = _logBuff.serializeFrom(static_cast<U8>(4));
6605  FW_ASSERT(
6606  _status == Fw::FW_SERIALIZE_OK,
6607  static_cast<FwAssertArgType>(_status)
6608  );
6609 #endif
6610 
6611 #if FW_AMPCS_COMPATIBLE
6612  // Serialize the argument size
6613  _status = _logBuff.serializeFrom(
6614  static_cast<U8>(sizeof(FwOpcodeType))
6615  );
6616  FW_ASSERT(
6617  _status == Fw::FW_SERIALIZE_OK,
6618  static_cast<FwAssertArgType>(_status)
6619  );
6620 #endif
6621  _status = _logBuff.serializeFrom(opCode);
6622  FW_ASSERT(
6623  _status == Fw::FW_SERIALIZE_OK,
6624  static_cast<FwAssertArgType>(_status)
6625  );
6626 
6627 #if FW_AMPCS_COMPATIBLE
6628  // Serialize the argument size
6629  _status = _logBuff.serializeFrom(
6630  static_cast<U8>(sizeof(U32))
6631  );
6632  FW_ASSERT(
6633  _status == Fw::FW_SERIALIZE_OK,
6634  static_cast<FwAssertArgType>(_status)
6635  );
6636 #endif
6637  _status = _logBuff.serializeFrom(stmtIdx);
6638  FW_ASSERT(
6639  _status == Fw::FW_SERIALIZE_OK,
6640  static_cast<FwAssertArgType>(_status)
6641  );
6642 
6643  _status = filePath.serializeTo(
6644  _logBuff,
6645  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
6646  );
6647  FW_ASSERT(
6648  _status == Fw::FW_SERIALIZE_OK,
6649  static_cast<FwAssertArgType>(_status)
6650  );
6651 
6652 #if FW_AMPCS_COMPATIBLE
6653  // Serialize the argument size
6654  _status = _logBuff.serializeFrom(
6655  static_cast<U8>(Fw::CmdResponse::SERIALIZED_SIZE)
6656  );
6657  FW_ASSERT(
6658  _status == Fw::FW_SERIALIZE_OK,
6659  static_cast<FwAssertArgType>(_status)
6660  );
6661 #endif
6662  _status = _logBuff.serializeFrom(response);
6663  FW_ASSERT(
6664  _status == Fw::FW_SERIALIZE_OK,
6665  static_cast<FwAssertArgType>(_status)
6666  );
6667 
6668  this->logOut_out(
6669  0,
6670  _id,
6671  _logTime,
6673  _logBuff
6674  );
6675  }
6676 
6677  // Emit the event on the text log port
6678 #if FW_ENABLE_TEXT_LOGGING
6679  if (this->isConnected_logTextOut_OutputPort(0)) {
6680 #if FW_OBJECT_NAMES == 1
6681  const char* _formatString =
6682  "(%s) %s: Failed to execute command opcode %" PRIu32 " index %" PRIu32 " in sequence file %s: response was %s";
6683 #else
6684  const char* _formatString =
6685  "%s: Failed to execute command opcode %" PRIu32 " index %" PRIu32 " in sequence file %s: response was %s";
6686 #endif
6687 
6688  Fw::String responseStr;
6689  response.toString(responseStr);
6690 
6691  Fw::TextLogString _logString;
6692  (void) _logString.format(
6693  _formatString,
6694 #if FW_OBJECT_NAMES == 1
6695  this->m_objName.toChar(),
6696 #endif
6697  "CommandFailed ",
6698  opCode,
6699  stmtIdx,
6700  filePath.toChar(),
6701  responseStr.toChar()
6702  );
6703 
6704  this->logTextOut_out(
6705  0,
6706  _id,
6707  _logTime,
6709  _logString
6710  );
6711  }
6712 #endif
6713  }
6714 
6717  {
6718  // Get the time
6719  Fw::Time _logTime;
6720  if (this->isConnected_timeCaller_OutputPort(0)) {
6721  this->timeCaller_out(0, _logTime);
6722  }
6723 
6724  const FwEventIdType _id = this->getIdBase() + EVENTID_SEQUENCEDONE;
6725 
6726  // Emit the event on the log port
6727  if (this->isConnected_logOut_OutputPort(0)) {
6728  Fw::LogBuffer _logBuff;
6730 
6731 #if FW_AMPCS_COMPATIBLE
6732  // Serialize the number of arguments
6733  _status = _logBuff.serializeFrom(static_cast<U8>(1));
6734  FW_ASSERT(
6735  _status == Fw::FW_SERIALIZE_OK,
6736  static_cast<FwAssertArgType>(_status)
6737  );
6738 #endif
6739 
6740  _status = filePath.serializeTo(
6741  _logBuff,
6742  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
6743  );
6744  FW_ASSERT(
6745  _status == Fw::FW_SERIALIZE_OK,
6746  static_cast<FwAssertArgType>(_status)
6747  );
6748 
6749  this->logOut_out(
6750  0,
6751  _id,
6752  _logTime,
6754  _logBuff
6755  );
6756  }
6757 
6758  // Emit the event on the text log port
6759 #if FW_ENABLE_TEXT_LOGGING
6760  if (this->isConnected_logTextOut_OutputPort(0)) {
6761 #if FW_OBJECT_NAMES == 1
6762  const char* _formatString =
6763  "(%s) %s: Completed sequence file %s";
6764 #else
6765  const char* _formatString =
6766  "%s: Completed sequence file %s";
6767 #endif
6768 
6769  Fw::TextLogString _logString;
6770  (void) _logString.format(
6771  _formatString,
6772 #if FW_OBJECT_NAMES == 1
6773  this->m_objName.toChar(),
6774 #endif
6775  "SequenceDone ",
6776  filePath.toChar()
6777  );
6778 
6779  this->logTextOut_out(
6780  0,
6781  _id,
6782  _logTime,
6784  _logString
6785  );
6786  }
6787 #endif
6788  }
6789 
6792  {
6793  // Get the time
6794  Fw::Time _logTime;
6795  if (this->isConnected_timeCaller_OutputPort(0)) {
6796  this->timeCaller_out(0, _logTime);
6797  }
6798 
6799  const FwEventIdType _id = this->getIdBase() + EVENTID_SEQUENCECANCELLED;
6800 
6801  // Emit the event on the log port
6802  if (this->isConnected_logOut_OutputPort(0)) {
6803  Fw::LogBuffer _logBuff;
6805 
6806 #if FW_AMPCS_COMPATIBLE
6807  // Serialize the number of arguments
6808  _status = _logBuff.serializeFrom(static_cast<U8>(1));
6809  FW_ASSERT(
6810  _status == Fw::FW_SERIALIZE_OK,
6811  static_cast<FwAssertArgType>(_status)
6812  );
6813 #endif
6814 
6815  _status = filePath.serializeTo(
6816  _logBuff,
6817  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
6818  );
6819  FW_ASSERT(
6820  _status == Fw::FW_SERIALIZE_OK,
6821  static_cast<FwAssertArgType>(_status)
6822  );
6823 
6824  this->logOut_out(
6825  0,
6826  _id,
6827  _logTime,
6829  _logBuff
6830  );
6831  }
6832 
6833  // Emit the event on the text log port
6834 #if FW_ENABLE_TEXT_LOGGING
6835  if (this->isConnected_logTextOut_OutputPort(0)) {
6836 #if FW_OBJECT_NAMES == 1
6837  const char* _formatString =
6838  "(%s) %s: Cancelled sequence file %s";
6839 #else
6840  const char* _formatString =
6841  "%s: Cancelled sequence file %s";
6842 #endif
6843 
6844  Fw::TextLogString _logString;
6845  (void) _logString.format(
6846  _formatString,
6847 #if FW_OBJECT_NAMES == 1
6848  this->m_objName.toChar(),
6849 #endif
6850  "SequenceCancelled ",
6851  filePath.toChar()
6852  );
6853 
6854  this->logTextOut_out(
6855  0,
6856  _id,
6857  _logTime,
6859  _logString
6860  );
6861  }
6862 #endif
6863  }
6864 
6867  const Fw::StringBase& filePath,
6868  I32 errorCode
6869  ) const
6870  {
6871  // Get the time
6872  Fw::Time _logTime;
6873  if (this->isConnected_timeCaller_OutputPort(0)) {
6874  this->timeCaller_out(0, _logTime);
6875  }
6876 
6878 
6879  // Emit the event on the log port
6880  if (this->isConnected_logOut_OutputPort(0)) {
6881  Fw::LogBuffer _logBuff;
6883 
6884 #if FW_AMPCS_COMPATIBLE
6885  // Serialize the number of arguments
6886  _status = _logBuff.serializeFrom(static_cast<U8>(2));
6887  FW_ASSERT(
6888  _status == Fw::FW_SERIALIZE_OK,
6889  static_cast<FwAssertArgType>(_status)
6890  );
6891 #endif
6892 
6893  _status = filePath.serializeTo(
6894  _logBuff,
6895  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
6896  );
6897  FW_ASSERT(
6898  _status == Fw::FW_SERIALIZE_OK,
6899  static_cast<FwAssertArgType>(_status)
6900  );
6901 
6902 #if FW_AMPCS_COMPATIBLE
6903  // Serialize the argument size
6904  _status = _logBuff.serializeFrom(
6905  static_cast<U8>(sizeof(I32))
6906  );
6907  FW_ASSERT(
6908  _status == Fw::FW_SERIALIZE_OK,
6909  static_cast<FwAssertArgType>(_status)
6910  );
6911 #endif
6912  _status = _logBuff.serializeFrom(errorCode);
6913  FW_ASSERT(
6914  _status == Fw::FW_SERIALIZE_OK,
6915  static_cast<FwAssertArgType>(_status)
6916  );
6917 
6918  this->logOut_out(
6919  0,
6920  _id,
6921  _logTime,
6923  _logBuff
6924  );
6925  }
6926 
6927  // Emit the event on the text log port
6928 #if FW_ENABLE_TEXT_LOGGING
6929  if (this->isConnected_logTextOut_OutputPort(0)) {
6930 #if FW_OBJECT_NAMES == 1
6931  const char* _formatString =
6932  "(%s) %s: Sequence %s exited with error code %" PRIi32 "";
6933 #else
6934  const char* _formatString =
6935  "%s: Sequence %s exited with error code %" PRIi32 "";
6936 #endif
6937 
6938  Fw::TextLogString _logString;
6939  (void) _logString.format(
6940  _formatString,
6941 #if FW_OBJECT_NAMES == 1
6942  this->m_objName.toChar(),
6943 #endif
6944  "SequenceExitedWithError ",
6945  filePath.toChar(),
6946  errorCode
6947  );
6948 
6949  this->logTextOut_out(
6950  0,
6951  _id,
6952  _logTime,
6954  _logString
6955  );
6956  }
6957 #endif
6958  }
6959 
6962  U8 opcode,
6963  U32 stmtIdx,
6964  const Fw::StringBase& filePath
6965  ) const
6966  {
6967  // Get the time
6968  Fw::Time _logTime;
6969  if (this->isConnected_timeCaller_OutputPort(0)) {
6970  this->timeCaller_out(0, _logTime);
6971  }
6972 
6974 
6975  // Emit the event on the log port
6976  if (this->isConnected_logOut_OutputPort(0)) {
6977  Fw::LogBuffer _logBuff;
6979 
6980 #if FW_AMPCS_COMPATIBLE
6981  // Serialize the number of arguments
6982  _status = _logBuff.serializeFrom(static_cast<U8>(3));
6983  FW_ASSERT(
6984  _status == Fw::FW_SERIALIZE_OK,
6985  static_cast<FwAssertArgType>(_status)
6986  );
6987 #endif
6988 
6989 #if FW_AMPCS_COMPATIBLE
6990  // Serialize the argument size
6991  _status = _logBuff.serializeFrom(
6992  static_cast<U8>(sizeof(U8))
6993  );
6994  FW_ASSERT(
6995  _status == Fw::FW_SERIALIZE_OK,
6996  static_cast<FwAssertArgType>(_status)
6997  );
6998 #endif
6999  _status = _logBuff.serializeFrom(opcode);
7000  FW_ASSERT(
7001  _status == Fw::FW_SERIALIZE_OK,
7002  static_cast<FwAssertArgType>(_status)
7003  );
7004 
7005 #if FW_AMPCS_COMPATIBLE
7006  // Serialize the argument size
7007  _status = _logBuff.serializeFrom(
7008  static_cast<U8>(sizeof(U32))
7009  );
7010  FW_ASSERT(
7011  _status == Fw::FW_SERIALIZE_OK,
7012  static_cast<FwAssertArgType>(_status)
7013  );
7014 #endif
7015  _status = _logBuff.serializeFrom(stmtIdx);
7016  FW_ASSERT(
7017  _status == Fw::FW_SERIALIZE_OK,
7018  static_cast<FwAssertArgType>(_status)
7019  );
7020 
7021  _status = filePath.serializeTo(
7022  _logBuff,
7023  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
7024  );
7025  FW_ASSERT(
7026  _status == Fw::FW_SERIALIZE_OK,
7027  static_cast<FwAssertArgType>(_status)
7028  );
7029 
7030  this->logOut_out(
7031  0,
7032  _id,
7033  _logTime,
7035  _logBuff
7036  );
7037  }
7038 
7039  // Emit the event on the text log port
7040 #if FW_ENABLE_TEXT_LOGGING
7041  if (this->isConnected_logTextOut_OutputPort(0)) {
7042 #if FW_OBJECT_NAMES == 1
7043  const char* _formatString =
7044  "(%s) %s: Unknown sequencer directive id %" PRIu8 " at index %" PRIu32 " in file %s";
7045 #else
7046  const char* _formatString =
7047  "%s: Unknown sequencer directive id %" PRIu8 " at index %" PRIu32 " in file %s";
7048 #endif
7049 
7050  Fw::TextLogString _logString;
7051  (void) _logString.format(
7052  _formatString,
7053 #if FW_OBJECT_NAMES == 1
7054  this->m_objName.toChar(),
7055 #endif
7056  "UnknownSequencerDirective ",
7057  opcode,
7058  stmtIdx,
7059  filePath.toChar()
7060  );
7061 
7062  this->logTextOut_out(
7063  0,
7064  _id,
7065  _logTime,
7067  _logString
7068  );
7069  }
7070 #endif
7071  }
7072 
7075  I32 state,
7076  FwOpcodeType opcode,
7077  const Fw::CmdResponse& response
7078  ) const
7079  {
7080  // Get the time
7081  Fw::Time _logTime;
7082  if (this->isConnected_timeCaller_OutputPort(0)) {
7083  this->timeCaller_out(0, _logTime);
7084  }
7085 
7087 
7088  // Emit the event on the log port
7089  if (this->isConnected_logOut_OutputPort(0)) {
7090  Fw::LogBuffer _logBuff;
7092 
7093 #if FW_AMPCS_COMPATIBLE
7094  // Serialize the number of arguments
7095  _status = _logBuff.serializeFrom(static_cast<U8>(3));
7096  FW_ASSERT(
7097  _status == Fw::FW_SERIALIZE_OK,
7098  static_cast<FwAssertArgType>(_status)
7099  );
7100 #endif
7101 
7102 #if FW_AMPCS_COMPATIBLE
7103  // Serialize the argument size
7104  _status = _logBuff.serializeFrom(
7105  static_cast<U8>(sizeof(I32))
7106  );
7107  FW_ASSERT(
7108  _status == Fw::FW_SERIALIZE_OK,
7109  static_cast<FwAssertArgType>(_status)
7110  );
7111 #endif
7112  _status = _logBuff.serializeFrom(state);
7113  FW_ASSERT(
7114  _status == Fw::FW_SERIALIZE_OK,
7115  static_cast<FwAssertArgType>(_status)
7116  );
7117 
7118 #if FW_AMPCS_COMPATIBLE
7119  // Serialize the argument size
7120  _status = _logBuff.serializeFrom(
7121  static_cast<U8>(sizeof(FwOpcodeType))
7122  );
7123  FW_ASSERT(
7124  _status == Fw::FW_SERIALIZE_OK,
7125  static_cast<FwAssertArgType>(_status)
7126  );
7127 #endif
7128  _status = _logBuff.serializeFrom(opcode);
7129  FW_ASSERT(
7130  _status == Fw::FW_SERIALIZE_OK,
7131  static_cast<FwAssertArgType>(_status)
7132  );
7133 
7134 #if FW_AMPCS_COMPATIBLE
7135  // Serialize the argument size
7136  _status = _logBuff.serializeFrom(
7137  static_cast<U8>(Fw::CmdResponse::SERIALIZED_SIZE)
7138  );
7139  FW_ASSERT(
7140  _status == Fw::FW_SERIALIZE_OK,
7141  static_cast<FwAssertArgType>(_status)
7142  );
7143 #endif
7144  _status = _logBuff.serializeFrom(response);
7145  FW_ASSERT(
7146  _status == Fw::FW_SERIALIZE_OK,
7147  static_cast<FwAssertArgType>(_status)
7148  );
7149 
7150  this->logOut_out(
7151  0,
7152  _id,
7153  _logTime,
7155  _logBuff
7156  );
7157  }
7158 
7159  // Emit the event on the text log port
7160 #if FW_ENABLE_TEXT_LOGGING
7161  if (this->isConnected_logTextOut_OutputPort(0)) {
7162 #if FW_OBJECT_NAMES == 1
7163  const char* _formatString =
7164  "(%s) %s: Received a command response while not running a sequence (was in state %" PRIi32 " opcode was %" PRIu32 " response code %s)";
7165 #else
7166  const char* _formatString =
7167  "%s: Received a command response while not running a sequence (was in state %" PRIi32 " opcode was %" PRIu32 " response code %s)";
7168 #endif
7169 
7170  Fw::String responseStr;
7171  response.toString(responseStr);
7172 
7173  Fw::TextLogString _logString;
7174  (void) _logString.format(
7175  _formatString,
7176 #if FW_OBJECT_NAMES == 1
7177  this->m_objName.toChar(),
7178 #endif
7179  "CmdResponseWhileNotRunningSequence ",
7180  state,
7181  opcode,
7182  responseStr.toChar()
7183  );
7184 
7185  this->logTextOut_out(
7186  0,
7187  _id,
7188  _logTime,
7190  _logString
7191  );
7192  }
7193 #endif
7194  }
7195 
7198  FwOpcodeType opcode,
7199  const Fw::CmdResponse& response,
7200  U16 oldSequenceIdx,
7201  U16 currentSequenceIdx
7202  ) const
7203  {
7204  // Get the time
7205  Fw::Time _logTime;
7206  if (this->isConnected_timeCaller_OutputPort(0)) {
7207  this->timeCaller_out(0, _logTime);
7208  }
7209 
7211 
7212  // Emit the event on the log port
7213  if (this->isConnected_logOut_OutputPort(0)) {
7214  Fw::LogBuffer _logBuff;
7216 
7217 #if FW_AMPCS_COMPATIBLE
7218  // Serialize the number of arguments
7219  _status = _logBuff.serializeFrom(static_cast<U8>(4));
7220  FW_ASSERT(
7221  _status == Fw::FW_SERIALIZE_OK,
7222  static_cast<FwAssertArgType>(_status)
7223  );
7224 #endif
7225 
7226 #if FW_AMPCS_COMPATIBLE
7227  // Serialize the argument size
7228  _status = _logBuff.serializeFrom(
7229  static_cast<U8>(sizeof(FwOpcodeType))
7230  );
7231  FW_ASSERT(
7232  _status == Fw::FW_SERIALIZE_OK,
7233  static_cast<FwAssertArgType>(_status)
7234  );
7235 #endif
7236  _status = _logBuff.serializeFrom(opcode);
7237  FW_ASSERT(
7238  _status == Fw::FW_SERIALIZE_OK,
7239  static_cast<FwAssertArgType>(_status)
7240  );
7241 
7242 #if FW_AMPCS_COMPATIBLE
7243  // Serialize the argument size
7244  _status = _logBuff.serializeFrom(
7245  static_cast<U8>(Fw::CmdResponse::SERIALIZED_SIZE)
7246  );
7247  FW_ASSERT(
7248  _status == Fw::FW_SERIALIZE_OK,
7249  static_cast<FwAssertArgType>(_status)
7250  );
7251 #endif
7252  _status = _logBuff.serializeFrom(response);
7253  FW_ASSERT(
7254  _status == Fw::FW_SERIALIZE_OK,
7255  static_cast<FwAssertArgType>(_status)
7256  );
7257 
7258 #if FW_AMPCS_COMPATIBLE
7259  // Serialize the argument size
7260  _status = _logBuff.serializeFrom(
7261  static_cast<U8>(sizeof(U16))
7262  );
7263  FW_ASSERT(
7264  _status == Fw::FW_SERIALIZE_OK,
7265  static_cast<FwAssertArgType>(_status)
7266  );
7267 #endif
7268  _status = _logBuff.serializeFrom(oldSequenceIdx);
7269  FW_ASSERT(
7270  _status == Fw::FW_SERIALIZE_OK,
7271  static_cast<FwAssertArgType>(_status)
7272  );
7273 
7274 #if FW_AMPCS_COMPATIBLE
7275  // Serialize the argument size
7276  _status = _logBuff.serializeFrom(
7277  static_cast<U8>(sizeof(U16))
7278  );
7279  FW_ASSERT(
7280  _status == Fw::FW_SERIALIZE_OK,
7281  static_cast<FwAssertArgType>(_status)
7282  );
7283 #endif
7284  _status = _logBuff.serializeFrom(currentSequenceIdx);
7285  FW_ASSERT(
7286  _status == Fw::FW_SERIALIZE_OK,
7287  static_cast<FwAssertArgType>(_status)
7288  );
7289 
7290  this->logOut_out(
7291  0,
7292  _id,
7293  _logTime,
7295  _logBuff
7296  );
7297  }
7298 
7299  // Emit the event on the text log port
7300 #if FW_ENABLE_TEXT_LOGGING
7301  if (this->isConnected_logTextOut_OutputPort(0)) {
7302 #if FW_OBJECT_NAMES == 1
7303  const char* _formatString =
7304  "(%s) %s: Received a response from cmd opcode %" PRIu32 " (response %s), but it was from a previous sequence, not the current one (old idx: %" PRIu16 ", current idx: %" PRIu16 ")";
7305 #else
7306  const char* _formatString =
7307  "%s: Received a response from cmd opcode %" PRIu32 " (response %s), but it was from a previous sequence, not the current one (old idx: %" PRIu16 ", current idx: %" PRIu16 ")";
7308 #endif
7309 
7310  Fw::String responseStr;
7311  response.toString(responseStr);
7312 
7313  Fw::TextLogString _logString;
7314  (void) _logString.format(
7315  _formatString,
7316 #if FW_OBJECT_NAMES == 1
7317  this->m_objName.toChar(),
7318 #endif
7319  "CmdResponseFromOldSequence ",
7320  opcode,
7321  responseStr.toChar(),
7322  oldSequenceIdx,
7323  currentSequenceIdx
7324  );
7325 
7326  this->logTextOut_out(
7327  0,
7328  _id,
7329  _logTime,
7331  _logString
7332  );
7333  }
7334 #endif
7335  }
7336 
7339  FwOpcodeType opcode,
7340  const Fw::CmdResponse& response
7341  ) const
7342  {
7343  // Get the time
7344  Fw::Time _logTime;
7345  if (this->isConnected_timeCaller_OutputPort(0)) {
7346  this->timeCaller_out(0, _logTime);
7347  }
7348 
7350 
7351  // Emit the event on the log port
7352  if (this->isConnected_logOut_OutputPort(0)) {
7353  Fw::LogBuffer _logBuff;
7355 
7356 #if FW_AMPCS_COMPATIBLE
7357  // Serialize the number of arguments
7358  _status = _logBuff.serializeFrom(static_cast<U8>(2));
7359  FW_ASSERT(
7360  _status == Fw::FW_SERIALIZE_OK,
7361  static_cast<FwAssertArgType>(_status)
7362  );
7363 #endif
7364 
7365 #if FW_AMPCS_COMPATIBLE
7366  // Serialize the argument size
7367  _status = _logBuff.serializeFrom(
7368  static_cast<U8>(sizeof(FwOpcodeType))
7369  );
7370  FW_ASSERT(
7371  _status == Fw::FW_SERIALIZE_OK,
7372  static_cast<FwAssertArgType>(_status)
7373  );
7374 #endif
7375  _status = _logBuff.serializeFrom(opcode);
7376  FW_ASSERT(
7377  _status == Fw::FW_SERIALIZE_OK,
7378  static_cast<FwAssertArgType>(_status)
7379  );
7380 
7381 #if FW_AMPCS_COMPATIBLE
7382  // Serialize the argument size
7383  _status = _logBuff.serializeFrom(
7384  static_cast<U8>(Fw::CmdResponse::SERIALIZED_SIZE)
7385  );
7386  FW_ASSERT(
7387  _status == Fw::FW_SERIALIZE_OK,
7388  static_cast<FwAssertArgType>(_status)
7389  );
7390 #endif
7391  _status = _logBuff.serializeFrom(response);
7392  FW_ASSERT(
7393  _status == Fw::FW_SERIALIZE_OK,
7394  static_cast<FwAssertArgType>(_status)
7395  );
7396 
7397  this->logOut_out(
7398  0,
7399  _id,
7400  _logTime,
7402  _logBuff
7403  );
7404  }
7405 
7406  // Emit the event on the text log port
7407 #if FW_ENABLE_TEXT_LOGGING
7408  if (this->isConnected_logTextOut_OutputPort(0)) {
7409 #if FW_OBJECT_NAMES == 1
7410  const char* _formatString =
7411  "(%s) %s: Received a response from cmd opcode %" PRIu32 " (response %s) from this sequence, but was not awaiting a response";
7412 #else
7413  const char* _formatString =
7414  "%s: Received a response from cmd opcode %" PRIu32 " (response %s) from this sequence, but was not awaiting a response";
7415 #endif
7416 
7417  Fw::String responseStr;
7418  response.toString(responseStr);
7419 
7420  Fw::TextLogString _logString;
7421  (void) _logString.format(
7422  _formatString,
7423 #if FW_OBJECT_NAMES == 1
7424  this->m_objName.toChar(),
7425 #endif
7426  "CmdResponseWhileNotAwaiting ",
7427  opcode,
7428  responseStr.toChar()
7429  );
7430 
7431  this->logTextOut_out(
7432  0,
7433  _id,
7434  _logTime,
7436  _logString
7437  );
7438  }
7439 #endif
7440  }
7441 
7444  FwOpcodeType opcode,
7445  const Fw::CmdResponse& response,
7446  U8 expectedDirectiveOpcode
7447  ) const
7448  {
7449  // Get the time
7450  Fw::Time _logTime;
7451  if (this->isConnected_timeCaller_OutputPort(0)) {
7452  this->timeCaller_out(0, _logTime);
7453  }
7454 
7456 
7457  // Emit the event on the log port
7458  if (this->isConnected_logOut_OutputPort(0)) {
7459  Fw::LogBuffer _logBuff;
7461 
7462 #if FW_AMPCS_COMPATIBLE
7463  // Serialize the number of arguments
7464  _status = _logBuff.serializeFrom(static_cast<U8>(3));
7465  FW_ASSERT(
7466  _status == Fw::FW_SERIALIZE_OK,
7467  static_cast<FwAssertArgType>(_status)
7468  );
7469 #endif
7470 
7471 #if FW_AMPCS_COMPATIBLE
7472  // Serialize the argument size
7473  _status = _logBuff.serializeFrom(
7474  static_cast<U8>(sizeof(FwOpcodeType))
7475  );
7476  FW_ASSERT(
7477  _status == Fw::FW_SERIALIZE_OK,
7478  static_cast<FwAssertArgType>(_status)
7479  );
7480 #endif
7481  _status = _logBuff.serializeFrom(opcode);
7482  FW_ASSERT(
7483  _status == Fw::FW_SERIALIZE_OK,
7484  static_cast<FwAssertArgType>(_status)
7485  );
7486 
7487 #if FW_AMPCS_COMPATIBLE
7488  // Serialize the argument size
7489  _status = _logBuff.serializeFrom(
7490  static_cast<U8>(Fw::CmdResponse::SERIALIZED_SIZE)
7491  );
7492  FW_ASSERT(
7493  _status == Fw::FW_SERIALIZE_OK,
7494  static_cast<FwAssertArgType>(_status)
7495  );
7496 #endif
7497  _status = _logBuff.serializeFrom(response);
7498  FW_ASSERT(
7499  _status == Fw::FW_SERIALIZE_OK,
7500  static_cast<FwAssertArgType>(_status)
7501  );
7502 
7503 #if FW_AMPCS_COMPATIBLE
7504  // Serialize the argument size
7505  _status = _logBuff.serializeFrom(
7506  static_cast<U8>(sizeof(U8))
7507  );
7508  FW_ASSERT(
7509  _status == Fw::FW_SERIALIZE_OK,
7510  static_cast<FwAssertArgType>(_status)
7511  );
7512 #endif
7513  _status = _logBuff.serializeFrom(expectedDirectiveOpcode);
7514  FW_ASSERT(
7515  _status == Fw::FW_SERIALIZE_OK,
7516  static_cast<FwAssertArgType>(_status)
7517  );
7518 
7519  this->logOut_out(
7520  0,
7521  _id,
7522  _logTime,
7524  _logBuff
7525  );
7526  }
7527 
7528  // Emit the event on the text log port
7529 #if FW_ENABLE_TEXT_LOGGING
7530  if (this->isConnected_logTextOut_OutputPort(0)) {
7531 #if FW_OBJECT_NAMES == 1
7532  const char* _formatString =
7533  "(%s) %s: Received a response from cmd opcode %" PRIu32 " (response %s) from this sequence, but was awaiting directive opcode %" PRIu8 "";
7534 #else
7535  const char* _formatString =
7536  "%s: Received a response from cmd opcode %" PRIu32 " (response %s) from this sequence, but was awaiting directive opcode %" PRIu8 "";
7537 #endif
7538 
7539  Fw::String responseStr;
7540  response.toString(responseStr);
7541 
7542  Fw::TextLogString _logString;
7543  (void) _logString.format(
7544  _formatString,
7545 #if FW_OBJECT_NAMES == 1
7546  this->m_objName.toChar(),
7547 #endif
7548  "CmdResponseWhileAwaitingDirective ",
7549  opcode,
7550  responseStr.toChar(),
7551  expectedDirectiveOpcode
7552  );
7553 
7554  this->logTextOut_out(
7555  0,
7556  _id,
7557  _logTime,
7559  _logString
7560  );
7561  }
7562 #endif
7563  }
7564 
7567  FwOpcodeType opcode,
7568  const Fw::CmdResponse& response,
7569  FwOpcodeType expectedOpcode
7570  ) const
7571  {
7572  // Get the time
7573  Fw::Time _logTime;
7574  if (this->isConnected_timeCaller_OutputPort(0)) {
7575  this->timeCaller_out(0, _logTime);
7576  }
7577 
7579 
7580  // Emit the event on the log port
7581  if (this->isConnected_logOut_OutputPort(0)) {
7582  Fw::LogBuffer _logBuff;
7584 
7585 #if FW_AMPCS_COMPATIBLE
7586  // Serialize the number of arguments
7587  _status = _logBuff.serializeFrom(static_cast<U8>(3));
7588  FW_ASSERT(
7589  _status == Fw::FW_SERIALIZE_OK,
7590  static_cast<FwAssertArgType>(_status)
7591  );
7592 #endif
7593 
7594 #if FW_AMPCS_COMPATIBLE
7595  // Serialize the argument size
7596  _status = _logBuff.serializeFrom(
7597  static_cast<U8>(sizeof(FwOpcodeType))
7598  );
7599  FW_ASSERT(
7600  _status == Fw::FW_SERIALIZE_OK,
7601  static_cast<FwAssertArgType>(_status)
7602  );
7603 #endif
7604  _status = _logBuff.serializeFrom(opcode);
7605  FW_ASSERT(
7606  _status == Fw::FW_SERIALIZE_OK,
7607  static_cast<FwAssertArgType>(_status)
7608  );
7609 
7610 #if FW_AMPCS_COMPATIBLE
7611  // Serialize the argument size
7612  _status = _logBuff.serializeFrom(
7613  static_cast<U8>(Fw::CmdResponse::SERIALIZED_SIZE)
7614  );
7615  FW_ASSERT(
7616  _status == Fw::FW_SERIALIZE_OK,
7617  static_cast<FwAssertArgType>(_status)
7618  );
7619 #endif
7620  _status = _logBuff.serializeFrom(response);
7621  FW_ASSERT(
7622  _status == Fw::FW_SERIALIZE_OK,
7623  static_cast<FwAssertArgType>(_status)
7624  );
7625 
7626 #if FW_AMPCS_COMPATIBLE
7627  // Serialize the argument size
7628  _status = _logBuff.serializeFrom(
7629  static_cast<U8>(sizeof(FwOpcodeType))
7630  );
7631  FW_ASSERT(
7632  _status == Fw::FW_SERIALIZE_OK,
7633  static_cast<FwAssertArgType>(_status)
7634  );
7635 #endif
7636  _status = _logBuff.serializeFrom(expectedOpcode);
7637  FW_ASSERT(
7638  _status == Fw::FW_SERIALIZE_OK,
7639  static_cast<FwAssertArgType>(_status)
7640  );
7641 
7642  this->logOut_out(
7643  0,
7644  _id,
7645  _logTime,
7647  _logBuff
7648  );
7649  }
7650 
7651  // Emit the event on the text log port
7652 #if FW_ENABLE_TEXT_LOGGING
7653  if (this->isConnected_logTextOut_OutputPort(0)) {
7654 #if FW_OBJECT_NAMES == 1
7655  const char* _formatString =
7656  "(%s) %s: Received a response from cmd opcode %" PRIu32 " (response %s) from this sequence, but was expecting a response from command opcode %" PRIu32 "";
7657 #else
7658  const char* _formatString =
7659  "%s: Received a response from cmd opcode %" PRIu32 " (response %s) from this sequence, but was expecting a response from command opcode %" PRIu32 "";
7660 #endif
7661 
7662  Fw::String responseStr;
7663  response.toString(responseStr);
7664 
7665  Fw::TextLogString _logString;
7666  (void) _logString.format(
7667  _formatString,
7668 #if FW_OBJECT_NAMES == 1
7669  this->m_objName.toChar(),
7670 #endif
7671  "WrongCmdResponseOpcode ",
7672  opcode,
7673  responseStr.toChar(),
7674  expectedOpcode
7675  );
7676 
7677  this->logTextOut_out(
7678  0,
7679  _id,
7680  _logTime,
7682  _logString
7683  );
7684  }
7685 #endif
7686  }
7687 
7690  FwOpcodeType opcode,
7691  const Fw::CmdResponse& response,
7692  U16 actualCmdIdx,
7693  U16 expectedCmdIdx
7694  ) const
7695  {
7696  // Get the time
7697  Fw::Time _logTime;
7698  if (this->isConnected_timeCaller_OutputPort(0)) {
7699  this->timeCaller_out(0, _logTime);
7700  }
7701 
7703 
7704  // Emit the event on the log port
7705  if (this->isConnected_logOut_OutputPort(0)) {
7706  Fw::LogBuffer _logBuff;
7708 
7709 #if FW_AMPCS_COMPATIBLE
7710  // Serialize the number of arguments
7711  _status = _logBuff.serializeFrom(static_cast<U8>(4));
7712  FW_ASSERT(
7713  _status == Fw::FW_SERIALIZE_OK,
7714  static_cast<FwAssertArgType>(_status)
7715  );
7716 #endif
7717 
7718 #if FW_AMPCS_COMPATIBLE
7719  // Serialize the argument size
7720  _status = _logBuff.serializeFrom(
7721  static_cast<U8>(sizeof(FwOpcodeType))
7722  );
7723  FW_ASSERT(
7724  _status == Fw::FW_SERIALIZE_OK,
7725  static_cast<FwAssertArgType>(_status)
7726  );
7727 #endif
7728  _status = _logBuff.serializeFrom(opcode);
7729  FW_ASSERT(
7730  _status == Fw::FW_SERIALIZE_OK,
7731  static_cast<FwAssertArgType>(_status)
7732  );
7733 
7734 #if FW_AMPCS_COMPATIBLE
7735  // Serialize the argument size
7736  _status = _logBuff.serializeFrom(
7737  static_cast<U8>(Fw::CmdResponse::SERIALIZED_SIZE)
7738  );
7739  FW_ASSERT(
7740  _status == Fw::FW_SERIALIZE_OK,
7741  static_cast<FwAssertArgType>(_status)
7742  );
7743 #endif
7744  _status = _logBuff.serializeFrom(response);
7745  FW_ASSERT(
7746  _status == Fw::FW_SERIALIZE_OK,
7747  static_cast<FwAssertArgType>(_status)
7748  );
7749 
7750 #if FW_AMPCS_COMPATIBLE
7751  // Serialize the argument size
7752  _status = _logBuff.serializeFrom(
7753  static_cast<U8>(sizeof(U16))
7754  );
7755  FW_ASSERT(
7756  _status == Fw::FW_SERIALIZE_OK,
7757  static_cast<FwAssertArgType>(_status)
7758  );
7759 #endif
7760  _status = _logBuff.serializeFrom(actualCmdIdx);
7761  FW_ASSERT(
7762  _status == Fw::FW_SERIALIZE_OK,
7763  static_cast<FwAssertArgType>(_status)
7764  );
7765 
7766 #if FW_AMPCS_COMPATIBLE
7767  // Serialize the argument size
7768  _status = _logBuff.serializeFrom(
7769  static_cast<U8>(sizeof(U16))
7770  );
7771  FW_ASSERT(
7772  _status == Fw::FW_SERIALIZE_OK,
7773  static_cast<FwAssertArgType>(_status)
7774  );
7775 #endif
7776  _status = _logBuff.serializeFrom(expectedCmdIdx);
7777  FW_ASSERT(
7778  _status == Fw::FW_SERIALIZE_OK,
7779  static_cast<FwAssertArgType>(_status)
7780  );
7781 
7782  this->logOut_out(
7783  0,
7784  _id,
7785  _logTime,
7787  _logBuff
7788  );
7789  }
7790 
7791  // Emit the event on the text log port
7792 #if FW_ENABLE_TEXT_LOGGING
7793  if (this->isConnected_logTextOut_OutputPort(0)) {
7794 #if FW_OBJECT_NAMES == 1
7795  const char* _formatString =
7796  "(%s) %s: Received a response from the correct cmd (opcode %" PRIu32 " response %s), but it was for a different instance of that opcode in the same sequence (actual idx %" PRIu16 " expected %" PRIu16 ")";
7797 #else
7798  const char* _formatString =
7799  "%s: Received a response from the correct cmd (opcode %" PRIu32 " response %s), but it was for a different instance of that opcode in the same sequence (actual idx %" PRIu16 " expected %" PRIu16 ")";
7800 #endif
7801 
7802  Fw::String responseStr;
7803  response.toString(responseStr);
7804 
7805  Fw::TextLogString _logString;
7806  (void) _logString.format(
7807  _formatString,
7808 #if FW_OBJECT_NAMES == 1
7809  this->m_objName.toChar(),
7810 #endif
7811  "WrongCmdResponseIndex ",
7812  opcode,
7813  responseStr.toChar(),
7814  actualCmdIdx,
7815  expectedCmdIdx
7816  );
7817 
7818  this->logTextOut_out(
7819  0,
7820  _id,
7821  _logTime,
7823  _logString
7824  );
7825  }
7826 #endif
7827  }
7828 
7831  U8 opcode,
7832  U32 stmtIdx,
7833  I32 errorCode,
7834  U64 buffLeft,
7835  U64 buffLength
7836  ) const
7837  {
7838  // Get the time
7839  Fw::Time _logTime;
7840  if (this->isConnected_timeCaller_OutputPort(0)) {
7841  this->timeCaller_out(0, _logTime);
7842  }
7843 
7845 
7846  // Emit the event on the log port
7847  if (this->isConnected_logOut_OutputPort(0)) {
7848  Fw::LogBuffer _logBuff;
7850 
7851 #if FW_AMPCS_COMPATIBLE
7852  // Serialize the number of arguments
7853  _status = _logBuff.serializeFrom(static_cast<U8>(5));
7854  FW_ASSERT(
7855  _status == Fw::FW_SERIALIZE_OK,
7856  static_cast<FwAssertArgType>(_status)
7857  );
7858 #endif
7859 
7860 #if FW_AMPCS_COMPATIBLE
7861  // Serialize the argument size
7862  _status = _logBuff.serializeFrom(
7863  static_cast<U8>(sizeof(U8))
7864  );
7865  FW_ASSERT(
7866  _status == Fw::FW_SERIALIZE_OK,
7867  static_cast<FwAssertArgType>(_status)
7868  );
7869 #endif
7870  _status = _logBuff.serializeFrom(opcode);
7871  FW_ASSERT(
7872  _status == Fw::FW_SERIALIZE_OK,
7873  static_cast<FwAssertArgType>(_status)
7874  );
7875 
7876 #if FW_AMPCS_COMPATIBLE
7877  // Serialize the argument size
7878  _status = _logBuff.serializeFrom(
7879  static_cast<U8>(sizeof(U32))
7880  );
7881  FW_ASSERT(
7882  _status == Fw::FW_SERIALIZE_OK,
7883  static_cast<FwAssertArgType>(_status)
7884  );
7885 #endif
7886  _status = _logBuff.serializeFrom(stmtIdx);
7887  FW_ASSERT(
7888  _status == Fw::FW_SERIALIZE_OK,
7889  static_cast<FwAssertArgType>(_status)
7890  );
7891 
7892 #if FW_AMPCS_COMPATIBLE
7893  // Serialize the argument size
7894  _status = _logBuff.serializeFrom(
7895  static_cast<U8>(sizeof(I32))
7896  );
7897  FW_ASSERT(
7898  _status == Fw::FW_SERIALIZE_OK,
7899  static_cast<FwAssertArgType>(_status)
7900  );
7901 #endif
7902  _status = _logBuff.serializeFrom(errorCode);
7903  FW_ASSERT(
7904  _status == Fw::FW_SERIALIZE_OK,
7905  static_cast<FwAssertArgType>(_status)
7906  );
7907 
7908 #if FW_AMPCS_COMPATIBLE
7909  // Serialize the argument size
7910  _status = _logBuff.serializeFrom(
7911  static_cast<U8>(sizeof(U64))
7912  );
7913  FW_ASSERT(
7914  _status == Fw::FW_SERIALIZE_OK,
7915  static_cast<FwAssertArgType>(_status)
7916  );
7917 #endif
7918  _status = _logBuff.serializeFrom(buffLeft);
7919  FW_ASSERT(
7920  _status == Fw::FW_SERIALIZE_OK,
7921  static_cast<FwAssertArgType>(_status)
7922  );
7923 
7924 #if FW_AMPCS_COMPATIBLE
7925  // Serialize the argument size
7926  _status = _logBuff.serializeFrom(
7927  static_cast<U8>(sizeof(U64))
7928  );
7929  FW_ASSERT(
7930  _status == Fw::FW_SERIALIZE_OK,
7931  static_cast<FwAssertArgType>(_status)
7932  );
7933 #endif
7934  _status = _logBuff.serializeFrom(buffLength);
7935  FW_ASSERT(
7936  _status == Fw::FW_SERIALIZE_OK,
7937  static_cast<FwAssertArgType>(_status)
7938  );
7939 
7940  this->logOut_out(
7941  0,
7942  _id,
7943  _logTime,
7945  _logBuff
7946  );
7947  }
7948 
7949  // Emit the event on the text log port
7950 #if FW_ENABLE_TEXT_LOGGING
7951  if (this->isConnected_logTextOut_OutputPort(0)) {
7952 #if FW_OBJECT_NAMES == 1
7953  const char* _formatString =
7954  "(%s) %s: Deserialize error encountered while reading directive opcode %" PRIu8 " at index %" PRIu32 ": %" PRIi32 " (%" PRIu64 " bytes left out of %" PRIu64 ")";
7955 #else
7956  const char* _formatString =
7957  "%s: Deserialize error encountered while reading directive opcode %" PRIu8 " at index %" PRIu32 ": %" PRIi32 " (%" PRIu64 " bytes left out of %" PRIu64 ")";
7958 #endif
7959 
7960  Fw::TextLogString _logString;
7961  (void) _logString.format(
7962  _formatString,
7963 #if FW_OBJECT_NAMES == 1
7964  this->m_objName.toChar(),
7965 #endif
7966  "DirectiveDeserializeError ",
7967  opcode,
7968  stmtIdx,
7969  errorCode,
7970  buffLeft,
7971  buffLength
7972  );
7973 
7974  this->logTextOut_out(
7975  0,
7976  _id,
7977  _logTime,
7979  _logString
7980  );
7981  }
7982 #endif
7983  }
7984 
7987  I32 internalTimeBase,
7988  I32 otherTimeBase
7989  ) const
7990  {
7991  // Get the time
7992  Fw::Time _logTime;
7993  if (this->isConnected_timeCaller_OutputPort(0)) {
7994  this->timeCaller_out(0, _logTime);
7995  }
7996 
7997  const FwEventIdType _id = this->getIdBase() + EVENTID_MISMATCHEDTIMEBASE;
7998 
7999  // Emit the event on the log port
8000  if (this->isConnected_logOut_OutputPort(0)) {
8001  Fw::LogBuffer _logBuff;
8003 
8004 #if FW_AMPCS_COMPATIBLE
8005  // Serialize the number of arguments
8006  _status = _logBuff.serializeFrom(static_cast<U8>(2));
8007  FW_ASSERT(
8008  _status == Fw::FW_SERIALIZE_OK,
8009  static_cast<FwAssertArgType>(_status)
8010  );
8011 #endif
8012 
8013 #if FW_AMPCS_COMPATIBLE
8014  // Serialize the argument size
8015  _status = _logBuff.serializeFrom(
8016  static_cast<U8>(sizeof(I32))
8017  );
8018  FW_ASSERT(
8019  _status == Fw::FW_SERIALIZE_OK,
8020  static_cast<FwAssertArgType>(_status)
8021  );
8022 #endif
8023  _status = _logBuff.serializeFrom(internalTimeBase);
8024  FW_ASSERT(
8025  _status == Fw::FW_SERIALIZE_OK,
8026  static_cast<FwAssertArgType>(_status)
8027  );
8028 
8029 #if FW_AMPCS_COMPATIBLE
8030  // Serialize the argument size
8031  _status = _logBuff.serializeFrom(
8032  static_cast<U8>(sizeof(I32))
8033  );
8034  FW_ASSERT(
8035  _status == Fw::FW_SERIALIZE_OK,
8036  static_cast<FwAssertArgType>(_status)
8037  );
8038 #endif
8039  _status = _logBuff.serializeFrom(otherTimeBase);
8040  FW_ASSERT(
8041  _status == Fw::FW_SERIALIZE_OK,
8042  static_cast<FwAssertArgType>(_status)
8043  );
8044 
8045  this->logOut_out(
8046  0,
8047  _id,
8048  _logTime,
8050  _logBuff
8051  );
8052  }
8053 
8054  // Emit the event on the text log port
8055 #if FW_ENABLE_TEXT_LOGGING
8056  if (this->isConnected_logTextOut_OutputPort(0)) {
8057 #if FW_OBJECT_NAMES == 1
8058  const char* _formatString =
8059  "(%s) %s: getTime() time base was %" PRIi32 ", but tried to operate on it with time base %" PRIi32 "";
8060 #else
8061  const char* _formatString =
8062  "%s: getTime() time base was %" PRIi32 ", but tried to operate on it with time base %" PRIi32 "";
8063 #endif
8064 
8065  Fw::TextLogString _logString;
8066  (void) _logString.format(
8067  _formatString,
8068 #if FW_OBJECT_NAMES == 1
8069  this->m_objName.toChar(),
8070 #endif
8071  "MismatchedTimeBase ",
8072  internalTimeBase,
8073  otherTimeBase
8074  );
8075 
8076  this->logTextOut_out(
8077  0,
8078  _id,
8079  _logTime,
8081  _logString
8082  );
8083  }
8084 #endif
8085  }
8086 
8089  I32 internalTimeContext,
8090  I32 otherTimeContext
8091  ) const
8092  {
8093  // Get the time
8094  Fw::Time _logTime;
8095  if (this->isConnected_timeCaller_OutputPort(0)) {
8096  this->timeCaller_out(0, _logTime);
8097  }
8098 
8100 
8101  // Emit the event on the log port
8102  if (this->isConnected_logOut_OutputPort(0)) {
8103  Fw::LogBuffer _logBuff;
8105 
8106 #if FW_AMPCS_COMPATIBLE
8107  // Serialize the number of arguments
8108  _status = _logBuff.serializeFrom(static_cast<U8>(2));
8109  FW_ASSERT(
8110  _status == Fw::FW_SERIALIZE_OK,
8111  static_cast<FwAssertArgType>(_status)
8112  );
8113 #endif
8114 
8115 #if FW_AMPCS_COMPATIBLE
8116  // Serialize the argument size
8117  _status = _logBuff.serializeFrom(
8118  static_cast<U8>(sizeof(I32))
8119  );
8120  FW_ASSERT(
8121  _status == Fw::FW_SERIALIZE_OK,
8122  static_cast<FwAssertArgType>(_status)
8123  );
8124 #endif
8125  _status = _logBuff.serializeFrom(internalTimeContext);
8126  FW_ASSERT(
8127  _status == Fw::FW_SERIALIZE_OK,
8128  static_cast<FwAssertArgType>(_status)
8129  );
8130 
8131 #if FW_AMPCS_COMPATIBLE
8132  // Serialize the argument size
8133  _status = _logBuff.serializeFrom(
8134  static_cast<U8>(sizeof(I32))
8135  );
8136  FW_ASSERT(
8137  _status == Fw::FW_SERIALIZE_OK,
8138  static_cast<FwAssertArgType>(_status)
8139  );
8140 #endif
8141  _status = _logBuff.serializeFrom(otherTimeContext);
8142  FW_ASSERT(
8143  _status == Fw::FW_SERIALIZE_OK,
8144  static_cast<FwAssertArgType>(_status)
8145  );
8146 
8147  this->logOut_out(
8148  0,
8149  _id,
8150  _logTime,
8152  _logBuff
8153  );
8154  }
8155 
8156  // Emit the event on the text log port
8157 #if FW_ENABLE_TEXT_LOGGING
8158  if (this->isConnected_logTextOut_OutputPort(0)) {
8159 #if FW_OBJECT_NAMES == 1
8160  const char* _formatString =
8161  "(%s) %s: getTime() time context was %" PRIi32 ", but tried to operate on it with time context %" PRIi32 "";
8162 #else
8163  const char* _formatString =
8164  "%s: getTime() time context was %" PRIi32 ", but tried to operate on it with time context %" PRIi32 "";
8165 #endif
8166 
8167  Fw::TextLogString _logString;
8168  (void) _logString.format(
8169  _formatString,
8170 #if FW_OBJECT_NAMES == 1
8171  this->m_objName.toChar(),
8172 #endif
8173  "MismatchedTimeContext ",
8174  internalTimeContext,
8175  otherTimeContext
8176  );
8177 
8178  this->logTextOut_out(
8179  0,
8180  _id,
8181  _logTime,
8183  _logString
8184  );
8185  }
8186 #endif
8187  }
8188 
8191  FwOpcodeType opCode,
8192  U32 stmtIdx,
8193  const Fw::StringBase& filePath
8194  ) const
8195  {
8196  // Get the time
8197  Fw::Time _logTime;
8198  if (this->isConnected_timeCaller_OutputPort(0)) {
8199  this->timeCaller_out(0, _logTime);
8200  }
8201 
8202  const FwEventIdType _id = this->getIdBase() + EVENTID_COMMANDTIMEDOUT;
8203 
8204  // Emit the event on the log port
8205  if (this->isConnected_logOut_OutputPort(0)) {
8206  Fw::LogBuffer _logBuff;
8208 
8209 #if FW_AMPCS_COMPATIBLE
8210  // Serialize the number of arguments
8211  _status = _logBuff.serializeFrom(static_cast<U8>(3));
8212  FW_ASSERT(
8213  _status == Fw::FW_SERIALIZE_OK,
8214  static_cast<FwAssertArgType>(_status)
8215  );
8216 #endif
8217 
8218 #if FW_AMPCS_COMPATIBLE
8219  // Serialize the argument size
8220  _status = _logBuff.serializeFrom(
8221  static_cast<U8>(sizeof(FwOpcodeType))
8222  );
8223  FW_ASSERT(
8224  _status == Fw::FW_SERIALIZE_OK,
8225  static_cast<FwAssertArgType>(_status)
8226  );
8227 #endif
8228  _status = _logBuff.serializeFrom(opCode);
8229  FW_ASSERT(
8230  _status == Fw::FW_SERIALIZE_OK,
8231  static_cast<FwAssertArgType>(_status)
8232  );
8233 
8234 #if FW_AMPCS_COMPATIBLE
8235  // Serialize the argument size
8236  _status = _logBuff.serializeFrom(
8237  static_cast<U8>(sizeof(U32))
8238  );
8239  FW_ASSERT(
8240  _status == Fw::FW_SERIALIZE_OK,
8241  static_cast<FwAssertArgType>(_status)
8242  );
8243 #endif
8244  _status = _logBuff.serializeFrom(stmtIdx);
8245  FW_ASSERT(
8246  _status == Fw::FW_SERIALIZE_OK,
8247  static_cast<FwAssertArgType>(_status)
8248  );
8249 
8250  _status = filePath.serializeTo(
8251  _logBuff,
8252  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
8253  );
8254  FW_ASSERT(
8255  _status == Fw::FW_SERIALIZE_OK,
8256  static_cast<FwAssertArgType>(_status)
8257  );
8258 
8259  this->logOut_out(
8260  0,
8261  _id,
8262  _logTime,
8264  _logBuff
8265  );
8266  }
8267 
8268  // Emit the event on the text log port
8269 #if FW_ENABLE_TEXT_LOGGING
8270  if (this->isConnected_logTextOut_OutputPort(0)) {
8271 #if FW_OBJECT_NAMES == 1
8272  const char* _formatString =
8273  "(%s) %s: A command opcode %" PRIu32 " at index %" PRIu32 " timed out in sequence %s, causing the sequence to fail";
8274 #else
8275  const char* _formatString =
8276  "%s: A command opcode %" PRIu32 " at index %" PRIu32 " timed out in sequence %s, causing the sequence to fail";
8277 #endif
8278 
8279  Fw::TextLogString _logString;
8280  (void) _logString.format(
8281  _formatString,
8282 #if FW_OBJECT_NAMES == 1
8283  this->m_objName.toChar(),
8284 #endif
8285  "CommandTimedOut ",
8286  opCode,
8287  stmtIdx,
8288  filePath.toChar()
8289  );
8290 
8291  this->logTextOut_out(
8292  0,
8293  _id,
8294  _logTime,
8296  _logString
8297  );
8298  }
8299 #endif
8300  }
8301 
8304  U8 opCode,
8305  U32 stmtIdx,
8306  const Fw::StringBase& filePath
8307  ) const
8308  {
8309  // Get the time
8310  Fw::Time _logTime;
8311  if (this->isConnected_timeCaller_OutputPort(0)) {
8312  this->timeCaller_out(0, _logTime);
8313  }
8314 
8315  const FwEventIdType _id = this->getIdBase() + EVENTID_DIRECTIVETIMEDOUT;
8316 
8317  // Emit the event on the log port
8318  if (this->isConnected_logOut_OutputPort(0)) {
8319  Fw::LogBuffer _logBuff;
8321 
8322 #if FW_AMPCS_COMPATIBLE
8323  // Serialize the number of arguments
8324  _status = _logBuff.serializeFrom(static_cast<U8>(3));
8325  FW_ASSERT(
8326  _status == Fw::FW_SERIALIZE_OK,
8327  static_cast<FwAssertArgType>(_status)
8328  );
8329 #endif
8330 
8331 #if FW_AMPCS_COMPATIBLE
8332  // Serialize the argument size
8333  _status = _logBuff.serializeFrom(
8334  static_cast<U8>(sizeof(U8))
8335  );
8336  FW_ASSERT(
8337  _status == Fw::FW_SERIALIZE_OK,
8338  static_cast<FwAssertArgType>(_status)
8339  );
8340 #endif
8341  _status = _logBuff.serializeFrom(opCode);
8342  FW_ASSERT(
8343  _status == Fw::FW_SERIALIZE_OK,
8344  static_cast<FwAssertArgType>(_status)
8345  );
8346 
8347 #if FW_AMPCS_COMPATIBLE
8348  // Serialize the argument size
8349  _status = _logBuff.serializeFrom(
8350  static_cast<U8>(sizeof(U32))
8351  );
8352  FW_ASSERT(
8353  _status == Fw::FW_SERIALIZE_OK,
8354  static_cast<FwAssertArgType>(_status)
8355  );
8356 #endif
8357  _status = _logBuff.serializeFrom(stmtIdx);
8358  FW_ASSERT(
8359  _status == Fw::FW_SERIALIZE_OK,
8360  static_cast<FwAssertArgType>(_status)
8361  );
8362 
8363  _status = filePath.serializeTo(
8364  _logBuff,
8365  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
8366  );
8367  FW_ASSERT(
8368  _status == Fw::FW_SERIALIZE_OK,
8369  static_cast<FwAssertArgType>(_status)
8370  );
8371 
8372  this->logOut_out(
8373  0,
8374  _id,
8375  _logTime,
8377  _logBuff
8378  );
8379  }
8380 
8381  // Emit the event on the text log port
8382 #if FW_ENABLE_TEXT_LOGGING
8383  if (this->isConnected_logTextOut_OutputPort(0)) {
8384 #if FW_OBJECT_NAMES == 1
8385  const char* _formatString =
8386  "(%s) %s: A directive opcode %" PRIu8 " at index %" PRIu32 " timed out in sequence %s, causing the sequence to fail";
8387 #else
8388  const char* _formatString =
8389  "%s: A directive opcode %" PRIu8 " at index %" PRIu32 " timed out in sequence %s, causing the sequence to fail";
8390 #endif
8391 
8392  Fw::TextLogString _logString;
8393  (void) _logString.format(
8394  _formatString,
8395 #if FW_OBJECT_NAMES == 1
8396  this->m_objName.toChar(),
8397 #endif
8398  "DirectiveTimedOut ",
8399  opCode,
8400  stmtIdx,
8401  filePath.toChar()
8402  );
8403 
8404  this->logTextOut_out(
8405  0,
8406  _id,
8407  _logTime,
8409  _logString
8410  );
8411  }
8412 #endif
8413  }
8414 
8417  U8 count,
8418  U8 max
8419  ) const
8420  {
8421  // Get the time
8422  Fw::Time _logTime;
8423  if (this->isConnected_timeCaller_OutputPort(0)) {
8424  this->timeCaller_out(0, _logTime);
8425  }
8426 
8427  const FwEventIdType _id = this->getIdBase() + EVENTID_TOOMANYSEQUENCEARGS;
8428 
8429  // Emit the event on the log port
8430  if (this->isConnected_logOut_OutputPort(0)) {
8431  Fw::LogBuffer _logBuff;
8433 
8434 #if FW_AMPCS_COMPATIBLE
8435  // Serialize the number of arguments
8436  _status = _logBuff.serializeFrom(static_cast<U8>(2));
8437  FW_ASSERT(
8438  _status == Fw::FW_SERIALIZE_OK,
8439  static_cast<FwAssertArgType>(_status)
8440  );
8441 #endif
8442 
8443 #if FW_AMPCS_COMPATIBLE
8444  // Serialize the argument size
8445  _status = _logBuff.serializeFrom(
8446  static_cast<U8>(sizeof(U8))
8447  );
8448  FW_ASSERT(
8449  _status == Fw::FW_SERIALIZE_OK,
8450  static_cast<FwAssertArgType>(_status)
8451  );
8452 #endif
8453  _status = _logBuff.serializeFrom(count);
8454  FW_ASSERT(
8455  _status == Fw::FW_SERIALIZE_OK,
8456  static_cast<FwAssertArgType>(_status)
8457  );
8458 
8459 #if FW_AMPCS_COMPATIBLE
8460  // Serialize the argument size
8461  _status = _logBuff.serializeFrom(
8462  static_cast<U8>(sizeof(U8))
8463  );
8464  FW_ASSERT(
8465  _status == Fw::FW_SERIALIZE_OK,
8466  static_cast<FwAssertArgType>(_status)
8467  );
8468 #endif
8469  _status = _logBuff.serializeFrom(max);
8470  FW_ASSERT(
8471  _status == Fw::FW_SERIALIZE_OK,
8472  static_cast<FwAssertArgType>(_status)
8473  );
8474 
8475  this->logOut_out(
8476  0,
8477  _id,
8478  _logTime,
8480  _logBuff
8481  );
8482  }
8483 
8484  // Emit the event on the text log port
8485 #if FW_ENABLE_TEXT_LOGGING
8486  if (this->isConnected_logTextOut_OutputPort(0)) {
8487 #if FW_OBJECT_NAMES == 1
8488  const char* _formatString =
8489  "(%s) %s: A sequence specified it had %" PRIu8 " args but the max was %" PRIu8 "";
8490 #else
8491  const char* _formatString =
8492  "%s: A sequence specified it had %" PRIu8 " args but the max was %" PRIu8 "";
8493 #endif
8494 
8495  Fw::TextLogString _logString;
8496  (void) _logString.format(
8497  _formatString,
8498 #if FW_OBJECT_NAMES == 1
8499  this->m_objName.toChar(),
8500 #endif
8501  "TooManySequenceArgs ",
8502  count,
8503  max
8504  );
8505 
8506  this->logTextOut_out(
8507  0,
8508  _id,
8509  _logTime,
8511  _logString
8512  );
8513  }
8514 #endif
8515  }
8516 
8519  U16 count,
8520  U16 max
8521  ) const
8522  {
8523  // Get the time
8524  Fw::Time _logTime;
8525  if (this->isConnected_timeCaller_OutputPort(0)) {
8526  this->timeCaller_out(0, _logTime);
8527  }
8528 
8530 
8531  // Emit the event on the log port
8532  if (this->isConnected_logOut_OutputPort(0)) {
8533  Fw::LogBuffer _logBuff;
8535 
8536 #if FW_AMPCS_COMPATIBLE
8537  // Serialize the number of arguments
8538  _status = _logBuff.serializeFrom(static_cast<U8>(2));
8539  FW_ASSERT(
8540  _status == Fw::FW_SERIALIZE_OK,
8541  static_cast<FwAssertArgType>(_status)
8542  );
8543 #endif
8544 
8545 #if FW_AMPCS_COMPATIBLE
8546  // Serialize the argument size
8547  _status = _logBuff.serializeFrom(
8548  static_cast<U8>(sizeof(U16))
8549  );
8550  FW_ASSERT(
8551  _status == Fw::FW_SERIALIZE_OK,
8552  static_cast<FwAssertArgType>(_status)
8553  );
8554 #endif
8555  _status = _logBuff.serializeFrom(count);
8556  FW_ASSERT(
8557  _status == Fw::FW_SERIALIZE_OK,
8558  static_cast<FwAssertArgType>(_status)
8559  );
8560 
8561 #if FW_AMPCS_COMPATIBLE
8562  // Serialize the argument size
8563  _status = _logBuff.serializeFrom(
8564  static_cast<U8>(sizeof(U16))
8565  );
8566  FW_ASSERT(
8567  _status == Fw::FW_SERIALIZE_OK,
8568  static_cast<FwAssertArgType>(_status)
8569  );
8570 #endif
8571  _status = _logBuff.serializeFrom(max);
8572  FW_ASSERT(
8573  _status == Fw::FW_SERIALIZE_OK,
8574  static_cast<FwAssertArgType>(_status)
8575  );
8576 
8577  this->logOut_out(
8578  0,
8579  _id,
8580  _logTime,
8582  _logBuff
8583  );
8584  }
8585 
8586  // Emit the event on the text log port
8587 #if FW_ENABLE_TEXT_LOGGING
8588  if (this->isConnected_logTextOut_OutputPort(0)) {
8589 #if FW_OBJECT_NAMES == 1
8590  const char* _formatString =
8591  "(%s) %s: A sequence specified it had %" PRIu16 " directives but the max was %" PRIu16 "";
8592 #else
8593  const char* _formatString =
8594  "%s: A sequence specified it had %" PRIu16 " directives but the max was %" PRIu16 "";
8595 #endif
8596 
8597  Fw::TextLogString _logString;
8598  (void) _logString.format(
8599  _formatString,
8600 #if FW_OBJECT_NAMES == 1
8601  this->m_objName.toChar(),
8602 #endif
8603  "TooManySequenceDirectives ",
8604  count,
8605  max
8606  );
8607 
8608  this->logTextOut_out(
8609  0,
8610  _id,
8611  _logTime,
8613  _logString
8614  );
8615  }
8616 #endif
8617  }
8618 
8621  Svc::Fpy::StackSizeType expected,
8622  FwSizeType actual,
8623  const Fw::StringBase& filePath
8624  ) const
8625  {
8626  // Get the time
8627  Fw::Time _logTime;
8628  if (this->isConnected_timeCaller_OutputPort(0)) {
8629  this->timeCaller_out(0, _logTime);
8630  }
8631 
8632  const FwEventIdType _id = this->getIdBase() + EVENTID_ARGSIZEMISMATCH;
8633 
8634  // Emit the event on the log port
8635  if (this->isConnected_logOut_OutputPort(0)) {
8636  Fw::LogBuffer _logBuff;
8638 
8639 #if FW_AMPCS_COMPATIBLE
8640  // Serialize the number of arguments
8641  _status = _logBuff.serializeFrom(static_cast<U8>(3));
8642  FW_ASSERT(
8643  _status == Fw::FW_SERIALIZE_OK,
8644  static_cast<FwAssertArgType>(_status)
8645  );
8646 #endif
8647 
8648 #if FW_AMPCS_COMPATIBLE
8649  // Serialize the argument size
8650  _status = _logBuff.serializeFrom(
8651  static_cast<U8>(sizeof(Svc::Fpy::StackSizeType))
8652  );
8653  FW_ASSERT(
8654  _status == Fw::FW_SERIALIZE_OK,
8655  static_cast<FwAssertArgType>(_status)
8656  );
8657 #endif
8658  _status = _logBuff.serializeFrom(expected);
8659  FW_ASSERT(
8660  _status == Fw::FW_SERIALIZE_OK,
8661  static_cast<FwAssertArgType>(_status)
8662  );
8663 
8664 #if FW_AMPCS_COMPATIBLE
8665  // Serialize the argument size
8666  _status = _logBuff.serializeFrom(
8667  static_cast<U8>(sizeof(FwSizeType))
8668  );
8669  FW_ASSERT(
8670  _status == Fw::FW_SERIALIZE_OK,
8671  static_cast<FwAssertArgType>(_status)
8672  );
8673 #endif
8674  _status = _logBuff.serializeFrom(actual);
8675  FW_ASSERT(
8676  _status == Fw::FW_SERIALIZE_OK,
8677  static_cast<FwAssertArgType>(_status)
8678  );
8679 
8680  _status = filePath.serializeTo(
8681  _logBuff,
8682  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
8683  );
8684  FW_ASSERT(
8685  _status == Fw::FW_SERIALIZE_OK,
8686  static_cast<FwAssertArgType>(_status)
8687  );
8688 
8689  this->logOut_out(
8690  0,
8691  _id,
8692  _logTime,
8694  _logBuff
8695  );
8696  }
8697 
8698  // Emit the event on the text log port
8699 #if FW_ENABLE_TEXT_LOGGING
8700  if (this->isConnected_logTextOut_OutputPort(0)) {
8701 #if FW_OBJECT_NAMES == 1
8702  const char* _formatString =
8703  "(%s) %s: Expected %" PRIu32 " bytes of arguments, but received %" PRIu64 " in sequence file %s";
8704 #else
8705  const char* _formatString =
8706  "%s: Expected %" PRIu32 " bytes of arguments, but received %" PRIu64 " in sequence file %s";
8707 #endif
8708 
8709  Fw::TextLogString _logString;
8710  (void) _logString.format(
8711  _formatString,
8712 #if FW_OBJECT_NAMES == 1
8713  this->m_objName.toChar(),
8714 #endif
8715  "ArgSizeMismatch ",
8716  expected,
8717  actual,
8718  filePath.toChar()
8719  );
8720 
8721  this->logTextOut_out(
8722  0,
8723  _id,
8724  _logTime,
8726  _logString
8727  );
8728  }
8729 #endif
8730  }
8731 
8734  FwSizeType actual,
8735  FwSizeType capacity
8736  ) const
8737  {
8738  // Get the time
8739  Fw::Time _logTime;
8740  if (this->isConnected_timeCaller_OutputPort(0)) {
8741  this->timeCaller_out(0, _logTime);
8742  }
8743 
8745 
8746  // Emit the event on the log port
8747  if (this->isConnected_logOut_OutputPort(0)) {
8748  Fw::LogBuffer _logBuff;
8750 
8751 #if FW_AMPCS_COMPATIBLE
8752  // Serialize the number of arguments
8753  _status = _logBuff.serializeFrom(static_cast<U8>(2));
8754  FW_ASSERT(
8755  _status == Fw::FW_SERIALIZE_OK,
8756  static_cast<FwAssertArgType>(_status)
8757  );
8758 #endif
8759 
8760 #if FW_AMPCS_COMPATIBLE
8761  // Serialize the argument size
8762  _status = _logBuff.serializeFrom(
8763  static_cast<U8>(sizeof(FwSizeType))
8764  );
8765  FW_ASSERT(
8766  _status == Fw::FW_SERIALIZE_OK,
8767  static_cast<FwAssertArgType>(_status)
8768  );
8769 #endif
8770  _status = _logBuff.serializeFrom(actual);
8771  FW_ASSERT(
8772  _status == Fw::FW_SERIALIZE_OK,
8773  static_cast<FwAssertArgType>(_status)
8774  );
8775 
8776 #if FW_AMPCS_COMPATIBLE
8777  // Serialize the argument size
8778  _status = _logBuff.serializeFrom(
8779  static_cast<U8>(sizeof(FwSizeType))
8780  );
8781  FW_ASSERT(
8782  _status == Fw::FW_SERIALIZE_OK,
8783  static_cast<FwAssertArgType>(_status)
8784  );
8785 #endif
8786  _status = _logBuff.serializeFrom(capacity);
8787  FW_ASSERT(
8788  _status == Fw::FW_SERIALIZE_OK,
8789  static_cast<FwAssertArgType>(_status)
8790  );
8791 
8792  this->logOut_out(
8793  0,
8794  _id,
8795  _logTime,
8797  _logBuff
8798  );
8799  }
8800 
8801  // Emit the event on the text log port
8802 #if FW_ENABLE_TEXT_LOGGING
8803  if (this->isConnected_logTextOut_OutputPort(0)) {
8804 #if FW_OBJECT_NAMES == 1
8805  const char* _formatString =
8806  "(%s) %s: Argument size %" PRIu64 " exceeds the %" PRIu64 " byte argument buffer";
8807 #else
8808  const char* _formatString =
8809  "%s: Argument size %" PRIu64 " exceeds the %" PRIu64 " byte argument buffer";
8810 #endif
8811 
8812  Fw::TextLogString _logString;
8813  (void) _logString.format(
8814  _formatString,
8815 #if FW_OBJECT_NAMES == 1
8816  this->m_objName.toChar(),
8817 #endif
8818  "ArgSizeExceedsCapacity ",
8819  actual,
8820  capacity
8821  );
8822 
8823  this->logTextOut_out(
8824  0,
8825  _id,
8826  _logTime,
8828  _logString
8829  );
8830  }
8831 #endif
8832  }
8833 
8836  {
8837  // Get the time
8838  Fw::Time _logTime;
8839  if (this->isConnected_timeCaller_OutputPort(0)) {
8840  this->timeCaller_out(0, _logTime);
8841  }
8842 
8844 
8845  // Emit the event on the log port
8846  if (this->isConnected_logOut_OutputPort(0)) {
8847  Fw::LogBuffer _logBuff;
8849 
8850 #if FW_AMPCS_COMPATIBLE
8851  // Serialize the number of arguments
8852  _status = _logBuff.serializeFrom(static_cast<U8>(1));
8853  FW_ASSERT(
8854  _status == Fw::FW_SERIALIZE_OK,
8855  static_cast<FwAssertArgType>(_status)
8856  );
8857 #endif
8858 
8859 #if FW_AMPCS_COMPATIBLE
8860  // Serialize the argument size
8861  _status = _logBuff.serializeFrom(
8862  static_cast<U8>(sizeof(Svc::Fpy::StackSizeType))
8863  );
8864  FW_ASSERT(
8865  _status == Fw::FW_SERIALIZE_OK,
8866  static_cast<FwAssertArgType>(_status)
8867  );
8868 #endif
8869  _status = _logBuff.serializeFrom(argSize);
8870  FW_ASSERT(
8871  _status == Fw::FW_SERIALIZE_OK,
8872  static_cast<FwAssertArgType>(_status)
8873  );
8874 
8875  this->logOut_out(
8876  0,
8877  _id,
8878  _logTime,
8880  _logBuff
8881  );
8882  }
8883 
8884  // Emit the event on the text log port
8885 #if FW_ENABLE_TEXT_LOGGING
8886  if (this->isConnected_logTextOut_OutputPort(0)) {
8887 #if FW_OBJECT_NAMES == 1
8888  const char* _formatString =
8889  "(%s) %s: Arguments of size %" PRIu32 " would exceed max stack size.";
8890 #else
8891  const char* _formatString =
8892  "%s: Arguments of size %" PRIu32 " would exceed max stack size.";
8893 #endif
8894 
8895  Fw::TextLogString _logString;
8896  (void) _logString.format(
8897  _formatString,
8898 #if FW_OBJECT_NAMES == 1
8899  this->m_objName.toChar(),
8900 #endif
8901  "ArgTotalSizeExceedsStackLimit ",
8902  argSize
8903  );
8904 
8905  this->logTextOut_out(
8906  0,
8907  _id,
8908  _logTime,
8910  _logString
8911  );
8912  }
8913 #endif
8914  }
8915 
8918  {
8919  // Get the time
8920  Fw::Time _logTime;
8921  if (this->isConnected_timeCaller_OutputPort(0)) {
8922  this->timeCaller_out(0, _logTime);
8923  }
8924 
8925  const FwEventIdType _id = this->getIdBase() + EVENTID_SEQUENCEPAUSED;
8926 
8927  // Emit the event on the log port
8928  if (this->isConnected_logOut_OutputPort(0)) {
8929  Fw::LogBuffer _logBuff;
8931 
8932 #if FW_AMPCS_COMPATIBLE
8933  // Serialize the number of arguments
8934  _status = _logBuff.serializeFrom(static_cast<U8>(1));
8935  FW_ASSERT(
8936  _status == Fw::FW_SERIALIZE_OK,
8937  static_cast<FwAssertArgType>(_status)
8938  );
8939 #endif
8940 
8941 #if FW_AMPCS_COMPATIBLE
8942  // Serialize the argument size
8943  _status = _logBuff.serializeFrom(
8944  static_cast<U8>(sizeof(U32))
8945  );
8946  FW_ASSERT(
8947  _status == Fw::FW_SERIALIZE_OK,
8948  static_cast<FwAssertArgType>(_status)
8949  );
8950 #endif
8951  _status = _logBuff.serializeFrom(stmtIdx);
8952  FW_ASSERT(
8953  _status == Fw::FW_SERIALIZE_OK,
8954  static_cast<FwAssertArgType>(_status)
8955  );
8956 
8957  this->logOut_out(
8958  0,
8959  _id,
8960  _logTime,
8962  _logBuff
8963  );
8964  }
8965 
8966  // Emit the event on the text log port
8967 #if FW_ENABLE_TEXT_LOGGING
8968  if (this->isConnected_logTextOut_OutputPort(0)) {
8969 #if FW_OBJECT_NAMES == 1
8970  const char* _formatString =
8971  "(%s) %s: Sequence paused before dispatching directive index %" PRIu32 "";
8972 #else
8973  const char* _formatString =
8974  "%s: Sequence paused before dispatching directive index %" PRIu32 "";
8975 #endif
8976 
8977  Fw::TextLogString _logString;
8978  (void) _logString.format(
8979  _formatString,
8980 #if FW_OBJECT_NAMES == 1
8981  this->m_objName.toChar(),
8982 #endif
8983  "SequencePaused ",
8984  stmtIdx
8985  );
8986 
8987  this->logTextOut_out(
8988  0,
8989  _id,
8990  _logTime,
8992  _logString
8993  );
8994  }
8995 #endif
8996  }
8997 
9000  U32 breakpointIdx,
9001  bool breakOnce
9002  ) const
9003  {
9004  // Get the time
9005  Fw::Time _logTime;
9006  if (this->isConnected_timeCaller_OutputPort(0)) {
9007  this->timeCaller_out(0, _logTime);
9008  }
9009 
9010  const FwEventIdType _id = this->getIdBase() + EVENTID_BREAKPOINTSET;
9011 
9012  // Emit the event on the log port
9013  if (this->isConnected_logOut_OutputPort(0)) {
9014  Fw::LogBuffer _logBuff;
9016 
9017 #if FW_AMPCS_COMPATIBLE
9018  // Serialize the number of arguments
9019  _status = _logBuff.serializeFrom(static_cast<U8>(2));
9020  FW_ASSERT(
9021  _status == Fw::FW_SERIALIZE_OK,
9022  static_cast<FwAssertArgType>(_status)
9023  );
9024 #endif
9025 
9026 #if FW_AMPCS_COMPATIBLE
9027  // Serialize the argument size
9028  _status = _logBuff.serializeFrom(
9029  static_cast<U8>(sizeof(U32))
9030  );
9031  FW_ASSERT(
9032  _status == Fw::FW_SERIALIZE_OK,
9033  static_cast<FwAssertArgType>(_status)
9034  );
9035 #endif
9036  _status = _logBuff.serializeFrom(breakpointIdx);
9037  FW_ASSERT(
9038  _status == Fw::FW_SERIALIZE_OK,
9039  static_cast<FwAssertArgType>(_status)
9040  );
9041 
9042 #if FW_AMPCS_COMPATIBLE
9043  // Serialize the argument size
9044  _status = _logBuff.serializeFrom(
9045  static_cast<U8>(sizeof(U8))
9046  );
9047  FW_ASSERT(
9048  _status == Fw::FW_SERIALIZE_OK,
9049  static_cast<FwAssertArgType>(_status)
9050  );
9051 #endif
9052  _status = _logBuff.serializeFrom(breakOnce);
9053  FW_ASSERT(
9054  _status == Fw::FW_SERIALIZE_OK,
9055  static_cast<FwAssertArgType>(_status)
9056  );
9057 
9058  this->logOut_out(
9059  0,
9060  _id,
9061  _logTime,
9063  _logBuff
9064  );
9065  }
9066 
9067  // Emit the event on the text log port
9068 #if FW_ENABLE_TEXT_LOGGING
9069  if (this->isConnected_logTextOut_OutputPort(0)) {
9070 #if FW_OBJECT_NAMES == 1
9071  const char* _formatString =
9072  "(%s) %s: Breakpoint set before directive index %" PRIu32 ". Will break once: %d";
9073 #else
9074  const char* _formatString =
9075  "%s: Breakpoint set before directive index %" PRIu32 ". Will break once: %d";
9076 #endif
9077 
9078  Fw::TextLogString _logString;
9079  (void) _logString.format(
9080  _formatString,
9081 #if FW_OBJECT_NAMES == 1
9082  this->m_objName.toChar(),
9083 #endif
9084  "BreakpointSet ",
9085  breakpointIdx,
9086  breakOnce
9087  );
9088 
9089  this->logTextOut_out(
9090  0,
9091  _id,
9092  _logTime,
9094  _logString
9095  );
9096  }
9097 #endif
9098  }
9099 
9102  {
9103  // Get the time
9104  Fw::Time _logTime;
9105  if (this->isConnected_timeCaller_OutputPort(0)) {
9106  this->timeCaller_out(0, _logTime);
9107  }
9108 
9109  const FwEventIdType _id = this->getIdBase() + EVENTID_BREAKPOINTCLEARED;
9110 
9111  // Emit the event on the log port
9112  if (this->isConnected_logOut_OutputPort(0)) {
9113  Fw::LogBuffer _logBuff;
9114 
9115 #if FW_AMPCS_COMPATIBLE
9117  // Serialize the number of arguments
9118  _status = _logBuff.serializeFrom(static_cast<U8>(0));
9119  FW_ASSERT(
9120  _status == Fw::FW_SERIALIZE_OK,
9121  static_cast<FwAssertArgType>(_status)
9122  );
9123 #endif
9124 
9125  this->logOut_out(
9126  0,
9127  _id,
9128  _logTime,
9130  _logBuff
9131  );
9132  }
9133 
9134  // Emit the event on the text log port
9135 #if FW_ENABLE_TEXT_LOGGING
9136  if (this->isConnected_logTextOut_OutputPort(0)) {
9137 #if FW_OBJECT_NAMES == 1
9138  const char* _formatString =
9139  "(%s) %s: Breakpoint cleared";
9140 #else
9141  const char* _formatString =
9142  "%s: Breakpoint cleared";
9143 #endif
9144 
9145  Fw::TextLogString _logString;
9146  (void) _logString.format(
9147  _formatString,
9148 #if FW_OBJECT_NAMES == 1
9149  this->m_objName.toChar(),
9150 #endif
9151  "BreakpointCleared "
9152  );
9153 
9154  this->logTextOut_out(
9155  0,
9156  _id,
9157  _logTime,
9159  _logString
9160  );
9161  }
9162 #endif
9163  }
9164 
9167  const Fw::StringBase& filePath,
9168  const Fw::StringBase& message
9169  ) const
9170  {
9171  // Get the time
9172  Fw::Time _logTime;
9173  if (this->isConnected_timeCaller_OutputPort(0)) {
9174  this->timeCaller_out(0, _logTime);
9175  }
9176 
9177  const FwEventIdType _id = this->getIdBase() + EVENTID_LOGFATAL;
9178 
9179  // Emit the event on the log port
9180  if (this->isConnected_logOut_OutputPort(0)) {
9181  Fw::LogBuffer _logBuff;
9183 
9184 #if FW_AMPCS_COMPATIBLE
9185  // Serialize the number of arguments
9186  _status = _logBuff.serializeFrom(static_cast<U8>(2 + 1));
9187  FW_ASSERT(
9188  _status == Fw::FW_SERIALIZE_OK,
9189  static_cast<FwAssertArgType>(_status)
9190  );
9191 
9192  // For FATAL, add stack size of 4 and a dummy entry. No support for stacks yet.
9193  _status = _logBuff.serializeFrom(static_cast<U8>(4));
9194  FW_ASSERT(
9195  _status == Fw::FW_SERIALIZE_OK,
9196  static_cast<FwAssertArgType>(_status)
9197  );
9198 
9199  _status = _logBuff.serializeFrom(static_cast<U32>(0));
9200  FW_ASSERT(
9201  _status == Fw::FW_SERIALIZE_OK,
9202  static_cast<FwAssertArgType>(_status)
9203  );
9204 #endif
9205 
9206  _status = filePath.serializeTo(
9207  _logBuff,
9208  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
9209  );
9210  FW_ASSERT(
9211  _status == Fw::FW_SERIALIZE_OK,
9212  static_cast<FwAssertArgType>(_status)
9213  );
9214 
9215  _status = message.serializeTo(
9216  _logBuff,
9217  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
9218  );
9219  FW_ASSERT(
9220  _status == Fw::FW_SERIALIZE_OK,
9221  static_cast<FwAssertArgType>(_status)
9222  );
9223 
9224  this->logOut_out(
9225  0,
9226  _id,
9227  _logTime,
9229  _logBuff
9230  );
9231  }
9232 
9233  // Emit the event on the text log port
9234 #if FW_ENABLE_TEXT_LOGGING
9235  if (this->isConnected_logTextOut_OutputPort(0)) {
9236 #if FW_OBJECT_NAMES == 1
9237  const char* _formatString =
9238  "(%s) %s: Sequence %s: %s";
9239 #else
9240  const char* _formatString =
9241  "%s: Sequence %s: %s";
9242 #endif
9243 
9244  Fw::TextLogString _logString;
9245  (void) _logString.format(
9246  _formatString,
9247 #if FW_OBJECT_NAMES == 1
9248  this->m_objName.toChar(),
9249 #endif
9250  "LogFatal ",
9251  filePath.toChar(),
9252  message.toChar()
9253  );
9254 
9255  this->logTextOut_out(
9256  0,
9257  _id,
9258  _logTime,
9260  _logString
9261  );
9262  }
9263 #endif
9264  }
9265 
9268  const Fw::StringBase& filePath,
9269  const Fw::StringBase& message
9270  ) const
9271  {
9272  // Get the time
9273  Fw::Time _logTime;
9274  if (this->isConnected_timeCaller_OutputPort(0)) {
9275  this->timeCaller_out(0, _logTime);
9276  }
9277 
9278  const FwEventIdType _id = this->getIdBase() + EVENTID_LOGWARNINGHI;
9279 
9280  // Emit the event on the log port
9281  if (this->isConnected_logOut_OutputPort(0)) {
9282  Fw::LogBuffer _logBuff;
9284 
9285 #if FW_AMPCS_COMPATIBLE
9286  // Serialize the number of arguments
9287  _status = _logBuff.serializeFrom(static_cast<U8>(2));
9288  FW_ASSERT(
9289  _status == Fw::FW_SERIALIZE_OK,
9290  static_cast<FwAssertArgType>(_status)
9291  );
9292 #endif
9293 
9294  _status = filePath.serializeTo(
9295  _logBuff,
9296  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
9297  );
9298  FW_ASSERT(
9299  _status == Fw::FW_SERIALIZE_OK,
9300  static_cast<FwAssertArgType>(_status)
9301  );
9302 
9303  _status = message.serializeTo(
9304  _logBuff,
9305  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
9306  );
9307  FW_ASSERT(
9308  _status == Fw::FW_SERIALIZE_OK,
9309  static_cast<FwAssertArgType>(_status)
9310  );
9311 
9312  this->logOut_out(
9313  0,
9314  _id,
9315  _logTime,
9317  _logBuff
9318  );
9319  }
9320 
9321  // Emit the event on the text log port
9322 #if FW_ENABLE_TEXT_LOGGING
9323  if (this->isConnected_logTextOut_OutputPort(0)) {
9324 #if FW_OBJECT_NAMES == 1
9325  const char* _formatString =
9326  "(%s) %s: Sequence %s: %s";
9327 #else
9328  const char* _formatString =
9329  "%s: Sequence %s: %s";
9330 #endif
9331 
9332  Fw::TextLogString _logString;
9333  (void) _logString.format(
9334  _formatString,
9335 #if FW_OBJECT_NAMES == 1
9336  this->m_objName.toChar(),
9337 #endif
9338  "LogWarningHi ",
9339  filePath.toChar(),
9340  message.toChar()
9341  );
9342 
9343  this->logTextOut_out(
9344  0,
9345  _id,
9346  _logTime,
9348  _logString
9349  );
9350  }
9351 #endif
9352  }
9353 
9356  const Fw::StringBase& filePath,
9357  const Fw::StringBase& message
9358  ) const
9359  {
9360  // Get the time
9361  Fw::Time _logTime;
9362  if (this->isConnected_timeCaller_OutputPort(0)) {
9363  this->timeCaller_out(0, _logTime);
9364  }
9365 
9366  const FwEventIdType _id = this->getIdBase() + EVENTID_LOGWARNINGLO;
9367 
9368  // Emit the event on the log port
9369  if (this->isConnected_logOut_OutputPort(0)) {
9370  Fw::LogBuffer _logBuff;
9372 
9373 #if FW_AMPCS_COMPATIBLE
9374  // Serialize the number of arguments
9375  _status = _logBuff.serializeFrom(static_cast<U8>(2));
9376  FW_ASSERT(
9377  _status == Fw::FW_SERIALIZE_OK,
9378  static_cast<FwAssertArgType>(_status)
9379  );
9380 #endif
9381 
9382  _status = filePath.serializeTo(
9383  _logBuff,
9384  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
9385  );
9386  FW_ASSERT(
9387  _status == Fw::FW_SERIALIZE_OK,
9388  static_cast<FwAssertArgType>(_status)
9389  );
9390 
9391  _status = message.serializeTo(
9392  _logBuff,
9393  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
9394  );
9395  FW_ASSERT(
9396  _status == Fw::FW_SERIALIZE_OK,
9397  static_cast<FwAssertArgType>(_status)
9398  );
9399 
9400  this->logOut_out(
9401  0,
9402  _id,
9403  _logTime,
9405  _logBuff
9406  );
9407  }
9408 
9409  // Emit the event on the text log port
9410 #if FW_ENABLE_TEXT_LOGGING
9411  if (this->isConnected_logTextOut_OutputPort(0)) {
9412 #if FW_OBJECT_NAMES == 1
9413  const char* _formatString =
9414  "(%s) %s: Sequence %s: %s";
9415 #else
9416  const char* _formatString =
9417  "%s: Sequence %s: %s";
9418 #endif
9419 
9420  Fw::TextLogString _logString;
9421  (void) _logString.format(
9422  _formatString,
9423 #if FW_OBJECT_NAMES == 1
9424  this->m_objName.toChar(),
9425 #endif
9426  "LogWarningLo ",
9427  filePath.toChar(),
9428  message.toChar()
9429  );
9430 
9431  this->logTextOut_out(
9432  0,
9433  _id,
9434  _logTime,
9436  _logString
9437  );
9438  }
9439 #endif
9440  }
9441 
9444  const Fw::StringBase& filePath,
9445  const Fw::StringBase& message
9446  ) const
9447  {
9448  // Get the time
9449  Fw::Time _logTime;
9450  if (this->isConnected_timeCaller_OutputPort(0)) {
9451  this->timeCaller_out(0, _logTime);
9452  }
9453 
9454  const FwEventIdType _id = this->getIdBase() + EVENTID_LOGCOMMAND;
9455 
9456  // Emit the event on the log port
9457  if (this->isConnected_logOut_OutputPort(0)) {
9458  Fw::LogBuffer _logBuff;
9460 
9461 #if FW_AMPCS_COMPATIBLE
9462  // Serialize the number of arguments
9463  _status = _logBuff.serializeFrom(static_cast<U8>(2));
9464  FW_ASSERT(
9465  _status == Fw::FW_SERIALIZE_OK,
9466  static_cast<FwAssertArgType>(_status)
9467  );
9468 #endif
9469 
9470  _status = filePath.serializeTo(
9471  _logBuff,
9472  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
9473  );
9474  FW_ASSERT(
9475  _status == Fw::FW_SERIALIZE_OK,
9476  static_cast<FwAssertArgType>(_status)
9477  );
9478 
9479  _status = message.serializeTo(
9480  _logBuff,
9481  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
9482  );
9483  FW_ASSERT(
9484  _status == Fw::FW_SERIALIZE_OK,
9485  static_cast<FwAssertArgType>(_status)
9486  );
9487 
9488  this->logOut_out(
9489  0,
9490  _id,
9491  _logTime,
9493  _logBuff
9494  );
9495  }
9496 
9497  // Emit the event on the text log port
9498 #if FW_ENABLE_TEXT_LOGGING
9499  if (this->isConnected_logTextOut_OutputPort(0)) {
9500 #if FW_OBJECT_NAMES == 1
9501  const char* _formatString =
9502  "(%s) %s: Sequence %s: %s";
9503 #else
9504  const char* _formatString =
9505  "%s: Sequence %s: %s";
9506 #endif
9507 
9508  Fw::TextLogString _logString;
9509  (void) _logString.format(
9510  _formatString,
9511 #if FW_OBJECT_NAMES == 1
9512  this->m_objName.toChar(),
9513 #endif
9514  "LogCommand ",
9515  filePath.toChar(),
9516  message.toChar()
9517  );
9518 
9519  this->logTextOut_out(
9520  0,
9521  _id,
9522  _logTime,
9524  _logString
9525  );
9526  }
9527 #endif
9528  }
9529 
9532  const Fw::StringBase& filePath,
9533  const Fw::StringBase& message
9534  ) const
9535  {
9536  // Get the time
9537  Fw::Time _logTime;
9538  if (this->isConnected_timeCaller_OutputPort(0)) {
9539  this->timeCaller_out(0, _logTime);
9540  }
9541 
9542  const FwEventIdType _id = this->getIdBase() + EVENTID_LOGACTIVITYHI;
9543 
9544  // Emit the event on the log port
9545  if (this->isConnected_logOut_OutputPort(0)) {
9546  Fw::LogBuffer _logBuff;
9548 
9549 #if FW_AMPCS_COMPATIBLE
9550  // Serialize the number of arguments
9551  _status = _logBuff.serializeFrom(static_cast<U8>(2));
9552  FW_ASSERT(
9553  _status == Fw::FW_SERIALIZE_OK,
9554  static_cast<FwAssertArgType>(_status)
9555  );
9556 #endif
9557 
9558  _status = filePath.serializeTo(
9559  _logBuff,
9560  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
9561  );
9562  FW_ASSERT(
9563  _status == Fw::FW_SERIALIZE_OK,
9564  static_cast<FwAssertArgType>(_status)
9565  );
9566 
9567  _status = message.serializeTo(
9568  _logBuff,
9569  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
9570  );
9571  FW_ASSERT(
9572  _status == Fw::FW_SERIALIZE_OK,
9573  static_cast<FwAssertArgType>(_status)
9574  );
9575 
9576  this->logOut_out(
9577  0,
9578  _id,
9579  _logTime,
9581  _logBuff
9582  );
9583  }
9584 
9585  // Emit the event on the text log port
9586 #if FW_ENABLE_TEXT_LOGGING
9587  if (this->isConnected_logTextOut_OutputPort(0)) {
9588 #if FW_OBJECT_NAMES == 1
9589  const char* _formatString =
9590  "(%s) %s: Sequence %s: %s";
9591 #else
9592  const char* _formatString =
9593  "%s: Sequence %s: %s";
9594 #endif
9595 
9596  Fw::TextLogString _logString;
9597  (void) _logString.format(
9598  _formatString,
9599 #if FW_OBJECT_NAMES == 1
9600  this->m_objName.toChar(),
9601 #endif
9602  "LogActivityHi ",
9603  filePath.toChar(),
9604  message.toChar()
9605  );
9606 
9607  this->logTextOut_out(
9608  0,
9609  _id,
9610  _logTime,
9612  _logString
9613  );
9614  }
9615 #endif
9616  }
9617 
9620  const Fw::StringBase& filePath,
9621  const Fw::StringBase& message
9622  ) const
9623  {
9624  // Get the time
9625  Fw::Time _logTime;
9626  if (this->isConnected_timeCaller_OutputPort(0)) {
9627  this->timeCaller_out(0, _logTime);
9628  }
9629 
9630  const FwEventIdType _id = this->getIdBase() + EVENTID_LOGACTIVITYLO;
9631 
9632  // Emit the event on the log port
9633  if (this->isConnected_logOut_OutputPort(0)) {
9634  Fw::LogBuffer _logBuff;
9636 
9637 #if FW_AMPCS_COMPATIBLE
9638  // Serialize the number of arguments
9639  _status = _logBuff.serializeFrom(static_cast<U8>(2));
9640  FW_ASSERT(
9641  _status == Fw::FW_SERIALIZE_OK,
9642  static_cast<FwAssertArgType>(_status)
9643  );
9644 #endif
9645 
9646  _status = filePath.serializeTo(
9647  _logBuff,
9648  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
9649  );
9650  FW_ASSERT(
9651  _status == Fw::FW_SERIALIZE_OK,
9652  static_cast<FwAssertArgType>(_status)
9653  );
9654 
9655  _status = message.serializeTo(
9656  _logBuff,
9657  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
9658  );
9659  FW_ASSERT(
9660  _status == Fw::FW_SERIALIZE_OK,
9661  static_cast<FwAssertArgType>(_status)
9662  );
9663 
9664  this->logOut_out(
9665  0,
9666  _id,
9667  _logTime,
9669  _logBuff
9670  );
9671  }
9672 
9673  // Emit the event on the text log port
9674 #if FW_ENABLE_TEXT_LOGGING
9675  if (this->isConnected_logTextOut_OutputPort(0)) {
9676 #if FW_OBJECT_NAMES == 1
9677  const char* _formatString =
9678  "(%s) %s: Sequence %s: %s";
9679 #else
9680  const char* _formatString =
9681  "%s: Sequence %s: %s";
9682 #endif
9683 
9684  Fw::TextLogString _logString;
9685  (void) _logString.format(
9686  _formatString,
9687 #if FW_OBJECT_NAMES == 1
9688  this->m_objName.toChar(),
9689 #endif
9690  "LogActivityLo ",
9691  filePath.toChar(),
9692  message.toChar()
9693  );
9694 
9695  this->logTextOut_out(
9696  0,
9697  _id,
9698  _logTime,
9700  _logString
9701  );
9702  }
9703 #endif
9704  }
9705 
9708  const Fw::StringBase& filePath,
9709  const Fw::StringBase& message
9710  ) const
9711  {
9712  // Get the time
9713  Fw::Time _logTime;
9714  if (this->isConnected_timeCaller_OutputPort(0)) {
9715  this->timeCaller_out(0, _logTime);
9716  }
9717 
9718  const FwEventIdType _id = this->getIdBase() + EVENTID_LOGDIAGNOSTIC;
9719 
9720  // Emit the event on the log port
9721  if (this->isConnected_logOut_OutputPort(0)) {
9722  Fw::LogBuffer _logBuff;
9724 
9725 #if FW_AMPCS_COMPATIBLE
9726  // Serialize the number of arguments
9727  _status = _logBuff.serializeFrom(static_cast<U8>(2));
9728  FW_ASSERT(
9729  _status == Fw::FW_SERIALIZE_OK,
9730  static_cast<FwAssertArgType>(_status)
9731  );
9732 #endif
9733 
9734  _status = filePath.serializeTo(
9735  _logBuff,
9736  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
9737  );
9738  FW_ASSERT(
9739  _status == Fw::FW_SERIALIZE_OK,
9740  static_cast<FwAssertArgType>(_status)
9741  );
9742 
9743  _status = message.serializeTo(
9744  _logBuff,
9745  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
9746  );
9747  FW_ASSERT(
9748  _status == Fw::FW_SERIALIZE_OK,
9749  static_cast<FwAssertArgType>(_status)
9750  );
9751 
9752  this->logOut_out(
9753  0,
9754  _id,
9755  _logTime,
9757  _logBuff
9758  );
9759  }
9760 
9761  // Emit the event on the text log port
9762 #if FW_ENABLE_TEXT_LOGGING
9763  if (this->isConnected_logTextOut_OutputPort(0)) {
9764 #if FW_OBJECT_NAMES == 1
9765  const char* _formatString =
9766  "(%s) %s: Sequence %s: %s";
9767 #else
9768  const char* _formatString =
9769  "%s: Sequence %s: %s";
9770 #endif
9771 
9772  Fw::TextLogString _logString;
9773  (void) _logString.format(
9774  _formatString,
9775 #if FW_OBJECT_NAMES == 1
9776  this->m_objName.toChar(),
9777 #endif
9778  "LogDiagnostic ",
9779  filePath.toChar(),
9780  message.toChar()
9781  );
9782 
9783  this->logTextOut_out(
9784  0,
9785  _id,
9786  _logTime,
9788  _logString
9789  );
9790  }
9791 #endif
9792  }
9793 
9796  const Svc::Fpy::DirectiveId& directive,
9797  I32 state
9798  ) const
9799  {
9800  // Get the time
9801  Fw::Time _logTime;
9802  if (this->isConnected_timeCaller_OutputPort(0)) {
9803  this->timeCaller_out(0, _logTime);
9804  }
9805 
9807 
9808  // Emit the event on the log port
9809  if (this->isConnected_logOut_OutputPort(0)) {
9810  Fw::LogBuffer _logBuff;
9812 
9813 #if FW_AMPCS_COMPATIBLE
9814  // Serialize the number of arguments
9815  _status = _logBuff.serializeFrom(static_cast<U8>(2));
9816  FW_ASSERT(
9817  _status == Fw::FW_SERIALIZE_OK,
9818  static_cast<FwAssertArgType>(_status)
9819  );
9820 #endif
9821 
9822 #if FW_AMPCS_COMPATIBLE
9823  // Serialize the argument size
9824  _status = _logBuff.serializeFrom(
9826  );
9827  FW_ASSERT(
9828  _status == Fw::FW_SERIALIZE_OK,
9829  static_cast<FwAssertArgType>(_status)
9830  );
9831 #endif
9832  _status = _logBuff.serializeFrom(directive);
9833  FW_ASSERT(
9834  _status == Fw::FW_SERIALIZE_OK,
9835  static_cast<FwAssertArgType>(_status)
9836  );
9837 
9838 #if FW_AMPCS_COMPATIBLE
9839  // Serialize the argument size
9840  _status = _logBuff.serializeFrom(
9841  static_cast<U8>(sizeof(I32))
9842  );
9843  FW_ASSERT(
9844  _status == Fw::FW_SERIALIZE_OK,
9845  static_cast<FwAssertArgType>(_status)
9846  );
9847 #endif
9848  _status = _logBuff.serializeFrom(state);
9849  FW_ASSERT(
9850  _status == Fw::FW_SERIALIZE_OK,
9851  static_cast<FwAssertArgType>(_status)
9852  );
9853 
9854  this->logOut_out(
9855  0,
9856  _id,
9857  _logTime,
9859  _logBuff
9860  );
9861  }
9862 
9863  // Emit the event on the text log port
9864 #if FW_ENABLE_TEXT_LOGGING
9865  if (this->isConnected_logTextOut_OutputPort(0)) {
9866 #if FW_OBJECT_NAMES == 1
9867  const char* _formatString =
9868  "(%s) %s: Ignored directive %s because the sequencer was not awaiting a statement response (was in state %" PRIi32 ")";
9869 #else
9870  const char* _formatString =
9871  "%s: Ignored directive %s because the sequencer was not awaiting a statement response (was in state %" PRIi32 ")";
9872 #endif
9873 
9874  Fw::String directiveStr;
9875  directive.toString(directiveStr);
9876 
9877  Fw::TextLogString _logString;
9878  (void) _logString.format(
9879  _formatString,
9880 #if FW_OBJECT_NAMES == 1
9881  this->m_objName.toChar(),
9882 #endif
9883  "DirectiveWhileNotAwaiting ",
9884  directiveStr.toChar(),
9885  state
9886  );
9887 
9888  this->logTextOut_out(
9889  0,
9890  _id,
9891  _logTime,
9893  _logString
9894  );
9895  }
9896 #endif
9897  }
9898 
9901  const Svc::Fpy::DirectiveId& directive,
9902  U64 oldSequenceIdx,
9903  U64 currentSequenceIdx
9904  ) const
9905  {
9906  // Get the time
9907  Fw::Time _logTime;
9908  if (this->isConnected_timeCaller_OutputPort(0)) {
9909  this->timeCaller_out(0, _logTime);
9910  }
9911 
9913 
9914  // Emit the event on the log port
9915  if (this->isConnected_logOut_OutputPort(0)) {
9916  Fw::LogBuffer _logBuff;
9918 
9919 #if FW_AMPCS_COMPATIBLE
9920  // Serialize the number of arguments
9921  _status = _logBuff.serializeFrom(static_cast<U8>(3));
9922  FW_ASSERT(
9923  _status == Fw::FW_SERIALIZE_OK,
9924  static_cast<FwAssertArgType>(_status)
9925  );
9926 #endif
9927 
9928 #if FW_AMPCS_COMPATIBLE
9929  // Serialize the argument size
9930  _status = _logBuff.serializeFrom(
9932  );
9933  FW_ASSERT(
9934  _status == Fw::FW_SERIALIZE_OK,
9935  static_cast<FwAssertArgType>(_status)
9936  );
9937 #endif
9938  _status = _logBuff.serializeFrom(directive);
9939  FW_ASSERT(
9940  _status == Fw::FW_SERIALIZE_OK,
9941  static_cast<FwAssertArgType>(_status)
9942  );
9943 
9944 #if FW_AMPCS_COMPATIBLE
9945  // Serialize the argument size
9946  _status = _logBuff.serializeFrom(
9947  static_cast<U8>(sizeof(U64))
9948  );
9949  FW_ASSERT(
9950  _status == Fw::FW_SERIALIZE_OK,
9951  static_cast<FwAssertArgType>(_status)
9952  );
9953 #endif
9954  _status = _logBuff.serializeFrom(oldSequenceIdx);
9955  FW_ASSERT(
9956  _status == Fw::FW_SERIALIZE_OK,
9957  static_cast<FwAssertArgType>(_status)
9958  );
9959 
9960 #if FW_AMPCS_COMPATIBLE
9961  // Serialize the argument size
9962  _status = _logBuff.serializeFrom(
9963  static_cast<U8>(sizeof(U64))
9964  );
9965  FW_ASSERT(
9966  _status == Fw::FW_SERIALIZE_OK,
9967  static_cast<FwAssertArgType>(_status)
9968  );
9969 #endif
9970  _status = _logBuff.serializeFrom(currentSequenceIdx);
9971  FW_ASSERT(
9972  _status == Fw::FW_SERIALIZE_OK,
9973  static_cast<FwAssertArgType>(_status)
9974  );
9975 
9976  this->logOut_out(
9977  0,
9978  _id,
9979  _logTime,
9981  _logBuff
9982  );
9983  }
9984 
9985  // Emit the event on the text log port
9986 #if FW_ENABLE_TEXT_LOGGING
9987  if (this->isConnected_logTextOut_OutputPort(0)) {
9988 #if FW_OBJECT_NAMES == 1
9989  const char* _formatString =
9990  "(%s) %s: Ignored directive %s because it was from a previous sequence, not the current one (old idx: %" PRIu64 ", current idx: %" PRIu64 ")";
9991 #else
9992  const char* _formatString =
9993  "%s: Ignored directive %s because it was from a previous sequence, not the current one (old idx: %" PRIu64 ", current idx: %" PRIu64 ")";
9994 #endif
9995 
9996  Fw::String directiveStr;
9997  directive.toString(directiveStr);
9998 
9999  Fw::TextLogString _logString;
10000  (void) _logString.format(
10001  _formatString,
10002 #if FW_OBJECT_NAMES == 1
10003  this->m_objName.toChar(),
10004 #endif
10005  "DirectiveFromOldSequence ",
10006  directiveStr.toChar(),
10007  oldSequenceIdx,
10008  currentSequenceIdx
10009  );
10010 
10011  this->logTextOut_out(
10012  0,
10013  _id,
10014  _logTime,
10016  _logString
10017  );
10018  }
10019 #endif
10020  }
10021 
10024  const Fw::StringBase& filePath,
10025  const Fw::StringBase& sandboxDir
10026  ) const
10027  {
10028  // Get the time
10029  Fw::Time _logTime;
10030  if (this->isConnected_timeCaller_OutputPort(0)) {
10031  this->timeCaller_out(0, _logTime);
10032  }
10033 
10034  const FwEventIdType _id = this->getIdBase() + EVENTID_FILEOUTSIDESANDBOX;
10035 
10036  // Emit the event on the log port
10037  if (this->isConnected_logOut_OutputPort(0)) {
10038  Fw::LogBuffer _logBuff;
10040 
10041 #if FW_AMPCS_COMPATIBLE
10042  // Serialize the number of arguments
10043  _status = _logBuff.serializeFrom(static_cast<U8>(2));
10044  FW_ASSERT(
10045  _status == Fw::FW_SERIALIZE_OK,
10046  static_cast<FwAssertArgType>(_status)
10047  );
10048 #endif
10049 
10050  _status = filePath.serializeTo(
10051  _logBuff,
10052  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
10053  );
10054  FW_ASSERT(
10055  _status == Fw::FW_SERIALIZE_OK,
10056  static_cast<FwAssertArgType>(_status)
10057  );
10058 
10059  _status = sandboxDir.serializeTo(
10060  _logBuff,
10061  FW_MIN(static_cast<FwSizeType>(FW_LOG_STRING_MAX_SIZE), static_cast<FwSizeType>(FW_FIXED_LENGTH_STRING_SIZE))
10062  );
10063  FW_ASSERT(
10064  _status == Fw::FW_SERIALIZE_OK,
10065  static_cast<FwAssertArgType>(_status)
10066  );
10067 
10068  this->logOut_out(
10069  0,
10070  _id,
10071  _logTime,
10073  _logBuff
10074  );
10075  }
10076 
10077  // Emit the event on the text log port
10078 #if FW_ENABLE_TEXT_LOGGING
10079  if (this->isConnected_logTextOut_OutputPort(0)) {
10080 #if FW_OBJECT_NAMES == 1
10081  const char* _formatString =
10082  "(%s) %s: File %s is outside the configured sandbox directory %s";
10083 #else
10084  const char* _formatString =
10085  "%s: File %s is outside the configured sandbox directory %s";
10086 #endif
10087 
10088  Fw::TextLogString _logString;
10089  (void) _logString.format(
10090  _formatString,
10091 #if FW_OBJECT_NAMES == 1
10092  this->m_objName.toChar(),
10093 #endif
10094  "FileOutsideSandbox ",
10095  filePath.toChar(),
10096  sandboxDir.toChar()
10097  );
10098 
10099  this->logTextOut_out(
10100  0,
10101  _id,
10102  _logTime,
10104  _logString
10105  );
10106  }
10107 #endif
10108  }
10109 
10110  // ----------------------------------------------------------------------
10111  // Telemetry serialized write
10112  // ----------------------------------------------------------------------
10113 
10116  FwChanIdType id,
10117  Fw::TlmBuffer& _tlmBuff,
10118  Fw::Time _tlmTime
10119  ) const
10120  {
10121  if (this->isConnected_tlmOut_OutputPort(0)) {
10122  if (
10124  (_tlmTime == Fw::ZERO_TIME)
10125  ) {
10126  this->timeCaller_out(0, _tlmTime);
10127  }
10128 
10129  FwChanIdType _id;
10130  _id = this->getIdBase() + id;
10131 
10132  this->tlmOut_out(
10133  0,
10134  _id,
10135  _tlmTime,
10136  _tlmBuff
10137  );
10138  }
10139  }
10140 
10141  // ----------------------------------------------------------------------
10142  // Telemetry write functions
10143  // ----------------------------------------------------------------------
10144 
10147  FwEnumStoreType arg,
10148  Fw::Time _tlmTime
10149  )
10150  {
10151  // Check to see if it is the first time
10152  if (not this->m_first_update_State) {
10153  // Check to see if value has changed. If not, don't write it.
10154  if (arg == this->m_last_State) {
10155  return;
10156  }
10157  else {
10158  this->m_last_State = arg;
10159  }
10160  }
10161  else {
10162  this->m_first_update_State = false;
10163  this->m_last_State = arg;
10164  }
10165 
10166  if (this->isConnected_tlmOut_OutputPort(0)) {
10167  Fw::TlmBuffer _tlmBuff;
10168  Fw::SerializeStatus _stat = _tlmBuff.serializeFrom(arg);
10169  FW_ASSERT(
10170  _stat == Fw::FW_SERIALIZE_OK,
10171  static_cast<FwAssertArgType>(_stat)
10172  );
10173 
10174  this->tlmWrite(
10176  _tlmBuff,
10177  _tlmTime
10178  );
10179  }
10180  }
10181 
10184  U64 arg,
10185  Fw::Time _tlmTime
10186  )
10187  {
10188  // Check to see if it is the first time
10189  if (not this->m_first_update_SequencesSucceeded) {
10190  // Check to see if value has changed. If not, don't write it.
10191  if (arg == this->m_last_SequencesSucceeded) {
10192  return;
10193  }
10194  else {
10195  this->m_last_SequencesSucceeded = arg;
10196  }
10197  }
10198  else {
10199  this->m_first_update_SequencesSucceeded = false;
10200  this->m_last_SequencesSucceeded = arg;
10201  }
10202 
10203  if (this->isConnected_tlmOut_OutputPort(0)) {
10204  Fw::TlmBuffer _tlmBuff;
10205  Fw::SerializeStatus _stat = _tlmBuff.serializeFrom(arg);
10206  FW_ASSERT(
10207  _stat == Fw::FW_SERIALIZE_OK,
10208  static_cast<FwAssertArgType>(_stat)
10209  );
10210 
10211  this->tlmWrite(
10213  _tlmBuff,
10214  _tlmTime
10215  );
10216  }
10217  }
10218 
10221  U64 arg,
10222  Fw::Time _tlmTime
10223  )
10224  {
10225  // Check to see if it is the first time
10226  if (not this->m_first_update_SequencesFailed) {
10227  // Check to see if value has changed. If not, don't write it.
10228  if (arg == this->m_last_SequencesFailed) {
10229  return;
10230  }
10231  else {
10232  this->m_last_SequencesFailed = arg;
10233  }
10234  }
10235  else {
10236  this->m_first_update_SequencesFailed = false;
10237  this->m_last_SequencesFailed = arg;
10238  }
10239 
10240  if (this->isConnected_tlmOut_OutputPort(0)) {
10241  Fw::TlmBuffer _tlmBuff;
10242  Fw::SerializeStatus _stat = _tlmBuff.serializeFrom(arg);
10243  FW_ASSERT(
10244  _stat == Fw::FW_SERIALIZE_OK,
10245  static_cast<FwAssertArgType>(_stat)
10246  );
10247 
10248  this->tlmWrite(
10250  _tlmBuff,
10251  _tlmTime
10252  );
10253  }
10254  }
10255 
10258  U64 arg,
10259  Fw::Time _tlmTime
10260  )
10261  {
10262  // Check to see if it is the first time
10263  if (not this->m_first_update_SequencesCancelled) {
10264  // Check to see if value has changed. If not, don't write it.
10265  if (arg == this->m_last_SequencesCancelled) {
10266  return;
10267  }
10268  else {
10269  this->m_last_SequencesCancelled = arg;
10270  }
10271  }
10272  else {
10273  this->m_first_update_SequencesCancelled = false;
10274  this->m_last_SequencesCancelled = arg;
10275  }
10276 
10277  if (this->isConnected_tlmOut_OutputPort(0)) {
10278  Fw::TlmBuffer _tlmBuff;
10279  Fw::SerializeStatus _stat = _tlmBuff.serializeFrom(arg);
10280  FW_ASSERT(
10281  _stat == Fw::FW_SERIALIZE_OK,
10282  static_cast<FwAssertArgType>(_stat)
10283  );
10284 
10285  this->tlmWrite(
10287  _tlmBuff,
10288  _tlmTime
10289  );
10290  }
10291  }
10292 
10295  U64 arg,
10296  Fw::Time _tlmTime
10297  )
10298  {
10299  // Check to see if it is the first time
10300  if (not this->m_first_update_StatementsDispatched) {
10301  // Check to see if value has changed. If not, don't write it.
10302  if (arg == this->m_last_StatementsDispatched) {
10303  return;
10304  }
10305  else {
10306  this->m_last_StatementsDispatched = arg;
10307  }
10308  }
10309  else {
10310  this->m_first_update_StatementsDispatched = false;
10311  this->m_last_StatementsDispatched = arg;
10312  }
10313 
10314  if (this->isConnected_tlmOut_OutputPort(0)) {
10315  Fw::TlmBuffer _tlmBuff;
10316  Fw::SerializeStatus _stat = _tlmBuff.serializeFrom(arg);
10317  FW_ASSERT(
10318  _stat == Fw::FW_SERIALIZE_OK,
10319  static_cast<FwAssertArgType>(_stat)
10320  );
10321 
10322  this->tlmWrite(
10324  _tlmBuff,
10325  _tlmTime
10326  );
10327  }
10328  }
10329 
10332  U64 arg,
10333  Fw::Time _tlmTime
10334  )
10335  {
10336  // Check to see if it is the first time
10337  if (not this->m_first_update_StatementsFailed) {
10338  // Check to see if value has changed. If not, don't write it.
10339  if (arg == this->m_last_StatementsFailed) {
10340  return;
10341  }
10342  else {
10343  this->m_last_StatementsFailed = arg;
10344  }
10345  }
10346  else {
10347  this->m_first_update_StatementsFailed = false;
10348  this->m_last_StatementsFailed = arg;
10349  }
10350 
10351  if (this->isConnected_tlmOut_OutputPort(0)) {
10352  Fw::TlmBuffer _tlmBuff;
10353  Fw::SerializeStatus _stat = _tlmBuff.serializeFrom(arg);
10354  FW_ASSERT(
10355  _stat == Fw::FW_SERIALIZE_OK,
10356  static_cast<FwAssertArgType>(_stat)
10357  );
10358 
10359  this->tlmWrite(
10361  _tlmBuff,
10362  _tlmTime
10363  );
10364  }
10365  }
10366 
10369  const Svc::Fpy::DirectiveErrorCode& arg,
10370  Fw::Time _tlmTime
10371  )
10372  {
10373  // Check to see if it is the first time
10374  if (not this->m_first_update_LastDirectiveError) {
10375  // Check to see if value has changed. If not, don't write it.
10376  if (arg == this->m_last_LastDirectiveError) {
10377  return;
10378  }
10379  else {
10380  this->m_last_LastDirectiveError = arg;
10381  }
10382  }
10383  else {
10384  this->m_first_update_LastDirectiveError = false;
10385  this->m_last_LastDirectiveError = arg;
10386  }
10387 
10388  if (this->isConnected_tlmOut_OutputPort(0)) {
10389  Fw::TlmBuffer _tlmBuff;
10390  Fw::SerializeStatus _stat = _tlmBuff.serializeFrom(arg);
10391  FW_ASSERT(
10392  _stat == Fw::FW_SERIALIZE_OK,
10393  static_cast<FwAssertArgType>(_stat)
10394  );
10395 
10396  this->tlmWrite(
10398  _tlmBuff,
10399  _tlmTime
10400  );
10401  }
10402  }
10403 
10406  U64 arg,
10407  Fw::Time _tlmTime
10408  )
10409  {
10410  // Check to see if it is the first time
10411  if (not this->m_first_update_DirectiveErrorIndex) {
10412  // Check to see if value has changed. If not, don't write it.
10413  if (arg == this->m_last_DirectiveErrorIndex) {
10414  return;
10415  }
10416  else {
10417  this->m_last_DirectiveErrorIndex = arg;
10418  }
10419  }
10420  else {
10421  this->m_first_update_DirectiveErrorIndex = false;
10422  this->m_last_DirectiveErrorIndex = arg;
10423  }
10424 
10425  if (this->isConnected_tlmOut_OutputPort(0)) {
10426  Fw::TlmBuffer _tlmBuff;
10427  Fw::SerializeStatus _stat = _tlmBuff.serializeFrom(arg);
10428  FW_ASSERT(
10429  _stat == Fw::FW_SERIALIZE_OK,
10430  static_cast<FwAssertArgType>(_stat)
10431  );
10432 
10433  this->tlmWrite(
10435  _tlmBuff,
10436  _tlmTime
10437  );
10438  }
10439  }
10440 
10443  const Svc::Fpy::DirectiveId& arg,
10444  Fw::Time _tlmTime
10445  )
10446  {
10447  // Check to see if it is the first time
10448  if (not this->m_first_update_DirectiveErrorId) {
10449  // Check to see if value has changed. If not, don't write it.
10450  if (arg == this->m_last_DirectiveErrorId) {
10451  return;
10452  }
10453  else {
10454  this->m_last_DirectiveErrorId = arg;
10455  }
10456  }
10457  else {
10458  this->m_first_update_DirectiveErrorId = false;
10459  this->m_last_DirectiveErrorId = arg;
10460  }
10461 
10462  if (this->isConnected_tlmOut_OutputPort(0)) {
10463  Fw::TlmBuffer _tlmBuff;
10464  Fw::SerializeStatus _stat = _tlmBuff.serializeFrom(arg);
10465  FW_ASSERT(
10466  _stat == Fw::FW_SERIALIZE_OK,
10467  static_cast<FwAssertArgType>(_stat)
10468  );
10469 
10470  this->tlmWrite(
10472  _tlmBuff,
10473  _tlmTime
10474  );
10475  }
10476  }
10477 
10480  const Fw::StringBase& arg,
10481  Fw::Time _tlmTime
10482  )
10483  {
10484  // Check to see if it is the first time
10485  if (not this->m_first_update_SeqPath) {
10486  // Check to see if value has changed. If not, don't write it.
10487  if (arg == this->m_last_SeqPath) {
10488  return;
10489  }
10490  else {
10491  this->m_last_SeqPath = arg;
10492  }
10493  }
10494  else {
10495  this->m_first_update_SeqPath = false;
10496  this->m_last_SeqPath = arg;
10497  }
10498 
10499  if (this->isConnected_tlmOut_OutputPort(0)) {
10500  Fw::TlmBuffer _tlmBuff;
10501  Fw::SerializeStatus _stat = arg.serializeTo(
10502  _tlmBuff,
10503  FW_MIN(static_cast<FwSizeType>(FW_TLM_STRING_MAX_SIZE), 240)
10504  );
10505  FW_ASSERT(
10506  _stat == Fw::FW_SERIALIZE_OK,
10507  static_cast<FwAssertArgType>(_stat)
10508  );
10509 
10510  this->tlmWrite(
10512  _tlmBuff,
10513  _tlmTime
10514  );
10515  }
10516  }
10517 
10520  bool arg,
10521  Fw::Time _tlmTime
10522  )
10523  {
10524  // Check to see if it is the first time
10525  if (not this->m_first_update_Debug_ReachedEndOfFile) {
10526  // Check to see if value has changed. If not, don't write it.
10527  if (arg == this->m_last_Debug_ReachedEndOfFile) {
10528  return;
10529  }
10530  else {
10531  this->m_last_Debug_ReachedEndOfFile = arg;
10532  }
10533  }
10534  else {
10535  this->m_first_update_Debug_ReachedEndOfFile = false;
10536  this->m_last_Debug_ReachedEndOfFile = arg;
10537  }
10538 
10539  if (this->isConnected_tlmOut_OutputPort(0)) {
10540  Fw::TlmBuffer _tlmBuff;
10541  Fw::SerializeStatus _stat = _tlmBuff.serializeFrom(arg);
10542  FW_ASSERT(
10543  _stat == Fw::FW_SERIALIZE_OK,
10544  static_cast<FwAssertArgType>(_stat)
10545  );
10546 
10547  this->tlmWrite(
10549  _tlmBuff,
10550  _tlmTime
10551  );
10552  }
10553  }
10554 
10557  bool arg,
10558  Fw::Time _tlmTime
10559  )
10560  {
10561  // Check to see if it is the first time
10562  if (not this->m_first_update_Debug_NextStatementReadSuccess) {
10563  // Check to see if value has changed. If not, don't write it.
10564  if (arg == this->m_last_Debug_NextStatementReadSuccess) {
10565  return;
10566  }
10567  else {
10568  this->m_last_Debug_NextStatementReadSuccess = arg;
10569  }
10570  }
10571  else {
10572  this->m_first_update_Debug_NextStatementReadSuccess = false;
10573  this->m_last_Debug_NextStatementReadSuccess = arg;
10574  }
10575 
10576  if (this->isConnected_tlmOut_OutputPort(0)) {
10577  Fw::TlmBuffer _tlmBuff;
10578  Fw::SerializeStatus _stat = _tlmBuff.serializeFrom(arg);
10579  FW_ASSERT(
10580  _stat == Fw::FW_SERIALIZE_OK,
10581  static_cast<FwAssertArgType>(_stat)
10582  );
10583 
10584  this->tlmWrite(
10586  _tlmBuff,
10587  _tlmTime
10588  );
10589  }
10590  }
10591 
10594  U8 arg,
10595  Fw::Time _tlmTime
10596  )
10597  {
10598  // Check to see if it is the first time
10599  if (not this->m_first_update_Debug_NextStatementOpcode) {
10600  // Check to see if value has changed. If not, don't write it.
10601  if (arg == this->m_last_Debug_NextStatementOpcode) {
10602  return;
10603  }
10604  else {
10605  this->m_last_Debug_NextStatementOpcode = arg;
10606  }
10607  }
10608  else {
10609  this->m_first_update_Debug_NextStatementOpcode = false;
10610  this->m_last_Debug_NextStatementOpcode = arg;
10611  }
10612 
10613  if (this->isConnected_tlmOut_OutputPort(0)) {
10614  Fw::TlmBuffer _tlmBuff;
10615  Fw::SerializeStatus _stat = _tlmBuff.serializeFrom(arg);
10616  FW_ASSERT(
10617  _stat == Fw::FW_SERIALIZE_OK,
10618  static_cast<FwAssertArgType>(_stat)
10619  );
10620 
10621  this->tlmWrite(
10623  _tlmBuff,
10624  _tlmTime
10625  );
10626  }
10627  }
10628 
10631  U32 arg,
10632  Fw::Time _tlmTime
10633  )
10634  {
10635  // Check to see if it is the first time
10636  if (not this->m_first_update_Debug_NextStatementIndex) {
10637  // Check to see if value has changed. If not, don't write it.
10638  if (arg == this->m_last_Debug_NextStatementIndex) {
10639  return;
10640  }
10641  else {
10642  this->m_last_Debug_NextStatementIndex = arg;
10643  }
10644  }
10645  else {
10646  this->m_first_update_Debug_NextStatementIndex = false;
10647  this->m_last_Debug_NextStatementIndex = arg;
10648  }
10649 
10650  if (this->isConnected_tlmOut_OutputPort(0)) {
10651  Fw::TlmBuffer _tlmBuff;
10652  Fw::SerializeStatus _stat = _tlmBuff.serializeFrom(arg);
10653  FW_ASSERT(
10654  _stat == Fw::FW_SERIALIZE_OK,
10655  static_cast<FwAssertArgType>(_stat)
10656  );
10657 
10658  this->tlmWrite(
10660  _tlmBuff,
10661  _tlmTime
10662  );
10663  }
10664  }
10665 
10668  FwOpcodeType arg,
10669  Fw::Time _tlmTime
10670  )
10671  {
10672  // Check to see if it is the first time
10673  if (not this->m_first_update_Debug_NextCmdOpcode) {
10674  // Check to see if value has changed. If not, don't write it.
10675  if (arg == this->m_last_Debug_NextCmdOpcode) {
10676  return;
10677  }
10678  else {
10679  this->m_last_Debug_NextCmdOpcode = arg;
10680  }
10681  }
10682  else {
10683  this->m_first_update_Debug_NextCmdOpcode = false;
10684  this->m_last_Debug_NextCmdOpcode = arg;
10685  }
10686 
10687  if (this->isConnected_tlmOut_OutputPort(0)) {
10688  Fw::TlmBuffer _tlmBuff;
10689  Fw::SerializeStatus _stat = _tlmBuff.serializeFrom(arg);
10690  FW_ASSERT(
10691  _stat == Fw::FW_SERIALIZE_OK,
10692  static_cast<FwAssertArgType>(_stat)
10693  );
10694 
10695  this->tlmWrite(
10697  _tlmBuff,
10698  _tlmTime
10699  );
10700  }
10701  }
10702 
10706  Fw::Time _tlmTime
10707  )
10708  {
10709  // Check to see if it is the first time
10710  if (not this->m_first_update_Debug_StackSize) {
10711  // Check to see if value has changed. If not, don't write it.
10712  if (arg == this->m_last_Debug_StackSize) {
10713  return;
10714  }
10715  else {
10716  this->m_last_Debug_StackSize = arg;
10717  }
10718  }
10719  else {
10720  this->m_first_update_Debug_StackSize = false;
10721  this->m_last_Debug_StackSize = arg;
10722  }
10723 
10724  if (this->isConnected_tlmOut_OutputPort(0)) {
10725  Fw::TlmBuffer _tlmBuff;
10726  Fw::SerializeStatus _stat = _tlmBuff.serializeFrom(arg);
10727  FW_ASSERT(
10728  _stat == Fw::FW_SERIALIZE_OK,
10729  static_cast<FwAssertArgType>(_stat)
10730  );
10731 
10732  this->tlmWrite(
10734  _tlmBuff,
10735  _tlmTime
10736  );
10737  }
10738  }
10739 
10742  bool arg,
10743  Fw::Time _tlmTime
10744  )
10745  {
10746  // Check to see if it is the first time
10747  if (not this->m_first_update_BreakpointInUse) {
10748  // Check to see if value has changed. If not, don't write it.
10749  if (arg == this->m_last_BreakpointInUse) {
10750  return;
10751  }
10752  else {
10753  this->m_last_BreakpointInUse = arg;
10754  }
10755  }
10756  else {
10757  this->m_first_update_BreakpointInUse = false;
10758  this->m_last_BreakpointInUse = arg;
10759  }
10760 
10761  if (this->isConnected_tlmOut_OutputPort(0)) {
10762  Fw::TlmBuffer _tlmBuff;
10763  Fw::SerializeStatus _stat = _tlmBuff.serializeFrom(arg);
10764  FW_ASSERT(
10765  _stat == Fw::FW_SERIALIZE_OK,
10766  static_cast<FwAssertArgType>(_stat)
10767  );
10768 
10769  this->tlmWrite(
10771  _tlmBuff,
10772  _tlmTime
10773  );
10774  }
10775  }
10776 
10779  U32 arg,
10780  Fw::Time _tlmTime
10781  )
10782  {
10783  // Check to see if it is the first time
10784  if (not this->m_first_update_BreakpointIndex) {
10785  // Check to see if value has changed. If not, don't write it.
10786  if (arg == this->m_last_BreakpointIndex) {
10787  return;
10788  }
10789  else {
10790  this->m_last_BreakpointIndex = arg;
10791  }
10792  }
10793  else {
10794  this->m_first_update_BreakpointIndex = false;
10795  this->m_last_BreakpointIndex = arg;
10796  }
10797 
10798  if (this->isConnected_tlmOut_OutputPort(0)) {
10799  Fw::TlmBuffer _tlmBuff;
10800  Fw::SerializeStatus _stat = _tlmBuff.serializeFrom(arg);
10801  FW_ASSERT(
10802  _stat == Fw::FW_SERIALIZE_OK,
10803  static_cast<FwAssertArgType>(_stat)
10804  );
10805 
10806  this->tlmWrite(
10808  _tlmBuff,
10809  _tlmTime
10810  );
10811  }
10812  }
10813 
10816  bool arg,
10817  Fw::Time _tlmTime
10818  )
10819  {
10820  // Check to see if it is the first time
10821  if (not this->m_first_update_BreakOnlyOnceOnBreakpoint) {
10822  // Check to see if value has changed. If not, don't write it.
10823  if (arg == this->m_last_BreakOnlyOnceOnBreakpoint) {
10824  return;
10825  }
10826  else {
10827  this->m_last_BreakOnlyOnceOnBreakpoint = arg;
10828  }
10829  }
10830  else {
10831  this->m_first_update_BreakOnlyOnceOnBreakpoint = false;
10832  this->m_last_BreakOnlyOnceOnBreakpoint = arg;
10833  }
10834 
10835  if (this->isConnected_tlmOut_OutputPort(0)) {
10836  Fw::TlmBuffer _tlmBuff;
10837  Fw::SerializeStatus _stat = _tlmBuff.serializeFrom(arg);
10838  FW_ASSERT(
10839  _stat == Fw::FW_SERIALIZE_OK,
10840  static_cast<FwAssertArgType>(_stat)
10841  );
10842 
10843  this->tlmWrite(
10845  _tlmBuff,
10846  _tlmTime
10847  );
10848  }
10849  }
10850 
10853  bool arg,
10854  Fw::Time _tlmTime
10855  )
10856  {
10857  // Check to see if it is the first time
10858  if (not this->m_first_update_BreakBeforeNextLine) {
10859  // Check to see if value has changed. If not, don't write it.
10860  if (arg == this->m_last_BreakBeforeNextLine) {
10861  return;
10862  }
10863  else {
10864  this->m_last_BreakBeforeNextLine = arg;
10865  }
10866  }
10867  else {
10868  this->m_first_update_BreakBeforeNextLine = false;
10869  this->m_last_BreakBeforeNextLine = arg;
10870  }
10871 
10872  if (this->isConnected_tlmOut_OutputPort(0)) {
10873  Fw::TlmBuffer _tlmBuff;
10874  Fw::SerializeStatus _stat = _tlmBuff.serializeFrom(arg);
10875  FW_ASSERT(
10876  _stat == Fw::FW_SERIALIZE_OK,
10877  static_cast<FwAssertArgType>(_stat)
10878  );
10879 
10880  this->tlmWrite(
10882  _tlmBuff,
10883  _tlmTime
10884  );
10885  }
10886  }
10887 
10890  F32 arg,
10891  Fw::Time _tlmTime
10892  )
10893  {
10894  // Check to see if it is the first time
10895  if (not this->m_first_update_PRM_STATEMENT_TIMEOUT_SECS) {
10896  // Check to see if value has changed. If not, don't write it.
10897  if (arg == this->m_last_PRM_STATEMENT_TIMEOUT_SECS) {
10898  return;
10899  }
10900  else {
10901  this->m_last_PRM_STATEMENT_TIMEOUT_SECS = arg;
10902  }
10903  }
10904  else {
10905  this->m_first_update_PRM_STATEMENT_TIMEOUT_SECS = false;
10906  this->m_last_PRM_STATEMENT_TIMEOUT_SECS = arg;
10907  }
10908 
10909  if (this->isConnected_tlmOut_OutputPort(0)) {
10910  Fw::TlmBuffer _tlmBuff;
10911  Fw::SerializeStatus _stat = _tlmBuff.serializeFrom(arg);
10912  FW_ASSERT(
10913  _stat == Fw::FW_SERIALIZE_OK,
10914  static_cast<FwAssertArgType>(_stat)
10915  );
10916 
10917  this->tlmWrite(
10919  _tlmBuff,
10920  _tlmTime
10921  );
10922  }
10923  }
10924 
10927  const Fw::StringBase& arg,
10928  Fw::Time _tlmTime
10929  )
10930  {
10931  // Check to see if it is the first time
10932  if (not this->m_first_update_PRM_SEQ_BASE_DIR) {
10933  // Check to see if value has changed. If not, don't write it.
10934  if (arg == this->m_last_PRM_SEQ_BASE_DIR) {
10935  return;
10936  }
10937  else {
10938  this->m_last_PRM_SEQ_BASE_DIR = arg;
10939  }
10940  }
10941  else {
10942  this->m_first_update_PRM_SEQ_BASE_DIR = false;
10943  this->m_last_PRM_SEQ_BASE_DIR = arg;
10944  }
10945 
10946  if (this->isConnected_tlmOut_OutputPort(0)) {
10947  Fw::TlmBuffer _tlmBuff;
10948  Fw::SerializeStatus _stat = arg.serializeTo(
10949  _tlmBuff,
10950  FW_MIN(static_cast<FwSizeType>(FW_TLM_STRING_MAX_SIZE), 240)
10951  );
10952  FW_ASSERT(
10953  _stat == Fw::FW_SERIALIZE_OK,
10954  static_cast<FwAssertArgType>(_stat)
10955  );
10956 
10957  this->tlmWrite(
10959  _tlmBuff,
10960  _tlmTime
10961  );
10962  }
10963  }
10964 
10965  // ----------------------------------------------------------------------
10966  // Parameter hook functions
10967  // ----------------------------------------------------------------------
10968 
10971  {
10972  // Do nothing by default
10973  }
10974 
10977  {
10978  // Do nothing by default
10979  }
10980 
10983  FwPrmIdType id,
10984  Fw::ParamValid valid
10985  )
10986  {
10987  if (FW_PARAM_OK(valid)) {
10988  this->parameterUpdated(id);
10989  }
10990  }
10991 
10992  // ----------------------------------------------------------------------
10993  // Parameter get functions
10994  // ----------------------------------------------------------------------
10995 
10998  {
10999  F32 _local{};
11000  this->m_paramLock.lock();
11001  valid = this->m_param_STATEMENT_TIMEOUT_SECS_valid;
11002  if ((valid == Fw::ParamValid::VALID) || (valid == Fw::ParamValid::DEFAULT)) {
11003  _local = this->m_STATEMENT_TIMEOUT_SECS;
11004  }
11005  this->m_paramLock.unlock();
11006  return _local;
11007  }
11008 
11011  {
11012  Fw::ParamString _local{};
11013  this->m_paramLock.lock();
11014  valid = this->m_param_SEQ_BASE_DIR_valid;
11015  if ((valid == Fw::ParamValid::VALID) || (valid == Fw::ParamValid::DEFAULT)) {
11016  _local = this->m_SEQ_BASE_DIR;
11017  }
11018  this->m_paramLock.unlock();
11019  return _local;
11020  }
11021 
11022  // ----------------------------------------------------------------------
11023  // Time
11024  // ----------------------------------------------------------------------
11025 
11027  getTime() const
11028  {
11029  if (this->isConnected_timeCaller_OutputPort(0)) {
11030  Fw::Time _time;
11031  this->timeCaller_out(0, _time);
11032  return _time;
11033  }
11034  else {
11035  return Fw::Time(TimeBase::TB_NONE, 0, 0);
11036  }
11037  }
11038 
11039  // ----------------------------------------------------------------------
11040  // Message dispatch functions
11041  // ----------------------------------------------------------------------
11042 
11043  Fw::QueuedComponentBase::MsgDispatchStatus FpySequencerComponentBase ::
11044  doDispatch()
11045  {
11046  ComponentIpcSerializableBuffer _msg;
11047  FwQueuePriorityType _priority = 0;
11048 
11049  Os::Queue::Status _msgStatus = this->m_queue.receive(
11050  _msg,
11052  _priority
11053  );
11054  FW_ASSERT(
11055  _msgStatus == Os::Queue::OP_OK,
11056  static_cast<FwAssertArgType>(_msgStatus)
11057  );
11058 
11059  // Reset to beginning of buffer
11060  _msg.resetDeser();
11061 
11062  FwEnumStoreType _desMsg = 0;
11063  Fw::SerializeStatus _deserStatus = _msg.deserializeTo(_desMsg);
11064  FW_ASSERT(
11065  _deserStatus == Fw::FW_SERIALIZE_OK,
11066  static_cast<FwAssertArgType>(_deserStatus)
11067  );
11068 
11069  MsgTypeEnum _msgType = static_cast<MsgTypeEnum>(_desMsg);
11070 
11071  if (_msgType == FPYSEQUENCER_COMPONENT_EXIT) {
11072  return MSG_DISPATCH_EXIT;
11073  }
11074 
11075  FwIndexType portNum = 0;
11076  _deserStatus = _msg.deserializeTo(portNum);
11077  FW_ASSERT(
11078  _deserStatus == Fw::FW_SERIALIZE_OK,
11079  static_cast<FwAssertArgType>(_deserStatus)
11080  );
11081 
11082  switch (_msgType) {
11083  // Handle async input port cmdResponseIn
11084  case CMDRESPONSEIN_CMDRESPONSE: {
11085  // Deserialize argument opCode
11086  FwOpcodeType opCode;
11087  _deserStatus = _msg.deserializeTo(opCode);
11088  FW_ASSERT(
11089  _deserStatus == Fw::FW_SERIALIZE_OK,
11090  static_cast<FwAssertArgType>(_deserStatus)
11091  );
11092 
11093  // Deserialize argument cmdSeq
11094  U32 cmdSeq;
11095  _deserStatus = _msg.deserializeTo(cmdSeq);
11096  FW_ASSERT(
11097  _deserStatus == Fw::FW_SERIALIZE_OK,
11098  static_cast<FwAssertArgType>(_deserStatus)
11099  );
11100 
11101  // Deserialize argument response
11102  Fw::CmdResponse response;
11103  _deserStatus = _msg.deserializeTo(response);
11104  FW_ASSERT(
11105  _deserStatus == Fw::FW_SERIALIZE_OK,
11106  static_cast<FwAssertArgType>(_deserStatus)
11107  );
11108  // Call handler function
11109  this->cmdResponseIn_handler(
11110  portNum,
11111  opCode,
11112  cmdSeq,
11113  response
11114  );
11115 
11116  break;
11117  }
11118 
11119  // Handle async input port pingIn
11120  case PINGIN_PING: {
11121  // Deserialize argument key
11122  U32 key;
11123  _deserStatus = _msg.deserializeTo(key);
11124  FW_ASSERT(
11125  _deserStatus == Fw::FW_SERIALIZE_OK,
11126  static_cast<FwAssertArgType>(_deserStatus)
11127  );
11128  // Call handler function
11129  this->pingIn_handler(
11130  portNum,
11131  key
11132  );
11133 
11134  break;
11135  }
11136 
11137  // Handle async input port seqCancelIn
11138  case SEQCANCELIN_CMDSEQCANCEL: {
11139  // Call handler function
11140  this->seqCancelIn_handler(portNum);
11141 
11142  break;
11143  }
11144 
11145  // Handle async input port seqRunIn
11146  case SEQRUNIN_CMDSEQIN: {
11147  // Deserialize argument filename
11148  char __fprime_ac_filename_buffer[Fw::StringBase::BUFFER_SIZE(240)];
11149  Fw::ExternalString filename(__fprime_ac_filename_buffer, sizeof __fprime_ac_filename_buffer);
11150  _deserStatus = _msg.deserializeTo(filename);
11151  FW_ASSERT(
11152  _deserStatus == Fw::FW_SERIALIZE_OK,
11153  static_cast<FwAssertArgType>(_deserStatus)
11154  );
11155 
11156  // Deserialize argument args
11157  Svc::SeqArgs args;
11158  _deserStatus = _msg.deserializeTo(args);
11159  FW_ASSERT(
11160  _deserStatus == Fw::FW_SERIALIZE_OK,
11161  static_cast<FwAssertArgType>(_deserStatus)
11162  );
11163  // Call handler function
11164  this->seqRunIn_handler(
11165  portNum,
11166  filename,
11167  args
11168  );
11169 
11170  break;
11171  }
11172 
11173  // Handle command RUN
11174  case CMD_RUN: {
11175  // Deserialize opcode
11176  FwOpcodeType _opCode = 0;
11177  _deserStatus = _msg.deserializeTo(_opCode);
11178  FW_ASSERT (
11179  _deserStatus == Fw::FW_SERIALIZE_OK,
11180  static_cast<FwAssertArgType>(_deserStatus)
11181  );
11182 
11183  // Deserialize command sequence
11184  U32 _cmdSeq = 0;
11185  _deserStatus = _msg.deserializeTo(_cmdSeq);
11186  FW_ASSERT (
11187  _deserStatus == Fw::FW_SERIALIZE_OK,
11188  static_cast<FwAssertArgType>(_deserStatus)
11189  );
11190 
11191  // Deserialize command argument buffer
11192  Fw::CmdArgBuffer args;
11193  _deserStatus = _msg.deserializeTo(args);
11194  FW_ASSERT (
11195  _deserStatus == Fw::FW_SERIALIZE_OK,
11196  static_cast<FwAssertArgType>(_deserStatus)
11197  );
11198 
11199  // Reset buffer
11200  args.resetDeser();
11201 
11202  // Deserialize argument fileName
11203  Fw::CmdStringArg fileName;
11204  _deserStatus = args.deserializeTo(fileName);
11205  if (_deserStatus != Fw::FW_SERIALIZE_OK) {
11207  this->cmdResponse_out(
11208  _opCode,
11209  _cmdSeq,
11211  );
11212  }
11213  // Don't crash the task if bad arguments were passed from the ground
11214  break;
11215  }
11216 
11217  // Deserialize argument block
11218  Svc::BlockState block;
11219  _deserStatus = args.deserializeTo(block);
11220  if (_deserStatus != Fw::FW_SERIALIZE_OK) {
11222  this->cmdResponse_out(
11223  _opCode,
11224  _cmdSeq,
11226  );
11227  }
11228  // Don't crash the task if bad arguments were passed from the ground
11229  break;
11230  }
11231 
11232  // Make sure there was no data left over.
11233  // That means the argument buffer size was incorrect.
11234 #if FW_CMD_CHECK_RESIDUAL
11235  if (args.getDeserializeSizeLeft() != 0) {
11237  this->cmdResponse_out(_opCode, _cmdSeq, Fw::CmdResponse::FORMAT_ERROR);
11238  }
11239  // Don't crash the task if bad arguments were passed from the ground
11240  break;
11241  }
11242 #endif
11243 
11244  // Call handler function
11245  this->RUN_cmdHandler(
11246  _opCode, _cmdSeq,
11247  fileName,
11248  block
11249  );
11250 
11251  break;
11252  }
11253 
11254  // Handle command RUN_ARGS
11255  case CMD_RUN_ARGS: {
11256  // Deserialize opcode
11257  FwOpcodeType _opCode = 0;
11258  _deserStatus = _msg.deserializeTo(_opCode);
11259  FW_ASSERT (
11260  _deserStatus == Fw::FW_SERIALIZE_OK,
11261  static_cast<FwAssertArgType>(_deserStatus)
11262  );
11263 
11264  // Deserialize command sequence
11265  U32 _cmdSeq = 0;
11266  _deserStatus = _msg.deserializeTo(_cmdSeq);
11267  FW_ASSERT (
11268  _deserStatus == Fw::FW_SERIALIZE_OK,
11269  static_cast<FwAssertArgType>(_deserStatus)
11270  );
11271 
11272  // Deserialize command argument buffer
11273  Fw::CmdArgBuffer args;
11274  _deserStatus = _msg.deserializeTo(args);
11275  FW_ASSERT (
11276  _deserStatus == Fw::FW_SERIALIZE_OK,
11277  static_cast<FwAssertArgType>(_deserStatus)
11278  );
11279 
11280  // Reset buffer
11281  args.resetDeser();
11282 
11283  // Deserialize argument fileName
11284  Fw::CmdStringArg fileName;
11285  _deserStatus = args.deserializeTo(fileName);
11286  if (_deserStatus != Fw::FW_SERIALIZE_OK) {
11288  this->cmdResponse_out(
11289  _opCode,
11290  _cmdSeq,
11292  );
11293  }
11294  // Don't crash the task if bad arguments were passed from the ground
11295  break;
11296  }
11297 
11298  // Deserialize argument block
11299  Svc::BlockState block;
11300  _deserStatus = args.deserializeTo(block);
11301  if (_deserStatus != Fw::FW_SERIALIZE_OK) {
11303  this->cmdResponse_out(
11304  _opCode,
11305  _cmdSeq,
11307  );
11308  }
11309  // Don't crash the task if bad arguments were passed from the ground
11310  break;
11311  }
11312 
11313  // Deserialize argument buffer
11314  Svc::SeqArgs buffer;
11315  _deserStatus = args.deserializeTo(buffer);
11316  if (_deserStatus != Fw::FW_SERIALIZE_OK) {
11318  this->cmdResponse_out(
11319  _opCode,
11320  _cmdSeq,
11322  );
11323  }
11324  // Don't crash the task if bad arguments were passed from the ground
11325  break;
11326  }
11327 
11328  // Make sure there was no data left over.
11329  // That means the argument buffer size was incorrect.
11330 #if FW_CMD_CHECK_RESIDUAL
11331  if (args.getDeserializeSizeLeft() != 0) {
11333  this->cmdResponse_out(_opCode, _cmdSeq, Fw::CmdResponse::FORMAT_ERROR);
11334  }
11335  // Don't crash the task if bad arguments were passed from the ground
11336  break;
11337  }
11338 #endif
11339 
11340  // Call handler function
11341  this->RUN_ARGS_cmdHandler(
11342  _opCode, _cmdSeq,
11343  fileName,
11344  block,
11345  buffer
11346  );
11347 
11348  break;
11349  }
11350 
11351  // Handle command VALIDATE
11352  case CMD_VALIDATE: {
11353  // Deserialize opcode
11354  FwOpcodeType _opCode = 0;
11355  _deserStatus = _msg.deserializeTo(_opCode);
11356  FW_ASSERT (
11357  _deserStatus == Fw::FW_SERIALIZE_OK,
11358  static_cast<FwAssertArgType>(_deserStatus)
11359  );
11360 
11361  // Deserialize command sequence
11362  U32 _cmdSeq = 0;
11363  _deserStatus = _msg.deserializeTo(_cmdSeq);
11364  FW_ASSERT (
11365  _deserStatus == Fw::FW_SERIALIZE_OK,
11366  static_cast<FwAssertArgType>(_deserStatus)
11367  );
11368 
11369  // Deserialize command argument buffer
11370  Fw::CmdArgBuffer args;
11371  _deserStatus = _msg.deserializeTo(args);
11372  FW_ASSERT (
11373  _deserStatus == Fw::FW_SERIALIZE_OK,
11374  static_cast<FwAssertArgType>(_deserStatus)
11375  );
11376 
11377  // Reset buffer
11378  args.resetDeser();
11379 
11380  // Deserialize argument fileName
11381  Fw::CmdStringArg fileName;
11382  _deserStatus = args.deserializeTo(fileName);
11383  if (_deserStatus != Fw::FW_SERIALIZE_OK) {
11385  this->cmdResponse_out(
11386  _opCode,
11387  _cmdSeq,
11389  );
11390  }
11391  // Don't crash the task if bad arguments were passed from the ground
11392  break;
11393  }
11394 
11395  // Make sure there was no data left over.
11396  // That means the argument buffer size was incorrect.
11397 #if FW_CMD_CHECK_RESIDUAL
11398  if (args.getDeserializeSizeLeft() != 0) {
11400  this->cmdResponse_out(_opCode, _cmdSeq, Fw::CmdResponse::FORMAT_ERROR);
11401  }
11402  // Don't crash the task if bad arguments were passed from the ground
11403  break;
11404  }
11405 #endif
11406 
11407  // Call handler function
11408  this->VALIDATE_cmdHandler(
11409  _opCode, _cmdSeq,
11410  fileName
11411  );
11412 
11413  break;
11414  }
11415 
11416  // Handle command VALIDATE_ARGS
11417  case CMD_VALIDATE_ARGS: {
11418  // Deserialize opcode
11419  FwOpcodeType _opCode = 0;
11420  _deserStatus = _msg.deserializeTo(_opCode);
11421  FW_ASSERT (
11422  _deserStatus == Fw::FW_SERIALIZE_OK,
11423  static_cast<FwAssertArgType>(_deserStatus)
11424  );
11425 
11426  // Deserialize command sequence
11427  U32 _cmdSeq = 0;
11428  _deserStatus = _msg.deserializeTo(_cmdSeq);
11429  FW_ASSERT (
11430  _deserStatus == Fw::FW_SERIALIZE_OK,
11431  static_cast<FwAssertArgType>(_deserStatus)
11432  );
11433 
11434  // Deserialize command argument buffer
11435  Fw::CmdArgBuffer args;
11436  _deserStatus = _msg.deserializeTo(args);
11437  FW_ASSERT (
11438  _deserStatus == Fw::FW_SERIALIZE_OK,
11439  static_cast<FwAssertArgType>(_deserStatus)
11440  );
11441 
11442  // Reset buffer
11443  args.resetDeser();
11444 
11445  // Deserialize argument fileName
11446  Fw::CmdStringArg fileName;
11447  _deserStatus = args.deserializeTo(fileName);
11448  if (_deserStatus != Fw::FW_SERIALIZE_OK) {
11450  this->cmdResponse_out(
11451  _opCode,
11452  _cmdSeq,
11454  );
11455  }
11456  // Don't crash the task if bad arguments were passed from the ground
11457  break;
11458  }
11459 
11460  // Deserialize argument buffer
11461  Svc::SeqArgs buffer;
11462  _deserStatus = args.deserializeTo(buffer);
11463  if (_deserStatus != Fw::FW_SERIALIZE_OK) {
11465  this->cmdResponse_out(
11466  _opCode,
11467  _cmdSeq,
11469  );
11470  }
11471  // Don't crash the task if bad arguments were passed from the ground
11472  break;
11473  }
11474 
11475  // Make sure there was no data left over.
11476  // That means the argument buffer size was incorrect.
11477 #if FW_CMD_CHECK_RESIDUAL
11478  if (args.getDeserializeSizeLeft() != 0) {
11480  this->cmdResponse_out(_opCode, _cmdSeq, Fw::CmdResponse::FORMAT_ERROR);
11481  }
11482  // Don't crash the task if bad arguments were passed from the ground
11483  break;
11484  }
11485 #endif
11486 
11487  // Call handler function
11489  _opCode, _cmdSeq,
11490  fileName,
11491  buffer
11492  );
11493 
11494  break;
11495  }
11496 
11497  // Handle command RUN_VALIDATED
11498  case CMD_RUN_VALIDATED: {
11499  // Deserialize opcode
11500  FwOpcodeType _opCode = 0;
11501  _deserStatus = _msg.deserializeTo(_opCode);
11502  FW_ASSERT (
11503  _deserStatus == Fw::FW_SERIALIZE_OK,
11504  static_cast<FwAssertArgType>(_deserStatus)
11505  );
11506 
11507  // Deserialize command sequence
11508  U32 _cmdSeq = 0;
11509  _deserStatus = _msg.deserializeTo(_cmdSeq);
11510  FW_ASSERT (
11511  _deserStatus == Fw::FW_SERIALIZE_OK,
11512  static_cast<FwAssertArgType>(_deserStatus)
11513  );
11514 
11515  // Deserialize command argument buffer
11516  Fw::CmdArgBuffer args;
11517  _deserStatus = _msg.deserializeTo(args);
11518  FW_ASSERT (
11519  _deserStatus == Fw::FW_SERIALIZE_OK,
11520  static_cast<FwAssertArgType>(_deserStatus)
11521  );
11522 
11523  // Reset buffer
11524  args.resetDeser();
11525 
11526  // Deserialize argument block
11527  Svc::BlockState block;
11528  _deserStatus = args.deserializeTo(block);
11529  if (_deserStatus != Fw::FW_SERIALIZE_OK) {
11531  this->cmdResponse_out(
11532  _opCode,
11533  _cmdSeq,
11535  );
11536  }
11537  // Don't crash the task if bad arguments were passed from the ground
11538  break;
11539  }
11540 
11541  // Make sure there was no data left over.
11542  // That means the argument buffer size was incorrect.
11543 #if FW_CMD_CHECK_RESIDUAL
11544  if (args.getDeserializeSizeLeft() != 0) {
11546  this->cmdResponse_out(_opCode, _cmdSeq, Fw::CmdResponse::FORMAT_ERROR);
11547  }
11548  // Don't crash the task if bad arguments were passed from the ground
11549  break;
11550  }
11551 #endif
11552 
11553  // Call handler function
11555  _opCode, _cmdSeq,
11556  block
11557  );
11558 
11559  break;
11560  }
11561 
11562  // Handle command CANCEL
11563  case CMD_CANCEL: {
11564  // Deserialize opcode
11565  FwOpcodeType _opCode = 0;
11566  _deserStatus = _msg.deserializeTo(_opCode);
11567  FW_ASSERT (
11568  _deserStatus == Fw::FW_SERIALIZE_OK,
11569  static_cast<FwAssertArgType>(_deserStatus)
11570  );
11571 
11572  // Deserialize command sequence
11573  U32 _cmdSeq = 0;
11574  _deserStatus = _msg.deserializeTo(_cmdSeq);
11575  FW_ASSERT (
11576  _deserStatus == Fw::FW_SERIALIZE_OK,
11577  static_cast<FwAssertArgType>(_deserStatus)
11578  );
11579 
11580  // Deserialize command argument buffer
11581  Fw::CmdArgBuffer args;
11582  _deserStatus = _msg.deserializeTo(args);
11583  FW_ASSERT (
11584  _deserStatus == Fw::FW_SERIALIZE_OK,
11585  static_cast<FwAssertArgType>(_deserStatus)
11586  );
11587 
11588  // Reset buffer
11589  args.resetDeser();
11590 
11591  // Make sure there was no data left over.
11592  // That means the argument buffer size was incorrect.
11593 #if FW_CMD_CHECK_RESIDUAL
11594  if (args.getDeserializeSizeLeft() != 0) {
11596  this->cmdResponse_out(_opCode, _cmdSeq, Fw::CmdResponse::FORMAT_ERROR);
11597  }
11598  // Don't crash the task if bad arguments were passed from the ground
11599  break;
11600  }
11601 #endif
11602 
11603  // Call handler function
11604  this->CANCEL_cmdHandler(_opCode, _cmdSeq);
11605 
11606  break;
11607  }
11608 
11609  // Handle command SET_BREAKPOINT
11610  case CMD_SET_BREAKPOINT: {
11611  // Deserialize opcode
11612  FwOpcodeType _opCode = 0;
11613  _deserStatus = _msg.deserializeTo(_opCode);
11614  FW_ASSERT (
11615  _deserStatus == Fw::FW_SERIALIZE_OK,
11616  static_cast<FwAssertArgType>(_deserStatus)
11617  );
11618 
11619  // Deserialize command sequence
11620  U32 _cmdSeq = 0;
11621  _deserStatus = _msg.deserializeTo(_cmdSeq);
11622  FW_ASSERT (
11623  _deserStatus == Fw::FW_SERIALIZE_OK,
11624  static_cast<FwAssertArgType>(_deserStatus)
11625  );
11626 
11627  // Deserialize command argument buffer
11628  Fw::CmdArgBuffer args;
11629  _deserStatus = _msg.deserializeTo(args);
11630  FW_ASSERT (
11631  _deserStatus == Fw::FW_SERIALIZE_OK,
11632  static_cast<FwAssertArgType>(_deserStatus)
11633  );
11634 
11635  // Reset buffer
11636  args.resetDeser();
11637 
11638  // Deserialize argument stmtIdx
11639  U32 stmtIdx;
11640  _deserStatus = args.deserializeTo(stmtIdx);
11641  if (_deserStatus != Fw::FW_SERIALIZE_OK) {
11643  this->cmdResponse_out(
11644  _opCode,
11645  _cmdSeq,
11647  );
11648  }
11649  // Don't crash the task if bad arguments were passed from the ground
11650  break;
11651  }
11652 
11653  // Deserialize argument breakOnce
11654  bool breakOnce;
11655  _deserStatus = args.deserializeTo(breakOnce);
11656  if (_deserStatus != Fw::FW_SERIALIZE_OK) {
11658  this->cmdResponse_out(
11659  _opCode,
11660  _cmdSeq,
11662  );
11663  }
11664  // Don't crash the task if bad arguments were passed from the ground
11665  break;
11666  }
11667 
11668  // Make sure there was no data left over.
11669  // That means the argument buffer size was incorrect.
11670 #if FW_CMD_CHECK_RESIDUAL
11671  if (args.getDeserializeSizeLeft() != 0) {
11673  this->cmdResponse_out(_opCode, _cmdSeq, Fw::CmdResponse::FORMAT_ERROR);
11674  }
11675  // Don't crash the task if bad arguments were passed from the ground
11676  break;
11677  }
11678 #endif
11679 
11680  // Call handler function
11682  _opCode, _cmdSeq,
11683  stmtIdx,
11684  breakOnce
11685  );
11686 
11687  break;
11688  }
11689 
11690  // Handle command BREAK
11691  case CMD_BREAK: {
11692  // Deserialize opcode
11693  FwOpcodeType _opCode = 0;
11694  _deserStatus = _msg.deserializeTo(_opCode);
11695  FW_ASSERT (
11696  _deserStatus == Fw::FW_SERIALIZE_OK,
11697  static_cast<FwAssertArgType>(_deserStatus)
11698  );
11699 
11700  // Deserialize command sequence
11701  U32 _cmdSeq = 0;
11702  _deserStatus = _msg.deserializeTo(_cmdSeq);
11703  FW_ASSERT (
11704  _deserStatus == Fw::FW_SERIALIZE_OK,
11705  static_cast<FwAssertArgType>(_deserStatus)
11706  );
11707 
11708  // Deserialize command argument buffer
11709  Fw::CmdArgBuffer args;
11710  _deserStatus = _msg.deserializeTo(args);
11711  FW_ASSERT (
11712  _deserStatus == Fw::FW_SERIALIZE_OK,
11713  static_cast<FwAssertArgType>(_deserStatus)
11714  );
11715 
11716  // Reset buffer
11717  args.resetDeser();
11718 
11719  // Make sure there was no data left over.
11720  // That means the argument buffer size was incorrect.
11721 #if FW_CMD_CHECK_RESIDUAL
11722  if (args.getDeserializeSizeLeft() != 0) {
11724  this->cmdResponse_out(_opCode, _cmdSeq, Fw::CmdResponse::FORMAT_ERROR);
11725  }
11726  // Don't crash the task if bad arguments were passed from the ground
11727  break;
11728  }
11729 #endif
11730 
11731  // Call handler function
11732  this->BREAK_cmdHandler(_opCode, _cmdSeq);
11733 
11734  break;
11735  }
11736 
11737  // Handle command CONTINUE
11738  case CMD_CONTINUE: {
11739  // Deserialize opcode
11740  FwOpcodeType _opCode = 0;
11741  _deserStatus = _msg.deserializeTo(_opCode);
11742  FW_ASSERT (
11743  _deserStatus == Fw::FW_SERIALIZE_OK,
11744  static_cast<FwAssertArgType>(_deserStatus)
11745  );
11746 
11747  // Deserialize command sequence
11748  U32 _cmdSeq = 0;
11749  _deserStatus = _msg.deserializeTo(_cmdSeq);
11750  FW_ASSERT (
11751  _deserStatus == Fw::FW_SERIALIZE_OK,
11752  static_cast<FwAssertArgType>(_deserStatus)
11753  );
11754 
11755  // Deserialize command argument buffer
11756  Fw::CmdArgBuffer args;
11757  _deserStatus = _msg.deserializeTo(args);
11758  FW_ASSERT (
11759  _deserStatus == Fw::FW_SERIALIZE_OK,
11760  static_cast<FwAssertArgType>(_deserStatus)
11761  );
11762 
11763  // Reset buffer
11764  args.resetDeser();
11765 
11766  // Make sure there was no data left over.
11767  // That means the argument buffer size was incorrect.
11768 #if FW_CMD_CHECK_RESIDUAL
11769  if (args.getDeserializeSizeLeft() != 0) {
11771  this->cmdResponse_out(_opCode, _cmdSeq, Fw::CmdResponse::FORMAT_ERROR);
11772  }
11773  // Don't crash the task if bad arguments were passed from the ground
11774  break;
11775  }
11776 #endif
11777 
11778  // Call handler function
11779  this->CONTINUE_cmdHandler(_opCode, _cmdSeq);
11780 
11781  break;
11782  }
11783 
11784  // Handle command CLEAR_BREAKPOINT
11785  case CMD_CLEAR_BREAKPOINT: {
11786  // Deserialize opcode
11787  FwOpcodeType _opCode = 0;
11788  _deserStatus = _msg.deserializeTo(_opCode);
11789  FW_ASSERT (
11790  _deserStatus == Fw::FW_SERIALIZE_OK,
11791  static_cast<FwAssertArgType>(_deserStatus)
11792  );
11793 
11794  // Deserialize command sequence
11795  U32 _cmdSeq = 0;
11796  _deserStatus = _msg.deserializeTo(_cmdSeq);
11797  FW_ASSERT (
11798  _deserStatus == Fw::FW_SERIALIZE_OK,
11799  static_cast<FwAssertArgType>(_deserStatus)
11800  );
11801 
11802  // Deserialize command argument buffer
11803  Fw::CmdArgBuffer args;
11804  _deserStatus = _msg.deserializeTo(args);
11805  FW_ASSERT (
11806  _deserStatus == Fw::FW_SERIALIZE_OK,
11807  static_cast<FwAssertArgType>(_deserStatus)
11808  );
11809 
11810  // Reset buffer
11811  args.resetDeser();
11812 
11813  // Make sure there was no data left over.
11814  // That means the argument buffer size was incorrect.
11815 #if FW_CMD_CHECK_RESIDUAL
11816  if (args.getDeserializeSizeLeft() != 0) {
11818  this->cmdResponse_out(_opCode, _cmdSeq, Fw::CmdResponse::FORMAT_ERROR);
11819  }
11820  // Don't crash the task if bad arguments were passed from the ground
11821  break;
11822  }
11823 #endif
11824 
11825  // Call handler function
11826  this->CLEAR_BREAKPOINT_cmdHandler(_opCode, _cmdSeq);
11827 
11828  break;
11829  }
11830 
11831  // Handle command STEP
11832  case CMD_STEP: {
11833  // Deserialize opcode
11834  FwOpcodeType _opCode = 0;
11835  _deserStatus = _msg.deserializeTo(_opCode);
11836  FW_ASSERT (
11837  _deserStatus == Fw::FW_SERIALIZE_OK,
11838  static_cast<FwAssertArgType>(_deserStatus)
11839  );
11840 
11841  // Deserialize command sequence
11842  U32 _cmdSeq = 0;
11843  _deserStatus = _msg.deserializeTo(_cmdSeq);
11844  FW_ASSERT (
11845  _deserStatus == Fw::FW_SERIALIZE_OK,
11846  static_cast<FwAssertArgType>(_deserStatus)
11847  );
11848 
11849  // Deserialize command argument buffer
11850  Fw::CmdArgBuffer args;
11851  _deserStatus = _msg.deserializeTo(args);
11852  FW_ASSERT (
11853  _deserStatus == Fw::FW_SERIALIZE_OK,
11854  static_cast<FwAssertArgType>(_deserStatus)
11855  );
11856 
11857  // Reset buffer
11858  args.resetDeser();
11859 
11860  // Make sure there was no data left over.
11861  // That means the argument buffer size was incorrect.
11862 #if FW_CMD_CHECK_RESIDUAL
11863  if (args.getDeserializeSizeLeft() != 0) {
11865  this->cmdResponse_out(_opCode, _cmdSeq, Fw::CmdResponse::FORMAT_ERROR);
11866  }
11867  // Don't crash the task if bad arguments were passed from the ground
11868  break;
11869  }
11870 #endif
11871 
11872  // Call handler function
11873  this->STEP_cmdHandler(_opCode, _cmdSeq);
11874 
11875  break;
11876  }
11877 
11878  // Handle command DUMP_STACK_TO_FILE
11879  case CMD_DUMP_STACK_TO_FILE: {
11880  // Deserialize opcode
11881  FwOpcodeType _opCode = 0;
11882  _deserStatus = _msg.deserializeTo(_opCode);
11883  FW_ASSERT (
11884  _deserStatus == Fw::FW_SERIALIZE_OK,
11885  static_cast<FwAssertArgType>(_deserStatus)
11886  );
11887 
11888  // Deserialize command sequence
11889  U32 _cmdSeq = 0;
11890  _deserStatus = _msg.deserializeTo(_cmdSeq);
11891  FW_ASSERT (
11892  _deserStatus == Fw::FW_SERIALIZE_OK,
11893  static_cast<FwAssertArgType>(_deserStatus)
11894  );
11895 
11896  // Deserialize command argument buffer
11897  Fw::CmdArgBuffer args;
11898  _deserStatus = _msg.deserializeTo(args);
11899  FW_ASSERT (
11900  _deserStatus == Fw::FW_SERIALIZE_OK,
11901  static_cast<FwAssertArgType>(_deserStatus)
11902  );
11903 
11904  // Reset buffer
11905  args.resetDeser();
11906 
11907  // Deserialize argument fileName
11908  Fw::CmdStringArg fileName;
11909  _deserStatus = args.deserializeTo(fileName);
11910  if (_deserStatus != Fw::FW_SERIALIZE_OK) {
11912  this->cmdResponse_out(
11913  _opCode,
11914  _cmdSeq,
11916  );
11917  }
11918  // Don't crash the task if bad arguments were passed from the ground
11919  break;
11920  }
11921 
11922  // Make sure there was no data left over.
11923  // That means the argument buffer size was incorrect.
11924 #if FW_CMD_CHECK_RESIDUAL
11925  if (args.getDeserializeSizeLeft() != 0) {
11927  this->cmdResponse_out(_opCode, _cmdSeq, Fw::CmdResponse::FORMAT_ERROR);
11928  }
11929  // Don't crash the task if bad arguments were passed from the ground
11930  break;
11931  }
11932 #endif
11933 
11934  // Call handler function
11936  _opCode, _cmdSeq,
11937  fileName
11938  );
11939 
11940  break;
11941  }
11942 
11943  // Handle internal interface checkTimersInternal
11944  case INT_IF_CHECKTIMERSINTERNAL: {
11945  // Make sure there was no data left over.
11946  // That means the buffer size was incorrect.
11947  FW_ASSERT(
11948  _msg.getDeserializeSizeLeft() == 0,
11949  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
11950  );
11951 
11952  // Call handler function
11954 
11955  break;
11956  }
11957 
11958  // Handle internal interface directive_allocate
11959  case INT_IF_DIRECTIVE_ALLOCATE: {
11961  _deserStatus = _msg.deserializeTo(directive);
11962 
11963  // Internal interface should always deserialize
11964  FW_ASSERT(
11965  Fw::FW_SERIALIZE_OK == _deserStatus,
11966  static_cast<FwAssertArgType>(_deserStatus)
11967  );
11968 
11969  U64 sequenceIndex;
11970  _deserStatus = _msg.deserializeTo(sequenceIndex);
11971 
11972  // Internal interface should always deserialize
11973  FW_ASSERT(
11974  Fw::FW_SERIALIZE_OK == _deserStatus,
11975  static_cast<FwAssertArgType>(_deserStatus)
11976  );
11977 
11978  // Make sure there was no data left over.
11979  // That means the buffer size was incorrect.
11980  FW_ASSERT(
11981  _msg.getDeserializeSizeLeft() == 0,
11982  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
11983  );
11984 
11985  // Call handler function
11987  directive,
11988  sequenceIndex
11989  );
11990 
11991  break;
11992  }
11993 
11994  // Handle internal interface directive_call
11995  case INT_IF_DIRECTIVE_CALL: {
11997  _deserStatus = _msg.deserializeTo(directive);
11998 
11999  // Internal interface should always deserialize
12000  FW_ASSERT(
12001  Fw::FW_SERIALIZE_OK == _deserStatus,
12002  static_cast<FwAssertArgType>(_deserStatus)
12003  );
12004 
12005  U64 sequenceIndex;
12006  _deserStatus = _msg.deserializeTo(sequenceIndex);
12007 
12008  // Internal interface should always deserialize
12009  FW_ASSERT(
12010  Fw::FW_SERIALIZE_OK == _deserStatus,
12011  static_cast<FwAssertArgType>(_deserStatus)
12012  );
12013 
12014  // Make sure there was no data left over.
12015  // That means the buffer size was incorrect.
12016  FW_ASSERT(
12017  _msg.getDeserializeSizeLeft() == 0,
12018  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12019  );
12020 
12021  // Call handler function
12023  directive,
12024  sequenceIndex
12025  );
12026 
12027  break;
12028  }
12029 
12030  // Handle internal interface directive_constCmd
12031  case INT_IF_DIRECTIVE_CONSTCMD: {
12033  _deserStatus = _msg.deserializeTo(directive);
12034 
12035  // Internal interface should always deserialize
12036  FW_ASSERT(
12037  Fw::FW_SERIALIZE_OK == _deserStatus,
12038  static_cast<FwAssertArgType>(_deserStatus)
12039  );
12040 
12041  U64 sequenceIndex;
12042  _deserStatus = _msg.deserializeTo(sequenceIndex);
12043 
12044  // Internal interface should always deserialize
12045  FW_ASSERT(
12046  Fw::FW_SERIALIZE_OK == _deserStatus,
12047  static_cast<FwAssertArgType>(_deserStatus)
12048  );
12049 
12050  // Make sure there was no data left over.
12051  // That means the buffer size was incorrect.
12052  FW_ASSERT(
12053  _msg.getDeserializeSizeLeft() == 0,
12054  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12055  );
12056 
12057  // Call handler function
12059  directive,
12060  sequenceIndex
12061  );
12062 
12063  break;
12064  }
12065 
12066  // Handle internal interface directive_discard
12067  case INT_IF_DIRECTIVE_DISCARD: {
12069  _deserStatus = _msg.deserializeTo(directive);
12070 
12071  // Internal interface should always deserialize
12072  FW_ASSERT(
12073  Fw::FW_SERIALIZE_OK == _deserStatus,
12074  static_cast<FwAssertArgType>(_deserStatus)
12075  );
12076 
12077  U64 sequenceIndex;
12078  _deserStatus = _msg.deserializeTo(sequenceIndex);
12079 
12080  // Internal interface should always deserialize
12081  FW_ASSERT(
12082  Fw::FW_SERIALIZE_OK == _deserStatus,
12083  static_cast<FwAssertArgType>(_deserStatus)
12084  );
12085 
12086  // Make sure there was no data left over.
12087  // That means the buffer size was incorrect.
12088  FW_ASSERT(
12089  _msg.getDeserializeSizeLeft() == 0,
12090  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12091  );
12092 
12093  // Call handler function
12095  directive,
12096  sequenceIndex
12097  );
12098 
12099  break;
12100  }
12101 
12102  // Handle internal interface directive_exit
12103  case INT_IF_DIRECTIVE_EXIT: {
12105  _deserStatus = _msg.deserializeTo(directive);
12106 
12107  // Internal interface should always deserialize
12108  FW_ASSERT(
12109  Fw::FW_SERIALIZE_OK == _deserStatus,
12110  static_cast<FwAssertArgType>(_deserStatus)
12111  );
12112 
12113  U64 sequenceIndex;
12114  _deserStatus = _msg.deserializeTo(sequenceIndex);
12115 
12116  // Internal interface should always deserialize
12117  FW_ASSERT(
12118  Fw::FW_SERIALIZE_OK == _deserStatus,
12119  static_cast<FwAssertArgType>(_deserStatus)
12120  );
12121 
12122  // Make sure there was no data left over.
12123  // That means the buffer size was incorrect.
12124  FW_ASSERT(
12125  _msg.getDeserializeSizeLeft() == 0,
12126  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12127  );
12128 
12129  // Call handler function
12131  directive,
12132  sequenceIndex
12133  );
12134 
12135  break;
12136  }
12137 
12138  // Handle internal interface directive_getField
12139  case INT_IF_DIRECTIVE_GETFIELD: {
12141  _deserStatus = _msg.deserializeTo(directive);
12142 
12143  // Internal interface should always deserialize
12144  FW_ASSERT(
12145  Fw::FW_SERIALIZE_OK == _deserStatus,
12146  static_cast<FwAssertArgType>(_deserStatus)
12147  );
12148 
12149  U64 sequenceIndex;
12150  _deserStatus = _msg.deserializeTo(sequenceIndex);
12151 
12152  // Internal interface should always deserialize
12153  FW_ASSERT(
12154  Fw::FW_SERIALIZE_OK == _deserStatus,
12155  static_cast<FwAssertArgType>(_deserStatus)
12156  );
12157 
12158  // Make sure there was no data left over.
12159  // That means the buffer size was incorrect.
12160  FW_ASSERT(
12161  _msg.getDeserializeSizeLeft() == 0,
12162  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12163  );
12164 
12165  // Call handler function
12167  directive,
12168  sequenceIndex
12169  );
12170 
12171  break;
12172  }
12173 
12174  // Handle internal interface directive_goto
12175  case INT_IF_DIRECTIVE_GOTO: {
12177  _deserStatus = _msg.deserializeTo(directive);
12178 
12179  // Internal interface should always deserialize
12180  FW_ASSERT(
12181  Fw::FW_SERIALIZE_OK == _deserStatus,
12182  static_cast<FwAssertArgType>(_deserStatus)
12183  );
12184 
12185  U64 sequenceIndex;
12186  _deserStatus = _msg.deserializeTo(sequenceIndex);
12187 
12188  // Internal interface should always deserialize
12189  FW_ASSERT(
12190  Fw::FW_SERIALIZE_OK == _deserStatus,
12191  static_cast<FwAssertArgType>(_deserStatus)
12192  );
12193 
12194  // Make sure there was no data left over.
12195  // That means the buffer size was incorrect.
12196  FW_ASSERT(
12197  _msg.getDeserializeSizeLeft() == 0,
12198  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12199  );
12200 
12201  // Call handler function
12203  directive,
12204  sequenceIndex
12205  );
12206 
12207  break;
12208  }
12209 
12210  // Handle internal interface directive_if
12211  case INT_IF_DIRECTIVE_IF: {
12213  _deserStatus = _msg.deserializeTo(directive);
12214 
12215  // Internal interface should always deserialize
12216  FW_ASSERT(
12217  Fw::FW_SERIALIZE_OK == _deserStatus,
12218  static_cast<FwAssertArgType>(_deserStatus)
12219  );
12220 
12221  U64 sequenceIndex;
12222  _deserStatus = _msg.deserializeTo(sequenceIndex);
12223 
12224  // Internal interface should always deserialize
12225  FW_ASSERT(
12226  Fw::FW_SERIALIZE_OK == _deserStatus,
12227  static_cast<FwAssertArgType>(_deserStatus)
12228  );
12229 
12230  // Make sure there was no data left over.
12231  // That means the buffer size was incorrect.
12232  FW_ASSERT(
12233  _msg.getDeserializeSizeLeft() == 0,
12234  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12235  );
12236 
12237  // Call handler function
12239  directive,
12240  sequenceIndex
12241  );
12242 
12243  break;
12244  }
12245 
12246  // Handle internal interface directive_loadAbs
12247  case INT_IF_DIRECTIVE_LOADABS: {
12249  _deserStatus = _msg.deserializeTo(directive);
12250 
12251  // Internal interface should always deserialize
12252  FW_ASSERT(
12253  Fw::FW_SERIALIZE_OK == _deserStatus,
12254  static_cast<FwAssertArgType>(_deserStatus)
12255  );
12256 
12257  U64 sequenceIndex;
12258  _deserStatus = _msg.deserializeTo(sequenceIndex);
12259 
12260  // Internal interface should always deserialize
12261  FW_ASSERT(
12262  Fw::FW_SERIALIZE_OK == _deserStatus,
12263  static_cast<FwAssertArgType>(_deserStatus)
12264  );
12265 
12266  // Make sure there was no data left over.
12267  // That means the buffer size was incorrect.
12268  FW_ASSERT(
12269  _msg.getDeserializeSizeLeft() == 0,
12270  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12271  );
12272 
12273  // Call handler function
12275  directive,
12276  sequenceIndex
12277  );
12278 
12279  break;
12280  }
12281 
12282  // Handle internal interface directive_loadRel
12283  case INT_IF_DIRECTIVE_LOADREL: {
12285  _deserStatus = _msg.deserializeTo(directive);
12286 
12287  // Internal interface should always deserialize
12288  FW_ASSERT(
12289  Fw::FW_SERIALIZE_OK == _deserStatus,
12290  static_cast<FwAssertArgType>(_deserStatus)
12291  );
12292 
12293  U64 sequenceIndex;
12294  _deserStatus = _msg.deserializeTo(sequenceIndex);
12295 
12296  // Internal interface should always deserialize
12297  FW_ASSERT(
12298  Fw::FW_SERIALIZE_OK == _deserStatus,
12299  static_cast<FwAssertArgType>(_deserStatus)
12300  );
12301 
12302  // Make sure there was no data left over.
12303  // That means the buffer size was incorrect.
12304  FW_ASSERT(
12305  _msg.getDeserializeSizeLeft() == 0,
12306  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12307  );
12308 
12309  // Call handler function
12311  directive,
12312  sequenceIndex
12313  );
12314 
12315  break;
12316  }
12317 
12318  // Handle internal interface directive_memCmp
12319  case INT_IF_DIRECTIVE_MEMCMP: {
12321  _deserStatus = _msg.deserializeTo(directive);
12322 
12323  // Internal interface should always deserialize
12324  FW_ASSERT(
12325  Fw::FW_SERIALIZE_OK == _deserStatus,
12326  static_cast<FwAssertArgType>(_deserStatus)
12327  );
12328 
12329  U64 sequenceIndex;
12330  _deserStatus = _msg.deserializeTo(sequenceIndex);
12331 
12332  // Internal interface should always deserialize
12333  FW_ASSERT(
12334  Fw::FW_SERIALIZE_OK == _deserStatus,
12335  static_cast<FwAssertArgType>(_deserStatus)
12336  );
12337 
12338  // Make sure there was no data left over.
12339  // That means the buffer size was incorrect.
12340  FW_ASSERT(
12341  _msg.getDeserializeSizeLeft() == 0,
12342  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12343  );
12344 
12345  // Call handler function
12347  directive,
12348  sequenceIndex
12349  );
12350 
12351  break;
12352  }
12353 
12354  // Handle internal interface directive_noOp
12355  case INT_IF_DIRECTIVE_NOOP: {
12357  _deserStatus = _msg.deserializeTo(directive);
12358 
12359  // Internal interface should always deserialize
12360  FW_ASSERT(
12361  Fw::FW_SERIALIZE_OK == _deserStatus,
12362  static_cast<FwAssertArgType>(_deserStatus)
12363  );
12364 
12365  U64 sequenceIndex;
12366  _deserStatus = _msg.deserializeTo(sequenceIndex);
12367 
12368  // Internal interface should always deserialize
12369  FW_ASSERT(
12370  Fw::FW_SERIALIZE_OK == _deserStatus,
12371  static_cast<FwAssertArgType>(_deserStatus)
12372  );
12373 
12374  // Make sure there was no data left over.
12375  // That means the buffer size was incorrect.
12376  FW_ASSERT(
12377  _msg.getDeserializeSizeLeft() == 0,
12378  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12379  );
12380 
12381  // Call handler function
12383  directive,
12384  sequenceIndex
12385  );
12386 
12387  break;
12388  }
12389 
12390  // Handle internal interface directive_peek
12391  case INT_IF_DIRECTIVE_PEEK: {
12393  _deserStatus = _msg.deserializeTo(directive);
12394 
12395  // Internal interface should always deserialize
12396  FW_ASSERT(
12397  Fw::FW_SERIALIZE_OK == _deserStatus,
12398  static_cast<FwAssertArgType>(_deserStatus)
12399  );
12400 
12401  U64 sequenceIndex;
12402  _deserStatus = _msg.deserializeTo(sequenceIndex);
12403 
12404  // Internal interface should always deserialize
12405  FW_ASSERT(
12406  Fw::FW_SERIALIZE_OK == _deserStatus,
12407  static_cast<FwAssertArgType>(_deserStatus)
12408  );
12409 
12410  // Make sure there was no data left over.
12411  // That means the buffer size was incorrect.
12412  FW_ASSERT(
12413  _msg.getDeserializeSizeLeft() == 0,
12414  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12415  );
12416 
12417  // Call handler function
12419  directive,
12420  sequenceIndex
12421  );
12422 
12423  break;
12424  }
12425 
12426  // Handle internal interface directive_popEvent
12427  case INT_IF_DIRECTIVE_POPEVENT: {
12429  _deserStatus = _msg.deserializeTo(directive);
12430 
12431  // Internal interface should always deserialize
12432  FW_ASSERT(
12433  Fw::FW_SERIALIZE_OK == _deserStatus,
12434  static_cast<FwAssertArgType>(_deserStatus)
12435  );
12436 
12437  U64 sequenceIndex;
12438  _deserStatus = _msg.deserializeTo(sequenceIndex);
12439 
12440  // Internal interface should always deserialize
12441  FW_ASSERT(
12442  Fw::FW_SERIALIZE_OK == _deserStatus,
12443  static_cast<FwAssertArgType>(_deserStatus)
12444  );
12445 
12446  // Make sure there was no data left over.
12447  // That means the buffer size was incorrect.
12448  FW_ASSERT(
12449  _msg.getDeserializeSizeLeft() == 0,
12450  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12451  );
12452 
12453  // Call handler function
12455  directive,
12456  sequenceIndex
12457  );
12458 
12459  break;
12460  }
12461 
12462  // Handle internal interface directive_popSerializable
12463  case INT_IF_DIRECTIVE_POPSERIALIZABLE: {
12465  _deserStatus = _msg.deserializeTo(directive);
12466 
12467  // Internal interface should always deserialize
12468  FW_ASSERT(
12469  Fw::FW_SERIALIZE_OK == _deserStatus,
12470  static_cast<FwAssertArgType>(_deserStatus)
12471  );
12472 
12473  U64 sequenceIndex;
12474  _deserStatus = _msg.deserializeTo(sequenceIndex);
12475 
12476  // Internal interface should always deserialize
12477  FW_ASSERT(
12478  Fw::FW_SERIALIZE_OK == _deserStatus,
12479  static_cast<FwAssertArgType>(_deserStatus)
12480  );
12481 
12482  // Make sure there was no data left over.
12483  // That means the buffer size was incorrect.
12484  FW_ASSERT(
12485  _msg.getDeserializeSizeLeft() == 0,
12486  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12487  );
12488 
12489  // Call handler function
12491  directive,
12492  sequenceIndex
12493  );
12494 
12495  break;
12496  }
12497 
12498  // Handle internal interface directive_pushPrm
12499  case INT_IF_DIRECTIVE_PUSHPRM: {
12501  _deserStatus = _msg.deserializeTo(directive);
12502 
12503  // Internal interface should always deserialize
12504  FW_ASSERT(
12505  Fw::FW_SERIALIZE_OK == _deserStatus,
12506  static_cast<FwAssertArgType>(_deserStatus)
12507  );
12508 
12509  U64 sequenceIndex;
12510  _deserStatus = _msg.deserializeTo(sequenceIndex);
12511 
12512  // Internal interface should always deserialize
12513  FW_ASSERT(
12514  Fw::FW_SERIALIZE_OK == _deserStatus,
12515  static_cast<FwAssertArgType>(_deserStatus)
12516  );
12517 
12518  // Make sure there was no data left over.
12519  // That means the buffer size was incorrect.
12520  FW_ASSERT(
12521  _msg.getDeserializeSizeLeft() == 0,
12522  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12523  );
12524 
12525  // Call handler function
12527  directive,
12528  sequenceIndex
12529  );
12530 
12531  break;
12532  }
12533 
12534  // Handle internal interface directive_pushRand
12535  case INT_IF_DIRECTIVE_PUSHRAND: {
12537  _deserStatus = _msg.deserializeTo(directive);
12538 
12539  // Internal interface should always deserialize
12540  FW_ASSERT(
12541  Fw::FW_SERIALIZE_OK == _deserStatus,
12542  static_cast<FwAssertArgType>(_deserStatus)
12543  );
12544 
12545  U64 sequenceIndex;
12546  _deserStatus = _msg.deserializeTo(sequenceIndex);
12547 
12548  // Internal interface should always deserialize
12549  FW_ASSERT(
12550  Fw::FW_SERIALIZE_OK == _deserStatus,
12551  static_cast<FwAssertArgType>(_deserStatus)
12552  );
12553 
12554  // Make sure there was no data left over.
12555  // That means the buffer size was incorrect.
12556  FW_ASSERT(
12557  _msg.getDeserializeSizeLeft() == 0,
12558  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12559  );
12560 
12561  // Call handler function
12563  directive,
12564  sequenceIndex
12565  );
12566 
12567  break;
12568  }
12569 
12570  // Handle internal interface directive_pushTime
12571  case INT_IF_DIRECTIVE_PUSHTIME: {
12573  _deserStatus = _msg.deserializeTo(directive);
12574 
12575  // Internal interface should always deserialize
12576  FW_ASSERT(
12577  Fw::FW_SERIALIZE_OK == _deserStatus,
12578  static_cast<FwAssertArgType>(_deserStatus)
12579  );
12580 
12581  U64 sequenceIndex;
12582  _deserStatus = _msg.deserializeTo(sequenceIndex);
12583 
12584  // Internal interface should always deserialize
12585  FW_ASSERT(
12586  Fw::FW_SERIALIZE_OK == _deserStatus,
12587  static_cast<FwAssertArgType>(_deserStatus)
12588  );
12589 
12590  // Make sure there was no data left over.
12591  // That means the buffer size was incorrect.
12592  FW_ASSERT(
12593  _msg.getDeserializeSizeLeft() == 0,
12594  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12595  );
12596 
12597  // Call handler function
12599  directive,
12600  sequenceIndex
12601  );
12602 
12603  break;
12604  }
12605 
12606  // Handle internal interface directive_pushTlmVal
12607  case INT_IF_DIRECTIVE_PUSHTLMVAL: {
12609  _deserStatus = _msg.deserializeTo(directive);
12610 
12611  // Internal interface should always deserialize
12612  FW_ASSERT(
12613  Fw::FW_SERIALIZE_OK == _deserStatus,
12614  static_cast<FwAssertArgType>(_deserStatus)
12615  );
12616 
12617  U64 sequenceIndex;
12618  _deserStatus = _msg.deserializeTo(sequenceIndex);
12619 
12620  // Internal interface should always deserialize
12621  FW_ASSERT(
12622  Fw::FW_SERIALIZE_OK == _deserStatus,
12623  static_cast<FwAssertArgType>(_deserStatus)
12624  );
12625 
12626  // Make sure there was no data left over.
12627  // That means the buffer size was incorrect.
12628  FW_ASSERT(
12629  _msg.getDeserializeSizeLeft() == 0,
12630  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12631  );
12632 
12633  // Call handler function
12635  directive,
12636  sequenceIndex
12637  );
12638 
12639  break;
12640  }
12641 
12642  // Handle internal interface directive_pushTlmValAndTime
12643  case INT_IF_DIRECTIVE_PUSHTLMVALANDTIME: {
12645  _deserStatus = _msg.deserializeTo(directive);
12646 
12647  // Internal interface should always deserialize
12648  FW_ASSERT(
12649  Fw::FW_SERIALIZE_OK == _deserStatus,
12650  static_cast<FwAssertArgType>(_deserStatus)
12651  );
12652 
12653  U64 sequenceIndex;
12654  _deserStatus = _msg.deserializeTo(sequenceIndex);
12655 
12656  // Internal interface should always deserialize
12657  FW_ASSERT(
12658  Fw::FW_SERIALIZE_OK == _deserStatus,
12659  static_cast<FwAssertArgType>(_deserStatus)
12660  );
12661 
12662  // Make sure there was no data left over.
12663  // That means the buffer size was incorrect.
12664  FW_ASSERT(
12665  _msg.getDeserializeSizeLeft() == 0,
12666  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12667  );
12668 
12669  // Call handler function
12671  directive,
12672  sequenceIndex
12673  );
12674 
12675  break;
12676  }
12677 
12678  // Handle internal interface directive_pushVal
12679  case INT_IF_DIRECTIVE_PUSHVAL: {
12681  _deserStatus = _msg.deserializeTo(directive);
12682 
12683  // Internal interface should always deserialize
12684  FW_ASSERT(
12685  Fw::FW_SERIALIZE_OK == _deserStatus,
12686  static_cast<FwAssertArgType>(_deserStatus)
12687  );
12688 
12689  U64 sequenceIndex;
12690  _deserStatus = _msg.deserializeTo(sequenceIndex);
12691 
12692  // Internal interface should always deserialize
12693  FW_ASSERT(
12694  Fw::FW_SERIALIZE_OK == _deserStatus,
12695  static_cast<FwAssertArgType>(_deserStatus)
12696  );
12697 
12698  // Make sure there was no data left over.
12699  // That means the buffer size was incorrect.
12700  FW_ASSERT(
12701  _msg.getDeserializeSizeLeft() == 0,
12702  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12703  );
12704 
12705  // Call handler function
12707  directive,
12708  sequenceIndex
12709  );
12710 
12711  break;
12712  }
12713 
12714  // Handle internal interface directive_return
12715  case INT_IF_DIRECTIVE_RETURN: {
12717  _deserStatus = _msg.deserializeTo(directive);
12718 
12719  // Internal interface should always deserialize
12720  FW_ASSERT(
12721  Fw::FW_SERIALIZE_OK == _deserStatus,
12722  static_cast<FwAssertArgType>(_deserStatus)
12723  );
12724 
12725  U64 sequenceIndex;
12726  _deserStatus = _msg.deserializeTo(sequenceIndex);
12727 
12728  // Internal interface should always deserialize
12729  FW_ASSERT(
12730  Fw::FW_SERIALIZE_OK == _deserStatus,
12731  static_cast<FwAssertArgType>(_deserStatus)
12732  );
12733 
12734  // Make sure there was no data left over.
12735  // That means the buffer size was incorrect.
12736  FW_ASSERT(
12737  _msg.getDeserializeSizeLeft() == 0,
12738  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12739  );
12740 
12741  // Call handler function
12743  directive,
12744  sequenceIndex
12745  );
12746 
12747  break;
12748  }
12749 
12750  // Handle internal interface directive_setSeed
12751  case INT_IF_DIRECTIVE_SETSEED: {
12753  _deserStatus = _msg.deserializeTo(directive);
12754 
12755  // Internal interface should always deserialize
12756  FW_ASSERT(
12757  Fw::FW_SERIALIZE_OK == _deserStatus,
12758  static_cast<FwAssertArgType>(_deserStatus)
12759  );
12760 
12761  U64 sequenceIndex;
12762  _deserStatus = _msg.deserializeTo(sequenceIndex);
12763 
12764  // Internal interface should always deserialize
12765  FW_ASSERT(
12766  Fw::FW_SERIALIZE_OK == _deserStatus,
12767  static_cast<FwAssertArgType>(_deserStatus)
12768  );
12769 
12770  // Make sure there was no data left over.
12771  // That means the buffer size was incorrect.
12772  FW_ASSERT(
12773  _msg.getDeserializeSizeLeft() == 0,
12774  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12775  );
12776 
12777  // Call handler function
12779  directive,
12780  sequenceIndex
12781  );
12782 
12783  break;
12784  }
12785 
12786  // Handle internal interface directive_stackCmd
12787  case INT_IF_DIRECTIVE_STACKCMD: {
12789  _deserStatus = _msg.deserializeTo(directive);
12790 
12791  // Internal interface should always deserialize
12792  FW_ASSERT(
12793  Fw::FW_SERIALIZE_OK == _deserStatus,
12794  static_cast<FwAssertArgType>(_deserStatus)
12795  );
12796 
12797  U64 sequenceIndex;
12798  _deserStatus = _msg.deserializeTo(sequenceIndex);
12799 
12800  // Internal interface should always deserialize
12801  FW_ASSERT(
12802  Fw::FW_SERIALIZE_OK == _deserStatus,
12803  static_cast<FwAssertArgType>(_deserStatus)
12804  );
12805 
12806  // Make sure there was no data left over.
12807  // That means the buffer size was incorrect.
12808  FW_ASSERT(
12809  _msg.getDeserializeSizeLeft() == 0,
12810  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12811  );
12812 
12813  // Call handler function
12815  directive,
12816  sequenceIndex
12817  );
12818 
12819  break;
12820  }
12821 
12822  // Handle internal interface directive_stackOp
12823  case INT_IF_DIRECTIVE_STACKOP: {
12825  _deserStatus = _msg.deserializeTo(directive);
12826 
12827  // Internal interface should always deserialize
12828  FW_ASSERT(
12829  Fw::FW_SERIALIZE_OK == _deserStatus,
12830  static_cast<FwAssertArgType>(_deserStatus)
12831  );
12832 
12833  U64 sequenceIndex;
12834  _deserStatus = _msg.deserializeTo(sequenceIndex);
12835 
12836  // Internal interface should always deserialize
12837  FW_ASSERT(
12838  Fw::FW_SERIALIZE_OK == _deserStatus,
12839  static_cast<FwAssertArgType>(_deserStatus)
12840  );
12841 
12842  // Make sure there was no data left over.
12843  // That means the buffer size was incorrect.
12844  FW_ASSERT(
12845  _msg.getDeserializeSizeLeft() == 0,
12846  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12847  );
12848 
12849  // Call handler function
12851  directive,
12852  sequenceIndex
12853  );
12854 
12855  break;
12856  }
12857 
12858  // Handle internal interface directive_storeAbs
12859  case INT_IF_DIRECTIVE_STOREABS: {
12861  _deserStatus = _msg.deserializeTo(directive);
12862 
12863  // Internal interface should always deserialize
12864  FW_ASSERT(
12865  Fw::FW_SERIALIZE_OK == _deserStatus,
12866  static_cast<FwAssertArgType>(_deserStatus)
12867  );
12868 
12869  U64 sequenceIndex;
12870  _deserStatus = _msg.deserializeTo(sequenceIndex);
12871 
12872  // Internal interface should always deserialize
12873  FW_ASSERT(
12874  Fw::FW_SERIALIZE_OK == _deserStatus,
12875  static_cast<FwAssertArgType>(_deserStatus)
12876  );
12877 
12878  // Make sure there was no data left over.
12879  // That means the buffer size was incorrect.
12880  FW_ASSERT(
12881  _msg.getDeserializeSizeLeft() == 0,
12882  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12883  );
12884 
12885  // Call handler function
12887  directive,
12888  sequenceIndex
12889  );
12890 
12891  break;
12892  }
12893 
12894  // Handle internal interface directive_storeAbsConstOffset
12895  case INT_IF_DIRECTIVE_STOREABSCONSTOFFSET: {
12897  _deserStatus = _msg.deserializeTo(directive);
12898 
12899  // Internal interface should always deserialize
12900  FW_ASSERT(
12901  Fw::FW_SERIALIZE_OK == _deserStatus,
12902  static_cast<FwAssertArgType>(_deserStatus)
12903  );
12904 
12905  U64 sequenceIndex;
12906  _deserStatus = _msg.deserializeTo(sequenceIndex);
12907 
12908  // Internal interface should always deserialize
12909  FW_ASSERT(
12910  Fw::FW_SERIALIZE_OK == _deserStatus,
12911  static_cast<FwAssertArgType>(_deserStatus)
12912  );
12913 
12914  // Make sure there was no data left over.
12915  // That means the buffer size was incorrect.
12916  FW_ASSERT(
12917  _msg.getDeserializeSizeLeft() == 0,
12918  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12919  );
12920 
12921  // Call handler function
12923  directive,
12924  sequenceIndex
12925  );
12926 
12927  break;
12928  }
12929 
12930  // Handle internal interface directive_storeRel
12931  case INT_IF_DIRECTIVE_STOREREL: {
12933  _deserStatus = _msg.deserializeTo(directive);
12934 
12935  // Internal interface should always deserialize
12936  FW_ASSERT(
12937  Fw::FW_SERIALIZE_OK == _deserStatus,
12938  static_cast<FwAssertArgType>(_deserStatus)
12939  );
12940 
12941  U64 sequenceIndex;
12942  _deserStatus = _msg.deserializeTo(sequenceIndex);
12943 
12944  // Internal interface should always deserialize
12945  FW_ASSERT(
12946  Fw::FW_SERIALIZE_OK == _deserStatus,
12947  static_cast<FwAssertArgType>(_deserStatus)
12948  );
12949 
12950  // Make sure there was no data left over.
12951  // That means the buffer size was incorrect.
12952  FW_ASSERT(
12953  _msg.getDeserializeSizeLeft() == 0,
12954  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12955  );
12956 
12957  // Call handler function
12959  directive,
12960  sequenceIndex
12961  );
12962 
12963  break;
12964  }
12965 
12966  // Handle internal interface directive_storeRelConstOffset
12967  case INT_IF_DIRECTIVE_STORERELCONSTOFFSET: {
12969  _deserStatus = _msg.deserializeTo(directive);
12970 
12971  // Internal interface should always deserialize
12972  FW_ASSERT(
12973  Fw::FW_SERIALIZE_OK == _deserStatus,
12974  static_cast<FwAssertArgType>(_deserStatus)
12975  );
12976 
12977  U64 sequenceIndex;
12978  _deserStatus = _msg.deserializeTo(sequenceIndex);
12979 
12980  // Internal interface should always deserialize
12981  FW_ASSERT(
12982  Fw::FW_SERIALIZE_OK == _deserStatus,
12983  static_cast<FwAssertArgType>(_deserStatus)
12984  );
12985 
12986  // Make sure there was no data left over.
12987  // That means the buffer size was incorrect.
12988  FW_ASSERT(
12989  _msg.getDeserializeSizeLeft() == 0,
12990  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
12991  );
12992 
12993  // Call handler function
12995  directive,
12996  sequenceIndex
12997  );
12998 
12999  break;
13000  }
13001 
13002  // Handle internal interface directive_waitAbs
13003  case INT_IF_DIRECTIVE_WAITABS: {
13005  _deserStatus = _msg.deserializeTo(directive);
13006 
13007  // Internal interface should always deserialize
13008  FW_ASSERT(
13009  Fw::FW_SERIALIZE_OK == _deserStatus,
13010  static_cast<FwAssertArgType>(_deserStatus)
13011  );
13012 
13013  U64 sequenceIndex;
13014  _deserStatus = _msg.deserializeTo(sequenceIndex);
13015 
13016  // Internal interface should always deserialize
13017  FW_ASSERT(
13018  Fw::FW_SERIALIZE_OK == _deserStatus,
13019  static_cast<FwAssertArgType>(_deserStatus)
13020  );
13021 
13022  // Make sure there was no data left over.
13023  // That means the buffer size was incorrect.
13024  FW_ASSERT(
13025  _msg.getDeserializeSizeLeft() == 0,
13026  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
13027  );
13028 
13029  // Call handler function
13031  directive,
13032  sequenceIndex
13033  );
13034 
13035  break;
13036  }
13037 
13038  // Handle internal interface directive_waitRel
13039  case INT_IF_DIRECTIVE_WAITREL: {
13041  _deserStatus = _msg.deserializeTo(directive);
13042 
13043  // Internal interface should always deserialize
13044  FW_ASSERT(
13045  Fw::FW_SERIALIZE_OK == _deserStatus,
13046  static_cast<FwAssertArgType>(_deserStatus)
13047  );
13048 
13049  U64 sequenceIndex;
13050  _deserStatus = _msg.deserializeTo(sequenceIndex);
13051 
13052  // Internal interface should always deserialize
13053  FW_ASSERT(
13054  Fw::FW_SERIALIZE_OK == _deserStatus,
13055  static_cast<FwAssertArgType>(_deserStatus)
13056  );
13057 
13058  // Make sure there was no data left over.
13059  // That means the buffer size was incorrect.
13060  FW_ASSERT(
13061  _msg.getDeserializeSizeLeft() == 0,
13062  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
13063  );
13064 
13065  // Call handler function
13067  directive,
13068  sequenceIndex
13069  );
13070 
13071  break;
13072  }
13073 
13074  // Handle internal interface tlmWriteInternal
13075  case INT_IF_TLMWRITEINTERNAL: {
13076  // Make sure there was no data left over.
13077  // That means the buffer size was incorrect.
13078  FW_ASSERT(
13079  _msg.getDeserializeSizeLeft() == 0,
13080  static_cast<FwAssertArgType>(_msg.getDeserializeSizeLeft())
13081  );
13082 
13083  // Call handler function
13085 
13086  break;
13087  }
13088 
13089 
13090  // Handle signals to internal state machines
13091  case INTERNAL_STATE_MACHINE_SIGNAL:
13092  this->smDispatch(_msg);
13093  break;
13094 
13095  default:
13096  return MSG_DISPATCH_ERROR;
13097  }
13098 
13099  return MSG_DISPATCH_OK;
13100  }
13101 
13102  // ----------------------------------------------------------------------
13103  // Calls for messages received on special input ports
13104  // ----------------------------------------------------------------------
13105 
13106  void FpySequencerComponentBase ::
13107  m_p_cmdIn_in(
13108  Fw::PassiveComponentBase* callComp,
13109  FwIndexType portNum,
13110  FwOpcodeType opCode,
13111  U32 cmdSeq,
13112  Fw::CmdArgBuffer& args
13113  )
13114  {
13115  FW_ASSERT(callComp != nullptr);
13116  FpySequencerComponentBase* compPtr = static_cast<FpySequencerComponentBase*>(callComp);
13117  compPtr->cmdIn_handlerBase(
13118  portNum,
13119  opCode,
13120  cmdSeq,
13121  args
13122  );
13123  }
13124 
13125  // ----------------------------------------------------------------------
13126  // Calls for messages received on typed input ports
13127  // ----------------------------------------------------------------------
13128 
13129  void FpySequencerComponentBase ::
13130  m_p_checkTimers_in(
13131  Fw::PassiveComponentBase* callComp,
13132  FwIndexType portNum,
13133  U32 context
13134  )
13135  {
13136  FW_ASSERT(callComp != nullptr);
13137  FpySequencerComponentBase* compPtr = static_cast<FpySequencerComponentBase*>(callComp);
13138  compPtr->checkTimers_handlerBase(
13139  portNum,
13140  context
13141  );
13142  }
13143 
13144  void FpySequencerComponentBase ::
13145  m_p_cmdResponseIn_in(
13146  Fw::PassiveComponentBase* callComp,
13147  FwIndexType portNum,
13148  FwOpcodeType opCode,
13149  U32 cmdSeq,
13150  const Fw::CmdResponse& response
13151  )
13152  {
13153  FW_ASSERT(callComp != nullptr);
13154  FpySequencerComponentBase* compPtr = static_cast<FpySequencerComponentBase*>(callComp);
13155  compPtr->cmdResponseIn_handlerBase(
13156  portNum,
13157  opCode,
13158  cmdSeq,
13159  response
13160  );
13161  }
13162 
13163  void FpySequencerComponentBase ::
13164  m_p_pingIn_in(
13165  Fw::PassiveComponentBase* callComp,
13166  FwIndexType portNum,
13167  U32 key
13168  )
13169  {
13170  FW_ASSERT(callComp != nullptr);
13171  FpySequencerComponentBase* compPtr = static_cast<FpySequencerComponentBase*>(callComp);
13172  compPtr->pingIn_handlerBase(
13173  portNum,
13174  key
13175  );
13176  }
13177 
13178  void FpySequencerComponentBase ::
13179  m_p_seqCancelIn_in(
13180  Fw::PassiveComponentBase* callComp,
13181  FwIndexType portNum
13182  )
13183  {
13184  FW_ASSERT(callComp != nullptr);
13185  FpySequencerComponentBase* compPtr = static_cast<FpySequencerComponentBase*>(callComp);
13186  compPtr->seqCancelIn_handlerBase(portNum);
13187  }
13188 
13189  void FpySequencerComponentBase ::
13190  m_p_seqRunIn_in(
13191  Fw::PassiveComponentBase* callComp,
13192  FwIndexType portNum,
13193  const Fw::StringBase& filename,
13194  const Svc::SeqArgs& args
13195  )
13196  {
13197  FW_ASSERT(callComp != nullptr);
13198  FpySequencerComponentBase* compPtr = static_cast<FpySequencerComponentBase*>(callComp);
13199  compPtr->seqRunIn_handlerBase(
13200  portNum,
13201  filename,
13202  args
13203  );
13204  }
13205 
13206  void FpySequencerComponentBase ::
13207  m_p_tlmWrite_in(
13208  Fw::PassiveComponentBase* callComp,
13209  FwIndexType portNum,
13210  U32 context
13211  )
13212  {
13213  FW_ASSERT(callComp != nullptr);
13214  FpySequencerComponentBase* compPtr = static_cast<FpySequencerComponentBase*>(callComp);
13215  compPtr->tlmWrite_handlerBase(
13216  portNum,
13217  context
13218  );
13219  }
13220 
13221 #if !FW_DIRECT_PORT_CALLS
13222 
13223  // ----------------------------------------------------------------------
13224  // Invocation functions for special output ports
13225  // ----------------------------------------------------------------------
13226 
13227  void FpySequencerComponentBase ::
13228  cmdRegOut_out(
13229  FwIndexType portNum,
13230  FwOpcodeType opCode
13231  ) const
13232  {
13233  FW_ASSERT(
13234  (0 <= portNum) && (portNum < this->getNum_cmdRegOut_OutputPorts()),
13235  static_cast<FwAssertArgType>(portNum)
13236  );
13237 
13238  FW_ASSERT(
13239  this->m_cmdRegOut_OutputPort[portNum].isConnected(),
13240  static_cast<FwAssertArgType>(portNum)
13241  );
13242  this->m_cmdRegOut_OutputPort[portNum].invoke(
13243  opCode
13244  );
13245  }
13246 
13247  void FpySequencerComponentBase ::
13248  cmdResponseOut_out(
13249  FwIndexType portNum,
13250  FwOpcodeType opCode,
13251  U32 cmdSeq,
13252  const Fw::CmdResponse& response
13253  ) const
13254  {
13255  FW_ASSERT(
13256  (0 <= portNum) && (portNum < this->getNum_cmdResponseOut_OutputPorts()),
13257  static_cast<FwAssertArgType>(portNum)
13258  );
13259 
13260  FW_ASSERT(
13261  this->m_cmdResponseOut_OutputPort[portNum].isConnected(),
13262  static_cast<FwAssertArgType>(portNum)
13263  );
13264  this->m_cmdResponseOut_OutputPort[portNum].invoke(
13265  opCode,
13266  cmdSeq,
13267  response
13268  );
13269  }
13270 
13271  void FpySequencerComponentBase ::
13272  logOut_out(
13273  FwIndexType portNum,
13274  FwEventIdType id,
13275  Fw::Time& timeTag,
13276  const Fw::LogSeverity& severity,
13277  Fw::LogBuffer& args
13278  ) const
13279  {
13280  FW_ASSERT(
13281  (0 <= portNum) && (portNum < this->getNum_logOut_OutputPorts()),
13282  static_cast<FwAssertArgType>(portNum)
13283  );
13284 
13285  FW_ASSERT(
13286  this->m_logOut_OutputPort[portNum].isConnected(),
13287  static_cast<FwAssertArgType>(portNum)
13288  );
13289  this->m_logOut_OutputPort[portNum].invoke(
13290  id,
13291  timeTag,
13292  severity,
13293  args
13294  );
13295  }
13296 
13297 #if FW_ENABLE_TEXT_LOGGING
13298 
13299  void FpySequencerComponentBase ::
13300  logTextOut_out(
13301  FwIndexType portNum,
13302  FwEventIdType id,
13303  Fw::Time& timeTag,
13304  const Fw::LogSeverity& severity,
13305  Fw::TextLogString& text
13306  ) const
13307  {
13308  FW_ASSERT(
13309  (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
13310  static_cast<FwAssertArgType>(portNum)
13311  );
13312 
13313  FW_ASSERT(
13314  this->m_logTextOut_OutputPort[portNum].isConnected(),
13315  static_cast<FwAssertArgType>(portNum)
13316  );
13317  this->m_logTextOut_OutputPort[portNum].invoke(
13318  id,
13319  timeTag,
13320  severity,
13321  text
13322  );
13323  }
13324 
13325 #endif
13326 
13327  Fw::ParamValid FpySequencerComponentBase ::
13328  prmGet_out(
13329  FwIndexType portNum,
13330  FwPrmIdType id,
13331  Fw::ParamBuffer& val
13332  ) const
13333  {
13334  FW_ASSERT(
13335  (0 <= portNum) && (portNum < this->getNum_prmGet_OutputPorts()),
13336  static_cast<FwAssertArgType>(portNum)
13337  );
13338 
13339  FW_ASSERT(
13340  this->m_prmGet_OutputPort[portNum].isConnected(),
13341  static_cast<FwAssertArgType>(portNum)
13342  );
13343  return this->m_prmGet_OutputPort[portNum].invoke(
13344  id,
13345  val
13346  );
13347  }
13348 
13349  void FpySequencerComponentBase ::
13350  prmSet_out(
13351  FwIndexType portNum,
13352  FwPrmIdType id,
13353  Fw::ParamBuffer& val
13354  ) const
13355  {
13356  FW_ASSERT(
13357  (0 <= portNum) && (portNum < this->getNum_prmSet_OutputPorts()),
13358  static_cast<FwAssertArgType>(portNum)
13359  );
13360 
13361  FW_ASSERT(
13362  this->m_prmSet_OutputPort[portNum].isConnected(),
13363  static_cast<FwAssertArgType>(portNum)
13364  );
13365  this->m_prmSet_OutputPort[portNum].invoke(
13366  id,
13367  val
13368  );
13369  }
13370 
13371  void FpySequencerComponentBase ::
13372  timeCaller_out(
13373  FwIndexType portNum,
13374  Fw::Time& time
13375  ) const
13376  {
13377  FW_ASSERT(
13378  (0 <= portNum) && (portNum < this->getNum_timeCaller_OutputPorts()),
13379  static_cast<FwAssertArgType>(portNum)
13380  );
13381 
13382  FW_ASSERT(
13383  this->m_timeCaller_OutputPort[portNum].isConnected(),
13384  static_cast<FwAssertArgType>(portNum)
13385  );
13386  this->m_timeCaller_OutputPort[portNum].invoke(
13387  time
13388  );
13389  }
13390 
13391  void FpySequencerComponentBase ::
13392  tlmOut_out(
13393  FwIndexType portNum,
13394  FwChanIdType id,
13395  Fw::Time& timeTag,
13396  Fw::TlmBuffer& val
13397  ) const
13398  {
13399  FW_ASSERT(
13400  (0 <= portNum) && (portNum < this->getNum_tlmOut_OutputPorts()),
13401  static_cast<FwAssertArgType>(portNum)
13402  );
13403 
13404  FW_ASSERT(
13405  this->m_tlmOut_OutputPort[portNum].isConnected(),
13406  static_cast<FwAssertArgType>(portNum)
13407  );
13408  this->m_tlmOut_OutputPort[portNum].invoke(
13409  id,
13410  timeTag,
13411  val
13412  );
13413  }
13414 
13415 #endif
13416 
13417  // ----------------------------------------------------------------------
13418  // Send signal helper functions
13419  // ----------------------------------------------------------------------
13420 
13421  void FpySequencerComponentBase ::
13422  sendSignalStart(
13423  SmId smId,
13424  FwEnumStoreType signal,
13425  Fw::SerialBufferBase& buffer
13426  )
13427  {
13429 
13430  // Serialize the message type
13431  status = buffer.serializeFrom(static_cast<FwEnumStoreType>(INTERNAL_STATE_MACHINE_SIGNAL));
13432  FW_ASSERT (status == Fw::FW_SERIALIZE_OK, static_cast<FwAssertArgType>(status));
13433 
13434  // Serialize the port number
13435  status = buffer.serializeFrom(static_cast<FwIndexType>(0));
13436  FW_ASSERT (status == Fw::FW_SERIALIZE_OK, static_cast<FwAssertArgType>(status));
13437 
13438  // Serialize the state machine ID
13439  status = buffer.serializeFrom(static_cast<FwEnumStoreType>(smId));
13440  FW_ASSERT (status == Fw::FW_SERIALIZE_OK, static_cast<FwAssertArgType>(status));
13441 
13442  // Serialize the signal
13443  status = buffer.serializeFrom(static_cast<FwEnumStoreType>(signal));
13444  FW_ASSERT(status == Fw::FW_SERIALIZE_OK, static_cast<FwAssertArgType>(status));
13445  }
13446 
13447  void FpySequencerComponentBase ::
13448  sequencer_sendSignalFinish(Fw::LinearBufferBase& buffer)
13449  {
13450  // Send message
13452  Os::Queue::Status qStatus = this->m_queue.send(buffer, 9, _block);
13453 
13454  FW_ASSERT(
13455  qStatus == Os::Queue::OP_OK,
13456  static_cast<FwAssertArgType>(qStatus)
13457  );
13458  }
13459 
13460  // ----------------------------------------------------------------------
13461  // Helper functions for state machine dispatch
13462  // ----------------------------------------------------------------------
13463 
13464  void FpySequencerComponentBase ::
13465  smDispatch(Fw::SerialBufferBase& buffer)
13466  {
13467  // Deserialize the state machine ID and signal
13468  FwEnumStoreType storedSmId;
13469  FwEnumStoreType storedSignal;
13470  FpySequencerComponentBase::deserializeSmIdAndSignal(buffer, storedSmId, storedSignal);
13471 
13472  // Select the target state machine instance
13473  const SmId smId = static_cast<SmId>(storedSmId);
13474  switch (smId) {
13475  case SmId::sequencer: {
13477  this->Svc_FpySequencer_SequencerStateMachine_smDispatch(buffer, this->m_stateMachine_sequencer, signal);
13478  break;
13479  }
13480  default:
13481  FW_ASSERT(false, static_cast<FwAssertArgType>(smId));
13482  break;
13483  }
13484  }
13485 
13486  void FpySequencerComponentBase ::
13487  deserializeSmIdAndSignal(
13488  Fw::SerialBufferBase& buffer,
13489  FwEnumStoreType& smId,
13490  FwEnumStoreType& signal
13491  )
13492  {
13493  // Move deserialization beyond the message type and port number
13494  Fw::SerializeStatus status =
13495  buffer.moveDeserToOffset(ComponentIpcSerializableBuffer::DATA_OFFSET);
13496  FW_ASSERT(status == Fw::FW_SERIALIZE_OK, static_cast<FwAssertArgType>(status));
13497 
13498  // Deserialize the state machine ID
13499  status = buffer.deserializeTo(smId);
13500  FW_ASSERT(status == Fw::FW_SERIALIZE_OK, static_cast<FwAssertArgType>(status));
13501 
13502  // Deserialize the signal
13503  status = buffer.deserializeTo(signal);
13504  FW_ASSERT(status == Fw::FW_SERIALIZE_OK, static_cast<FwAssertArgType>(status));
13505  }
13506 
13507  void FpySequencerComponentBase ::
13508  Svc_FpySequencer_SequencerStateMachine_smDispatch(
13509  Fw::SerialBufferBase& buffer,
13510  Svc_FpySequencer_SequencerStateMachine& sm,
13512  )
13513  {
13514  switch (signal) {
13516  // Deserialize the data
13518  const Fw::SerializeStatus status = buffer.deserializeTo(value);
13519  FW_ASSERT(status == Fw::FW_SERIALIZE_OK, static_cast<FwAssertArgType>(status));
13520  // Assert no data left in buffer
13521  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13522  // Call the sendSignal function for sm and cmd_VALIDATE
13523  sm.sendSignal_cmd_VALIDATE(value);
13524  break;
13525  }
13527  // Deserialize the data
13529  const Fw::SerializeStatus status = buffer.deserializeTo(value);
13530  FW_ASSERT(status == Fw::FW_SERIALIZE_OK, static_cast<FwAssertArgType>(status));
13531  // Assert no data left in buffer
13532  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13533  // Call the sendSignal function for sm and cmd_RUN
13534  sm.sendSignal_cmd_RUN(value);
13535  break;
13536  }
13538  // Deserialize the data
13540  const Fw::SerializeStatus status = buffer.deserializeTo(value);
13541  FW_ASSERT(status == Fw::FW_SERIALIZE_OK, static_cast<FwAssertArgType>(status));
13542  // Assert no data left in buffer
13543  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13544  // Call the sendSignal function for sm and cmd_RUN_VALIDATED
13545  sm.sendSignal_cmd_RUN_VALIDATED(value);
13546  break;
13547  }
13549  // Assert no data left in buffer
13550  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13551  // Call the sendSignal function for sm and cmd_CANCEL
13552  sm.sendSignal_cmd_CANCEL();
13553  break;
13554  }
13556  // Deserialize the data
13558  const Fw::SerializeStatus status = buffer.deserializeTo(value);
13559  FW_ASSERT(status == Fw::FW_SERIALIZE_OK, static_cast<FwAssertArgType>(status));
13560  // Assert no data left in buffer
13561  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13562  // Call the sendSignal function for sm and cmd_SET_BREAKPOINT
13563  sm.sendSignal_cmd_SET_BREAKPOINT(value);
13564  break;
13565  }
13567  // Assert no data left in buffer
13568  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13569  // Call the sendSignal function for sm and cmd_CLEAR_BREAKPOINT
13570  sm.sendSignal_cmd_CLEAR_BREAKPOINT();
13571  break;
13572  }
13574  // Assert no data left in buffer
13575  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13576  // Call the sendSignal function for sm and result_failure
13577  sm.sendSignal_result_failure();
13578  break;
13579  }
13581  // Assert no data left in buffer
13582  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13583  // Call the sendSignal function for sm and result_success
13584  sm.sendSignal_result_success();
13585  break;
13586  }
13588  // Assert no data left in buffer
13589  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13590  // Call the sendSignal function for sm and entered
13591  sm.sendSignal_entered();
13592  break;
13593  }
13595  // Assert no data left in buffer
13596  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13597  // Call the sendSignal function for sm and result_dispatchStatement_success
13598  sm.sendSignal_result_dispatchStatement_success();
13599  break;
13600  }
13602  // Assert no data left in buffer
13603  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13604  // Call the sendSignal function for sm and result_dispatchStatement_failure
13605  sm.sendSignal_result_dispatchStatement_failure();
13606  break;
13607  }
13609  // Assert no data left in buffer
13610  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13611  // Call the sendSignal function for sm and result_dispatchStatement_noMoreStatements
13612  sm.sendSignal_result_dispatchStatement_noMoreStatements();
13613  break;
13614  }
13616  // Assert no data left in buffer
13617  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13618  // Call the sendSignal function for sm and checkTimersIn
13619  sm.sendSignal_checkTimersIn();
13620  break;
13621  }
13623  // Assert no data left in buffer
13624  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13625  // Call the sendSignal function for sm and result_checkShouldWake_wakeup
13626  sm.sendSignal_result_checkShouldWake_wakeup();
13627  break;
13628  }
13630  // Assert no data left in buffer
13631  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13632  // Call the sendSignal function for sm and result_checkShouldWake_keepSleeping
13633  sm.sendSignal_result_checkShouldWake_keepSleeping();
13634  break;
13635  }
13637  // Assert no data left in buffer
13638  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13639  // Call the sendSignal function for sm and result_timeOpFailed
13640  sm.sendSignal_result_timeOpFailed();
13641  break;
13642  }
13644  // Assert no data left in buffer
13645  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13646  // Call the sendSignal function for sm and stmtResponse_beginSleep
13647  sm.sendSignal_stmtResponse_beginSleep();
13648  break;
13649  }
13651  // Assert no data left in buffer
13652  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13653  // Call the sendSignal function for sm and stmtResponse_success
13654  sm.sendSignal_stmtResponse_success();
13655  break;
13656  }
13658  // Assert no data left in buffer
13659  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13660  // Call the sendSignal function for sm and stmtResponse_failure
13661  sm.sendSignal_stmtResponse_failure();
13662  break;
13663  }
13665  // Assert no data left in buffer
13666  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13667  // Call the sendSignal function for sm and stmtResponse_unexpected
13668  sm.sendSignal_stmtResponse_unexpected();
13669  break;
13670  }
13672  // Assert no data left in buffer
13673  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13674  // Call the sendSignal function for sm and stmtResponse_keepWaiting
13675  sm.sendSignal_stmtResponse_keepWaiting();
13676  break;
13677  }
13679  // Assert no data left in buffer
13680  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13681  // Call the sendSignal function for sm and result_checkStatementTimeout_statementTimeout
13682  sm.sendSignal_result_checkStatementTimeout_statementTimeout();
13683  break;
13684  }
13686  // Assert no data left in buffer
13687  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13688  // Call the sendSignal function for sm and result_checkStatementTimeout_noTimeout
13689  sm.sendSignal_result_checkStatementTimeout_noTimeout();
13690  break;
13691  }
13693  // Assert no data left in buffer
13694  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13695  // Call the sendSignal function for sm and cmd_CONTINUE
13696  sm.sendSignal_cmd_CONTINUE();
13697  break;
13698  }
13700  // Assert no data left in buffer
13701  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13702  // Call the sendSignal function for sm and cmd_BREAK
13703  sm.sendSignal_cmd_BREAK();
13704  break;
13705  }
13707  // Assert no data left in buffer
13708  FW_ASSERT(buffer.getDeserializeSizeLeft() == 0, static_cast<FwAssertArgType>(buffer.getDeserializeSizeLeft()));
13709  // Call the sendSignal function for sm and cmd_STEP
13710  sm.sendSignal_cmd_STEP();
13711  break;
13712  }
13713  default:
13714  FW_ASSERT(false, static_cast<FwAssertArgType>(signal));
13715  break;
13716  }
13717  }
13718 
13719  // ----------------------------------------------------------------------
13720  // Parameter set functions
13721  // ----------------------------------------------------------------------
13722 
13723  Fw::CmdResponse FpySequencerComponentBase ::
13724  paramSet_STATEMENT_TIMEOUT_SECS(Fw::SerialBufferBase& val)
13725  {
13726  F32 _localVal{};
13727  const Fw::SerializeStatus _stat = val.deserializeTo(_localVal);
13728  if (_stat != Fw::FW_SERIALIZE_OK) {
13730  }
13731 
13732  // Assign value only if successfully deserialized
13733  this->m_paramLock.lock();
13734  this->m_STATEMENT_TIMEOUT_SECS = _localVal;
13735  this->m_param_STATEMENT_TIMEOUT_SECS_valid = Fw::ParamValid::VALID;
13736  this->m_paramLock.unlock();
13737 
13738  // Call notifier
13740  return Fw::CmdResponse::OK;
13741  }
13742 
13743  Fw::CmdResponse FpySequencerComponentBase ::
13744  paramSet_SEQ_BASE_DIR(Fw::SerialBufferBase& val)
13745  {
13746  Fw::ParamString _localVal{};
13747  const Fw::SerializeStatus _stat = val.deserializeTo(_localVal);
13748  if (_stat != Fw::FW_SERIALIZE_OK) {
13750  }
13751 
13752  // Assign value only if successfully deserialized
13753  this->m_paramLock.lock();
13754  this->m_SEQ_BASE_DIR = _localVal;
13755  this->m_param_SEQ_BASE_DIR_valid = Fw::ParamValid::VALID;
13756  this->m_paramLock.unlock();
13757 
13758  // Call notifier
13760  return Fw::CmdResponse::OK;
13761  }
13762 
13763  // ----------------------------------------------------------------------
13764  // Parameter save functions
13765  // ----------------------------------------------------------------------
13766 
13767  Fw::CmdResponse FpySequencerComponentBase ::
13768  paramSave_STATEMENT_TIMEOUT_SECS()
13769  {
13770  if (!this->isConnected_prmSet_OutputPort(0)) {
13772  }
13773  Fw::ParamBuffer _paramBuffer;
13774  const FwIdType idBase = this->getIdBase();
13776  // Serialize the parameter
13777  this->m_paramLock.lock();
13778  if ((this->m_param_STATEMENT_TIMEOUT_SECS_valid == Fw::ParamValid::VALID) || (this->m_param_STATEMENT_TIMEOUT_SECS_valid == Fw::ParamValid::DEFAULT)) {
13779  _stat = _paramBuffer.serializeFrom(m_STATEMENT_TIMEOUT_SECS);
13780  }
13781  this->m_paramLock.unlock();
13782  if (_stat != Fw::FW_SERIALIZE_OK) {
13784  }
13785  // Save the parameter
13786  this->prmSet_out(
13787  0,
13788  static_cast<FwPrmIdType>(idBase + PARAMID_STATEMENT_TIMEOUT_SECS),
13789  _paramBuffer
13790  );
13791  // Return the command response
13792  return Fw::CmdResponse::OK;
13793  }
13794 
13795  Fw::CmdResponse FpySequencerComponentBase ::
13796  paramSave_SEQ_BASE_DIR()
13797  {
13798  if (!this->isConnected_prmSet_OutputPort(0)) {
13800  }
13801  Fw::ParamBuffer _paramBuffer;
13802  const FwIdType idBase = this->getIdBase();
13804  // Serialize the parameter
13805  this->m_paramLock.lock();
13806  if ((this->m_param_SEQ_BASE_DIR_valid == Fw::ParamValid::VALID) || (this->m_param_SEQ_BASE_DIR_valid == Fw::ParamValid::DEFAULT)) {
13807  _stat = _paramBuffer.serializeFrom(m_SEQ_BASE_DIR);
13808  }
13809  this->m_paramLock.unlock();
13810  if (_stat != Fw::FW_SERIALIZE_OK) {
13812  }
13813  // Save the parameter
13814  this->prmSet_out(
13815  0,
13816  static_cast<FwPrmIdType>(idBase + PARAMID_SEQ_BASE_DIR),
13817  _paramBuffer
13818  );
13819  // Return the command response
13820  return Fw::CmdResponse::OK;
13821  }
13822 
13823 }
void cmdOut_out(FwIndexType portNum, Fw::ComBuffer &data, U32 context) const
Invoke output port cmdOut.
Serialization/Deserialization operation was successful.
void pingOut_out(FwIndexType portNum, U32 key) const
Invoke output port pingOut.
virtual void seqCancelIn_handler(FwIndexType portNum)=0
Handler for input port seqCancelIn.
void sequencer_sendSignal_result_dispatchStatement_noMoreStatements()
Send signal result_dispatchStatement_noMoreStatements to state machine sequencer. ...
sets the index of the next directive to execute
void sequencer_sendSignal_result_checkShouldWake_keepSleeping()
Send signal result_checkShouldWake_keepSleeping to state machine sequencer.
called when an unexpected or incorrect statement response comes in. only raised in the RUNNING state ...
called in dispatchStatement method when a statement was unable to be sent out
virtual void DUMP_STACK_TO_FILE_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command DUMP_STACK_TO_FILE.
void addCallPort(InputTimePort *callPort)
Register an input port.
Definition: TimePortAc.cpp:157
virtual void directive_storeAbsConstOffset_internalInterfaceHandler(const Svc::FpySequencer_StoreAbsConstOffsetDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_storeAbsConstOffset.
virtual void directive_pushRand_internalInterfaceHandler(const Svc::FpySequencer_PushRandDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_pushRand.
void invoke(Fw::ComBuffer &data, U32 context) const
Invoke a port connection.
Definition: ComPortAc.cpp:181
bool isConnected_getTlmChan_OutputPort(FwIndexType portNum) const
virtual void directive_call_internalInterfaceHandler(const Svc::FpySequencer_CallDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_call.
void set_seqStartOut_OutputPort(FwIndexType portNum, Svc::InputCmdSeqInPort *port)
Connect port to seqStartOut[portNum].
void log_WARNING_HI_DirectiveTimedOut(U8 opCode, U32 stmtIdx, const Fw::StringBase &filePath) const
Log event DirectiveTimedOut.
void init()
Initialization function.
Definition: ComPortAc.cpp:162
static constexpr FwSizeType CAPACITY
Definition: CmdPortAc.hpp:36
virtual void checkTimersInternal_internalInterfaceHandler()=0
Internal interface handler for checkTimersInternal.
void invoke(const Fw::StringBase &filename, const Svc::SeqArgs &args) const
Invoke a port connection.
virtual void directive_pushPrm_internalInterfaceHandler(const Svc::FpySequencer_PushPrmDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_pushPrm.
void log_ACTIVITY_HI_SequencePaused(U32 stmtIdx) const
Log event SequencePaused.
Fw::InputCmdResponsePort * get_cmdResponseIn_InputPort(FwIndexType portNum)
virtual void seqCancelIn_preMsgHook(FwIndexType portNum)
Pre-message hook for async input port seqCancelIn.
FwIdType FwOpcodeType
The type of a command opcode.
Operation succeeded.
Definition: Os.hpp:27
void set_cmdOut_OutputPort(FwIndexType portNum, Fw::InputComPort *port)
Connect port to cmdOut[portNum].
virtual void seqRunIn_handler(FwIndexType portNum, const Fw::StringBase &filename, const Svc::SeqArgs &args)=0
Handler for input port seqRunIn.
called in dispatchStatement method when there were no more statements in the sequence ...
branches based off of the top byte of the stack
void tlmWrite_Debug_NextStatementOpcode(U8 arg, Fw::Time _tlmTime=Fw::Time())
virtual void parametersLoaded()
Called whenever parameters are loaded.
static constexpr FwSizeType CAPACITY
bool isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const
#define FW_PARAM_OK(paramValid)
Definition: ParamValid.hpp:22
void log_WARNING_HI_InsufficientBufferSpace(U64 bufferSize, const Fw::StringBase &filePath) const
Log event InsufficientBufferSpace.
static constexpr FwIndexType getNum_seqStartOut_OutputPorts()
void directive_allocate_internalInterfaceInvoke(const Svc::FpySequencer_AllocateDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_allocate.
bool isConnected_getParam_OutputPort(FwIndexType portNum) const
PlatformSizeType FwSizeType
stores a value to an absolute address in the stack (for global variables), offset from stack ...
virtual void directive_setSeed_internalInterfaceHandler(const Svc::FpySequencer_SetSeedDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_setSeed.
Status receive(U8 *destination, FwSizeType capacity, BlockingType blockType, FwSizeType &actualSize, FwQueuePriorityType &priority) override
receive a message from the queue through delegate
Definition: Queue.cpp:71
void directive_getField_internalInterfaceInvoke(const Svc::FpySequencer_GetFieldDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_getField.
I32 FwEnumStoreType
void CONTINUE_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void sequencer_sendSignal_cmd_STEP()
Send signal cmd_STEP to state machine sequencer.
virtual void cmdResponseIn_handler(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)=0
Handler for input port cmdResponseIn.
void sequencer_sendSignal_result_dispatchStatement_success()
Send signal result_dispatchStatement_success to state machine sequencer.
void log_WARNING_HI_WrongCRC(U32 expected, U32 actual) const
Log event WrongCRC.
virtual void directive_if_internalInterfaceHandler(const Svc::FpySequencer_IfDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_if.
void log_WARNING_HI_ArgSizeExceedsCapacity(FwSizeType actual, FwSizeType capacity) const
Log event ArgSizeExceedsCapacity.
Status
status returned from the queue send function
Definition: Queue.hpp:30
virtual void CLEAR_BREAKPOINT_cmdHandler(FwOpcodeType opCode, U32 cmdSeq)=0
virtual void parameterUpdated(FwPrmIdType id)
Called whenever a parameter is updated.
called when statement successfully executed. only raised in the RUNNING.AWAITING_CMD_RESPONSE state ...
called on VALIDATE cmd with the path of the sequence file to validate. only raised in IDLE state ...
called on RUN cmd with the path of the sequence file to run. only raised in IDLE state ...
void sequencer_sendSignal_cmd_SET_BREAKPOINT(const Svc::FpySequencer_BreakpointArgs &value)
Send signal cmd_SET_BREAKPOINT to state machine sequencer.
called on RUN_VALIDATED cmd. only raised in AWAITING_CMD_RUN_VALIDATED state
void directive_pushRand_internalInterfaceInvoke(const Svc::FpySequencer_PushRandDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_pushRand.
void init()
Initialization function.
Definition: SchedPortAc.cpp:73
void log_WARNING_HI_CommandFailed(FwOpcodeType opCode, U32 stmtIdx, const Fw::StringBase &filePath, const Fw::CmdResponse &response) const
Log event CommandFailed.
virtual void CLEAR_BREAKPOINT_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command CLEAR_BREAKPOINT.
static constexpr FwIndexType getNum_cmdIn_InputPorts()
BYTE pingInPortSize[Svc::PingPortBuffer::CAPACITY]
void tlmWrite_Debug_ReachedEndOfFile(bool arg, Fw::Time _tlmTime=Fw::Time())
void init()
Initialization function.
void init()
Initialization function.
Definition: CmdPortAc.cpp:89
void RUN_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
StringTemplate< FW_FIXED_LENGTH_STRING_SIZE > String
Definition: String.hpp:14
SerializeStatus deserializeTo(U8 &val, Endianness mode=Endianness::BIG) override
Deserialize an 8-bit unsigned integer value.
void directive_call_internalInterfaceInvoke(const Svc::FpySequencer_CallDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_call.
void set_seqDoneOut_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to seqDoneOut[portNum].
FwIdType FwPrmIdType
The type of a parameter identifier.
void set_tlmOut_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to tlmOut[portNum].
void log_WARNING_LO_DirectiveWhileNotAwaiting(const Svc::Fpy::DirectiveId &directive, I32 state) const
Log event DirectiveWhileNotAwaiting.
stores a value to a local variable at a compile-time-known offset relative to the current stack frame...
Fw::SerializeStatus serialOut_out(FwIndexType portNum, Fw::LinearBufferBase &buffer)
Invoke output port serialOut.
void addCallPort(InputPrmSetPort *callPort)
Register an input port.
void directive_pushPrm_internalInterfaceInvoke(const Svc::FpySequencer_PushPrmDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_pushPrm.
virtual void directive_pushTlmValAndTime_internalInterfaceHandler(const Svc::FpySequencer_PushTlmValAndTimeDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_pushTlmValAndTime.
virtual void CANCEL_cmdHandler(FwOpcodeType opCode, U32 cmdSeq)=0
const char *const sandboxDir
void directive_peek_internalInterfaceInvoke(const Svc::FpySequencer_PeekDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_peek.
Fw::ParamValid getParam_out(FwIndexType portNum, FwPrmIdType id, Fw::ParamBuffer &val) const
Invoke output port getParam.
void invoke(U32 key) const
Invoke a port connection.
Definition: PingPortAc.cpp:170
void STEP_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
static constexpr FwIndexType getNum_pingIn_InputPorts()
bool isConnected_prmGet_OutputPort(FwIndexType portNum) const
void addCallPort(InputTlmGetPort *callPort)
Register an input port.
pop an opcode and arg buf off the stack, send to cmd dispatcher and await response ...
virtual const CHAR * toChar() const =0
Convert to a C-style char*.
void log_WARNING_HI_SequenceFilePathTooLong(const Fw::StringBase &baseDir, const Fw::StringBase &fileName) const
Log event SequenceFilePathTooLong.
void sequencer_sendSignal_result_checkShouldWake_wakeup()
Send signal result_checkShouldWake_wakeup to state machine sequencer.
virtual void directive_loadAbs_internalInterfaceHandler(const Svc::FpySequencer_LoadAbsDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_loadAbs.
void directive_pushTlmValAndTime_internalInterfaceInvoke(const Svc::FpySequencer_PushTlmValAndTimeDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_pushTlmValAndTime.
bool isConnected_prmSet_OutputPort(FwIndexType portNum) const
const Time ZERO_TIME
Definition: Time.cpp:5
virtual void RUN_ARGS_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command RUN_ARGS.
void sequencer_sendSignal_result_success()
Send signal result_success to state machine sequencer.
void log_WARNING_LO_DirectiveFromOldSequence(const Svc::Fpy::DirectiveId &directive, U64 oldSequenceIdx, U64 currentSequenceIdx) const
Log event DirectiveFromOldSequence.
virtual void RUN_VALIDATED_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Svc::BlockState &block)=0
void cmdResponseIn_handlerBase(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)
Handler base-class function for input port cmdResponseIn.
void sequencer_sendSignal_stmtResponse_success()
Send signal stmtResponse_success to state machine sequencer.
virtual void VALIDATE_ARGS_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command VALIDATE_ARGS.
virtual ~FpySequencerComponentBase()
Destroy FpySequencerComponentBase object.
void directive_pushVal_internalInterfaceInvoke(const Svc::FpySequencer_PushValDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_pushVal.
void tlmWrite_Debug_StackSize(Svc::Fpy::StackSizeType arg, Fw::Time _tlmTime=Fw::Time())
virtual void SET_BREAKPOINT_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, U32 stmtIdx, bool breakOnce)=0
virtual void directive_discard_internalInterfaceHandler(const Svc::FpySequencer_DiscardDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_discard.
void sequencer_sendSignal_cmd_VALIDATE(const Svc::FpySequencer_SequenceExecutionArgs &value)
Send signal cmd_VALIDATE to state machine sequencer.
void init()
Initialization function.
Definition: TlmPortAc.cpp:171
static constexpr FwIndexType getNum_tlmWrite_InputPorts()
Enum representing a command response.
virtual void RUN_VALIDATED_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command RUN_VALIDATED.
No time base has been established (Required)
void set_logOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to logOut[portNum].
virtual void DUMP_STACK_TO_FILE_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &fileName)=0
SerializeStatus serializeFrom(U8 val, Endianness mode=Endianness::BIG) override
Serialize an 8-bit unsigned integer value.
void checkTimersInternal_internalInterfaceInvoke()
Internal interface base-class function for checkTimersInternal.
void tlmWrite_State(FwEnumStoreType arg, Fw::Time _tlmTime=Fw::Time())
void log_WARNING_HI_FileApiError(const Fw::StringBase &filePath, I32 errorCode) const
Log event FileApiError.
void addCallPort(InputCmdRegPort *callPort)
Register an input port.
void tlmWrite_SequencesSucceeded(U64 arg, Fw::Time _tlmTime=Fw::Time())
void log_WARNING_HI_ExtraBytesInSequence(FwSizeType remaining) const
Log event ExtraBytesInSequence.
void directive_pushTime_internalInterfaceInvoke(const Svc::FpySequencer_PushTimeDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_pushTime.
virtual SerializeStatus serializeFrom(U8 val, Endianness mode=Endianness::BIG)=0
Serialize an 8-bit unsigned integer value.
pops bytes off the top of the stack and does nothing with them
static constexpr FwIndexType getNum_timeCaller_OutputPorts()
virtual void seqRunIn_preMsgHook(FwIndexType portNum, const Fw::StringBase &filename, const Svc::SeqArgs &args)
Pre-message hook for async input port seqRunIn.
void log_DIAGNOSTIC_LogDiagnostic(const Fw::StringBase &filePath, const Fw::StringBase &message) const
Log event LogDiagnostic.
void log_COMMAND_LogCommand(const Fw::StringBase &filePath, const Fw::StringBase &message) const
Log event LogCommand.
void init()
Initialization function.
Loads, validates and runs a sequence.
virtual void pingIn_preMsgHook(FwIndexType portNum, U32 key)
Pre-message hook for async input port pingIn.
virtual void STEP_cmdHandler(FwOpcodeType opCode, U32 cmdSeq)=0
Os::Queue m_queue
queue object for active component
void cmdIn_handlerBase(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Handler base-class function for input port cmdIn.
void log_WARNING_HI_TooManySequenceDirectives(U16 count, U16 max) const
Log event TooManySequenceDirectives.
void sequencer_sendSignal_stmtResponse_unexpected()
Send signal stmtResponse_unexpected to state machine sequencer.
void sequencer_sendSignal_cmd_BREAK()
Send signal cmd_BREAK to state machine sequencer.
Software diagnostic events.
void sequencer_sendSignal_result_dispatchStatement_failure()
Send signal result_dispatchStatement_failure to state machine sequencer.
void log_WARNING_HI_DirectiveDeserializeError(U8 opcode, U32 stmtIdx, I32 errorCode, U64 buffLeft, U64 buffLength) const
Log event DirectiveDeserializeError.
virtual void pingIn_handler(FwIndexType portNum, U32 key)=0
Handler for input port pingIn.
virtual void parameterLoaded(FwPrmIdType id, Fw::ParamValid valid)
Called for each parameter when parameters are loaded.
Svc::InputSchedPort * get_checkTimers_InputPort(FwIndexType portNum)
void addCallPort(InputTlmPort *callPort)
Register an input port.
Definition: TlmPortAc.cpp:177
virtual void STEP_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command STEP.
void addCallPort(InputPrmGetPort *callPort)
Register an input port.
void RUN_VALIDATED_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void tlmWrite_PRM_STATEMENT_TIMEOUT_SECS(F32 arg, Fw::Time _tlmTime=Fw::Time())
void init()
Object initializer.
Definition: ObjBase.cpp:24
void set_pingOut_OutputPort(FwIndexType portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
static constexpr FwIndexType getNum_tlmOut_OutputPorts()
void log_ACTIVITY_LO_LogActivityLo(const Fw::StringBase &filePath, const Fw::StringBase &message) const
Log event LogActivityLo.
static constexpr FwIndexType getNum_pingOut_OutputPorts()
SerializeStatus
forward declaration for string
Svc_FpySequencer_SequencerStateMachine::State sequencer_getState() const
Get the state of state machine instance sequencer.
called in STEP cmd. only raised in RUNNING.PAUSED state
void set_getTlmChan_OutputPort(FwIndexType portNum, Fw::InputTlmGetPort *port)
Connect port to getTlmChan[portNum].
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
Definition: CmdPortAc.cpp:95
void log_WARNING_HI_SequenceExitedWithError(const Fw::StringBase &filePath, I32 errorCode) const
Log event SequenceExitedWithError.
float F32
32-bit floating point
Definition: BasicTypes.h:84
virtual void directive_noOp_internalInterfaceHandler(const Svc::FpySequencer_NoOpDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_noOp.
void log_WARNING_HI_WrongCmdResponseIndex(FwOpcodeType opcode, const Fw::CmdResponse &response, U16 actualCmdIdx, U16 expectedCmdIdx) const
Log event WrongCmdResponseIndex.
virtual void checkTimers_handler(FwIndexType portNum, U32 context)=0
Handler for input port checkTimers.
virtual SerializeStatus deserializeTo(U8 &val, Endianness mode=Endianness::BIG)=0
Deserialize an 8-bit unsigned integer value.
Message will block until space is available.
Definition: Queue.hpp:47
static constexpr FwIndexType getNum_getParam_OutputPorts()
static constexpr FwIndexType getNum_cmdRegOut_OutputPorts()
virtual void RUN_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &fileName, const Svc::BlockState &block)=0
virtual void directive_popSerializable_internalInterfaceHandler(const Svc::FpySequencer_PopSerializableDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_popSerializable.
void tlmWrite_StatementsFailed(U64 arg, Fw::Time _tlmTime=Fw::Time())
FwIdType FwEventIdType
The type of an event identifier.
loads a value from a local variable at a compile-time-known offset relative to the current stack fram...
virtual void directive_goto_internalInterfaceHandler(const Svc::FpySequencer_GotoDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_goto.
void seqCancelIn_handlerBase(FwIndexType portNum)
Handler base-class function for input port seqCancelIn.
void log_ACTIVITY_HI_LogActivityHi(const Fw::StringBase &filePath, const Fw::StringBase &message) const
Log event LogActivityHi.
void regCommands()
Register commands with the Command Dispatcher.
void invoke(FwOpcodeType opCode) const
Invoke a port connection.
static constexpr FwSizeType CAPACITY
Definition: PingPortAc.hpp:34
called in dispatchStatement method when a statement was successfully dispatched
F32 paramGet_STATEMENT_TIMEOUT_SECS(Fw::ParamValid &valid)
Svc::InputCmdSeqCancelPort * get_seqCancelIn_InputPort(FwIndexType portNum)
void directive_waitAbs_internalInterfaceInvoke(const Svc::FpySequencer_WaitAbsDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_waitAbs.
Fw::TlmValid invoke(FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val) const
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects) ...
Definition: FpConfig.h:40
void log_WARNING_HI_EndOfFileError(const Svc::FpySequencer_FileReadStage &readStage, const Fw::StringBase &filePath) const
Log event EndOfFileError.
pop two byte arrays off the top of the stack, call memcmp, push 1 if they were equal, 0 otherwise
void init()
Initialization function.
Definition: TimePortAc.cpp:151
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
Data was the wrong format (e.g. wrong packet type)
Less important informational events.
pops a severity and message from the stack and emits an F Prime event
Os::Queue::Status createQueue(FwSizeType depth, FwSizeType msgSize)
void tlmWrite_DirectiveErrorId(const Svc::Fpy::DirectiveId &arg, Fw::Time _tlmTime=Fw::Time())
static constexpr FwIndexType getNum_cmdResponseIn_InputPorts()
void directive_pushTlmVal_internalInterfaceInvoke(const Svc::FpySequencer_PushTlmValDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_pushTlmVal.
Svc::InputPingPort * get_pingIn_InputPort(FwIndexType portNum)
void directive_waitRel_internalInterfaceInvoke(const Svc::FpySequencer_WaitRelDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_waitRel.
void tlmWrite_Debug_NextCmdOpcode(FwOpcodeType arg, Fw::Time _tlmTime=Fw::Time())
void tlmWrite_handlerBase(FwIndexType portNum, U32 context)
Handler base-class function for input port tlmWrite.
void RUN_ARGS_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Base-class handler function for command RUN_ARGS.
void init()
Initialization function.
An activity related to commanding.
#define FW_MIN(a, b)
MIN macro (deprecated in C++, use std::min)
Definition: BasicTypes.h:99
A less serious but recoverable event.
Fw::ParamValid invoke(FwPrmIdType id, Fw::ParamBuffer &val) const
ActiveComponentBase(const char *name)
Constructor.
void init()
Initialization function.
Definition: PingPortAc.cpp:151
Fw::InputCmdPort * get_cmdIn_InputPort(FwIndexType portNum)
bool isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const
virtual void directive_getField_internalInterfaceHandler(const Svc::FpySequencer_GetFieldDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_getField.
void tlmWrite_PRM_SEQ_BASE_DIR(const Fw::StringBase &arg, Fw::Time _tlmTime=Fw::Time())
void invoke(Fw::Time &time) const
Invoke a port connection.
Definition: TimePortAc.cpp:170
void pingIn_handlerBase(FwIndexType portNum, U32 key)
Handler base-class function for input port pingIn.
stores a value to an absolute address in the stack (for global variables), const offset ...
virtual void directive_constCmd_internalInterfaceHandler(const Svc::FpySequencer_ConstCmdDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_constCmd.
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
Serializable::SizeType getDeserializeSizeLeft() const override
Get remaining deserialization buffer size.
virtual void directive_storeAbs_internalInterfaceHandler(const Svc::FpySequencer_StoreAbsDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_storeAbs.
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
void invoke(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response) const
Invoke a port connection.
void sequencer_sendSignal_cmd_RUN_VALIDATED(const Svc::FpySequencer_SequenceExecutionArgs &value)
Send signal cmd_RUN_VALIDATED to state machine sequencer.
virtual void BREAK_cmdHandler(FwOpcodeType opCode, U32 cmdSeq)=0
Svc_FpySequencer_SequencerStateMachine(FpySequencerComponentBase &component)
Constructor.
FwIdType FwChanIdType
The type of a telemetry channel identifier.
void log_WARNING_HI_FileReadError(const Svc::FpySequencer_FileReadStage &readStage, const Fw::StringBase &filePath, I32 errorCode) const
Log event FileReadError.
void set_cmdResponseOut_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to cmdResponseOut[portNum].
void addCallPort(InputPingPort *callPort)
Register an input port.
Definition: PingPortAc.cpp:157
Status send(const U8 *buffer, FwSizeType size, FwQueuePriorityType priority, BlockingType blockType) override
send a message into the queue through delegate
Definition: Queue.cpp:54
Sequencer blocking state.
virtual void tlmWriteInternal_internalInterfaceHandler()=0
Internal interface handler for tlmWriteInternal.
void tlmWriteInternal_internalInterfaceInvoke()
Internal interface base-class function for tlmWriteInternal.
FpySequencerComponentBase(const char *compName="")
Construct FpySequencerComponentBase object.
void init()
Initialization function.
virtual void CONTINUE_cmdHandler(FwOpcodeType opCode, U32 cmdSeq)=0
void sequencer_sendSignal_checkTimersIn()
Send signal checkTimersIn to state machine sequencer.
void tlmWrite_StatementsDispatched(U64 arg, Fw::Time _tlmTime=Fw::Time())
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
void tlmWrite_LastDirectiveError(const Svc::Fpy::DirectiveErrorCode &arg, Fw::Time _tlmTime=Fw::Time())
void VALIDATE_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
virtual void directive_loadRel_internalInterfaceHandler(const Svc::FpySequencer_LoadRelDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_loadRel.
void resetDeser() override
Reset deserialization pointer to beginning of buffer.
void VALIDATE_ARGS_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
static constexpr FwIndexType getNum_prmSet_OutputPorts()
void directive_constCmd_internalInterfaceInvoke(const Svc::FpySequencer_ConstCmdDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_constCmd.
void log_WARNING_HI_LogWarningHi(const Fw::StringBase &filePath, const Fw::StringBase &message) const
Log event LogWarningHi.
virtual void directive_allocate_internalInterfaceHandler(const Svc::FpySequencer_AllocateDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_allocate.
peeks at N bytes from the stack, starting from an offset relative to the top of the stack ...
void sequencer_sendSignal_stmtResponse_failure()
Send signal stmtResponse_failure to state machine sequencer.
void directive_popEvent_internalInterfaceInvoke(const Svc::FpySequencer_PopEventDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_popEvent.
virtual void directive_pushVal_internalInterfaceHandler(const Svc::FpySequencer_PushValDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_pushVal.
A string backed by an external buffer.
A serious but recoverable event.
void CANCEL_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
virtual void directive_storeRelConstOffset_internalInterfaceHandler(const Svc::FpySequencer_StoreRelConstOffsetDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_storeRelConstOffset.
void set_cmdRegOut_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to cmdRegOut[portNum].
void tlmWrite_Debug_NextStatementIndex(U32 arg, Fw::Time _tlmTime=Fw::Time())
void sequencer_sendSignal_stmtResponse_beginSleep()
Send signal stmtResponse_beginSleep to state machine sequencer.
void directive_goto_internalInterfaceInvoke(const Svc::FpySequencer_GotoDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_goto.
void invoke(FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val) const
Invoke a port connection.
Definition: TlmPortAc.cpp:190
void log_WARNING_HI_CmdResponseWhileNotAwaiting(FwOpcodeType opcode, const Fw::CmdResponse &response) const
Log event CmdResponseWhileNotAwaiting.
const char * toChar() const
Convert to a C-style char*.
bool isConnected() const
Definition: PortBase.cpp:38
void log_WARNING_HI_CommandTimedOut(FwOpcodeType opCode, U32 stmtIdx, const Fw::StringBase &filePath) const
Log event CommandTimedOut.
void sequencer_sendSignal_result_checkStatementTimeout_noTimeout()
Send signal result_checkStatementTimeout_noTimeout to state machine sequencer.
Enum representing event severity.
The size of the serial representation.
static constexpr FwIndexType getNum_seqRunIn_InputPorts()
virtual void tlmWrite_handler(FwIndexType portNum, U32 context)=0
Handler for input port tlmWrite.
Svc::InputCmdSeqInPort * get_seqRunIn_InputPort(FwIndexType portNum)
void directive_stackCmd_internalInterfaceInvoke(const Svc::FpySequencer_StackCmdDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_stackCmd.
void directive_memCmp_internalInterfaceInvoke(const Svc::FpySequencer_MemCmpDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_memCmp.
virtual void directive_stackOp_internalInterfaceHandler(const Svc::FpySequencer_StackOpDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_stackOp.
void loadParameters()
Load the parameters from a parameter source.
void log_WARNING_HI_InvalidSeqRunCall(I32 state) const
Log event InvalidSeqRunCall.
#define PRI_FwIndexType
virtual void directive_stackCmd_internalInterfaceHandler(const Svc::FpySequencer_StackCmdDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_stackCmd.
static constexpr FwIndexType getNum_cmdOut_OutputPorts()
void directive_loadRel_internalInterfaceInvoke(const Svc::FpySequencer_LoadRelDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_loadRel.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
Definition: StringBase.cpp:58
void init()
Initialization function.
Definition: LogPortAc.cpp:180
Command successfully executed.
virtual void directive_pushTlmVal_internalInterfaceHandler(const Svc::FpySequencer_PushTlmValDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_pushTlmVal.
called in BREAK cmd. only raised in RUNNING state
virtual Serializable::SizeType getDeserializeSizeLeft() const =0
Get remaining deserialization buffer size.
void directive_stackOp_internalInterfaceInvoke(const Svc::FpySequencer_StackOpDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_stackOp.
sleeps for a relative duration from the current time
void setPortNum(FwIndexType portNum)
virtual void directive_return_internalInterfaceHandler(const Svc::FpySequencer_ReturnDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_return.
void seqDoneOut_out(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response) const
Invoke output port seqDoneOut.
void directive_loadAbs_internalInterfaceInvoke(const Svc::FpySequencer_LoadAbsDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_loadAbs.
void directive_noOp_internalInterfaceInvoke(const Svc::FpySequencer_NoOpDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_noOp.
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:54
bool isConnected_serialOut_OutputPort(FwIndexType portNum) const
static constexpr FwSizeType CAPACITY
virtual void directive_memCmp_internalInterfaceHandler(const Svc::FpySequencer_MemCmpDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_memCmp.
BlockingType
message type
Definition: Queue.hpp:46
Loads and validates a sequence with arguments.
void log_ACTIVITY_HI_BreakpointSet(U32 breakpointIdx, bool breakOnce) const
Log event BreakpointSet.
virtual void directive_waitAbs_internalInterfaceHandler(const Svc::FpySequencer_WaitAbsDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_waitAbs.
virtual void directive_pushTime_internalInterfaceHandler(const Svc::FpySequencer_PushTimeDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_pushTime.
void sequencer_sendSignal_result_timeOpFailed()
Send signal result_timeOpFailed to state machine sequencer.
void BREAK_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void log_WARNING_HI_FileOpenError(const Fw::StringBase &filePath, I32 errorCode) const
Log event FileOpenError.
void init(FpySequencerComponentBase::SmId smId)
Initialize the state machine.
void set_prmSet_OutputPort(FwIndexType portNum, Fw::InputPrmSetPort *port)
Connect port to prmSet[portNum].
Command failed to deserialize.
void lock()
lock the mutex and assert success
PlatformQueuePriorityType FwQueuePriorityType
The type of queue priorities used.
Command had execution error.
Important informational events.
message to exit active component task
void sequencer_sendSignal_cmd_CANCEL()
Send signal cmd_CANCEL to state machine sequencer.
void sequencer_sendSignal_result_checkStatementTimeout_statementTimeout()
Send signal result_checkStatementTimeout_statementTimeout to state machine sequencer.
static constexpr FwIndexType getNum_cmdResponseOut_OutputPorts()
virtual void directive_waitRel_internalInterfaceHandler(const Svc::FpySequencer_WaitRelDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_waitRel.
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
Definition: SchedPortAc.cpp:79
void sequencer_sendSignal_stmtResponse_keepWaiting()
Send signal stmtResponse_keepWaiting to state machine sequencer.
void invoke(FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args) const
Invoke a port connection.
Definition: LogPortAc.cpp:199
bool isConnected_tlmOut_OutputPort(FwIndexType portNum) const
void init()
Initialization function.
void log_WARNING_HI_InvalidCommand(I32 state) const
Log event InvalidCommand.
void tlmWrite_BreakBeforeNextLine(bool arg, Fw::Time _tlmTime=Fw::Time())
bool isConnected_logOut_OutputPort(FwIndexType portNum) const
void log_ACTIVITY_HI_SequenceCancelled(const Fw::StringBase &filePath) const
Log event SequenceCancelled.
virtual void RUN_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command RUN.
void log_ACTIVITY_HI_BreakpointCleared() const
Log event BreakpointCleared.
void log_WARNING_HI_ArgTotalSizeExceedsStackLimit(Svc::Fpy::StackSizeType argSize) const
Log event ArgTotalSizeExceedsStackLimit.
static constexpr FwIndexType getNum_getTlmChan_OutputPorts()
virtual void directive_popEvent_internalInterfaceHandler(const Svc::FpySequencer_PopEventDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_popEvent.
void init()
Initialization function.
Fw::ParamString paramGet_SEQ_BASE_DIR(Fw::ParamValid &valid)
virtual void directive_peek_internalInterfaceHandler(const Svc::FpySequencer_PeekDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_peek.
A message was sent requesting an exit of the loop.
bool isConnected_timeCaller_OutputPort(FwIndexType portNum) const
called when the statement unsuccessfully executed. only raised in the RUNNING.AWAITING_CMD_RESPONSE s...
called in CONTINUE cmd. only raised in RUNNING.PAUSED state
FpySequencer_SequencerStateMachineStateMachineBase::State getState() const
Get the state.
void tlmWrite_SequencesFailed(U64 arg, Fw::Time _tlmTime=Fw::Time())
loads a value from an absolute address in the stack (for global variables)
void tlmWrite_SeqPath(const Fw::StringBase &arg, Fw::Time _tlmTime=Fw::Time())
virtual void SET_BREAKPOINT_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command SET_BREAKPOINT.
PlatformIndexType FwIndexType
virtual void VALIDATE_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command VALIDATE.
static constexpr FwIndexType getNum_checkTimers_InputPorts()
void directive_exit_internalInterfaceInvoke(const Svc::FpySequencer_ExitDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_exit.
static constexpr FwIndexType getNum_serialOut_OutputPorts()
pops a U32 from the stack and uses it to seed the RNG used by PushRandDirective
bool isConnected_pingOut_OutputPort(FwIndexType portNum) const
pops serialized data from stack and sends to serial output port
A fatal non-recoverable event.
void directive_storeRelConstOffset_internalInterfaceInvoke(const Svc::FpySequencer_StoreRelConstOffsetDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_storeRelConstOffset.
void log_WARNING_HI_MismatchedTimeContext(I32 internalTimeContext, I32 otherTimeContext) const
Log event MismatchedTimeContext.
bool isConnected_cmdOut_OutputPort(FwIndexType portNum) const
Svc::InputSchedPort * get_tlmWrite_InputPort(FwIndexType portNum)
void seqRunIn_handlerBase(FwIndexType portNum, const Fw::StringBase &filename, const Svc::SeqArgs &args)
Handler base-class function for input port seqRunIn.
void log_WARNING_HI_WrongSchemaVersion(U8 expected, U8 actual) const
Log event WrongSchemaVersion.
void addCallPort(InputLogPort *callPort)
Register an input port.
Definition: LogPortAc.cpp:186
Writes the contents of the stack to a file. This command is only valid in the RUNNING.PAUSED state.
void addCallPort(InputCmdSeqInPort *callPort)
Register an input port.
The size of the serial representation.
void sequencer_sendSignal_cmd_CLEAR_BREAKPOINT()
Send signal cmd_CLEAR_BREAKPOINT to state machine sequencer.
void directive_storeAbs_internalInterfaceInvoke(const Svc::FpySequencer_StoreAbsDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_storeAbs.
void log_WARNING_LO_LogWarningLo(const Fw::StringBase &filePath, const Fw::StringBase &message) const
Log event LogWarningLo.
void log_WARNING_HI_UnknownSequencerDirective(U8 opcode, U32 stmtIdx, const Fw::StringBase &filePath) const
Log event UnknownSequencerDirective.
virtual void VALIDATE_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &fileName)=0
void log_WARNING_HI_CmdResponseWhileAwaitingDirective(FwOpcodeType opcode, const Fw::CmdResponse &response, U8 expectedDirectiveOpcode) const
Log event CmdResponseWhileAwaitingDirective.
void init()
Initialization function.
void log_WARNING_HI_InvalidSeqCancelCall(I32 state) const
Log event InvalidSeqCancelCall.
void incNumMsgDropped()
increment the number of messages dropped
stores a value to a local variable at a runtime-determined offset relative to the current stack frame...
void init()
Initialization function.
Definition: PingPortAc.cpp:73
void unlock()
alias for unLock to meet BasicLockable requirements
virtual void BREAK_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command BREAK.
void tlmWrite_DirectiveErrorIndex(U64 arg, Fw::Time _tlmTime=Fw::Time())
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
Command failed validation.
RateGroupDivider component implementation.
virtual void cmdResponseIn_preMsgHook(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)
Pre-message hook for async input port cmdResponseIn.
message sent/received okay
Definition: Queue.hpp:31
Enum representing parameter validity.
U8 BYTE
byte type
Definition: BasicTypes.h:57
void log_FATAL_LogFatal(const Fw::StringBase &filePath, const Fw::StringBase &message) const
Log event LogFatal.
virtual void VALIDATE_ARGS_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &fileName, const Svc::SeqArgs &buffer)=0
void log_WARNING_HI_TooManySequenceArgs(U8 count, U8 max) const
Log event TooManySequenceArgs.
void sequencer_sendSignal_cmd_CONTINUE()
Send signal cmd_CONTINUE to state machine sequencer.
void DUMP_STACK_TO_FILE_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void log_WARNING_HI_MismatchedTimeBase(I32 internalTimeBase, I32 otherTimeBase) const
Log event MismatchedTimeBase.
void invoke(FwPrmIdType id, Fw::ParamBuffer &val) const
Invoke a port connection.
void sequencer_sendSignal_result_failure()
Send signal result_failure to state machine sequencer.
void directive_storeAbsConstOffset_internalInterfaceInvoke(const Svc::FpySequencer_StoreAbsConstOffsetDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_storeAbsConstOffset.
void log_WARNING_HI_FileOutsideSandbox(const Fw::StringBase &filePath, const Fw::StringBase &sandboxDir) const
Log event FileOutsideSandbox.
void log_WARNING_LO_CmdResponseWhileNotRunningSequence(I32 state, FwOpcodeType opcode, const Fw::CmdResponse &response) const
Log event CmdResponseWhileNotRunningSequence.
bool isConnected_seqStartOut_OutputPort(FwIndexType portNum) const
void directive_return_internalInterfaceInvoke(const Svc::FpySequencer_ReturnDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_return.
virtual void RUN_ARGS_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &fileName, const Svc::BlockState &block, const Svc::SeqArgs &buffer)=0
Handler for command RUN_ARGS.
virtual void CONTINUE_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command CONTINUE.
void log_WARNING_HI_ArgSizeMismatch(Svc::Fpy::StackSizeType expected, FwSizeType actual, const Fw::StringBase &filePath) const
Log event ArgSizeMismatch.
called on CANCEL cmd. raised in all states except IDLE
void addCallPort(InputComPort *callPort)
Register an input port.
Definition: ComPortAc.cpp:168
void seqStartOut_out(FwIndexType portNum, const Fw::StringBase &filename, const Svc::SeqArgs &args) const
Invoke output port seqStartOut.
void sequencer_sendSignal_entered()
Send signal entered to state machine sequencer.
Must be called after VALIDATE. Runs the sequence that was validated.
void log_WARNING_HI_WrongCmdResponseOpcode(FwOpcodeType opcode, const Fw::CmdResponse &response, FwOpcodeType expectedOpcode) const
Log event WrongCmdResponseOpcode.
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
Definition: PingPortAc.cpp:79
FpySequencerComponentBase::SmId getId() const
Get the state machine id.
pushes the current Fw.Time struct to the stack
void directive_popSerializable_internalInterfaceInvoke(const Svc::FpySequencer_PopSerializableDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_popSerializable.
void log_ACTIVITY_HI_SequenceDone(const Fw::StringBase &filePath) const
Log event SequenceDone.
LinearBufferTemplate< FW_SM_SIGNAL_BUFFER_MAX_SIZE > SmSignalBuffer
static constexpr FwIndexType getNum_seqDoneOut_OutputPorts()
virtual void directive_exit_internalInterfaceHandler(const Svc::FpySequencer_ExitDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_exit.
Message will return with status when space is unavailable.
Definition: Queue.hpp:48
Implementation of malloc based allocator.
void SET_BREAKPOINT_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Auto-generated base for FpySequencer component.
static constexpr FwIndexType getNum_logOut_OutputPorts()
void sequencer_sendSignal_cmd_RUN(const Svc::FpySequencer_SequenceExecutionArgs &value)
Send signal cmd_RUN to state machine sequencer.
void log_WARNING_HI_FileWriteError(FwSizeType writeSize, const Fw::StringBase &filePath, I32 errorCode) const
Log event FileWriteError.
static constexpr SizeType BUFFER_SIZE(SizeType maxLength)
Get the size of a null-terminated string buffer.
void init()
Initialization function.
void log_WARNING_HI_FileReadDeserializeError(const Svc::FpySequencer_FileReadStage &readStage, const Fw::StringBase &filePath, I32 errorCode, U64 buffLeft, U64 buffLength) const
Log event FileReadDeserializeError.
void log_WARNING_LO_CmdResponseFromOldSequence(FwOpcodeType opcode, const Fw::CmdResponse &response, U16 oldSequenceIdx, U16 currentSequenceIdx) const
Log event CmdResponseFromOldSequence.
void directive_if_internalInterfaceInvoke(const Svc::FpySequencer_IfDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_if.
void checkTimers_handlerBase(FwIndexType portNum, U32 context)
Handler base-class function for input port checkTimers.
void init()
Initialization function.
static constexpr FwIndexType getNum_prmGet_OutputPorts()
static constexpr FwIndexType getNum_seqCancelIn_InputPorts()
virtual void CANCEL_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command CANCEL.
void tlmWrite_BreakOnlyOnceOnBreakpoint(bool arg, Fw::Time _tlmTime=Fw::Time())
virtual void directive_storeRel_internalInterfaceHandler(const Svc::FpySequencer_StoreRelDirective &directive, U64 sequenceIndex)=0
Internal interface handler for directive_storeRel.
virtual SerializeStatus moveDeserToOffset(FwSizeType offset)=0
Move deserialization pointer to specified offset.
called when the statement is telling the sequencer to await a later stmt response ...
FpySequencer_SequencerStateMachineStateMachineBase::Signal Signal
Fw::TlmValid getTlmChan_out(FwIndexType portNum, FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val) const
Invoke output port getTlmChan.
void tlmWrite_SequencesCancelled(U64 arg, Fw::Time _tlmTime=Fw::Time())
virtual void tlmWriteInternal_overflowHook()=0
Overflow hook for async input port tlmWriteInternal.
#define FW_ASSERT(...)
Definition: Assert.hpp:14
void tlmWrite_BreakpointInUse(bool arg, Fw::Time _tlmTime=Fw::Time())
bool isConnected_seqDoneOut_OutputPort(FwIndexType portNum) const
void set_prmGet_OutputPort(FwIndexType portNum, Fw::InputPrmGetPort *port)
Connect port to prmGet[portNum].
void set_getParam_OutputPort(FwIndexType portNum, Fw::InputPrmGetPort *port)
Connect port to getParam[portNum].
void CLEAR_BREAKPOINT_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
PlatformAssertArgType FwAssertArgType
The type of arguments to assert functions.
void directive_setSeed_internalInterfaceInvoke(const Svc::FpySequencer_SetSeedDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_setSeed.
U32 StackSizeType
the type which everything referencing a size or offset on the stack is represented in ...
void addCallPort(InputCmdResponsePort *callPort)
Register an input port.
void tlmWrite(FwChanIdType id, Fw::TlmBuffer &_tlmBuff, Fw::Time _tlmTime=Fw::Time()) const
void directive_discard_internalInterfaceInvoke(const Svc::FpySequencer_DiscardDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_discard.
void tlmWrite_BreakpointIndex(U32 arg, Fw::Time _tlmTime=Fw::Time())
U32 FwIdType
The id type.
SerializeStatus serializeTo(SerialBufferBase &buffer, Endianness mode=Endianness::BIG) const override
Serialize the contents of this object to a buffer.
BYTE cmdPortSize[Fw::CmdPortBuffer::CAPACITY]
void directive_storeRel_internalInterfaceInvoke(const Svc::FpySequencer_StoreRelDirective &directive, U64 sequenceIndex)
Internal interface base-class function for directive_storeRel.
void tlmWrite_Debug_NextStatementReadSuccess(bool arg, Fw::Time _tlmTime=Fw::Time())