SNIP_CLASSIC_CAN_SECTION_8_3_2_10_Can_GetCurrentTime
Wortlaut
8.3.2.10 Can_GetCurrentTime
[SWS_CAN_91026] Definition of API function Can_GetCurrentTime
Status:
DRAFT
Upstream requirements: SRS_Can_01181
⌈
Service Name
Can_GetCurrentTime (draft)
Syntax
Std_ReturnType Can_GetCurrentTime (
uint8 ControllerId,
Can_TimeStampType* timeStampPtr
)
Service ID [hex]
0x32
Sync/Async
Synchronous
Reentrancy
Non Reentrant
Parameters (in)
ControllerId
Index of the addresses CAN controller.
Parameters (inout)
None
Parameters (out)
timeStampPtr
current time stamp
Return value
Std_ReturnType
E_OK: successful
E_NOT_OK: failed
Description
Returns a time value out of the HW registers according to the capability of the HW
Important Note: Can_GetCurrentTime may be called within an exclusive area.
Tags: atp.Status=draft
Available via
Can.h
⌋
[SWS_Can_00521]
Status: DRAFT
⌈If development error detection is enabled: the function shall check that the service
Can_Init was previously called. If the check fails, the function shall raise the development error CAN_E_UNINIT.⌋
[SWS_Can_00522]
Status: DRAFT
⌈If development error detection is enabled: the function shall check the parameter
ControllerId for being valid. If the check fails, the function shall raise the development
error CAN_E_PARAM_CONTROLLER.⌋
[SWS_Can_00523]
Status: DRAFT
⌈If development error detection is enabled: the function shall check the parameter
timeStampPtr for being valid. If the check fails, the function shall raise the development
error CAN_E_PARAM_POINTER.⌋
[SWS_Can_00524]
Status: DRAFT
⌈The function shall be pre-compile time configurable On/Off by the configuration parameter: CanGlobalTimeSupport.⌋
Versionen & Provenienz · Zugeordnete Anforderungen
Diese Angaben zeigt der Versions-Explorer.
Begründung & Zuweisungs-Evidenz
The passage defines the function Can_GetCurrentTime which returns the Std_ReturnType datatype.
Dokumenten-Herkunft & Rückverfolgbarkeit
| Spezifikations-Dokument | SWS_CANDriver.pdf |
|---|---|
| Dokumentseite | Seite 71 |
| Ziel-Modul | can (classic) |
| Ziel-Anforderung | SWS_Std_00005 |
| Semantische Rolle | diffundiert |
| Automatisierungs-Konfidenz | 0.95 |