KYMOCORE / API REFERENCEkymo_core_param.h Source File
API-Verträge im englischen Original. Navigation und Anleitungen sind zweisprachig.
Go to the documentation of this file.
10#ifndef KYMO_CORE_PARAM_H
11#define KYMO_CORE_PARAM_H
13#if KYMO_EFFECTIVE_PARAMETERS || defined(DOXYGEN)
25#define KYMO_PARAM_NAME_MAX 24u
33#define KYMO_PARAM_UNIT_MAX 8u
41#define KYMO_PARAM_FRAME_MAX_SIZE (19u + KYMO_PARAM_NAME_MAX + KYMO_PARAM_UNIT_MAX)
56#define KYMO_PARAM(id_, variable_, minimum_, maximum_, unit_) \
57 {(uint8_t)(id_), &(variable_), (float)(minimum_), (float)(maximum_), #variable_, (unit_)}
122#if KYMO_EFFECTIVE_CORE || defined(DOXYGEN)
KymoStatus KymoCoreParam_init(const KymoCoreParamConfig *pConfig)
Initialize parameters and activate their processing in Core Main.
Status codes and callback types shared by every KymoCore module.
uint8_t KymoStatus
Result of a KymoCore operation.
Parameter-only configuration for the default Core.
const KymoParameter * pParametersAv
Persistent parameter definitions.
size_t parameterCount
Entry count, 1..KYMO_MAX_PARAMETERS.
One parameter the host may write.
uint8_t id
Wire ID of writes to this parameter and of its readback.
float * pTarget
Application variable that accepted writes update.
float maximum
Largest accepted value, inclusive.
const char * pName
Name shown by the host, e.g. "kp".
float minimum
Smallest accepted value, inclusive.
const char * pUnit
Unit shown by the host, e.g. "°C".