KymoParameter Struct Reference
One parameter the host may write. More...
#include <kymo_core_param.h>
Public Attributes | |
| uint8_t | id |
| Wire ID of writes to this parameter and of its readback. | |
| float * | pTarget |
| Application variable that accepted writes update. | |
| float | minimum |
| Smallest accepted value, inclusive. | |
| float | maximum |
| Largest accepted value, inclusive. | |
| const char * | pName |
| Name shown by the host, e.g. "kp". | |
| const char * | pUnit |
| Unit shown by the host, e.g. "°C". | |
Detailed Description
One parameter the host may write.
Owned by the application, typically a const table. The receiver keeps a pointer to the table, so it must outlive the receiver.
- Usage
- { 100u, &kp, 0.0f, 10.0f } lets the host set kp between 0 and 10 via ID 100.
Definition at line 67 of file kymo_core_param.h.
Member Data Documentation
◆ id
| uint8_t KymoParameter::id |
Wire ID of writes to this parameter and of its readback.
Input; unique within the table. Choose IDs that the measurement channels do not use, so readbacks are not mixed with measured values.
Definition at line 74 of file kymo_core_param.h.
◆ maximum
| float KymoParameter::maximum |
Largest accepted value, inclusive.
Input; finite and not smaller than minimum.
Definition at line 92 of file kymo_core_param.h.
◆ minimum
| float KymoParameter::minimum |
Smallest accepted value, inclusive.
Input; finite and not greater than maximum.
Definition at line 86 of file kymo_core_param.h.
◆ pName
| const char* KymoParameter::pName |
Name shown by the host, e.g. "kp".
Input; NULL or up to KYMO_PARAM_NAME_MAX bytes. NULL sends an empty name and the host shows the ID instead. Must outlive the receiver.
Definition at line 99 of file kymo_core_param.h.
◆ pTarget
| float* KymoParameter::pTarget |
Application variable that accepted writes update.
Input; must not be NULL and must stay valid while the receiver is used.
Definition at line 80 of file kymo_core_param.h.
◆ pUnit
| const char* KymoParameter::pUnit |
Unit shown by the host, e.g. "°C".
Input; NULL or up to KYMO_PARAM_UNIT_MAX bytes; NULL means none.
Definition at line 105 of file kymo_core_param.h.
The documentation for this struct was generated from the following file: