ErrorLib 1.0.8-master SHA: 810228da25
Error.c File Reference

Error and Warnings Plugin for Hermes PC-Tool. More...

#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <Math.h>
#include "timestamp.h"
#include "Error.h"
#include "Error_ID_System.h"
#include "../lib/Para/PARA_Lib.h"
#include "../lib/Para/PARA_ID_System.h"
#include "../lib/Para/PARA_MemoryInfo.h"

Macros

#define MIN_PARA_DESCRIPTION_LENTH   0
 
#define MIN_PARA_HELP_LENTH   0
 

Functions

 _Static_assert (sizeof(\ "NoReaction") > 10, "Error reaction name to short must be at least "x" 10 "" characters long!")
 
 ASSERT_HELP (\ "DOC_D Es wird keine Aktion ausgeführt."\ "DOC_E No action will be performed.")
 
static const char ERR_VAR_NAME (g_sNoOnErrorReactionName, __LINE__)
 
static const char ERR_VAR_NAME (g_sNoOnErrorResetReactionName, __LINE__)
 
void OnNvErrorSet (tErrorListItem *g_ptErrorListItem)
 This function is called in case an Error with Flag NV_STORED is set the first time This weak definition is empty and can be overwritten by main project if an action is required. More...
 
void OnNvErrorReset (tErrorListItem *g_ptErrorListItem)
 This function is called in case an Error with Flag NV_STORED is resetted. More...
 
__WEAK void OnError (uint8_t line)
 This function is called on every Error. More...
 
__WEAK void OnErrorReset (void)
 This function is called on Error-Reset This weak definition is empty and can be overwritten by main project if an action is required. More...
 
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...
 
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...
 
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 *fDataOld,...)
 Dummy Function for no Data-updates. More...
 
bool ErrorsPending (void)
 Check if errors are pending. More...
 
void ErrorInit (void)
 Inits the Error Stack with 0. 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...
 
static int CmpErrTimeStamp (const void *a, const void *b)
 Compares two errors by tTimestampFirst. More...
 
uint32_t PendingErrosSortedByTime (tErrorListItem *pptPendingErrorList[])
 Get an array of the pending Errors sorted by tTimestampFirst. More...
 
 ASSERT_PARA_NAME ("ErrorsChanged")
 
 ASSERT_PARA_DESCRIPTION ("This counter will be incremented on every change in the error system")
 
 ASSERT_PARA_HELP ("")
 
 PARA_HELP_TEXT_SECTION (315, PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "") INCLUDE_HELP_DE("DOC_D " ""))) const
 
 ASSERT_PARA_NAME ("ErrorsChanged2")
 
 ASSERT_PARA_DESCRIPTION ("The counter in this array changes if this error slot is changed.")
 
 PARA_HELP_TEXT_SECTION (340, PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "") INCLUDE_HELP_DE("DOC_D " ""))) const
 
static int32_t ReadFunction_ErrorMemAddress (Parameter *this, uint16_t SubID, void *data, int32_t MaxCount, uint32_t offset, ParameterAccessSource Access, uint8_t access_level)
 
 ASSERT_PARA_NAME ("Error Memory Address")
 
 ASSERT_PARA_DESCRIPTION ("Adress of the Error Memory")
 
 PARA_HELP_TEXT_SECTION (316, PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "") INCLUDE_HELP_DE("DOC_D " ""))) const
 
static int32_t ReadFunction_ErrorMemSize (Parameter *this, uint16_t SubID, void *data, int32_t MaxCount, uint32_t offset, ParameterAccessSource Access, uint8_t access_level)
 
 ASSERT_PARA_NAME ("Error Memory Size")
 
 ASSERT_PARA_DESCRIPTION ("Size of the Error Memory")
 
 PARA_HELP_TEXT_SECTION (317, PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "") INCLUDE_HELP_DE("DOC_D " ""))) const
 
 ASSERT_PARA_NAME ("Version Errorsystem")
 
 ASSERT_PARA_DESCRIPTION ("Version of the used Error-System")
 
 PARA_HELP_TEXT_SECTION (318, PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "") INCLUDE_HELP_DE("DOC_D " ""))) const
 
 ASSERT_PARA_NAME ("Pending")
 
 ASSERT_PARA_DESCRIPTION ("An error that has not been reset is marked with a high bit")
 
 PARA_HELP_TEXT_SECTION (319, PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "") INCLUDE_HELP_DE("DOC_D " ""))) const
 
