CLASSIC
Modul: canif
Rolle: constitutive
Konfidenz: 95%
SNIP_CLASSIC_CANIF_SECTION_8_3_19_CanIf_CheckValidation
Wortlaut
8.3.19 CanIf_CheckValidation
[SWS_CANIF_00178] Definition of API function CanIf_CheckValidation ⌈
Service Name
CanIf_CheckValidation
Syntax
Std_ReturnType CanIf_CheckValidation (
EcuM_WakeupSourceType WakeupSource
)
Service ID [hex]
0x12
Sync/Async
Synchronous
Reentrancy
Reentrant
Parameters (in)
WakeupSource
Source device which initiated the wake-up event and which has to
be validated: CAN controller or CAN transceiver
Parameters (inout)
None
Parameters (out)
None
Return value
Std_ReturnType
E_OK: Will be returned, if the check validation request has been
accepted.
E_NOT_OK: Will be returned, if the check validation request has
not been accepted.
Description
This service is performed to validate a previous wakeup event.
Available via
CanIf.h
⌋
Note: Integration Code calls this function
[SWS_CANIF_00404]
Upstream requirements: SRS_BSW_00323
⌈If parameter WakeupSource of CanIf_CheckValidation() has an invalid value,
the CanIf shall report development error code CANIF_E_PARAM_WAKEUPSOURCE to
the Det_ReportError service of the DET module, when CanIf_CheckValidation() is called.⌋
Note: The call context of CanIf_CheckValidation() is either on interrupt level
(interrupt mode) or on task level (polling mode).
Caveat:
The corresponding CAN controller and transceiver must be switched
on via CanTrcv_SetOpMode(Transceiver, CANTRCV_TRCVMODE_NORMAL) and
Can_SetControllerMode(Controller, CAN_CS_STARTED)
and
the
corresponding mode indications must have been called.
[SWS_CANIF_00408] ⌈Configuration of CanIf_CheckValidation(): If no validation is needed, this API can be omitted by disabling of CanIfPublicWakeupCheckValidSupport.⌋
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_CANInterface.pdf |
|---|---|
| Dokumentseite | Seite 102 |
| Ziel-Modul | canif (classic) |
| Ziel-Anforderung | SWS_Std_00005 |
| Semantische Rolle | constitutive |
| Automatisierungs-Konfidenz | 0.95 |