Header file of the runtime infrastructure for modes in the C target of Lingua Franca.
More...
|
| void | _lf_add_suspended_event (event_t *event) |
| | Add a suspended event to the list of suspended events.
|
| void | _lf_handle_mode_changes (environment_t *env) |
| | Handle the mode changes in the environment.
|
| void | _lf_handle_mode_shutdown_reactions (environment_t *env, reaction_t **shutdown_reactions, int shutdown_reactions_size) |
| | Handle the mode shutdown reactions in the environment.
|
| void | _lf_handle_mode_startup_reset_reactions (environment_t *env, reaction_t **startup_reactions, int startup_reactions_size, reaction_t **reset_reactions, int reset_reactions_size, reactor_mode_state_t *states[], int states_size) |
| | Handle the mode startup reset reactions in the environment.
|
| void | _lf_handle_mode_triggered_reactions (environment_t *env) |
| | Handle the mode triggered reactions in the environment.
|
| void | _lf_initialize_mode_states (environment_t *env, reactor_mode_state_t *states[], int states_size) |
| | Initialize the mode states in the environment.
|
| void | _lf_initialize_modes (environment_t *env) |
| | Initialize the modes in the environment.
|
| bool | _lf_mode_is_active (reactor_mode_t *mode) |
| | Check whether a mode is active.
|
| void | _lf_process_mode_changes (environment_t *env, reactor_mode_state_t *states[], int states_size, mode_state_variable_reset_data_t reset_data[], int reset_data_size, trigger_t *timer_triggers[], int timer_triggers_size) |
| | Process the mode changes in the environment.
|
| void | _lf_terminate_modal_reactors (environment_t *env) |
| | Terminate the modal reactors in the environment.
|
Header file of the runtime infrastructure for modes in the C target of Lingua Franca.
- Author
- Alexander Schulz-Rosengarten
-
Soroush Bateni
This file contains user macros for setting new modes, forward declarations for functions and types used in the generated code, and types definitions for the modal representation.
Any mode related code will only work in the presence of the MODAL_REACTORS definition. However, this header should be included regardless to provide definitions for mode-unaware pre-compilation.
This file is intended for direct include in reactor.h augmenting certain type definitions.