void ErrorReset (uint8_t ui8AccessLevel)
 
static int32_t WriteFunction_PARA_ErrorReset (Parameter *this, uint16_t SubID, void *data, int32_t MaxCount, uint32_t offset, ParameterAccessSource Access, uint8_t AccessLevel)
 
static int32_t ReadFunction_PARA_ErrorReset (Parameter *this, uint16_t SubID, void *data, int32_t MaxCount, uint32_t offset, ParameterAccessSource Access, uint8_t AccessLevel)
 
 ASSERT_PARA_NAME ("ErrorReset")
 
 ASSERT_PARA_DESCRIPTION ("Reset actual error")
 
 PARA_HELP_TEXT_SECTION (307, PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "") INCLUDE_HELP_DE("DOC_D " ""))) const
 
int32_t WriteFunction_ErrorAddress (Parameter *ptThis, uint16_t ui16SubId, void *pData, int32_t ui32MaxCount, uint32_t ui32Offset, ParameterAccessSource tAccessSource, uint8_t ui8AccessLevel)
 
 ASSERT_PARA_NAME ("ErrorAddress")
 
 ASSERT_PARA_DESCRIPTION ("Gives the memory-Address of an error-code")
 
 PARA_HELP_TEXT_SECTION (341, PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "") INCLUDE_HELP_DE("DOC_D " ""))) const
 

Variables

static uint8_t g_u8ErrorsChanged
 This counter will be incremented on every change in the error system. More...
 
static uint8_t g_au8ErrorChangeVersion [30]
 This counter will be incremented on every change in the specific error entry. More...
 
static bool g_bErrorResetLock = 0
 Prevent adding an error while error reset. More...
 
static Type_Timestamp g_ptErrorResetTimestamp
 Timestamp of last full Error-Reset. More...
 
const uint32_t g_ui32ErrorSystemVersion = 2
 Version of the Error Library. More...
 
tErrorListItem g_ptErrorList [30]
 This array contains the error stack. More...
 
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...
 
static const ParaData_U8 g_tParaData_PARA_ID_ErrorsChanged = { &g_u8ErrorsChanged , 0x00 , 0xFF , 0 }
 
static const char g_sParaNamePARA_ID_ErrorsChanged [] = "ErrorsChanged"
 
static const char g_sParaUnitPARA_ID_ErrorsChanged [] = "{0}"
 
static const char g_sParaSubstitutionTextPARA_ID_ErrorsChanged [] = ""
 
static const char g_sParaDescriptionPARA_ID_ErrorsChanged [] = "This counter will be incremented on every change in the error system" PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "" ) INCLUDE_HELP_DE("DOC_D " "" ))
 
static const ParaData_U8 g_tParaData_PARA_ID_ErrorsChanged2 = { (uint8_t *)&g_au8ErrorChangeVersion , 0x00 , 0xFF , 0 }
 
static const char g_sParaNamePARA_ID_ErrorsChanged2 [] = "ErrorsChanged2"
 
static const char g_sParaUnitPARA_ID_ErrorsChanged2 [] = "{0}"
 
static const char g_sParaSubstitutionTextPARA_ID_ErrorsChanged2 [] = ""
 
static const char g_sParaDescriptionPARA_ID_ErrorsChanged2 [] = "The counter in this array changes if this error slot is changed." PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "" ) INCLUDE_HELP_DE("DOC_D " "" ))
 
const ParaData_U32 g_tParaData_PARA_ID_ErrorMemAddress = { 0 , 0x00000000 , 0xFFFFFFFF , 0 }
 
static const char g_sParaNamePARA_ID_ErrorMemAddress [] = "Error Memory Address"
 
static const char g_sParaUnitPARA_ID_ErrorMemAddress [] = "0x{0:X4}"
 
static const char g_sParaSubstitutionTextPARA_ID_ErrorMemAddress [] = ""
 
static const char g_sParaDescriptionPARA_ID_ErrorMemAddress [] = "Adress of the Error Memory" PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "" ) INCLUDE_HELP_DE("DOC_D " "" ))
 
