Files
MuditaOS/module-services/service-desktop/parser/Fsmlist.hpp
Radoslaw Wicik a8573a404c Apply new style
2020-03-17 10:03:16 +01:00

15 lines
339 B
C++

#pragma once
#include "tinyfsm/include/tinyfsm.hpp"
#include "EndpointFsm.hpp"
#include "ParserFsm.hpp"
#include "RawDataFsm.hpp"
using fsm_list = tinyfsm::FsmList<ParserFsm, EndpointFsm, RawDataFsm>;
/** dispatch event to all FSMs */
template <typename E> void send_event(E const &event)
{
fsm_list::template dispatch<E>(event);
}