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

kymo_core_plot.h File Reference

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

Complete application interface for the default Core plot feature. More...

Go to the source code of this file.

Classes

struct  KymoCorePlotConfig
 Application configuration for plot. More...

Functions

KymoStatus KymoCorePlot_init (const KymoCorePlotConfig *pConfig)
 Initialize plot and activate its processing in Core Main.
uint8_t KymoCorePlot_sampleBound (void *pContext, uint8_t channelId, KymoSample *pSample)
 Optional sample callback for a table of float pointers.

Detailed Description

Complete application interface for the default Core plot feature.

Configuration is copied; referenced tables, buffers and callback contexts must remain alive. No heap or application-owned dispatcher state is required.

Usage Enable the feature, initialize Core, initialize this feature, call Core Main.

Definition in file kymo_core_plot.h.

Function Documentation

◆ KymoCorePlot_init()

KymoStatus KymoCorePlot_init ( const KymoCorePlotConfig * pConfig)

Initialize plot and activate its processing in Core Main.

Call once after Core Init and before the first Main. Setup errors latch a Core fault; late calls are rejected without altering the running Core. No callbacks are invoked periodically until Core Main runs. Not ISR-safe.

Parameters
[in]pConfigPersistent referenced data and callbacks; NULL is invalid.
Returns
OK, BAD_CONFIG, REJECTED, or an existing Core error.
Usage Check success before entering the common main loop.

◆ KymoCorePlot_sampleBound()

uint8_t KymoCorePlot_sampleBound ( void * pContext,
uint8_t channelId,
KymoSample * pSample )

Optional sample callback for a table of float pointers.

Parameters
[in]pContextPersistent KymoPlotBinding, or NULL to skip.
[in]channelIdRequested configured channel.
[out]pSampleDestination, or NULL to skip.
Returns
Nonzero if a scalar value was obtained, zero otherwise.
Usage Set sampleCbk to this function and pSampleContext to a binding.