const ParaData_U32 g_tParaData_PARA_ID_ErrorMemSize = { 0 , 0x00000000 , 0xFFFFFFFF , 0 }
 
static const char g_sParaNamePARA_ID_ErrorMemSize [] = "Error Memory Size"
 
static const char g_sParaUnitPARA_ID_ErrorMemSize [] = "{0}"
 
static const char g_sParaSubstitutionTextPARA_ID_ErrorMemSize [] = ""
 
static const char g_sParaDescriptionPARA_ID_ErrorMemSize [] = "Size of the Error Memory" PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "" ) INCLUDE_HELP_DE("DOC_D " "" ))
 
const ParaData_U32 g_tParaData_PARA_ID_ErrorSystemVersion = { (uint32_t *)&g_ui32ErrorSystemVersion , 0x00000000 , 0xFFFFFFFF , 0 }
 
static const char g_sParaNamePARA_ID_ErrorSystemVersion [] = "Version Errorsystem"
 
static const char g_sParaUnitPARA_ID_ErrorSystemVersion [] = "{0}"
 
static const char g_sParaSubstitutionTextPARA_ID_ErrorSystemVersion [] = ""
 
static const char g_sParaDescriptionPARA_ID_ErrorSystemVersion [] = "Version of the used Error-System" PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "" ) INCLUDE_HELP_DE("DOC_D " "" ))
 
const ParaData_U32 g_tParaData_PARA_ID_ErrorPending = { &g_u32ErrorPending , 0x00000000 , 0xFFFFFFFF , 0 }
 
static const char g_sParaNamePARA_ID_ErrorPending [] = "Pending"
 
static const char g_sParaUnitPARA_ID_ErrorPending [] = "{0}"
 
static const char g_sParaSubstitutionTextPARA_ID_ErrorPending [] = "[,0][,1][,2][,3][,4][,5][,6][,7][,8][,9][,10][,11][,12][,13][,14][,15][,16][,17][,18][,19][,20][,21][,22][,23][,24][,25][,26][,27][,28][,29][,30][Overflow,31]"
 
static const char g_sParaDescriptionPARA_ID_ErrorPending [] = "An error that has not been reset is marked with a high bit" PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "" ) INCLUDE_HELP_DE("DOC_D " "" ))
 
static const ParaData_U8 g_tParaData_PARA_ID_ErrorReset = { 0 , 0 , 3 , 0 }
 
static const char g_sParaNamePARA_ID_ErrorReset [] = "ErrorReset"
 
static const char g_sParaUnitPARA_ID_ErrorReset [] = "{0}"
 
static const char g_sParaSubstitutionTextPARA_ID_ErrorReset [] = ""
 
static const char g_sParaDescriptionPARA_ID_ErrorReset [] = "Reset actual error" PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "" ) INCLUDE_HELP_DE("DOC_D " "" ))
 
uint32_t g_ui32ErrorAddress
 
const ParaData_U32 g_tParaData_PARA_ID_ErrorAddress = { &g_ui32ErrorAddress , 0x00000000 , 0xFFFFFFFF , 0 }
 
static const char g_sParaNamePARA_ID_ErrorAddress [] = "ErrorAddress"
 
static const char g_sParaUnitPARA_ID_ErrorAddress [] = "{0}"
 
static const char g_sParaSubstitutionTextPARA_ID_ErrorAddress [] = ""
 
static const char g_sParaDescriptionPARA_ID_ErrorAddress [] = "Gives the memory-Address of an error-code" PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "" ) INCLUDE_HELP_DE("DOC_D " "" ))
 

Detailed Description

Error and Warnings Plugin for Hermes PC-Tool.


© Copyright 2017-2022 Copyright: Retostronik GmbH Stütingstraße 30 58285 Gevelsberg

Macro Definition Documentation

◆ MIN_PARA_DESCRIPTION_LENTH

#define MIN_PARA_DESCRIPTION_LENTH   0

◆ MIN_PARA_HELP_LENTH

#define MIN_PARA_HELP_LENTH   0

Function Documentation

◆ _SetErrorX()

tErrorListItem * _SetErrorX ( const tError ptError,
const tErrorSource ptErrorSource,
  ... 
)

