DEENESPTFRRUARHIKOZHNL

Watchdog Interface (WdgIf)

ModulWdgIf (Watchdog Interface)
BSW-Modul-ID43
Standard-Header#include "WdgIf.h"
SWS-SpezifikationAUTOSAR_CP_SWS_WatchdogInterface.pdf, AUTOSAR_SWS_WatchdogInterface.pdf
Umfang15 Records · 7 Snippets
ClusterMikrocontroller-Abstraktion (MCAL & I/O)

Watchdog Interface (WdgIf)

AUTOSAR Classic Onboard Device Abstraction-Modul Watchdog Interface (WdgIf, Spezifikation: AUTOSAR_CP_SWS_WatchdogInterface.pdf, AUTOSAR_SWS_WatchdogInterface.pdf).

Funktionen — Übersicht

Typen — Übersicht

Anforderungen — Übersicht

Funktionen & Typen — Detailansicht

함수 WdgIf_SetMode [SWS_WdgIf_00042] 📄 PDF

Std_ReturnType WdgIf_SetMode(uint8 DeviceIndex, WdgIf_ModeType WdgMode);

Map the service Wdg If_ Set Mode to the serv ice Wdg_ Set Mode of the corresponding Watchdog Driver.

함수 WdgIf_SetTriggerCondition [SWS_WdgIf_00044] 📄 PDF

void WdgIf_SetTriggerCondition(uint8 DeviceIndex, uint16 Timeout);

Map the service Wdg If_ Set Trigger Condition to the service Wdg_ Set Trigger Condition of the corresponding Wa tchdog Driver.

requirement SWS_WdgIf_00006 [SWS_WdgIf_00006] 📄 PDF

Type of error Related error code Error value API service called with wrong device index parameter WDGIF_ E_ PARAM_ DEVICE 0x01 NULL pointer checking WDGIF_ E_ PARAM_ POINTER 0x03

requirement SWS_WdgIf_00013 [SWS_WdgIf_00013] 📄 PDF

[SWS_WdgIf_00013] Upstream requirements: SRS_BSW_00304 ⌈The data type for the watchdog device index shall be uint8. DeviceIndex shall provide a zero-based consecutive index.⌋

requirement SWS_WdgIf_00017 [SWS_WdgIf_00017] 📄 PDF

[SWS_WdgIf_00017] Upstream requirements: SRS_Wdg_12165, SRS_Wdg_12167, SRS_MemHwAb_14019 ⌈The Watchdog Interface shall map the APIs specified in this chapter to the API of the driver⌋

requirement SWS_WdgIf_00018 [SWS_WdgIf_00018] 📄 PDF

[SWS_WdgIf_00018] Upstream requirements: SRS_MemHwAb_14020 ⌈The Watchdog Interface shall use the parameter DeviceIndex for selection of watchdog drivers. If only one watchdog driver is configured, the parameter Devi- ceIndex shall be ignored.⌋

requirement SWS_WdgIf_00019 [SWS_WdgIf_00019] 📄 PDF

[SWS_WdgIf_00019] Upstream requirements: SRS_MemHwAb_14021 ⌈If only one watchdog driver is configured, the Watchdog Interface shall cause no runtime overhead when mapping the Watchdog Interface API to the API of the corre- sponding Watchdog Driver.⌋ Implementation hint: This could be done by using macros as for example #define WdgIf_SetMode(DeviceIndex, WdgMode) \ Wdg_SetMode(WdgMode)

requirement SWS_WdgIf_00020 [SWS_WdgIf_00020] 📄 PDF

[SWS_WdgIf_00020] Upstream requirements: SRS_MemHwAb_14021 ⌈If more than one watchdog driver is configured, the Watchdog Interface shall use efficient mechanisms to map the API calls to the appropriate watchdog driver.⌋ Implementation hint: One solution is to use tables of pointers to functions where the parameter DeviceIndex is used as array index, for example #define WdgIf_SetMode(DeviceIndex, WdgMode) \ SetModeFctPtr[DeviceIndex](WdgMode) Note: The service IDs are related to the service IDs of the watchdog driver specification [7]. For that reason, they may not start with 0.

requirement SWS_WdgIf_00028 [SWS_WdgIf_00028] 📄 PDF

If more than one watchdog driver is configured and the develop m ent error detection is enabled for this module, the parameter DeviceIndex shall be checked for being an existing device within the module’s services . Detected errors shall be reported to the Default Error Tracer (DET) w ith the error code WDGIF_E_PARAM_DEVICE and the called service shall not be executed.

requirement SWS_WdgIf_00041 [SWS_WdgIf_00041] 📄 PDF

Module Header File Imported Type Std Std_ Types.h Std _ Return Type Std_ Types.h Std _ Version Info Type

requirement SWS_WdgIf_00047 [SWS_WdgIf_00047] 📄 PDF

Wdg _ Set Mode Wdg.h Switches the watchdog into the mode Mode. Wdg _ Set Trigger Condition Wdg.h Sets the timeout value for the trigger counter.

