SMACC2
ss_superstate_2.hpp
Go to the documentation of this file.
1// Copyright 2021 RobosoftAI Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15namespace sm_three_some
16{
17namespace SS2
18{
20{
21namespace inner_states
22{
23// FORWARD DECLARATIONS OF ALL INNER STATES
24class StiState1;
25class StiState2;
26class StiState3;
27} // namespace inner_states
28} // namespace sm_three_some
29
30using namespace sm_three_some::inner_states;
31
32// STATE DECLARATION
33struct Ss2 : smacc2::SmaccState<Ss2, MsRun, StiState1>
34{
35public:
36 using SmaccState::SmaccState;
37
38 // TRANSITION TABLE
39 typedef mpl::list<
40
41 Transition<EvLoopEnd<StiState1>, StState4>
42
44
45 // STATE VARIABLES
46 static constexpr int total_iterations() { return 5; }
48
49 // STATE FUNCTIONS
50 static void staticConfigure() {}
51
53}; // namespace SS4
54
55// forward declaration for the superstate
56using SS = SS2::Ss2;
57
61
62} // namespace SS2
63} // namespace sm_three_some
static constexpr int total_iterations()
mpl::list< Transition< EvLoopEnd< StiState1 >, StState4 > > reactions