CLASSIC
Modul: det
Rolle: constitutive
Konfidenz: 95%
SNIP_CLASSIC_DET_SECTION_8_1_5_Callout_Functions_Configurable_Interfaces
Wortlaut
8.1.5 Callout Functions / Configurable Interfaces
[SWS_Det_00180]
Upstream requirements: SRS_BSW_00463
⌈if callout functions are configured, they should have the same signatures as the corresponding functions. If several callouts are defined for the same service they should
have the same ID.⌋
If Det_ReportError function is called, all configured callout functions shall be called
(see [SWS_Det_00501]). User_ErrorHooks functions should have the Service ID 0x10.
[SWS_Det_00181] Definition of configurable interface <User_Error_Hooks>
Upstream requirements: SRS_BSW_00463
⌈
Service Name
<User_Error_Hooks>
Syntax
Std_ReturnType <User_Error_Hooks> (
uint16 ModuleId,
uint8 InstanceId,
uint8 ApiId,
uint8 ErrorId
)
Service ID [hex]
0x10
Sync/Async
Synchronous
Reentrancy
Reentrant
ModuleId
Module ID of calling module.
InstanceId
The identifier of the index based instance of a module, starting
from 0, If the module is a single instance module it shall pass 0 as
the InstanceId.
ApiId
ID of API service in which error is detected (defined in SWS of
calling module)
Parameters (in)
ErrorId
ID of detected development error (defined in SWS of calling
module).
Parameters (inout)
None
Parameters (out)
None
Return value
Std_ReturnType
returns always E_OK (is required for services)
Description
–
Available via
Det_Externals.h
⌋
If Det_ReportRuntimeError function is called, all configured callout functions shall
be called (see [SWS_Det_00503]).
DetReportRuntimeErrorCallout functions
should have the Service ID 0x11.
[SWS_Det_00184] Definition of configurable interface <DetReportRuntimeError
Callout>
Upstream requirements: SRS_BSW_00463
⌈
Service Name
<DetReportRuntimeErrorCallout>
Syntax
Std_ReturnType <DetReportRuntimeErrorCallout> (
uint16 ModuleId,
uint8 InstanceId,
uint8 ApiId,
uint8 ErrorId
)
Service ID [hex]
0x11
Sync/Async
Synchronous
Reentrancy
Reentrant
ModuleId
Module ID of calling module.
InstanceId
The identifier of the index based instance of a module, starting
from 0, If the module is a single instance module it shall pass 0 as
the InstanceId.
ApiId
ID of API service in which error is detected (defined in SWS of
calling module)
Parameters (in)
ErrorId
ID of detected runtime error (defined in SWS of calling module).
Parameters (inout)
None
Parameters (out)
None
Return value
Std_ReturnType
returns always E_OK (is required for services)
Description
–
Available via
Det_Externals.h
⌋
Versionen & Provenienz · Zugeordnete Anforderungen
Diese Angaben zeigt der Versions-Explorer.
Begründung & Zuweisungs-Evidenz
Cited verbatim in the snippet (deterministic citation).
Dokumenten-Herkunft & Rückverfolgbarkeit
| Spezifikations-Dokument | SWS_DefaultErrorTracer.pdf |
|---|---|
| Dokumentseite | Seite 25 |
| Ziel-Modul | det (classic) |
| Ziel-Anforderung | SWS_Std_00005 |
| Semantische Rolle | constitutive |
| Automatisierungs-Konfidenz | 0.95 |