This function adds a error to the stack.

Parameters
ptErrorError to be added
ptErrorSourceSource of this error.
...additional Pointers to Data. Each Pointer can be any datatype up to 32 Bit length.

◆ _Static_assert()

_Static_assert ( sizeof(\ "NoReaction")  ,
10  ,
"Error reaction name to short must be at least "x" 10 "" characters long!"   
)

◆ ASSERT_HELP()

ASSERT_HELP ( \ "DOC_D Es wird keine Aktion ausgeführt."\ "DOC_E No action will be performed."  )

◆ ASSERT_PARA_DESCRIPTION() [1/8]

ASSERT_PARA_DESCRIPTION ( "Adress of the Error Memory"  )

◆ ASSERT_PARA_DESCRIPTION() [2/8]

ASSERT_PARA_DESCRIPTION ( "An error that has not been reset is marked with a high bit"  )

◆ ASSERT_PARA_DESCRIPTION() [3/8]

ASSERT_PARA_DESCRIPTION ( "Gives the memory-Address of an error-code"  )

◆ ASSERT_PARA_DESCRIPTION() [4/8]

ASSERT_PARA_DESCRIPTION ( "Reset actual error"  )

◆ ASSERT_PARA_DESCRIPTION() [5/8]

ASSERT_PARA_DESCRIPTION ( "Size of the Error Memory"  )

◆ ASSERT_PARA_DESCRIPTION() [6/8]

ASSERT_PARA_DESCRIPTION ( "The counter in this array changes if this error slot is changed."  )

◆ ASSERT_PARA_DESCRIPTION() [7/8]

ASSERT_PARA_DESCRIPTION ( "This counter will be incremented on every change in the error system"  )

◆ ASSERT_PARA_DESCRIPTION() [8/8]

ASSERT_PARA_DESCRIPTION ( "Version of the used Error-System"  )

◆ ASSERT_PARA_HELP()

ASSERT_PARA_HELP ( ""  )

◆ ASSERT_PARA_NAME() [1/8]

ASSERT_PARA_NAME ( "Error Memory Address"  )

◆ ASSERT_PARA_NAME() [2/8]

ASSERT_PARA_NAME ( "Error Memory Size"  )

◆ ASSERT_PARA_NAME() [3/8]

ASSERT_PARA_NAME ( "ErrorAddress"  )

◆ ASSERT_PARA_NAME() [4/8]

ASSERT_PARA_NAME ( "ErrorReset"  )

◆ ASSERT_PARA_NAME() [5/8]

ASSERT_PARA_NAME ( "ErrorsChanged"  )

◆ ASSERT_PARA_NAME() [6/8]

ASSERT_PARA_NAME ( "ErrorsChanged2"  )

◆ ASSERT_PARA_NAME() [7/8]

ASSERT_PARA_NAME ( "Pending"  )

◆ ASSERT_PARA_NAME() [8/8]

ASSERT_PARA_NAME ( "Version Errorsystem"  )

◆ CmpErrTimeStamp()

static int CmpErrTimeStamp ( const void *  a,
const void *  b 
)
static

Compares two errors by tTimestampFirst.

Return values
trueif tTimestampFirst newer

◆ ERR_VAR_NAME() [1/2]

static const char ERR_VAR_NAME ( g_sNoOnErrorReactionName  ,
__LINE__   
)
static

◆ ERR_VAR_NAME() [2/2]

static const char ERR_VAR_NAME ( g_sNoOnErrorResetReactionName  ,
__LINE__   
)
static

◆ ErrorClear()

void ErrorClear ( uint8_t  ui8AccessLevel)

Removes all errors from stack if access level is sufficient, might be called after Init.

Parameters
ui8AccessLevelaccess level of requesting user as defined in ACCESS_LEVEL

◆ ErrorInit()

void ErrorInit ( void  )

Inits the Error Stack with 0.

◆ ErrorReset()

void ErrorReset ( uint8_t  ui8AccessLevel)

◆ ErrorResetX()

void ErrorResetX ( uint8_t  ui8AccessLevel)

Resets all pending errors if access level is sufficient.

Parameters
ui8AccessLevelaccess level of requesting user as defined in ACCESS_LEVEL

◆ ErrorsPending()

