Skip to content

Configuration Instance

Andrew Gresyk edited this page Apr 1, 2022 · 2 revisions

Instance Configuration

  1. FSM instance is configured by defining Config type, and passing it into ffsm2::MachineT<TConfig>:

    using Config = ffsm2::Config;
    using M = ffsm2::MachineT<Config>;
  2. Multiple ffsm2::Config sub-types can be combined together:

    using Config = ffsm2::Config
                        ::ContextT<TC>
                        ::ManualActivation
                        ::PayloadT<TP>;

Configuration Settings

  1. Set context

    Config::ContextT<>
  2. Enable manual activation

    Config::ManualActivation
  3. Set transition destination substitution limit

    Config::SubstitutionLimitN<>
  4. Set maximum number of tasks across all plans of the FSM instance

    Config::TaskCapacityN<uint16_t>
  5. Enable transition payloads (if not void)

    Config::PayloadT<Type>