![]() |
FuSa 8-Bit Libraries Safety Framework
|
Declares configurations for the Error Handler. More...
Files | |
| file | error_handler_config.c |
| Defines and initializes configurations for the Error Handler. | |
Macros | |
| #define | NOTIFICATION_LOG_SIZE 5U |
| Configures the maximum number of Error IDs allowed in the Notification Error Log. | |
Variables | |
| const errCrit_t | errorIdCritLut [ERRID_MAX] |
| Configures the criticality of all Error IDs for handling in EH_HandleError. | |
| const errCallback_t | nonCriticalErrorCallback = &EH_NonCriticalErrorExampleCallback |
| Configures the callback function used for 'NON_CRITICAL' Error IDs in EH_HandleError. | |
| const errCallback_t | notificationErrorCallback = &EH_NotificationErrorExampleCallback |
| Configures the callback function used for 'NOTIFICATION' Error IDs in EH_ProcessNotificationLog. | |
| const errCrit_t | errorIdCritLut [ERRID_MAX] |
| Configures the criticality of all Error IDs for handling in EH_HandleError. | |
| const errCallback_t | nonCriticalErrorCallback |
| Configures the callback function used for 'NON_CRITICAL' Error IDs in EH_HandleError. | |
| const errCallback_t | notificationErrorCallback |
| Configures the callback function used for 'NOTIFICATION' Error IDs in EH_ProcessNotificationLog. | |
Declares configurations for the Error Handler.
This file declares the external configuration constants used by the Error Handler. These constants are defined and initialized in error_handler_config.c to ensure a single instance across all translation units using the configuration.
| #define NOTIFICATION_LOG_SIZE 5U |
Configures the maximum number of Error IDs allowed in the Notification Error Log.
This macro limits the how many errId_t can be added to the Notification Error Log before being processed by EH_ProcessNotificationLog. Any Error IDs pushed to the log are discarded by EH_PushNotificationLog when the log is full. It is recommended to process the log often rather than having a large log.
Valid range is between 1 and UINT8_MAX.
Definition at line 90 of file error_handler_config.h.
Configures the criticality of all Error IDs for handling in EH_HandleError.
This array is used as a Look-Up Table (LUT) for the Error Handler to identify the criticality for all defined Error IDs. Each index in the LUT corresponds to an errId_t value. This LUT, together with the errId_t enum, facilitates a centralized error handling system, allowing for expansion by adding new Error IDs as required by the application. The array is defined and configured in error_handler_config.c.
Definition at line 37 of file error_handler_config.c.
Configures the criticality of all Error IDs for handling in EH_HandleError.
This array is used as a Look-Up Table (LUT) for the Error Handler to identify the criticality for all defined Error IDs. Each index in the LUT corresponds to an errId_t value. This LUT, together with the errId_t enum, facilitates a centralized error handling system, allowing for expansion by adding new Error IDs as required by the application. The array is defined and configured in error_handler_config.c.
Definition at line 37 of file error_handler_config.c.
| const errCallback_t nonCriticalErrorCallback = &EH_NonCriticalErrorExampleCallback |
Configures the callback function used for 'NON_CRITICAL' Error IDs in EH_HandleError.
This callback setting is configured in the error_handler_config.c file and should be set to point to a function with a errCallback_t type signature in order to implement application-specific error handling for any Error ID reported with NON_CRITICAL criticality.
Definition at line 132 of file error_handler_config.c.
|
extern |
Configures the callback function used for 'NON_CRITICAL' Error IDs in EH_HandleError.
This callback setting is configured in the error_handler_config.c file and should be set to point to a function with a errCallback_t type signature in order to implement application-specific error handling for any Error ID reported with NON_CRITICAL criticality.
Definition at line 132 of file error_handler_config.c.
| const errCallback_t notificationErrorCallback = &EH_NotificationErrorExampleCallback |
Configures the callback function used for 'NOTIFICATION' Error IDs in EH_ProcessNotificationLog.
This callback setting is configured in the error_handler_config.c file and should be set to point to a function with a errCallback_t type signature in order to implement application-specific error handling for any Error ID reported with NOTIFICATION criticality.
Definition at line 138 of file error_handler_config.c.
|
extern |
Configures the callback function used for 'NOTIFICATION' Error IDs in EH_ProcessNotificationLog.
This callback setting is configured in the error_handler_config.c file and should be set to point to a function with a errCallback_t type signature in order to implement application-specific error handling for any Error ID reported with NOTIFICATION criticality.
Definition at line 138 of file error_handler_config.c.