rk3399_arm_lvds/tinyfsm-master/examples/elevator/fsmlist.hpp

20 lines
343 B
C++

#ifndef FSMLIST_HPP_INCLUDED
#define FSMLIST_HPP_INCLUDED
#include <tinyfsm.hpp>
#include "elevator.hpp"
#include "motor.hpp"
using fsm_list = tinyfsm::FsmList<Motor, Elevator>;
/** dispatch event to both "Motor" and "Elevator" */
template<typename E>
void send_event(E const & event)
{
fsm_list::template dispatch<E>(event);
}
#endif