bool ErrorsPending ( void  )

Check if errors are pending.

Return values
Trueif there are errors that not have been reseted

◆ GetErrorId()

uint16_t GetErrorId ( uint32_t  position)

Get Error ID of the Error on a specified Position.

Return values
ErrorList Item on the specified Position

◆ IsErrorPending()

bool IsErrorPending ( uint32_t  position)

Check if the requestes Error-Position is pending.

Return values
Trueif the requested Error-Entry pending

◆ MaxAbsFloat()

void MaxAbsFloat ( void *  DataOld,
float  DataNew 
)

Update the atatched data if new value abs is higher.

Parameters
DataOldPointer to old data to be updated.
DataNewNew data

◆ MaxFloat()

void MaxFloat ( void *  DataOld,
float  DataNew 
)

Update the atached data if new value is higher.

Parameters
DataOldPointer to old data to be updated.
DataNewNew data

◆ MaxInt()

void MaxInt ( void *  DataOld,
int32_t  DataNew 
)

Update the atatched data if new value is higher.

Parameters
DataOldPointer to old data to be updated.
DataNewNew data

◆ MaxUInt()

void MaxUInt ( void *  DataOld,
uint32_t  DataNew 
)

Update the atatched data if new value is higher.

Parameters
DataOldPointer to old data to be updated.
DataNewNew data

◆ MinFloat()

void MinFloat ( void *  DataOld,
float  DataNew 
)

Update the atatched data if new value is lower.

Parameters
DataOldPointer to old data to be updated.
DataNewNew data

◆ MinInt()

void MinInt ( void *  DataOld,
int32_t  DataNew 
)

Update the atatched data if new value is lower.

Parameters
DataOldPointer to old data to be updated.
DataNewNew data

◆ MinUInt()

void MinUInt ( void *  DataOld,
uint32_t  DataNew 
)

Update the atatched data if new value is lower.

Parameters
DataOldPointer to old data to be updated.
DataNewNew data

◆ NoDataUpdate()

void NoDataUpdate ( void *  fDataOld,
  ... 
)

Dummy Function for no Data-updates.

Do nothing.

Parameters
fDataOld- Ignored
...additional Pointers to Data. Each Pointer can be any datatype up to 32 Bit length.

◆ NoOnErrorReaction()

void NoOnErrorReaction ( void  )

This function is called if no Reaction is required after an error.

This function does nothing.

◆ NoOnErrorResetReaction()

bool NoOnErrorResetReaction ( void  )

This function is called if no Reaction is required after an error reset.

This function does nothing.

Return values
truealways.

◆ OnError()

__WEAK void OnError ( uint8_t  line)

This function is called on every Error.

This weak definition is empty and can be overwritten by main project if an action is required.

Parameters
linedeprecated -> not used.

◆ OnErrorReset()

__WEAK void OnErrorReset ( void  )

This function is called on Error-Reset This weak definition is empty and can be overwritten by main project if an action is required.

◆ OnNvErrorReset()

void OnNvErrorReset ( tErrorListItem g_ptErrorListItem)

This function is called in case an Error with Flag NV_STORED is resetted.

This weak definition is empty and can be overwritten by main project if an action is required.

Parameters
g_ptErrorListItemItem to clear from NV Ram

◆ OnNvErrorSet()

void OnNvErrorSet ( tErrorListItem g_ptErrorListItem)

This function is called in case an Error with Flag NV_STORED is set the first time This weak definition is empty and can be overwritten by main project if an action is required.

Parameters
g_ptErrorListItemItem to store in NV Ram

◆ PARA_HELP_TEXT_SECTION() [1/8]

PARA_HELP_TEXT_SECTION ( 307  ,
PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "") INCLUDE_HELP_DE("DOC_D " ""))   
) const

◆ PARA_HELP_TEXT_SECTION() [2/8]

PARA_HELP_TEXT_SECTION ( 315  ,
PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "") INCLUDE_HELP_DE("DOC_D " ""))   
) const

◆ PARA_HELP_TEXT_SECTION() [3/8]

PARA_HELP_TEXT_SECTION ( 316  ,
PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "") INCLUDE_HELP_DE("DOC_D " ""))   
) const

◆ PARA_HELP_TEXT_SECTION() [4/8]

