CLASSIC
Modul: linsm
Rolle: constitutive
Konfidenz: 95%
SNIP_CLASSIC_LINSM_SECTION_8_3_4_LinSM_GetCurrentComMode
Wortlaut
8.3.4 LinSM_GetCurrentComMode
[SWS_LinSM_00122] Definition of API function LinSM_GetCurrentComMode
Upstream requirements: SRS_BSW_00369
⌈
Service Name
LinSM_GetCurrentComMode
Syntax
Std_ReturnType LinSM_GetCurrentComMode (
NetworkHandleType network,
ComM_ModeType* mode
)
Service ID [hex]
0x41
Sync/Async
Synchronous
Reentrancy
Reentrant for different networks. Non reentrant for the same network.
Parameters (in)
network
Handle of the communication channel
Parameters (inout)
None
Parameters (out)
mode
Pointer to the memory location where the current communication
mode shall be stored
Return value
Std_ReturnType
E_OK: Request accepted
E_NOT_OK: Request not accepted
Description
Query the current communication mode.
Available via
LinSM.h
⌋
[SWS_LinSM_00123] ⌈If LinSMDevErrorDetect is enabled: If the network parameter
has an invalid value, then the error-code LINSM_E_NONEXISTENT_NETWORK shall
be reported to the DET module and E_NOT_OK shall be returned.⌋
[SWS_LinSM_00124] ⌈If LinSMDevErrorDetect is enabled: If the mode pointer parameter is invalid (e.g. NULL), then the error-code LINSM_E_PARAM_POINTER shall be
reported to the DET module and E_NOT_OK shall be returned.⌋
[SWS_LinSM_00125]
Upstream requirements: SRS_BSW_00406
⌈If LinSMDevErrorDetect is enabled: If the state LINSM_UNINIT is active, then the
error-code LINSM_E_UNINIT shall be reported to the DET module and E_NOT_OK
shall be returned⌋
[SWS_LinSM_00180] ⌈If active state is LINSM_NO_COM the state COMM_NO_
COMMUNICATION shall be returned.⌋
[SWS_LinSM_00181] ⌈If active state is LINSM_FULL_COM the state COMM_FULL_
COMMUNICATION shall be returned.⌋
[SWS_LinSM_00182] ⌈If active state is LINSM_UNINIT the state COMM_NO_COMMUNICATION shall be returned. This is also captured above when the DET is enabled.
This is to be defensive.⌋
Note that COMM_SILENT_COMMUNICATION is not used by the LinSM module.
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_LINStateManager.pdf |
|---|---|
| Dokumentseite | Seite 35 |
| Ziel-Modul | linsm (classic) |
| Ziel-Anforderung | SWS_Std_00005 |
| Semantische Rolle | constitutive |
| Automatisierungs-Konfidenz | 0.95 |