requirement SWS_WdgIf_00057 [SWS_WdgIf_00057] 📄 PDF

[SWS_WdgIf_00057] Upstream requirements: SRS_Wdg_12018 ⌈WdgIf_SetMode shall return the value which it gets from the service Wdg_SetMode of the corresponding Watchdog Driver.⌋ Possible content of the return value is specified by the Watchdog Driver, see [7].

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/CP_MOD_WdgIf
Status
unspecified
Version
AUTOSAR/AP/record/CP_MOD_WdgIf@rel:R20-11#6aa8d4ea
Content hash
6aa8d4ea
Source
https://www.autosar.org/fileadmin/standards/R20-11/CP/AUTOSAR_SWS_WatchdogInterface.pdf#nameddest=SWS_WdgIf_00042

초기화 및 상태

Returns the version information.

void WdgIf_GetVersionInfo(Std_VersionInfoType* VersionInfoPtr);

서비스

Map the service Wdg If_ Set Mode to the serv ice Wdg_ Set Mode of the corresponding Watchdog Driver.

Std_ReturnType WdgIf_SetMode(uint8 DeviceIndex, WdgIf_ModeType WdgMode);

Map the service Wdg If_ Set Trigger Condition to the service Wdg_ Set Trigger Condition of the corresponding Wa tchdog Driver.

void WdgIf_SetTriggerCondition(uint8 DeviceIndex, uint16 Timeout);

타입

Mode type of the Wdg If module

요구사항

SWS_WdgIf_00006 requirement

Type of error Related error code Error value API service called with wrong device index parameter WDGIF_ E_ PARAM_ DEVICE 0x01 NULL pointer checking WDGIF_ E_ PARAM_ POINTER 0x03

SWS_WdgIf_00013 requirement

[SWS_WdgIf_00013] Upstream requirements: SRS_BSW_00304 ⌈The data type for the watchdog device index shall be uint8. DeviceIndex shall provide a zero-based consecutive index.⌋

SWS_WdgIf_00017 requirement

[SWS_WdgIf_00017] Upstream requirements: SRS_Wdg_12165, SRS_Wdg_12167, SRS_MemHwAb_14019 ⌈The Watchdog Interface shall map the APIs specified in this chapter to the API of the driver⌋

SWS_WdgIf_00018 requirement

[SWS_WdgIf_00018] Upstream requirements: SRS_MemHwAb_14020 ⌈The Watchdog Interface shall use the parameter DeviceIndex for selection of watchdog drivers. If only one watchdog driver is configured, the parameter Devi- ceIndex shall be ignored.⌋

SWS_WdgIf_00019 requirement

[SWS_WdgIf_00019] Upstream requirements: SRS_MemHwAb_14021 ⌈If only one watchdog driver is configured, the Watchdog Interface shall cause no runtime overhead when mapping the Watchdog Interface API to the API of the corre- sponding Watchdog Driver.⌋ Implementation hint: This could be done by using macros as for example #define WdgIf_SetMode(DeviceIndex, WdgMode) \ Wdg_SetMode(WdgMode)

SWS_WdgIf_00020 requirement

[SWS_WdgIf_00020] Upstream requirements: SRS_MemHwAb_14021 ⌈If more than one watchdog driver is configured, the Watchdog Interface shall use efficient mechanisms to map the API calls to the appropriate watchdog driver.⌋ Implementation hint: One solution is to use tables of pointers to functions where the parameter DeviceIndex is used as array index, for example #define WdgIf_SetMode(DeviceIndex, WdgMode) \ SetModeFctPtr[DeviceIndex](WdgMode) Note: The service IDs are related to the service IDs of the watchdog driver specification [7]. For that reason, they may not start with 0.

SWS_WdgIf_00028 requirement

If more than one watchdog driver is configured and the develop m ent error detection is enabled for this module, the parameter DeviceIndex shall be checked for being an existing device within the module’s services . Detected errors shall be reported to the Default Error Tracer (DET) w ith the error code WDGIF_E_PARAM_DEVICE and the called service shall not be executed.

SWS_WdgIf_00041 requirement

Module Header File Imported Type Std Std_ Types.h Std _ Return Type Std_ Types.h Std _ Version Info Type

SWS_WdgIf_00047 requirement

Wdg _ Set Mode Wdg.h Switches the watchdog into the mode Mode. Wdg _ Set Trigger Condition Wdg.h Sets the timeout value for the trigger counter.

SWS_WdgIf_00048 requirement

Det _ Report Error Det.h Service to report development errors.

SWS_WdgIf_00057 requirement

[SWS_WdgIf_00057] Upstream requirements: SRS_Wdg_12018 ⌈WdgIf_SetMode shall return the value which it gets from the service Wdg_SetMode of the corresponding Watchdog Driver.⌋ Possible content of the return value is specified by the Watchdog Driver, see [7].