From b9b317100115f10d48f950dfc43830094839b14b Mon Sep 17 00:00:00 2001 From: jgromes Date: Fri, 17 Mar 2023 23:01:24 +0100 Subject: [PATCH] Added user build opt --- src/BuildOptUser.h | 11 +++++++++++ src/TypeDef.h | 23 +++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 src/BuildOptUser.h diff --git a/src/BuildOptUser.h b/src/BuildOptUser.h new file mode 100644 index 00000000..5df3c2be --- /dev/null +++ b/src/BuildOptUser.h @@ -0,0 +1,11 @@ +#if !defined(_RADIOLIB_USER_BUILD_OPTIONS_H) +#define _RADIOLIB_USER_BUILD_OPTIONS_H + +// this file can be used to define any user build options +// most commonly, RADIOLIB_EXCLUDE_* macros +// or enabling debug output + +//#define RADIOLIB_DEBUG +//#define RADIOLIB_VERBOSE + +#endif diff --git a/src/TypeDef.h b/src/TypeDef.h index 128ae0bb..153f3a3c 100644 --- a/src/TypeDef.h +++ b/src/TypeDef.h @@ -2,6 +2,7 @@ #define _RADIOLIB_TYPES_H #include "BuildOpt.h" +#include "BuildOptUser.h" /*! \defgroup config_shaping Data shaping filter values aliases. @@ -312,6 +313,28 @@ */ #define RADIOLIB_ERR_MIC_E_TELEMETRY_STATUS (-204) +// SSDV status codes + +/*! + \brief SSDV mode is invalid. +*/ +#define RADIOLIB_ERR_INVALID_SSDV_MODE (-301) + +/*! + \brief Image size is invalid. +*/ +#define RADIOLIB_ERR_INVALID_IMAGE_SIZE (-302) + +/*! + \brief Image quality is invalid. +*/ +#define RADIOLIB_ERR_INVALID_IMAGE_QUALITY (-303) + +/*! + \brief Image subsampling is invalid. +*/ +#define RADIOLIB_ERR_INVALID_SUBSAMPLING (-304) + // RTTY status codes /*!