reactor-c 1.0
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
reactor_mode_t Struct Reference

A struct to represent a single mode instace in a reactor instance. More...

#include <modes.h>

Data Fields

instant_t deactivation_time
 The logical time when the mode was deactivated (left).
uint8_t flags
 Bit vector for several internal flags related to the mode.
char * name
 Name of this mode (null-terminated string).
reactor_mode_state_tstate
 Pointer to a struct with the reactor's mode state for this mode instance.

Detailed Description

A struct to represent a single mode instace in a reactor instance.

Field Documentation

◆ deactivation_time

instant_t reactor_mode_t::deactivation_time

The logical time when the mode was deactivated (left).

Used to track when the mode was last exited.

◆ flags

uint8_t reactor_mode_t::flags

Bit vector for several internal flags related to the mode.

Used for internal bookkeeping (e.g., active, scheduled for activation, etc.).

◆ name

char* reactor_mode_t::name

Name of this mode (null-terminated string).

Useful for debugging and tracing.

◆ state

reactor_mode_state_t* reactor_mode_t::state

Pointer to a struct with the reactor's mode state for this mode instance.

This links to the state information associated with this mode.


The documentation for this struct was generated from the following file:
  • /Users/runner/work/reactor-c/reactor-c/include/core/modal_models/modes.h