mirror of
https://github.com/nasa/fpp.git
synced 2025-12-16 21:35:53 -06:00
312 lines
11 KiB
C++
Vendored
312 lines
11 KiB
C++
Vendored
// ======================================================================
|
|
// \title SmChoiceQueued.hpp
|
|
// \author [user name]
|
|
// \brief hpp file for SmChoiceQueued component implementation class
|
|
// ======================================================================
|
|
|
|
#ifndef FppTest_SmChoiceQueued_HPP
|
|
#define FppTest_SmChoiceQueued_HPP
|
|
|
|
#include "SmChoiceQueuedComponentAc.hpp"
|
|
|
|
namespace FppTest {
|
|
|
|
class SmChoiceQueued final :
|
|
public SmChoiceQueuedComponentBase
|
|
{
|
|
|
|
public:
|
|
|
|
// ----------------------------------------------------------------------
|
|
// Component construction and destruction
|
|
// ----------------------------------------------------------------------
|
|
|
|
//! Construct SmChoiceQueued object
|
|
SmChoiceQueued(
|
|
const char* const compName //!< The component name
|
|
);
|
|
|
|
//! Destroy SmChoiceQueued object
|
|
~SmChoiceQueued();
|
|
|
|
private:
|
|
|
|
// ----------------------------------------------------------------------
|
|
// Handler implementations for typed input ports
|
|
// ----------------------------------------------------------------------
|
|
|
|
//! Handler implementation for schedIn
|
|
void schedIn_handler(
|
|
FwIndexType portNum, //!< The port number
|
|
U32 context //!< The call order
|
|
) override;
|
|
|
|
private:
|
|
|
|
// ----------------------------------------------------------------------
|
|
// Implementations for internal state machine actions
|
|
// ----------------------------------------------------------------------
|
|
|
|
//! Implementation for action a of state machine FppTest_SmChoice_Basic
|
|
//!
|
|
//! Action a
|
|
void FppTest_SmChoice_Basic_action_a(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_Basic::Signal signal //!< The signal
|
|
) override;
|
|
|
|
//! Implementation for action b of state machine FppTest_SmChoice_Basic
|
|
//!
|
|
//! Action b
|
|
void FppTest_SmChoice_Basic_action_b(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_Basic::Signal signal //!< The signal
|
|
) override;
|
|
|
|
//! Implementation for action a of state machine FppTest_SmChoice_BasicU32
|
|
//!
|
|
//! Action a
|
|
void FppTest_SmChoice_BasicU32_action_a(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_BasicU32::Signal signal, //!< The signal
|
|
U32 value //!< The value
|
|
) override;
|
|
|
|
//! Implementation for action b of state machine FppTest_SmChoice_BasicU32
|
|
//!
|
|
//! Action b
|
|
void FppTest_SmChoice_BasicU32_action_b(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_BasicU32::Signal signal //!< The signal
|
|
) override;
|
|
|
|
//! Implementation for action exitS1 of state machine FppTest_SmChoice_ChoiceToChoice
|
|
//!
|
|
//! Exit S1
|
|
void FppTest_SmChoice_ChoiceToChoice_action_exitS1(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_ChoiceToChoice::Signal signal //!< The signal
|
|
) override;
|
|
|
|
//! Implementation for action a of state machine FppTest_SmChoice_ChoiceToChoice
|
|
//!
|
|
//! Action a
|
|
void FppTest_SmChoice_ChoiceToChoice_action_a(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_ChoiceToChoice::Signal signal //!< The signal
|
|
) override;
|
|
|
|
//! Implementation for action enterS2 of state machine FppTest_SmChoice_ChoiceToChoice
|
|
//!
|
|
//! Enter S2
|
|
void FppTest_SmChoice_ChoiceToChoice_action_enterS2(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_ChoiceToChoice::Signal signal //!< The signal
|
|
) override;
|
|
|
|
//! Implementation for action exitS1 of state machine FppTest_SmChoice_ChoiceToState
|
|
//!
|
|
//! Exit S1
|
|
void FppTest_SmChoice_ChoiceToState_action_exitS1(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_ChoiceToState::Signal signal //!< The signal
|
|
) override;
|
|
|
|
//! Implementation for action a of state machine FppTest_SmChoice_ChoiceToState
|
|
//!
|
|
//! Action a
|
|
void FppTest_SmChoice_ChoiceToState_action_a(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_ChoiceToState::Signal signal //!< The signal
|
|
) override;
|
|
|
|
//! Implementation for action enterS2 of state machine FppTest_SmChoice_ChoiceToState
|
|
//!
|
|
//! Enter S2
|
|
void FppTest_SmChoice_ChoiceToState_action_enterS2(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_ChoiceToState::Signal signal //!< The signal
|
|
) override;
|
|
|
|
//! Implementation for action enterS3 of state machine FppTest_SmChoice_ChoiceToState
|
|
//!
|
|
//! Enter S3
|
|
void FppTest_SmChoice_ChoiceToState_action_enterS3(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_ChoiceToState::Signal signal //!< The signal
|
|
) override;
|
|
|
|
//! Implementation for action a of state machine FppTest_SmChoice_InputPairU16U32
|
|
//!
|
|
//! Action a
|
|
void FppTest_SmChoice_InputPairU16U32_action_a(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_InputPairU16U32::Signal signal, //!< The signal
|
|
U32 value //!< The value
|
|
) override;
|
|
|
|
//! Implementation for action a of state machine FppTest_SmChoice_Sequence
|
|
//!
|
|
//! Action a
|
|
void FppTest_SmChoice_Sequence_action_a(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_Sequence::Signal signal //!< The signal
|
|
) override;
|
|
|
|
//! Implementation for action b of state machine FppTest_SmChoice_Sequence
|
|
//!
|
|
//! Action b
|
|
void FppTest_SmChoice_Sequence_action_b(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_Sequence::Signal signal //!< The signal
|
|
) override;
|
|
|
|
//! Implementation for action a of state machine FppTest_SmChoice_SequenceU32
|
|
//!
|
|
//! Action a
|
|
void FppTest_SmChoice_SequenceU32_action_a(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_SequenceU32::Signal signal, //!< The signal
|
|
U32 value //!< The value
|
|
) override;
|
|
|
|
//! Implementation for action b of state machine FppTest_SmChoice_SequenceU32
|
|
//!
|
|
//! Action b
|
|
void FppTest_SmChoice_SequenceU32_action_b(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_SequenceU32::Signal signal //!< The signal
|
|
) override;
|
|
|
|
//! Implementation for action a of state machine FppTest_SmChoiceQueued_Basic
|
|
//!
|
|
//! Action a
|
|
void FppTest_SmChoiceQueued_Basic_action_a(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoiceQueued_Basic::Signal signal //!< The signal
|
|
) override;
|
|
|
|
//! Implementation for action b of state machine FppTest_SmChoiceQueued_Basic
|
|
//!
|
|
//! Action b
|
|
void FppTest_SmChoiceQueued_Basic_action_b(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoiceQueued_Basic::Signal signal //!< The signal
|
|
) override;
|
|
|
|
private:
|
|
|
|
// ----------------------------------------------------------------------
|
|
// Implementations for internal state machine guards
|
|
// ----------------------------------------------------------------------
|
|
|
|
//! Implementation for guard g of state machine FppTest_SmChoice_Basic
|
|
//!
|
|
//! Guard g
|
|
bool FppTest_SmChoice_Basic_guard_g(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_Basic::Signal signal //!< The signal
|
|
) const override;
|
|
|
|
//! Implementation for guard g of state machine FppTest_SmChoice_BasicU32
|
|
//!
|
|
//! Guard g
|
|
bool FppTest_SmChoice_BasicU32_guard_g(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_BasicU32::Signal signal, //!< The signal
|
|
U32 value //!< The value
|
|
) const override;
|
|
|
|
//! Implementation for guard g1 of state machine FppTest_SmChoice_ChoiceToChoice
|
|
//!
|
|
//! Guard g1
|
|
bool FppTest_SmChoice_ChoiceToChoice_guard_g1(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_ChoiceToChoice::Signal signal //!< The signal
|
|
) const override;
|
|
|
|
//! Implementation for guard g2 of state machine FppTest_SmChoice_ChoiceToChoice
|
|
//!
|
|
//! Guard g2
|
|
bool FppTest_SmChoice_ChoiceToChoice_guard_g2(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_ChoiceToChoice::Signal signal //!< The signal
|
|
) const override;
|
|
|
|
//! Implementation for guard g of state machine FppTest_SmChoice_ChoiceToState
|
|
//!
|
|
//! Guard g
|
|
bool FppTest_SmChoice_ChoiceToState_guard_g(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_ChoiceToState::Signal signal //!< The signal
|
|
) const override;
|
|
|
|
//! Implementation for guard g of state machine FppTest_SmChoice_InputPairU16U32
|
|
//!
|
|
//! Guard g
|
|
bool FppTest_SmChoice_InputPairU16U32_guard_g(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_InputPairU16U32::Signal signal, //!< The signal
|
|
U32 value //!< The value
|
|
) const override;
|
|
|
|
//! Implementation for guard g1 of state machine FppTest_SmChoice_Sequence
|
|
//!
|
|
//! Guard g1
|
|
bool FppTest_SmChoice_Sequence_guard_g1(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_Sequence::Signal signal //!< The signal
|
|
) const override;
|
|
|
|
//! Implementation for guard g2 of state machine FppTest_SmChoice_Sequence
|
|
//!
|
|
//! Guard g2
|
|
bool FppTest_SmChoice_Sequence_guard_g2(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_Sequence::Signal signal //!< The signal
|
|
) const override;
|
|
|
|
//! Implementation for guard g1 of state machine FppTest_SmChoice_SequenceU32
|
|
//!
|
|
//! Guard g1
|
|
bool FppTest_SmChoice_SequenceU32_guard_g1(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_SequenceU32::Signal signal //!< The signal
|
|
) const override;
|
|
|
|
//! Implementation for guard g2 of state machine FppTest_SmChoice_SequenceU32
|
|
//!
|
|
//! Guard g2
|
|
bool FppTest_SmChoice_SequenceU32_guard_g2(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoice_SequenceU32::Signal signal, //!< The signal
|
|
U32 value //!< The value
|
|
) const override;
|
|
|
|
//! Implementation for guard g of state machine FppTest_SmChoiceQueued_Basic
|
|
//!
|
|
//! Guard g
|
|
bool FppTest_SmChoiceQueued_Basic_guard_g(
|
|
SmId smId, //!< The state machine id
|
|
FppTest_SmChoiceQueued_Basic::Signal signal //!< The signal
|
|
) const override;
|
|
|
|
private:
|
|
|
|
// ----------------------------------------------------------------------
|
|
// Overflow hook implementations for internal state machines
|
|
// ----------------------------------------------------------------------
|
|
|
|
//! Overflow hook implementation for smChoiceChoiceToChoice
|
|
void smChoiceChoiceToChoice_stateMachineOverflowHook(
|
|
SmId smId, //!< The state machine ID
|
|
FwEnumStoreType signal, //!< The signal
|
|
Fw::SerializeBufferBase& buffer //!< The message buffer
|
|
) override;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|