DEENESPTFRRUARHIKOZHNL
CLASSIC Modul: fr Rolle: constitutive Konfidenz: 95%

SNIP_CLASSIC_FR_SECTION_8_4_9_Fr_SetWakeupChannel

Quelle: SWS_FlexRayDriver.pdf (Seite 49) • Ziel-Anforderung: SWS_Std_00005

Wortlaut

8.4.9 Fr_SetWakeupChannel [SWS_Fr_00091] Definition of API function Fr_SetWakeupChannel Upstream requirements: SRS_Fr_05117 ⌈ Service Name Fr_SetWakeupChannel Syntax Std_ReturnType Fr_SetWakeupChannel ( uint8 Fr_CtrlIdx, Fr_ChannelType Fr_ChnlIdx ) Service ID [hex] 0x07 Sync/Async Synchronous Reentrancy Non Reentrant for the same device Fr_CtrlIdx Index of FlexRay CC within the context of the FlexRay Driver. Parameters (in) Fr_ChnlIdx Index of FlexRay channel within the context of the FlexRay CC Fr_CtrlIdx. Valid values are FR_CHANNEL_A and FR_ CHANNEL_B. Parameters (inout) None Parameters (out) None Return value Std_ReturnType E_OK: API call finished successfully. E_NOT_OK: API call aborted due to errors. Description Sets a wakeup channel. Available via Fr.h ⌋ [SWS_Fr_00202] ⌈The function Fr_SetWakeupChannel() shall perform the following tasks on FlexRay CC Fr_CtrIdx: 1. Change the CC’s POCState to POC:config by invoking the CHI command ’CONFIG’. 2. Configure the wakeup channel according to parameter Fr_ChnlIdx. 3. Change the CC’s POCState to POC:ready again by invoking the CHI command ’CONFIG_COMPLETE’. 4. Return E_OK. ⌋ [SWS_Fr_00201] ⌈If the function Fr_SetWakeupChannel() is able to and detects a hardware error while performing the requested functionality, then it shall call Dem_SetEventStatus() (FR_E_CTRL_TESTRESULT, DEM_EVENT_STATUS_FAILED) and return E_NOT_OK.⌋ [SWS_Fr_00197] ⌈If development error detection for the Fr module is enabled, and if the function Fr_SetWakeupChannel() is called before the successful initialization of Fr, then the function Fr_SetWakeupChannel() shall raise the development error FR_E_INIT_FAILED.⌋ [SWS_Fr_00198] ⌈If development error detection for the Fr module is enabled, then the function Fr_SetWakeupChannel() shall check the validity of the parameter Fr_CtrlIdx. If Fr_CtrlIdx is invalid, then the function Fr_SetWakeupChannel() shall raise the development error FR_E_INV_CTRL_IDX.⌋ [SWS_Fr_00199] ⌈If development error detection for the Fr module is enabled, then the function Fr_SetWakeupChannel() shall check the validity of the parameter Fr_ChnlIdx. If Fr_ChnlIdx is invalid, then the function Fr_SetWakeupChannel() shall raise the development error FR_E_INV_CHNL_IDX.⌋ [SWS_Fr_00200] ⌈The function Fr_SetWakeupChannel() shall check whether the CC Fr_CtrlIdx’s POCState is POC:ready. If the POCState is not ’POC:ready’, then the function Fr_SetWakeupChannel() shall raise the runtime error FR_E_INV_POCSTATE.⌋

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_FlexRayDriver.pdf
Dokumentseite Seite 49
Ziel-Modul fr (classic)
Ziel-Anforderung SWS_Std_00005
Semantische Rolle constitutive
Automatisierungs-Konfidenz 0.95