|
K-FSW ec10f94
Modular flight software on Zephyr, for small satellites
|
#include <parameter.h>
Public Attributes | ||
| enum kfsw_param_type | type | |
| size_t | size | |
| union kfsw_param_scalar | scalar | |
| union { | ||
| char text [KFSW_PARAM_STRING_MAX] | ||
| uint8_t bytes [KFSW_PARAM_STRING_MAX] | ||
| }; | ||
One typed value, with shared storage for text and bytes.
| uint8_t kfsw_param_value::bytes[KFSW_PARAM_STRING_MAX] |
Raw data value.
KFSW_PARAM_DATA uses size as the element count.
| size_t kfsw_param_value::size |
Bytes carried: the scalar width, or the string length with its terminator.
| char kfsw_param_value::text[KFSW_PARAM_STRING_MAX] |
String value.
KFSW_PARAM_STRING includes a trailing NUL.