Watchdog Interface (WdgIf)
AUTOSAR Classic Onboard Device Abstraction-Modul Watchdog Interface (WdgIf, Spezifikation: AUTOSAR_CP_SWS_WatchdogInterface.pdf, AUTOSAR_SWS_WatchdogInterface.pdf).
Funktionen — Übersicht
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.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.void WdgIf_GetVersionInfo (Std_VersionInfoType* VersionInfoPtr);Returns the version information.
Typen — Übersicht
enum WdgIf_ModeTypeMode type of the Wdg If module
Anforderungen — Übersicht
SWS_WdgIf_00006Type of error Related error code Error value API service called with wrong device index parameter WDGIF_ E_ PARAM_ DEVICE 0x01...SWS_WdgIf_00013[SWS_WdgIf_00013] Upstream requirements: SRS_BSW_00304 ⌈The data type for the watchdog device index shall be uint8.SWS_WdgIf_00017[SWS_WdgIf_00017] Upstream requirements: SRS_Wdg_12165, SRS_Wdg_12167, SRS_MemHwAb_14019 ⌈The Watchdog Interface shall map the...SWS_WdgIf_00018[SWS_WdgIf_00018] Upstream requirements: SRS_MemHwAb_14020 ⌈The Watchdog Interface shall use the parameter DeviceIndex for...SWS_WdgIf_00019[SWS_WdgIf_00019] Upstream requirements: SRS_MemHwAb_14021 ⌈If only one watchdog driver is configured, the Watchdog Interface...SWS_WdgIf_00020[SWS_WdgIf_00020] Upstream requirements: SRS_MemHwAb_14021 ⌈If more than one watchdog driver is configured, the Watchdog...SWS_WdgIf_00028If more than one watchdog driver is configured and the develop m ent error detection is enabled for this module, the parameter...SWS_WdgIf_00041Module Header File Imported Type Std Std_ Types.SWS_WdgIf_00047Wdg _ Set Mode Wdg.SWS_WdgIf_00048Det _ Report Error Det.SWS_WdgIf_00057[SWS_WdgIf_00057] Upstream requirements: SRS_Wdg_12018 ⌈WdgIf_SetMode shall return the value which it gets from the service...
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.
函数 WdgIf_GetVersionInfo [SWS_WdgIf_00046] 📄 PDF
void WdgIf_GetVersionInfo(Std_VersionInfoType* VersionInfoPtr);
Returns the version information.
类型 WdgIf_ModeType [SWS_WdgIf_00061] 📄 PDF
Mode type of the Wdg If module
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_00048 [SWS_WdgIf_00048] 📄 PDF
Det _ Report Error Det.h Service to report development errors.
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#18b2b7c9- Content hash
18b2b7c9- Source
- https://www.autosar.org/fileadmin/standards/R20-11/CP/AUTOSAR_SWS_WatchdogInterface.pdf#nameddest=SWS_WdgIf_00042