CLASSIC
Modul: linif
Rolle: constitutive
Konfidenz: 95%
SNIP_CLASSIC_LINIF_SECTION_8_2_8_LinIf_GetTrcvMode
Wortlaut
8.2.8 LinIf_GetTrcvMode
[SWS_LinIf_00545] Definition of API function LinIf_GetTrcvMode
Upstream requirements: SRS_Lin_01587
⌈
Service Name
LinIf_GetTrcvMode
Syntax
Std_ReturnType LinIf_GetTrcvMode (
NetworkHandleType Channel,
LinTrcv_TrcvModeType* TransceiverModePtr
)
Service ID [hex]
0x09
Sync/Async
Synchronous
Reentrancy
Reentrant
Parameters (in)
Channel
Identification of the LIN channel
Parameters (inout)
None
Parameters (out)
TransceiverModePtr
Pointer to a memory location where output value will be stored.
Return value
Std_ReturnType
E_OK: The call of the LIN Transceiver Driver’s API service has
returned E_OK.
E_NOT_OK: The call of the LIN Transceiver Driver’s API service
has returned E_NOT_OK or channel parameter is invalid or pointer
is NULL.
Description
Returns the actual state of a LIN Transceiver Driver.
Available via
LinIf.h
⌋
[SWS_LinIf_00541] ⌈This service shall invoke the underlying function LinTrcv_
GetOpMode(LinNetwork, OpMode)
for
the
corresponding
requested
LIN
transceiver.⌋
[SWS_LinIf_00546] ⌈If development error detection is enabled and an invalid value
for Channel is given, the function LinIf_GetTrcvMode shall report LINIF_E_NONEXISTENT_CHANNEL to the default error tracer.⌋
[SWS_LinIf_00571] ⌈If development error detection is enabled and the parameter
TransceiverModePtr has an invalid value, the function LinIf_GetTrcvMode shall
raise the development error code LINIF_E_PARAM_POINTER.⌋
[SWS_LinIf_00635] ⌈The function LinIf_GetTrcvMode is required only if at least
one LIN channel uses the LIN transceiver driver. This function shall be pre-compile time
configurable On/Off by the configuration parameter LinIfTrcvDriverSupported.⌋
Caveats: The LIN Interface has to be initialized with a call of LinIf_Init before this
API service may be called, see [SRS_BSW_00487].
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_LINInterface.pdf |
|---|---|
| Dokumentseite | Seite 91 |
| Ziel-Modul | linif (classic) |
| Ziel-Anforderung | SWS_Std_00005 |
| Semantische Rolle | constitutive |
| Automatisierungs-Konfidenz | 0.95 |