PARA_HELP_TEXT_SECTION ( 317  ,
PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "") INCLUDE_HELP_DE("DOC_D " ""))   
) const

◆ PARA_HELP_TEXT_SECTION() [5/8]

PARA_HELP_TEXT_SECTION ( 318  ,
PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "") INCLUDE_HELP_DE("DOC_D " ""))   
) const

◆ PARA_HELP_TEXT_SECTION() [6/8]

PARA_HELP_TEXT_SECTION ( 319  ,
PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "") INCLUDE_HELP_DE("DOC_D " ""))   
) const

◆ PARA_HELP_TEXT_SECTION() [7/8]

PARA_HELP_TEXT_SECTION ( 340  ,
PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "") INCLUDE_HELP_DE("DOC_D " ""))   
) const

◆ PARA_HELP_TEXT_SECTION() [8/8]

PARA_HELP_TEXT_SECTION ( 341  ,
PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "") INCLUDE_HELP_DE("DOC_D " ""))   
) const

◆ PendingErrosSortedByTime()

uint32_t PendingErrosSortedByTime ( tErrorListItem pptPendingErrorList[])

Get an array of the pending Errors sorted by tTimestampFirst.

Parameters
pptPendingErrorListAn array of pointers to errors. MUST be at least MAX_NUMBER_OF_ERRORS in size. will contain the pending errors in ascending time order. Index’s higher than the number of pending errors will be unchanged.
Return values
Numberof pending errors

◆ ReadFunction_ErrorMemAddress()

static int32_t ReadFunction_ErrorMemAddress ( Parameter *  this,
uint16_t  SubID,
void *  data,
int32_t  MaxCount,
uint32_t  offset,
ParameterAccessSource  Access,
uint8_t  access_level 
)
static

◆ ReadFunction_ErrorMemSize()

static int32_t ReadFunction_ErrorMemSize ( Parameter *  this,
uint16_t  SubID,
void *  data,
int32_t  MaxCount,
uint32_t  offset,
ParameterAccessSource  Access,
uint8_t  access_level 
)
static

◆ ReadFunction_PARA_ErrorReset()

static int32_t ReadFunction_PARA_ErrorReset ( Parameter *  this,
uint16_t  SubID,
void *  data,
int32_t  MaxCount,
uint32_t  offset,
ParameterAccessSource  Access,
uint8_t  AccessLevel 
)
static

◆ ResetErrorIdRange()

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

Parameters
ui16ErrorIdStartStart of Error-ID range
ui16ErrorIdEndEnd of Error-ID range
ui8AccessLevelaccess level of requesting user as defined in ACCESS_LEVEL

◆ WriteFunction_ErrorAddress()

int32_t WriteFunction_ErrorAddress ( Parameter *  ptThis,
uint16_t  ui16SubId,
void *  pData,
int32_t  ui32MaxCount,
uint32_t  ui32Offset,
ParameterAccessSource  tAccessSource,
uint8_t  ui8AccessLevel 
)

◆ WriteFunction_PARA_ErrorReset()

static int32_t WriteFunction_PARA_ErrorReset ( Parameter *  this,
uint16_t  SubID,
void *  data,
int32_t  MaxCount,
uint32_t  offset,
ParameterAccessSource  Access,
uint8_t  AccessLevel 
)
static

Variable Documentation

◆ g_au8ErrorChangeVersion

uint8_t g_au8ErrorChangeVersion[30]
static

This counter will be incremented on every change in the specific error entry.

The PC monitors the value and triggers an update on change.

◆ g_bErrorResetLock

bool g_bErrorResetLock = 0
static

Prevent adding an error while error reset.

◆ g_ptErrorList

tErrorListItem g_ptErrorList[30]

This array contains the error stack.

◆ g_ptErrorResetTimestamp

Type_Timestamp g_ptErrorResetTimestamp
static

Timestamp of last full Error-Reset.

◆ g_sParaDescriptionPARA_ID_ErrorAddress

const char g_sParaDescriptionPARA_ID_ErrorAddress[] = "Gives the memory-Address of an error-code" PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "" ) INCLUDE_HELP_DE("DOC_D " "" ))
static

◆ g_sParaDescriptionPARA_ID_ErrorMemAddress

