CLASSIC
Modul: lintrcv
Rolle: constitutive
Konfidenz: 95%
SNIP_CLASSIC_LINTRCV_SECTION_8_3_3_LinTrcv_GetOpMode
Wortlaut
8.3.3 LinTrcv_GetOpMode
[SWS_LinTrcv_00005] Definition of API function LinTrcv_GetOpMode
Upstream requirements: SRS_BSW_00310, SRS_BSW_00369, SRS_BSW_00377
⌈
Service Name
LinTrcv_GetOpMode
Syntax
Std_ReturnType LinTrcv_GetOpMode (
uint8 LinNetwork,
LinTrcv_TrcvModeType* OpMode
)
Service ID [hex]
0x02
Sync/Async
Synchronous
Reentrancy
Reentrant
Parameters (in)
LinNetwork
LIN network to which API call has to be applied
Parameters (inout)
None
▽
△
Parameters (out)
OpMode
Pointer to operation mode of the bus the API is applied to.
Return value
Std_ReturnType
E_OK: will be returned if the operation mode is detected
E_NOT_OK: will be returned, if service request is failed due to
operation mode is not detected.
Description
API detects the actual software state of LIN transceiver driver.
Available via
LinTrcv.h
⌋
[SWS_LinTrcv_00121] ⌈The function LinTrcv_GetOpMode shall return the actual
state of the LIN transceiver driver in the parameter OpMode.⌋
[SWS_LinTrcv_00122] ⌈If there is no / incorrect communication to the transceiver, the
function LinTrcv_GetOpMode shall return E_NOT_OK.⌋
[SWS_LinTrcv_00123] ⌈If development error detection for the module LinTrcv is enabled:
If called before the LinTrcv module has been initialized, the function LinTrcv_GetOpMode shall report the development error LINTRCV_E_UNINIT.⌋
[SWS_LinTrcv_00124] ⌈If development error detection for the module LinTrcv is enabled:
If called with an invalid network number LinNetwork, the function LinTrcv_GetOpMode shall report the development error LINTRCV_E_INVALID_LIN_NETWORK.⌋
[SWS_LinTrcv_00125] ⌈If development error detection for the module LinTrcv is enabled:
If called with OpMode == NULL, the function LinTrcv_GetOpMode shall report the
development error LINTRCV_E_PARAM_POINTER.⌋
Configuration: The number of supported busses is statically set in the configuration
phase.
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_LINTransceiverDriver.pdf |
|---|---|
| Dokumentseite | Seite 26 |
| Ziel-Modul | lintrcv (classic) |
| Ziel-Anforderung | SWS_Std_00005 |
| Semantische Rolle | constitutive |
| Automatisierungs-Konfidenz | 0.95 |