F´ Flight Software - C/C++ Documentation
NASA-v1.6.0
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
#include <Fw/Types/BasicTypes.hpp>
15
16
// Check that command/telemetry strings are not larger than an argument buffer
17
18
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"
);
19
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"
);
20
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"
);
21
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"
);
22
23
// Text logging needs the code generator for serializables to generate a stringified version of the
24
// value.
25
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"
);
26
FW_PARAM_STRING_MAX_SIZE
#define FW_PARAM_STRING_MAX_SIZE
Max size of parameter string type.
Definition:
FpConfig.hpp:263
FW_LOG_STRING_MAX_SIZE
#define FW_LOG_STRING_MAX_SIZE
Max size of log string parameter type.
Definition:
FpConfig.hpp:243
FW_ENABLE_TEXT_LOGGING
#define FW_ENABLE_TEXT_LOGGING
Indicates whether text logging is turned on.
Definition:
FpConfig.hpp:278
FW_PARAM_BUFFER_MAX_SIZE
#define FW_PARAM_BUFFER_MAX_SIZE
Definition:
FpConfig.hpp:258
FW_TLM_STRING_MAX_SIZE
#define FW_TLM_STRING_MAX_SIZE
Max size of channelized telemetry string type.
Definition:
FpConfig.hpp:253
FW_TLM_BUFFER_MAX_SIZE
#define FW_TLM_BUFFER_MAX_SIZE
Definition:
FpConfig.hpp:248
FW_CMD_STRING_MAX_SIZE
#define FW_CMD_STRING_MAX_SIZE
Max character size of command string arguments.
Definition:
FpConfig.hpp:223
FW_LOG_BUFFER_MAX_SIZE
#define FW_LOG_BUFFER_MAX_SIZE
Definition:
FpConfig.hpp:238
FW_SERIALIZABLE_TO_STRING
#define FW_SERIALIZABLE_TO_STRING
Indicates if autocoded serializables have toString() methods.
Definition:
FpConfig.hpp:289
FW_CMD_ARG_BUFFER_MAX_SIZE
#define FW_CMD_ARG_BUFFER_MAX_SIZE
Definition:
FpConfig.hpp:218
Fw
Cfg
ConfigCheck.cpp
Generated by
1.8.17