KymoPlotBinding Struct Reference
Bind scalar plot channels to float variables instead of a sample callback. More...
#include <kymo_plot_types.h>
Public Attributes | |
| const KymoChannel * | pChannelsAv |
| Channel table, the same one passed as KymoConfig.channels. | |
| const float *const * | pValuesAv |
| One readable float per channel, in channel table order. | |
| uint16_t | channelCount |
| Number of entries in both tables. | |
Detailed Description
Bind scalar plot channels to float variables instead of a sample callback.
Input for KymoRuntime_sampleBound. values[i] is the variable plotted on channels[i]; both tables therefore have the same order and count entries. The tables and variables must outlive the runtime. A swapped order cannot be detected and is part of the caller contract. No state, no heap.
- Usage
- static float adc0, adc1;static const float *const values[] = {&adc0, &adc1};static KymoPlotBinding binding = {channels, values, KYMO_COUNT_OF(channels)};// config.sample = KymoRuntime_sampleBound; config.sample_user = &binding;#define KYMO_COUNT_OF(array_)Number of elements of a statically sized array as uint16_t.Definition kymo_types.h:207
Definition at line 114 of file kymo_plot_types.h.
Member Data Documentation
◆ channelCount
| uint16_t KymoPlotBinding::channelCount |
Number of entries in both tables.
Definition at line 123 of file kymo_plot_types.h.
◆ pChannelsAv
| const KymoChannel* KymoPlotBinding::pChannelsAv |
Channel table, the same one passed as KymoConfig.channels.
Definition at line 117 of file kymo_plot_types.h.
◆ pValuesAv
| const float* const* KymoPlotBinding::pValuesAv |
One readable float per channel, in channel table order.
Definition at line 120 of file kymo_plot_types.h.
The documentation for this struct was generated from the following file: