F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
ConfigCheck.cpp
Go to the documentation of this file.
1
13#include <FpConfig.hpp>
14
15// Check that command/telemetry strings are not larger than an argument buffer
16
17static_assert(FW_CMD_STRING_MAX_SIZE <= FW_CMD_ARG_BUFFER_MAX_SIZE, "FW_CMD_STRING_MAX_SIZE cannot be larger than FW_CMD_ARG_BUFFER_MAX_SIZE");
18static_assert(FW_LOG_STRING_MAX_SIZE <= FW_LOG_BUFFER_MAX_SIZE, "FW_LOG_STRING_MAX_SIZE cannot be larger than FW_LOG_BUFFER_MAX_SIZE");
19static_assert(FW_TLM_STRING_MAX_SIZE <= FW_TLM_BUFFER_MAX_SIZE, "FW_TLM_STRING_MAX_SIZE cannot be larger than FW_TLM_BUFFER_MAX_SIZE");
20static_assert(FW_PARAM_STRING_MAX_SIZE <= FW_PARAM_BUFFER_MAX_SIZE, "FW_PARAM_STRING_MAX_SIZE cannot be larger than FW_PARAM_BUFFER_MAX_SIZE");
21
22// Text logging needs the code generator for serializables to generate a stringified version of the
23// value.
24static_assert((FW_ENABLE_TEXT_LOGGING == 0) || ( FW_SERIALIZABLE_TO_STRING == 1), "FW_SERIALIZABLE_TO_STRING must be enabled to enable FW_ENABLE_TEXT_LOGGING");
25
#define FW_LOG_BUFFER_MAX_SIZE
Definition FpConfig.h:246
#define FW_SERIALIZABLE_TO_STRING
Indicates if autocoded serializables have toString() methods.
Definition FpConfig.h:297
#define FW_CMD_STRING_MAX_SIZE
Max character size of command string arguments.
Definition FpConfig.h:231
#define FW_TLM_STRING_MAX_SIZE
Max size of channelized telemetry string type.
Definition FpConfig.h:261
#define FW_PARAM_BUFFER_MAX_SIZE
Definition FpConfig.h:266
#define FW_TLM_BUFFER_MAX_SIZE
Definition FpConfig.h:256
#define FW_ENABLE_TEXT_LOGGING
Indicates whether text logging is turned on.
Definition FpConfig.h:286
#define FW_PARAM_STRING_MAX_SIZE
Max size of parameter string type.
Definition FpConfig.h:271
#define FW_LOG_STRING_MAX_SIZE
Max size of log string parameter type.
Definition FpConfig.h:251
#define FW_CMD_ARG_BUFFER_MAX_SIZE
Definition FpConfig.h:226
C++-compatible configuration header for fprime configuration.