const char g_sParaDescriptionPARA_ID_ErrorMemAddress[] = "Adress of the Error Memory" PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "" ) INCLUDE_HELP_DE("DOC_D " "" ))
static

◆ g_sParaDescriptionPARA_ID_ErrorMemSize

const char g_sParaDescriptionPARA_ID_ErrorMemSize[] = "Size of the Error Memory" PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "" ) INCLUDE_HELP_DE("DOC_D " "" ))
static

◆ g_sParaDescriptionPARA_ID_ErrorPending

const char g_sParaDescriptionPARA_ID_ErrorPending[] = "An error that has not been reset is marked with a high bit" PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "" ) INCLUDE_HELP_DE("DOC_D " "" ))
static

◆ g_sParaDescriptionPARA_ID_ErrorReset

const char g_sParaDescriptionPARA_ID_ErrorReset[] = "Reset actual error" PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "" ) INCLUDE_HELP_DE("DOC_D " "" ))
static

◆ g_sParaDescriptionPARA_ID_ErrorsChanged

const char g_sParaDescriptionPARA_ID_ErrorsChanged[] = "This counter will be incremented on every change in the error system" PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "" ) INCLUDE_HELP_DE("DOC_D " "" ))
static

◆ g_sParaDescriptionPARA_ID_ErrorsChanged2

const char g_sParaDescriptionPARA_ID_ErrorsChanged2[] = "The counter in this array changes if this error slot is changed." PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "" ) INCLUDE_HELP_DE("DOC_D " "" ))
static

◆ g_sParaDescriptionPARA_ID_ErrorSystemVersion

const char g_sParaDescriptionPARA_ID_ErrorSystemVersion[] = "Version of the used Error-System" PARA_HELP_TEXT_COMBINE(INCLUDE_HELP_EN("DOC_E " "" ) INCLUDE_HELP_DE("DOC_D " "" ))
static

◆ g_sParaNamePARA_ID_ErrorAddress

const char g_sParaNamePARA_ID_ErrorAddress[] = "ErrorAddress"
static

◆ g_sParaNamePARA_ID_ErrorMemAddress

const char g_sParaNamePARA_ID_ErrorMemAddress[] = "Error Memory Address"
static

◆ g_sParaNamePARA_ID_ErrorMemSize

const char g_sParaNamePARA_ID_ErrorMemSize[] = "Error Memory Size"
static

◆ g_sParaNamePARA_ID_ErrorPending

const char g_sParaNamePARA_ID_ErrorPending[] = "Pending"
static

◆ g_sParaNamePARA_ID_ErrorReset

const char g_sParaNamePARA_ID_ErrorReset[] = "ErrorReset"
static

◆ g_sParaNamePARA_ID_ErrorsChanged

const char g_sParaNamePARA_ID_ErrorsChanged[] = "ErrorsChanged"
static

◆ g_sParaNamePARA_ID_ErrorsChanged2

const char g_sParaNamePARA_ID_ErrorsChanged2[] = "ErrorsChanged2"
static

◆ g_sParaNamePARA_ID_ErrorSystemVersion

const char g_sParaNamePARA_ID_ErrorSystemVersion[] = "Version Errorsystem"
static

◆ g_sParaSubstitutionTextPARA_ID_ErrorAddress

const char g_sParaSubstitutionTextPARA_ID_ErrorAddress[] = ""
static

◆ g_sParaSubstitutionTextPARA_ID_ErrorMemAddress

const char g_sParaSubstitutionTextPARA_ID_ErrorMemAddress[] = ""
static

◆ g_sParaSubstitutionTextPARA_ID_ErrorMemSize

const char g_sParaSubstitutionTextPARA_ID_ErrorMemSize[] = ""
static

◆ g_sParaSubstitutionTextPARA_ID_ErrorPending

const char g_sParaSubstitutionTextPARA_ID_ErrorPending[] = "[,0][,1][,2][,3][,4][,5][,6][,7][,8][,9][,10][,11][,12][,13][,14][,15][,16][,17][,18][,19][,20][,21][,22][,23][,24][,25][,26][,27][,28][,29][,30][Overflow,31]"
static

◆ g_sParaSubstitutionTextPARA_ID_ErrorReset

