F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
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 
17 static_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");
18 static_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");
19 static_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");
20 static_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.
24 static_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:254
#define FW_SERIALIZABLE_TO_STRING
Indicates if autocoded serializables have toString() methods.
Definition: FpConfig.h:305
#define FW_CMD_STRING_MAX_SIZE
Max character size of command string arguments.
Definition: FpConfig.h:239
#define FW_TLM_STRING_MAX_SIZE
Max size of channelized telemetry string type.
Definition: FpConfig.h:269
#define FW_PARAM_BUFFER_MAX_SIZE
Definition: FpConfig.h:274
#define FW_TLM_BUFFER_MAX_SIZE
Definition: FpConfig.h:264
#define FW_ENABLE_TEXT_LOGGING
Indicates whether text logging is turned on.
Definition: FpConfig.h:294
#define FW_PARAM_STRING_MAX_SIZE
Max size of parameter string type.
Definition: FpConfig.h:279
#define FW_LOG_STRING_MAX_SIZE
Max size of log string parameter type.
Definition: FpConfig.h:259
#define FW_CMD_ARG_BUFFER_MAX_SIZE
Definition: FpConfig.h:234
C++-compatible configuration header for fprime configuration.