KymoCore/Documentation
v8.0.0 Stable⌄
Versions8.0.0 Current
GitHub ↗
KYMOCORE / API REFERENCE

kymo_config_check.h File Reference

API contracts in their original English. Navigation and guides are bilingual.

Validates the settings of kymo_config.h and derives KYMO_EFFECTIVE_*. More...

Go to the source code of this file.

Macros

#define KYMO_DETAIL_PASTE_I(prefix_, value_)
 Internal token-paste step for checking literal settings.
#define KYMO_DETAIL_PASTE(prefix_, value_)
 Internal expansion wrapper so macro-valued settings are resolved first.
#define KYMO_DETAIL_VALID_0   1
 Internal marker: literal 0 is a valid boolean or profile.
#define KYMO_DETAIL_VALID_1   1
 Internal marker: literal 1 is a valid boolean or profile.
#define KYMO_DETAIL_PROFILE_2   1
 Internal marker: literal 2 is a valid profile.
#define KYMO_EFFECTIVE_RUNTIME   (KYMO_ENABLED && KYMO_ENABLE_RUNTIME)
 Effective cooperative runtime gate.
#define KYMO_EFFECTIVE_CORE   (KYMO_ENABLED && KYMO_ENABLE_CORE)
 Effective default Core gate.
#define KYMO_EFFECTIVE_ENDPOINT   (KYMO_ENABLED && (KYMO_ENABLE_ENDPOINT || KYMO_ENABLE_CORE))
 Dispatcher needed by either explicit instances or the default Core.
#define KYMO_EFFECTIVE_TX   (KYMO_ENABLED && (KYMO_ENABLE_TX || KYMO_ENABLE_CORE))
 Effective shared transport gate, respecting the global switch.
#define KYMO_EFFECTIVE_CPP   (KYMO_ENABLED && KYMO_ENABLE_CPP)
 Effective optional C++ sender gate.
#define KYMO_EFFECTIVE_X   (KYMO_ENABLED && KYMO_ENABLE_X)
 Effective X-coordinate gate.
#define KYMO_EFFECTIVE_Z   (KYMO_ENABLED && KYMO_ENABLE_Z)
 Effective Z-coordinate gate.
#define KYMO_EFFECTIVE_TIMESTAMP   (KYMO_ENABLED && KYMO_ENABLE_TIMESTAMP)
 Effective DATA timestamp gate.
#define KYMO_EFFECTIVE_CRC   (KYMO_ENABLED && KYMO_ENABLE_CRC)
 Effective encoder CRC gate.
#define KYMO_EFFECTIVE_DECODER   (KYMO_ENABLED && KYMO_ENABLE_DECODER)
 Effective MCU decoder gate.
#define KYMO_EFFECTIVE_PARAMETERS   (KYMO_ENABLED && KYMO_ENABLE_PARAMETERS)
 Effective parameter receiver gate (back channel).
#define KYMO_EFFECTIVE_WATCH   (KYMO_ENABLED && KYMO_ENABLE_WATCH)
 Effective live-variable gate (back channel, sampling by address).
#define KYMO_EFFECTIVE_MEMORY   (KYMO_ENABLED && KYMO_ENABLE_MEMORY)
 Effective memory telemetry gate.
#define KYMO_EFFECTIVE_TRACE   (KYMO_ENABLED && KYMO_ENABLE_TRACE)
 Effective trace recorder gate.
#define KYMO_EFFECTIVE_TRACE_ISR   (KYMO_EFFECTIVE_TRACE && KYMO_ENABLE_TRACE_ISR)
 Effective trace ISR gate.
#define KYMO_EFFECTIVE_TRACE_SCHEDULER   (KYMO_EFFECTIVE_TRACE_ISR && KYMO_ENABLE_TRACE_SCHEDULER)
 Effective scheduler trace gate.
#define KYMO_EFFECTIVE_TRACE_FLOW   (KYMO_EFFECTIVE_TRACE && KYMO_ENABLE_TRACE_FLOW)
 Effective flow trace gate.
#define KYMO_EFFECTIVE_TRACE_STACK_POINTER   (KYMO_EFFECTIVE_TRACE && KYMO_ENABLE_TRACE_STACK_POINTER)
 Effective stack-pointer sampling gate.

Detailed Description

Validates the settings of kymo_config.h and derives KYMO_EFFECTIVE_*.

Internal part of kymo_config.h; nothing here is a setting. Rejects invalid values and unmet dependencies with #error, then publishes the KYMO_EFFECTIVE_* gates that the library and applications test.

Usage
Do not include directly; kymo_config.h includes it after all settings.

Definition in file kymo_config_check.h.

Macro Definition Documentation

◆ KYMO_DETAIL_PASTE

#define KYMO_DETAIL_PASTE ( prefix_,
value_ )
Value:
KYMO_DETAIL_PASTE_I(prefix_, value_)
#define KYMO_DETAIL_PASTE_I(prefix_, value_)
Internal token-paste step for checking literal settings.

Internal expansion wrapper so macro-valued settings are resolved first.

Definition at line 30 of file kymo_config_check.h.

◆ KYMO_DETAIL_PASTE_I

#define KYMO_DETAIL_PASTE_I ( prefix_,
value_ )
Value:
prefix_##value_

Internal token-paste step for checking literal settings.

Definition at line 27 of file kymo_config_check.h.

◆ KYMO_DETAIL_PROFILE_2

#define KYMO_DETAIL_PROFILE_2   1

Internal marker: literal 2 is a valid profile.

Definition at line 39 of file kymo_config_check.h.

◆ KYMO_DETAIL_VALID_0

#define KYMO_DETAIL_VALID_0   1

