![]() |
ErrorLib 1.0.8-master SHA: 810228da25
|
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... | |
| #define | DefineError(ID, PERMISSION, ON_ERROR, ON_ERROR_RESET, DESCRIPTION, HELP) |
| Define an error without data globally. More... | |
| #define | DefineErrorData(ID, PERMISSION, ON_ERROR, ON_ERROR_RESET, DESCRIPTION, HELP, DATA_COUNT) |
| Define an error with data globally. More... | |
| #define | DeclareError(ID) const tError g_t##ID |
| Use to declare an Error as external. More... | |
| #define | SetError(ID, PERMISSION, ON_ERROR, ON_ERROR_RESET, DESCRIPTION, HELP) |
| Set an error without data. More... | |
| #define | SetErrorSource(ID, PERMISSION, ON_ERROR, ON_ERROR_RESET, DESCRIPTION, HELP, SOURCE) |
| Set an error without data but with an external tErrorSource structure The data of the error is directly added to this function, therefore this error can only be triggered by this single codeline. More... | |
| #define | SetErrorData1(ID, PERMISSION, ON_ERROR, ON_ERROR_RESET, DESCRIPTION, HELP, DATA1) |
| Set an error with one data-field. More... | |
| #define | SetErrorData1Compare(ID, PERMISSION, ON_ERROR, ON_ERROR_RESET, DESCRIPTION, HELP, DATA1, COMPARE1) |
| Use to set an error with one data-field and compare function. More... | |
| #define | SetErrorData2(ID, PERMISSION, ON_ERROR, ON_ERROR_RESET, DESCRIPTION, HELP, DATA1, DATA2) |
| Set an error with two data-fields. More... | |
| #define | SetErrorData2Compare(ID, PERMISSION, ON_ERROR, ON_ERROR_RESET, DESCRIPTION, HELP, DATA1, COMPARE1, DATA2, COMPARE2) |
| Use to set an error with two data-fielda and compare functiona. More... | |
| #define | SetErrorData3(ID, PERMISSION, ON_ERROR, ON_ERROR_RESET, DESCRIPTION, HELP, DATA1, DATA2, DATA3) |
| Set an error with three data-fields. More... | |
| #define | SetErrorData4(ID, PERMISSION, ON_ERROR, ON_ERROR_RESET, DESCRIPTION, HELP, DATA1, DATA2, DATA3, DATA4) |
| Set an error with four data-fields. More... | |
| #define | SetErrorId(ID) |
| Set an error which is previously defined by "DefineError". More... | |
| #define | SetErrorIdData1(ID, DATA1) |
| Set an error which is previously defined by "DefineError". More... | |
| #define | SetErrorIdData2(ID, DATA1, DATA2) |
| Set an error which is previously defined by "DefineError". More... | |
| #define | SetErrorIdData3(ID, DATA1, DATA2, DATA3) |
| Set an error which is previously defined by "DefineError". More... | |
| #define | SetErrorIdData4(ID, DATA1, DATA2, DATA3, DATA4) |
| Set an error which is previously defined by "DefineError". More... | |
| #define | DefineOnErrorReaction(ERROR_REACTION, NAME, HELP) |
| Define an error reaction. More... | |
| #define | DeclareOnErrorReaction(ERROR_REACTION) |
| Use to declare an ErrorReaction as external. More... | |
| #define | DefineOnErrorResetReaction(ERROR_REACTION, NAME, HELP) |
| Define an error reset reaction. More... | |
| #define | DeclareOnErrorResetReaction(ERROR_REACTION) |
| Use to declare an ErrorResetReaction as external. 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... | |
Functions | |
| void | NoOnErrorReaction (void) |
| This function is called if no Reaction is required after an error. More... | |
| bool | NoOnErrorResetReaction (void) |
| This function is called if no Reaction is required after an error reset. More... | |
| void | ErrorInit (void) |
| Inits the Error Stack with 0. More... | |
| tErrorListItem * | _SetErrorX (const tError *ptError, const tErrorSource *ptErrorSource,...) |
| This function adds a error to the stack. More... | |
| void | ErrorResetX (uint8_t ui8AccessLevel) |
| Resets all pending errors if access level is sufficient. More... | |
| void | ResetErrorIdRange (uint16_t ui16ErrorIdStart, uint16_t ui16ErrorIdEnd, uint8_t ui8AccessLevel) |
| Resets all pending errors in a range of error IDs if access level is sufficient. More... | |
| void | ErrorClear (uint8_t ui8AccessLevel) |
| Removes all errors from stack if access level is sufficient, might be called after Init. More... | |
| bool | ErrorsPending (void) |
| Check if errors are pending. More... | |
| void | MaxFloat (void *DataOld, float DataNew) |
| Update the atached data if new value is higher. More... | |
| void | MinFloat (void *DataOld, float DataNew) |
| Update the atatched data if new value is lower. More... | |
| void | MaxAbsFloat (void *DataOld, float DataNew) |
| Update the atatched data if new value abs is higher. More... | |
| void | MaxInt (void *DataOld, int32_t DataNew) |
| Update the atatched data if new value is higher. More... | |
| void | MinInt (void *DataOld, int32_t DataNew) |
| Update the atatched data if new value is lower. More... | |
| void | MaxUInt (void *DataOld, uint32_t DataNew) |
| Update the atatched data if new value is higher. More... | |
| void | MinUInt (void *DataOld, uint32_t DataNew) |
| Update the atatched data if new value is lower. More... | |
| void | NoDataUpdate (void *DataOld,...) |
| Dummy Function for no Data-updates. More... | |
| bool | IsErrorPending (uint32_t position) |
| Check if the requestes Error-Position is pending. More... | |
| uint16_t | GetErrorId (uint32_t position) |
| Get Error ID of the Error on a specified Position. More... | |
| uint32_t | PendingErrosSortedByTime (tErrorListItem *pptPendingErrorList[]) |
| Get an array of the pending Errors sorted by tTimestampFirst. More... | |
Variables | |
| uint32_t | g_u32ErrorPending |
| An error that has not been reset is marked with a high bit, bit 0 corresponds to g_ptErrorList[0] etc. More... | |
| const tOnErrorReaction | g_tNoOnErrorReaction |
| const tOnErrorResetReaction | g_tNoOnErrorResetReaction |
| static const char | g_sFileName [] = __BASE_FILE__ |
| The filename for all Errors within a module. More... | |
| tErrorListItem | g_ptErrorList [30] |
| This array contains the error stack. More... | |
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 DeclareError | ( | ID | ) | const tError g_t##ID |
Use to declare an Error as external.
This macro is used in header-files to allow calling the defined error from several modules.
| ID | Identifier of the defined error. |
| #define DeclareOnErrorReaction | ( | ERROR_REACTION | ) |
Use to declare an ErrorReaction as external.
This macro is used in header-files to allow calling the defined error reaction from several modules.
| ERROR_REACTION | Identifier of the defined error reaction. |
| #define DeclareOnErrorResetReaction | ( | ERROR_REACTION | ) |
Use to declare an ErrorResetReaction as external.
This macro is used in header-files to allow calling the defined error reset reaction from several modules.
| ERROR_REACTION | Identifier of the defined error reset reaction. |
| #define DefineError | ( | ID, | |
| PERMISSION, | |||
| ON_ERROR, | |||
| ON_ERROR_RESET, | |||
| DESCRIPTION, | |||
| HELP | |||
| ) |
Define an error without data globally.
The error is not set. This error can be triggered on several code lines.
| ID | Identifier of the error. Must be unique and is therefore defined in the file ERROR_ID_Device.h |
| PERMISSION | Or-concatinated list of permission-levels which are allowed to reset this error. |
| ON_ERROR | Reaction which is called immediately after error set. |
| ON_ERROR_RESET | Reaction which is called after an error-reset. |
| DESCRIPTION | Text which is displayed in the error list. |
| HELP | Text which is displayed in the help window for this error. |
| #define DefineErrorData | ( | ID, | |
| PERMISSION, | |||
| ON_ERROR, | |||
| ON_ERROR_RESET, | |||
| DESCRIPTION, | |||
| HELP, | |||
| DATA_COUNT | |||
| ) |
Define an error with data globally.
The error is not set. This error can be triggered on several code lines.
| ID | Identifier of the error. Must be unique and is therefore defined in the file ERROR_ID_Device.h |
| PERMISSION | Or-concatinated list of permission-levels which are allowed to reset this error. |
| ON_ERROR | Reaction which is called immediately after error set. |
| ON_ERROR_RESET | Reaction which is called after an error-reset. |
| DESCRIPTION | Text which is displayed in the error list. |
| HELP | Text which is displayed in the help window for this error. |
| DATA_COUNT | Number of data-fileds which are appended to the error. See Details on Page Data appended to errors. |
| #define DefineOnErrorReaction | ( | ERROR_REACTION, | |
| NAME, | |||
| HELP | |||
| ) |
Define an error reaction.
See page Actions on Error set and reset for details.
| ERROR_REACTION | Name of the error reaction. The name equates the function name which is called. |
| NAME | Text which is displayed in the error list. |
| HELP | Text which is displayed in the help window for this error. |
| #define DefineOnErrorResetReaction | ( | ERROR_REACTION, | |
| NAME, | |||
| HELP | |||
| ) |
Define an error reset reaction.
See page Actions on Error set and reset for details.
| ERROR_REACTION | Name of the error reset reaction. The name equates the function name which is called. |
| NAME | Text which is displayed in the error list. |
| HELP | Text which is displayed in the help window for this error. |
| #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 SetError | ( | ID, | |
| PERMISSION, | |||
| ON_ERROR, | |||
| ON_ERROR_RESET, | |||
| DESCRIPTION, | |||
| HELP | |||
| ) |
Set an error without data.
The data of the error is directly added to this function, therefore this error can only be triggered by this single codeline.
| ID | Identifier of the error. Must be unique and is therefore defined in the file ERROR_ID_Device.h |
| PERMISSION | Or-concatinated list of permission-levels which are allowed to reset this error. |
| ON_ERROR | Reaction which is called immediately after error set. |
| ON_ERROR_RESET | Reaction which is called after an error-reset. |
| DESCRIPTION | Text which is displayed in the error list. |
| HELP | Text which is displayed in the help window for this error. |
| #define SetErrorData1 | ( | ID, | |
| PERMISSION, | |||
| ON_ERROR, | |||
| ON_ERROR_RESET, | |||
| DESCRIPTION, | |||
| HELP, | |||
| DATA1 | |||
| ) |
Set an error with one data-field.
The data of the error is directly added to this function, therefore this error can only be triggered by this single codeline.
| ID | Identifier of the error. Must be unique and is therefore defined in the file ERROR_ID_Device.h |
| PERMISSION | Or-concatinated list of permission-levels which are allowed to reset this error. |
| ON_ERROR | Reaction which is called immediately after error set. |
| ON_ERROR_RESET | Reaction which is called after an error-reset. |
| DESCRIPTION | Text which is displayed in the error list. |
| HELP | Text which is displayed in the help window for this error. |
| DATA1 | Data to be attached to this error. See Details on Page Data appended to errors. |
| #define SetErrorData1Compare | ( | ID, | |
| PERMISSION, | |||
| ON_ERROR, | |||
| ON_ERROR_RESET, | |||
| DESCRIPTION, | |||
| HELP, | |||
| DATA1, | |||
| COMPARE1 | |||
| ) |
Use to set an error with one data-field and compare function.
The data of the error is directly added to this function, therefore this error can only be triggered by this single codeline. If the error is called more than once, the compare-function is used to update the data attached to this error. See page Errors with compare function to update the data attached to the error for details about the compare function.
| ID | Identifier of the error. Must be unique and is therefore defined in the file ERROR_ID_Device.h |
| PERMISSION | Or-concatinated list of permission-levels which are allowed to reset this error. |
| ON_ERROR | Reaction which is called immediately after error set. |
| ON_ERROR_RESET | Reaction which is called after an error-reset. |
| DESCRIPTION | Text which is displayed in the error list. |
| HELP | Text which is displayed in the help window for this error. |
| DATA1 | Data to be attached to this error. See Details on Page Data appended to errors. |
| COMPARE1 | Compare function to update the attached data. See Details on Page Errors with compare function to update the data attached to the error. |
| #define SetErrorData2 | ( | ID, | |
| PERMISSION, | |||
| ON_ERROR, | |||
| ON_ERROR_RESET, | |||
| DESCRIPTION, | |||
| HELP, | |||
| DATA1, | |||
| DATA2 | |||
| ) |
Set an error with two data-fields.
The data of the error is directly added to this function, therefore this error can only be triggered by this single codeline.
| ID | Identifier of the error. Must be unique and is therefore defined in the file ERROR_ID_Device.h |
| PERMISSION | Or-concatinated list of permission-levels which are allowed to reset this error. |
| ON_ERROR | Reaction which is called immediately after error set. |
| ON_ERROR_RESET | Reaction which is called after an error-reset. |
| DESCRIPTION | Text which is displayed in the error list. |
| HELP | Text which is displayed in the help window for this error. |
| DATA1 | Data to be attached to this error. See Details on Page Data appended to errors. |
| DATA2 | Data to be attached to this error. See Details on Page Data appended to errors. |
| #define SetErrorData2Compare | ( | ID, | |
| PERMISSION, | |||
| ON_ERROR, | |||
| ON_ERROR_RESET, | |||
| DESCRIPTION, | |||
| HELP, | |||
| DATA1, | |||
| COMPARE1, | |||
| DATA2, | |||
| COMPARE2 | |||
| ) |
Use to set an error with two data-fielda and compare functiona.
The data of the error is directly added to this function, therefore this error can only be triggered by this single codeline. If the error is called more than once, the compare-function is used to update the data attached to this error. See page Errors with compare function to update the data attached to the error for details about the compare function.
| ID | Identifier of the error. Must be unique and is therefore defined in the file ERROR_ID_Device.h |
| PERMISSION | Or-concatinated list of permission-levels which are allowed to reset this error. |
| ON_ERROR | Reaction which is called immediately after error set. |
| ON_ERROR_RESET | Reaction which is called after an error-reset. |
| DESCRIPTION | Text which is displayed in the error list. |
| HELP | Text which is displayed in the help window for this error. |
| DATA1 | Data to be attached to this error. See Details on Page Data appended to errors. |
| COMPARE1 | Compare function to update the attached data. See Details on Page Errors with compare function to update the data attached to the error. |
| DATA2 | Data to be attached to this error. See Details on Page Data appended to errors. |
| COMPARE2 | Compare function to update the attached data. See Details on Page Errors with compare function to update the data attached to the error. |
| #define SetErrorData3 | ( | ID, | |
| PERMISSION, | |||
| ON_ERROR, | |||
| ON_ERROR_RESET, | |||
| DESCRIPTION, | |||
| HELP, | |||
| DATA1, | |||
| DATA2, | |||
| DATA3 | |||
| ) |
Set an error with three data-fields.
The data of the error is directly added to this function, therefore this error can only be triggered by this single codeline.
| ID | Identifier of the error. Must be unique and is therefore defined in the file ERROR_ID_Device.h |
| PERMISSION | Or-concatinated list of permission-levels which are allowed to reset this error. |
| ON_ERROR | Reaction which is called immediately after error set. |
| ON_ERROR_RESET | Reaction which is called after an error-reset. |
| DESCRIPTION | Text which is displayed in the error list. |
| HELP | Text which is displayed in the help window for this error. |
| DATA1 | Data to be attached to this error. See Details on Page Data appended to errors. |
| DATA2 | Data to be attached to this error. See Details on Page Data appended to errors. |
| DATA3 | Data to be attached to this error. See Details on Page Data appended to errors. |
| #define SetErrorData4 | ( | ID, | |
| PERMISSION, | |||
| ON_ERROR, | |||
| ON_ERROR_RESET, | |||
| DESCRIPTION, | |||
| HELP, | |||
| DATA1, | |||
| DATA2, | |||
| DATA3, | |||
| DATA4 | |||
| ) |
Set an error with four data-fields.
The data of the error is directly added to this function, therefore this error can only be triggered by this single codeline.
| ID | Identifier of the error. Must be unique and is therefore defined in the file ERROR_ID_Device.h |
| PERMISSION | Or-concatinated list of permission-levels which are allowed to reset this error. |
| ON_ERROR | Reaction which is called immediately after error set. |
| ON_ERROR_RESET | Reaction which is called after an error-reset. |
| DESCRIPTION | Text which is displayed in the error list. |
| HELP | Text which is displayed in the help window for this error. |
| DATA1 | Data to be attached to this error. See Details on Page Data appended to errors. |
| DATA2 | Data to be attached to this error. See Details on Page Data appended to errors. |
| DATA3 | Data to be attached to this error. See Details on Page Data appended to errors. |
| DATA4 | Data to be attached to this error. See Details on Page Data appended to errors. |
| #define SetErrorId | ( | ID | ) |
Set an error which is previously defined by "DefineError".
| ID | Identifier of the predefined error. |
| #define SetErrorIdData1 | ( | ID, | |
| DATA1 | |||
| ) |
Set an error which is previously defined by "DefineError".
| ID | Identifier of the predefined error. |
| DATA1 | Data to be attached to this error. See Details on Page Data appended to errors. |
| #define SetErrorIdData2 | ( | ID, | |
| DATA1, | |||
| DATA2 | |||
| ) |
Set an error which is previously defined by "DefineError".
| ID | Identifier of the predefined error. |
| DATA1 | Data to be attached to this error. See Details on Page Data appended to errors. |
| DATA2 | Data to be attached to this error. See Details on Page Data appended to errors. |
| #define SetErrorIdData3 | ( | ID, | |
| DATA1, | |||
| DATA2, | |||
| DATA3 | |||
| ) |
Set an error which is previously defined by "DefineError".
| ID | Identifier of the predefined error. |
| DATA1 | Data to be attached to this error. See Details on Page Data appended to errors. |
| DATA2 | Data to be attached to this error. See Details on Page Data appended to errors. |
| DATA3 | Data to be attached to this error. See Details on Page Data appended to errors. |
| #define SetErrorIdData4 | ( | ID, | |
| DATA1, | |||
| DATA2, | |||
| DATA3, | |||
| DATA4 | |||
| ) |
Set an error which is previously defined by "DefineError".
| ID | Identifier of the predefined error. |
| DATA1 | Data to be attached to this error. See Details on Page Data appended to errors. |
| DATA2 | Data to be attached to this error. See Details on Page Data appended to errors. |
| DATA3 | Data to be attached to this error. See Details on Page Data appended to errors. |
| DATA4 | Data to be attached to this error. See Details on Page Data appended to errors. |
| #define SetErrorSource | ( | ID, | |
| PERMISSION, | |||
| ON_ERROR, | |||
| ON_ERROR_RESET, | |||
| DESCRIPTION, | |||
| HELP, | |||
| SOURCE | |||
| ) |
Set an error without data but with an external tErrorSource structure The data of the error is directly added to this function, therefore this error can only be triggered by this single codeline.
| ID | Identifier of the error. Must be unique and is therefore defined in the file ERROR_ID_Device.h |
| PERMISSION | Or-concatinated list of permission-levels which are allowed to reset this error. |
| ON_ERROR | Reaction which is called immediately after error set. |
| ON_ERROR_RESET | Reaction which is called after an error-reset. |
| DESCRIPTION | Text which is displayed in the error list. |
| HELP | Text which is displayed in the help window for this error. |
| SOURCE | A pointer to a tErrorSource structure. |
| #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
| tErrorListItem * _SetErrorX | ( | const tError * | ptError, |
| const tErrorSource * | ptErrorSource, | ||
| ... | |||
| ) |
This function adds a error to the stack.
| ptError | Error to be added |
| ptErrorSource | Source of this error. |
| ... | additional Pointers to Data. Each Pointer can be any datatype up to 32 Bit length. |
| void ErrorClear | ( | uint8_t | ui8AccessLevel | ) |
Removes all errors from stack if access level is sufficient, might be called after Init.
| ui8AccessLevel | access level of requesting user as defined in ACCESS_LEVEL |
| void ErrorInit | ( | void | ) |
Inits the Error Stack with 0.
| void ErrorResetX | ( | uint8_t | ui8AccessLevel | ) |
Resets all pending errors if access level is sufficient.
| ui8AccessLevel | access level of requesting user as defined in ACCESS_LEVEL |
| bool ErrorsPending | ( | void | ) |
Check if errors are pending.
| True | if there are errors that not have been reseted |
| uint16_t GetErrorId | ( | uint32_t | position | ) |
Get Error ID of the Error on a specified Position.
| Error | List Item on the specified Position |
| bool IsErrorPending | ( | uint32_t | position | ) |
Check if the requestes Error-Position is pending.
| True | if the requested Error-Entry pending |
| void MaxAbsFloat | ( | void * | DataOld, |
| float | DataNew | ||
| ) |
Update the atatched data if new value abs is higher.
| DataOld | Pointer to old data to be updated. |
| DataNew | New data |
| void MaxFloat | ( | void * | DataOld, |
| float | DataNew | ||
| ) |
Update the atached data if new value is higher.
| DataOld | Pointer to old data to be updated. |
| DataNew | New data |
| void MaxInt | ( | void * | DataOld, |
| int32_t | DataNew | ||
| ) |
Update the atatched data if new value is higher.
| DataOld | Pointer to old data to be updated. |
| DataNew | New data |
| void MaxUInt | ( | void * | DataOld, |
| uint32_t | DataNew | ||
| ) |
Update the atatched data if new value is higher.
| DataOld | Pointer to old data to be updated. |
| DataNew | New data |
| void MinFloat | ( | void * | DataOld, |
| float | DataNew | ||
| ) |
Update the atatched data if new value is lower.
| DataOld | Pointer to old data to be updated. |
| DataNew | New data |
| void MinInt | ( | void * | DataOld, |
| int32_t | DataNew | ||
| ) |
Update the atatched data if new value is lower.
| DataOld | Pointer to old data to be updated. |
| DataNew | New data |
| void MinUInt | ( | void * | DataOld, |
| uint32_t | DataNew | ||
| ) |
Update the atatched data if new value is lower.
| DataOld | Pointer to old data to be updated. |
| DataNew | New data |
| void NoDataUpdate | ( | void * | fDataOld, |
| ... | |||
| ) |
Dummy Function for no Data-updates.
Do nothing.
| fDataOld | - Ignored |
| ... | additional Pointers to Data. Each Pointer can be any datatype up to 32 Bit length. |
| void NoOnErrorReaction | ( | void | ) |
This function is called if no Reaction is required after an error.
This function does nothing.
| bool NoOnErrorResetReaction | ( | void | ) |
This function is called if no Reaction is required after an error reset.
This function does nothing.
| true | always. |
| uint32_t PendingErrosSortedByTime | ( | tErrorListItem * | pptPendingErrorList[] | ) |
Get an array of the pending Errors sorted by tTimestampFirst.
| pptPendingErrorList | An array of pointers to errors. MUST be at least MAX_NUMBER_OF_ERRORS in size. will contain the pending errors in ascending time order. Indexs higher than the number of pending errors will be unchanged. |
| Number | of pending errors |
| void ResetErrorIdRange | ( | uint16_t | ui16ErrorIdStart, |
| uint16_t | ui16ErrorIdEnd, | ||
| uint8_t | ui8AccessLevel | ||
| ) |
Resets all pending errors in a range of error IDs if access level is sufficient.
It is used for Fault Ride Through
| ui16ErrorIdStart | Start of Error-ID range |
| ui16ErrorIdEnd | End of Error-ID range |
| ui8AccessLevel | access level of requesting user as defined in ACCESS_LEVEL |
|
extern |
This array contains the error stack.
|
static |
The filename for all Errors within a module.
This string is defined in all modules which includes the file Error.h. It is defined here, to avoid multiple exisence of the same text in flash, if more than one error is defined in one module.
|
extern |
|
extern |
|
extern |
An error that has not been reset is marked with a high bit, bit 0 corresponds to g_ptErrorList[0] etc.