![]() |
Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
|
Mealy machine. More...
#include <tinyfsm.h>
Public Member Functions | |
void | entry (void) |
no entry actions | |
void | exit (void) |
no exit actions | |
Additional Inherited Members | |
![]() | |
using | fsmtype = Fsm< F > |
Templated FSM. | |
using | state_ptr_t = F * |
Current state pointer. | |
![]() | |
template<typename S > | |
static constexpr S & | state (void) |
public, leaving ability to access state instance (e.g. on Reset) | |
template<typename S > | |
static constexpr bool | is_in_state (void) |
Check if in state. | |
static void | set_initial_state () |
state machine functions | |
static void | Reset () |
Reset state machine. | |
static void | enter () |
Enter state. | |
static void | start () |
start state | |
template<typename E > | |
static void | dispatch (E const &event) |
Dispatch a new state. | |
![]() | |
static state_ptr_t | current_state_ptr |
Current state pointer. | |
![]() | |
template<typename S > | |
void | transit (void) |
state transition functions | |
template<typename S , typename ActionFunction > | |
void | transit (ActionFunction action_function) |
Transition to new state. | |
template<typename S , typename ActionFunction , typename ConditionFunction > | |
void | transit (ActionFunction action_function, ConditionFunction condition_function) |
Transit to new state. | |