![]() |
ErrorLib 1.0.14-master SHA: 787260c7d1
|
Error and Warnings Plugin for Hermes PC-Tool. More...
Go to the source code of this file.
Data Structures | |
| struct | tOnErrorReaction |
| The error reaction is called on occurence of the error. More... | |
| struct | tOnErrorResetReaction |
| The error reset reaction is called on reset of the error. More... | |
| struct | tError |
| Main error structure. More... | |
| struct | tErrorSource |
| Structure used in tError holding source-code file an line. More... | |
| struct | tErrorListItem |
| Structure used in the error stack. More... | |
Macros | |
| #define | static_assert _Static_assert |
| #define | MAX_NUMBER_OF_ERRORS 30 |
| Size of the error stack. More... | |
| #define | MIN_ERR_REACTION_NAME_LENTH 10 |
| Minimum lenght of error-reaction description string. More... | |
| #define | MIN_DESCRIPTION_LENTH 10 |
| Minimum lenght of description-string. More... | |
| #define | MIN_HELP_LENTH 20 |
| Minimum lenght of help-string. More... | |
| #define | ERROR_STACK_OVERFLOW 0x80000000 |
| Flag used in g_u32ErrorPending to indicate an error stack overflow. More... | |
| #define | ERROR_SYSTEM_VERSION 2 |
| Version of this error-library. More... | |
| #define | ERR_VAR_NAME_SRT(x, y) x ## y |
| Helper Macro to add a variable name to help-text. More... | |
| #define | ERR_VAR_NAME(x, y) ERR_VAR_NAME_SRT(x, y) |
| Helper Macro to add a variable name to help-text. More... | |
| #define | xstr(s) str(s) |
| Helper Macro to convert to string. More... | |
| #define | str(s) #s |
| Helper Macro to convert to string. More... | |
| #define | ASSERT_REACTION_NAME(NAME) |
| Test if strings are too short. More... | |
| #define | ASSERT_DESCRIPTION(DESCRIPTION) |
| Test if strings are too short. More... | |
| #define | ASSERT_HELP(HELP) |
| Test if strings are too short. More... | |
Typedefs | |
| typedef void(* | fpOnErrorX) (void) |
| Structure used in tError to describe a function to be called on error set. More... | |
| typedef bool(* | fpOnErrorResetX) (void) |
| Structure used in tError to describe a function to be called on error reset. More... | |
Enumerations | |
| enum | ERROR_FLAGS { VIEWER_RESET = 1 , USER_RESET = 2 , PROFESSIONAL_RESET = 4 , DEVELOPER_RESET = 8 , PLC_RESET = 16 , CODE_RESET = 32 , NV_STORED = 64 } |
| Flags used for errors. More... | |
Variables | |
| uint32_t | g_u32ErrorPending |
Error and Warnings Plugin for Hermes PC-Tool.
© Copyright 2017-2022 Copyright: Retostronik GmbH StütingstraÃe 30 58285 Gevelsberg
| #define ASSERT_DESCRIPTION | ( | DESCRIPTION | ) |
Test if strings are too short.
| #define ASSERT_HELP | ( | HELP | ) |
Test if strings are too short.
| #define ASSERT_REACTION_NAME | ( | NAME | ) |
Test if strings are too short.
| #define ERR_VAR_NAME | ( | x, | |
| y | |||
| ) | ERR_VAR_NAME_SRT(x, y) |
Helper Macro to add a variable name to help-text.
| #define ERR_VAR_NAME_SRT | ( | x, | |
| y | |||
| ) | x ## y |
Helper Macro to add a variable name to help-text.
| #define ERROR_STACK_OVERFLOW 0x80000000 |
Flag used in g_u32ErrorPending to indicate an error stack overflow.
| #define ERROR_SYSTEM_VERSION 2 |
Version of this error-library.
| #define MAX_NUMBER_OF_ERRORS 30 |
Size of the error stack.
Maximum value is 31
| #define MIN_DESCRIPTION_LENTH 10 |
Minimum lenght of description-string.
| #define MIN_ERR_REACTION_NAME_LENTH 10 |
Minimum lenght of error-reaction description string.
| #define MIN_HELP_LENTH 20 |
Minimum lenght of help-string.
| #define static_assert _Static_assert |
| #define str | ( | s | ) | #s |
Helper Macro to convert to string.
| #define xstr | ( | s | ) | str(s) |
Helper Macro to convert to string.
| typedef bool(* fpOnErrorResetX) (void) |
Structure used in tError to describe a function to be called on error reset.
The function must return true in case the error is allowed to reset.
| typedef void(* fpOnErrorX) (void) |
Structure used in tError to describe a function to be called on error set.
| enum ERROR_FLAGS |
Flags used for errors.
must macht the enum ACCESS_LEVEL in PARA_Lib.h
|
extern |