kymo_core_plot.h File Reference
API-Verträge im englischen Original. Navigation und Anleitungen sind zweisprachig.
Complete application interface for the default Core plot feature. More...
#include "kymo_types.h"#include "features/plot/detail/kymo_plot_types.h"#include "communication/detail/kymo_data_flags.h"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] pConfig Persistent 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] pContext Persistent KymoPlotBinding, or NULL to skip. [in] channelId Requested configured channel. [out] pSample Destination, 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.