CLASSIC
Modul: wdg
Rolle: constitutive
Konfidenz: 98%
SNIP_CLASSIC_WDG_SECTION_8_3_3_Wdg_SetTriggerCondition
Wortlaut
8.3.3 Wdg_SetTriggerCondition
[SWS_Wdg_00155] Definition of API function Wdg_SetTriggerCondition
Upstream requirements: SRS_BSW_00343
⌈
Service Name
Wdg_SetTriggerCondition
Syntax
void Wdg_SetTriggerCondition (
uint16 timeout
)
Service ID [hex]
0x03
Sync/Async
Synchronous
Reentrancy
Non Reentrant
Parameters (in)
timeout
Timeout value (milliseconds) for setting the trigger counter.
Parameters (inout)
None
Parameters (out)
None
Return value
None
Description
Sets the timeout value for the trigger counter.
Available via
Wdg.h
⌋
[SWS_Wdg_00136] ⌈The function Wdg_SetTriggerCondition shall reset the watchdog
timeout counter according to the timeout value passed.⌋
[SWS_Wdg_00138] ⌈The timeout value passed shall be interpreted as ’milliseconds’.
The conversion from milliseconds to the corresponding counter value shall be done
internally by the Wdg module.⌋
[SWS_Wdg_00139] ⌈The current watchdog mode shall be taken into account when
calculating the counter value from the timeout parameter.⌋
[SWS_Wdg_00140] ⌈This function shall also allow to set "0" as the time frame for
triggering which will result in an (almost) immediate stop of the watchdog triggering
and an (almost) instantaneous watchdog reset of the ECU. In case the counter value
stored inside watchdog has the value "0", the service Wdg_SetTriggerCondition shall
do nothing, which means it shall ignore the counter passed by the parameter to Wdg_
SetTriggerCondition.⌋
[SWS_Wdg_00146] ⌈When development error detection is enabled for the module:
The function Wdg_SetTriggerCondition shall check that the timeout parameter given is
less or equal to the maximum timeout value (WdgMaxTimeout). If this is not the case
the function shall not reload the timeout counter but raise the development error WDG_
E_PARAM_TIMEOUT and return to the caller.⌋
Versionen & Provenienz · Zugeordnete Anforderungen
Diese Angaben zeigt der Versions-Explorer.
Begründung & Zuweisungs-Evidenz
Explicit mention of SWS_Wdg_00155 in the text of document AUTOSAR_CP_SWS_WatchdogDriver.pdf.
Dokumenten-Herkunft & Rückverfolgbarkeit
| Spezifikations-Dokument | SWS_WatchdogDriver.pdf |
|---|---|
| Dokumentseite | Seite 29 |
| Ziel-Modul | wdg (classic) |
| Ziel-Anforderung | SWS_Wdg_00155 |
| Semantische Rolle | constitutive |
| Automatisierungs-Konfidenz | 0.98 |