const char g_sParaSubstitutionTextPARA_ID_ErrorReset[] = ""
static

◆ g_sParaSubstitutionTextPARA_ID_ErrorsChanged

const char g_sParaSubstitutionTextPARA_ID_ErrorsChanged[] = ""
static

◆ g_sParaSubstitutionTextPARA_ID_ErrorsChanged2

const char g_sParaSubstitutionTextPARA_ID_ErrorsChanged2[] = ""
static

◆ g_sParaSubstitutionTextPARA_ID_ErrorSystemVersion

const char g_sParaSubstitutionTextPARA_ID_ErrorSystemVersion[] = ""
static

◆ g_sParaUnitPARA_ID_ErrorAddress

const char g_sParaUnitPARA_ID_ErrorAddress[] = "{0}"
static

◆ g_sParaUnitPARA_ID_ErrorMemAddress

const char g_sParaUnitPARA_ID_ErrorMemAddress[] = "0x{0:X4}"
static

◆ g_sParaUnitPARA_ID_ErrorMemSize

const char g_sParaUnitPARA_ID_ErrorMemSize[] = "{0}"
static

◆ g_sParaUnitPARA_ID_ErrorPending

const char g_sParaUnitPARA_ID_ErrorPending[] = "{0}"
static

◆ g_sParaUnitPARA_ID_ErrorReset

const char g_sParaUnitPARA_ID_ErrorReset[] = "{0}"
static

◆ g_sParaUnitPARA_ID_ErrorsChanged

const char g_sParaUnitPARA_ID_ErrorsChanged[] = "{0}"
static

◆ g_sParaUnitPARA_ID_ErrorsChanged2

const char g_sParaUnitPARA_ID_ErrorsChanged2[] = "{0}"
static

◆ g_sParaUnitPARA_ID_ErrorSystemVersion

const char g_sParaUnitPARA_ID_ErrorSystemVersion[] = "{0}"
static

◆ g_tParaData_PARA_ID_ErrorAddress

const ParaData_U32 g_tParaData_PARA_ID_ErrorAddress = { &g_ui32ErrorAddress , 0x00000000 , 0xFFFFFFFF , 0 }

◆ g_tParaData_PARA_ID_ErrorMemAddress

const ParaData_U32 g_tParaData_PARA_ID_ErrorMemAddress = { 0 , 0x00000000 , 0xFFFFFFFF , 0 }

◆ g_tParaData_PARA_ID_ErrorMemSize

const ParaData_U32 g_tParaData_PARA_ID_ErrorMemSize = { 0 , 0x00000000 , 0xFFFFFFFF , 0 }

◆ g_tParaData_PARA_ID_ErrorPending

const ParaData_U32 g_tParaData_PARA_ID_ErrorPending = { &g_u32ErrorPending , 0x00000000 , 0xFFFFFFFF , 0 }

◆ g_tParaData_PARA_ID_ErrorReset

const ParaData_U8 g_tParaData_PARA_ID_ErrorReset = { 0 , 0 , 3 , 0 }
static

◆ g_tParaData_PARA_ID_ErrorsChanged

const ParaData_U8 g_tParaData_PARA_ID_ErrorsChanged = { &g_u8ErrorsChanged , 0x00 , 0xFF , 0 }
static

◆ g_tParaData_PARA_ID_ErrorsChanged2

const ParaData_U8 g_tParaData_PARA_ID_ErrorsChanged2 = { (uint8_t *)&g_au8ErrorChangeVersion , 0x00 , 0xFF , 0 }
static

◆ g_tParaData_PARA_ID_ErrorSystemVersion

const ParaData_U32 g_tParaData_PARA_ID_ErrorSystemVersion = { (uint32_t *)&g_ui32ErrorSystemVersion , 0x00000000 , 0xFFFFFFFF , 0 }

◆ g_u32ErrorPending

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.

◆ g_u8ErrorsChanged

uint8_t g_u8ErrorsChanged
static

This counter will be incremented on every change in the error system.

The PC monitors the value and triggers an update on change.

◆ g_ui32ErrorAddress

uint32_t g_ui32ErrorAddress

◆ g_ui32ErrorSystemVersion

const uint32_t g_ui32ErrorSystemVersion = 2

Version of the Error Library.