13 #ifndef GLOBALVARHANDLER_H_ 14 #define GLOBALVARHANDLER_H_ 24 #define GLOBALVARHANDLER_UNIT_ENABLE 25 #define GLOBALVARHANDLER_DESCRIPTION_ENABLE 27 #define GLOBALVARHANDLER_NAME_MAX_LENGTH (20) 35 typedef uint8_t VarID_t;
62 Process_GlobalVariableNameNotFind,
63 Process_SourceNotEnabled,
67 Process_FailParamTooLongString,
68 Process_FailParamIsNotNumber,
69 Process_FailParamIsNotHexNumber,
70 Process_FailParamIsNotHexStart,
71 Process_FailParamIsNotBinary,
72 Process_FailParamTooLongBinary,
73 Process_InvalidValue_TooMuch,
74 Process_InvalidValue_TooSmall,
75 Process_InvalidValue_NotBool,
76 Process_InvalidValue_NotEnumString,
77 Process_Settings_EmptyEnumList,
79 Process_Ok_SetSuccessful_SendOk
112 #ifdef GLOBALVARHANDLER_UNIT_ENABLE 115 #ifdef GLOBALVARHANDLER_DESCRIPTION_ENABLE 127 bool GlobalVarHandler_CheckCommandStructAreValid(
void);
128 void GlobalVarHandler_ProcessCommand(
129 const char *commandName,
const char *param,
130 SetGetType_t setGetType, CommProtocol_t source,
131 char *resultBuffer, uint8_t resultBufferLength);
133 void GlobalVarHandler_ListAllVariableParameters(
void);
134 void GlobalVarHandler_PrintAllVariableValues(
void);
GlobalVarCommand structure for set-get global variables.
Definition: GlobalVarHandler.h:94
void *const varPointer
Pointer of variable.
Definition: GlobalVarHandler.h:100
const bool isHex
Set-get in hexadecimal?
Definition: GlobalVarHandler.h:108
const char *const name
Name of global variable [string].
Definition: GlobalVarHandler.h:97
const uint32_t minValue
Min value.
Definition: GlobalVarHandler.h:104
const uint32_t maxValue
Max value.
Definition: GlobalVarHandler.h:103
const bool isReadOnly
Is read only?
Definition: GlobalVarHandler.h:101
const char *const unit
units [string], example: [cm]
Definition: GlobalVarHandler.h:113
const CommProtocol_t sourceEnable
Enabled sources (for set-get)
Definition: GlobalVarHandler.h:106
const char *const description
descriptions of global variable [string]
Definition: GlobalVarHandler.h:116
const VarType_t type
Type of global variable.
Definition: GlobalVarHandler.h:98
const char *const * enumList
Enum list, if it is enumerator.
Definition: GlobalVarHandler.h:110