4.8. Diagnosis Module
4.8.1. Module Files
184.108.40.206. Unit Test
4.8.2. Detailed Description
A detailed description on how to use the diagnosis module can be found in How to Use the Diagnosis Module.
The diagnosis module is implemented as a central table
diag_diagnosisIdConfiguration that maps the entries of
Whenever the diagnosis handler is called in the application code the
diagnosis module selects based on this table the appropriate callback.
It is in the responsibility of the callback to handle the reported issue.
In most implementations the callback sets according to the reported issue an entry in the database for convenient use of error conditions. An example is the CAN module that reports set error conditions from the relevant tables in the database. These entries are set from the callbacks of the diagnosis module.
In addition to the callbacks, several parameters of the occurring issue can be set. As an example the table configures whether an diagnosis entry has a fatal severity. The diagnosis module makes convenience functions available that allow for scanning for fatal errors in order to react on any of these issues.