Internal marker: literal 0 is a valid boolean or profile.

Definition at line 33 of file kymo_config_check.h.

◆ KYMO_DETAIL_VALID_1

#define KYMO_DETAIL_VALID_1   1

Internal marker: literal 1 is a valid boolean or profile.

Definition at line 36 of file kymo_config_check.h.

◆ KYMO_EFFECTIVE_CORE

#define KYMO_EFFECTIVE_CORE   (KYMO_ENABLED && KYMO_ENABLE_CORE)

Effective default Core gate.

Usage Guard public Core callers.

Definition at line 154 of file kymo_config_check.h.

◆ KYMO_EFFECTIVE_CPP

#define KYMO_EFFECTIVE_CPP   (KYMO_ENABLED && KYMO_ENABLE_CPP)

Effective optional C++ sender gate.

Definition at line 166 of file kymo_config_check.h.

◆ KYMO_EFFECTIVE_CRC

#define KYMO_EFFECTIVE_CRC   (KYMO_ENABLED && KYMO_ENABLE_CRC)

Effective encoder CRC gate.

Definition at line 178 of file kymo_config_check.h.

◆ KYMO_EFFECTIVE_DECODER

#define KYMO_EFFECTIVE_DECODER   (KYMO_ENABLED && KYMO_ENABLE_DECODER)

Effective MCU decoder gate.

Definition at line 181 of file kymo_config_check.h.

◆ KYMO_EFFECTIVE_ENDPOINT

#define KYMO_EFFECTIVE_ENDPOINT   (KYMO_ENABLED && (KYMO_ENABLE_ENDPOINT || KYMO_ENABLE_CORE))

Dispatcher needed by either explicit instances or the default Core.

Definition at line 157 of file kymo_config_check.h.

◆ KYMO_EFFECTIVE_MEMORY

#define KYMO_EFFECTIVE_MEMORY   (KYMO_ENABLED && KYMO_ENABLE_MEMORY)

Effective memory telemetry gate.

Definition at line 190 of file kymo_config_check.h.

◆ KYMO_EFFECTIVE_PARAMETERS

#define KYMO_EFFECTIVE_PARAMETERS   (KYMO_ENABLED && KYMO_ENABLE_PARAMETERS)

Effective parameter receiver gate (back channel).

Definition at line 184 of file kymo_config_check.h.

◆ KYMO_EFFECTIVE_RUNTIME

#define KYMO_EFFECTIVE_RUNTIME   (KYMO_ENABLED && KYMO_ENABLE_RUNTIME)

Effective cooperative runtime gate.

Definition at line 151 of file kymo_config_check.h.

◆ KYMO_EFFECTIVE_TIMESTAMP

#define KYMO_EFFECTIVE_TIMESTAMP   (KYMO_ENABLED && KYMO_ENABLE_TIMESTAMP)

Effective DATA timestamp gate.

Definition at line 175 of file kymo_config_check.h.

◆ KYMO_EFFECTIVE_TRACE

#define KYMO_EFFECTIVE_TRACE   (KYMO_ENABLED && KYMO_ENABLE_TRACE)

Effective trace recorder gate.

Definition at line 193 of file kymo_config_check.h.

◆ KYMO_EFFECTIVE_TRACE_FLOW

#define KYMO_EFFECTIVE_TRACE_FLOW   (KYMO_EFFECTIVE_TRACE && KYMO_ENABLE_TRACE_FLOW)

Effective flow trace gate.

Definition at line 202 of file kymo_config_check.h.

◆ KYMO_EFFECTIVE_TRACE_ISR

#define KYMO_EFFECTIVE_TRACE_ISR   (KYMO_EFFECTIVE_TRACE && KYMO_ENABLE_TRACE_ISR)

Effective trace ISR gate.

Definition at line 196 of file kymo_config_check.h.

◆ KYMO_EFFECTIVE_TRACE_SCHEDULER

#define KYMO_EFFECTIVE_TRACE_SCHEDULER   (KYMO_EFFECTIVE_TRACE_ISR && KYMO_ENABLE_TRACE_SCHEDULER)

Effective scheduler trace gate.

Definition at line 199 of file kymo_config_check.h.

◆ KYMO_EFFECTIVE_TRACE_STACK_POINTER

#define KYMO_EFFECTIVE_TRACE_STACK_POINTER   (KYMO_EFFECTIVE_TRACE && KYMO_ENABLE_TRACE_STACK_POINTER)

Effective stack-pointer sampling gate.

Definition at line 205 of file kymo_config_check.h.

◆ KYMO_EFFECTIVE_TX

#define KYMO_EFFECTIVE_TX   (KYMO_ENABLED && (KYMO_ENABLE_TX || KYMO_ENABLE_CORE))

Effective shared transport gate, respecting the global switch.

Usage Gate code that uses KymoTx with this macro.

Definition at line 163 of file kymo_config_check.h.

◆ KYMO_EFFECTIVE_WATCH

#define KYMO_EFFECTIVE_WATCH   (KYMO_ENABLED && KYMO_ENABLE_WATCH)

Effective live-variable gate (back channel, sampling by address).

Definition at line 187 of file kymo_config_check.h.

◆ KYMO_EFFECTIVE_X

#define KYMO_EFFECTIVE_X   (KYMO_ENABLED && KYMO_ENABLE_X)

Effective X-coordinate gate.

Definition at line 169 of file kymo_config_check.h.

◆ KYMO_EFFECTIVE_Z

#define KYMO_EFFECTIVE_Z   (KYMO_ENABLED && KYMO_ENABLE_Z)

Effective Z-coordinate gate.

Definition at line 172 of file kymo_config_check.h.