|
tin
1.5.9
|
#include <executor.h>


Public Types | |
| using | runtime_type = Runtime |
| using | events = typename Runtime::events |
| using | event_list = tsm::detail::as_type_list_t< events > |
Public Member Functions | |
| constexpr | tick_executor (Runtime &runtime) |
| template<typename Event > | |
| requires (tsm::detail::contains_type< std::decay_t< Event >>(tsm::detail::as_type_list_t< events >{})) bool after_ticks(Event &&event | |
| template<typename Event > | |
| requires (tsm::detail::contains_type< std::decay_t< Event >>(tsm::detail::as_type_list_t< events >{})) bool after_ticks(Event &&event | |
| template<typename Event > | |
| requires (tsm::detail::contains_type< std::decay_t< Event >>(tsm::detail::as_type_list_t< events >{})) bool every_ticks(Event &&event | |
| template<typename Event > | |
| requires (tsm::detail::contains_type< std::decay_t< Event >>(tsm::detail::as_type_list_t< events >{})) bool every_ticks(Event &&event | |
| std::size_t | tick (tsm::tick_rep elapsed_ticks=1U) |
| std::size_t | tick (tsm::tick_count elapsed_ticks) |
| bool | step () |
| std::size_t | run_ready () |
| std::size_t | pending () const |
| bool | empty () const |
| void | clear () |
Public Attributes | |
| tsm::tick_rep | ticks |
| tsm::tick_count | ticks |
| tsm::tick_rep | period |
| tsm::tick_count | period |
Tick-driven delayed event executor for one runtime.
The tick executor stores normal HSM events in fixed inline storage and sends them to the runtime when their countdown expires. It sees only explicit tick counts; platform clocks, RTOS ticks, or SysTick interrupts are adapter inputs that call tick.
| using tsm::runtime::tick_executor< Runtime, Capacity >::event_list = tsm::detail::as_type_list_t<events> |
| using tsm::runtime::tick_executor< Runtime, Capacity >::events = typename Runtime::events |
| using tsm::runtime::tick_executor< Runtime, Capacity >::runtime_type = Runtime |
|
inlineexplicitconstexpr |
|
inline |
|
inline |
|
inline |
| tsm::runtime::tick_executor< Runtime, Capacity >::requires | ( | tsm::detail::contains_type< std::decay_t< Event >> | tsm::detail::as_type_list_t< events >{} | ) | && |
| tsm::runtime::tick_executor< Runtime, Capacity >::requires | ( | tsm::detail::contains_type< std::decay_t< Event >> | tsm::detail::as_type_list_t< events >{} | ) | && |
| tsm::runtime::tick_executor< Runtime, Capacity >::requires | ( | tsm::detail::contains_type< std::decay_t< Event >> | tsm::detail::as_type_list_t< events >{} | ) | && |
| tsm::runtime::tick_executor< Runtime, Capacity >::requires | ( | tsm::detail::contains_type< std::decay_t< Event >> | tsm::detail::as_type_list_t< events >{} | ) | && |
|
inline |
|
inline |
|
inline |
|
inline |
| tsm::tick_rep tsm::runtime::tick_executor< Runtime, Capacity >::period |
| tsm::tick_count tsm::runtime::tick_executor< Runtime, Capacity >::period |
| tsm::tick_rep tsm::runtime::tick_executor< Runtime, Capacity >::ticks |
| tsm::tick_count tsm::runtime::tick_executor< Runtime, Capacity >::ticks |