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

KymoChannel Struct Reference

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

Immutable scheduling and wire selection for one channel. More...

#include <kymo_plot_types.h>

Public Attributes

uint32_t periodMs
 Requested interval in milliseconds, 0..INT32_MAX.
uint8_t id
 Application channel ID, 0..255.
uint8_t flags
 Optional wire fields for this channel.

Detailed Description

Immutable scheduling and wire selection for one channel.

Input configuration. Channel IDs must be unique within one KymoConfig. The structure is never transmitted directly.

Usage
static const KymoChannel channel = {20u, 0u, KYMO_FLAG_TIMESTAMP};

Definition at line 21 of file kymo_plot_types.h.

Member Data Documentation

◆ flags

uint8_t KymoChannel::flags

Optional wire fields for this channel.

Only KYMO_SUPPORTED_FLAGS bits may be set in this build; disabled fields make KymoRuntime_init return KYMO_BAD_CONFIG.

Usage
Use zero for scalar Y, or KYMO_ALLOWED_FLAGS for full XYZ/time.

Definition at line 50 of file kymo_plot_types.h.

◆ id

uint8_t KymoChannel::id

Application channel ID, 0..255.

Passed to the sample callback and encoded into the frame.

Usage
Map this ID to a sensor or application parameter in the sample callback.

Definition at line 40 of file kymo_plot_types.h.

◆ periodMs

uint32_t KymoChannel::periodMs

Requested interval in milliseconds, 0..INT32_MAX.

Zero means every eligible Main call. Backpressure may delay sampling; missed samples are not replayed.

Usage
Use 20 for a nominal 50 Hz channel.

Definition at line 31 of file kymo_plot_types.h.


The documentation for this struct was generated from the following file: