LIN Transceiver Driver (LinTrcv)
Controls physical bus transceiver states and wakeup on LIN lines.
Funktionen — Übersicht
void LinTrcv_Init (const LinTrcv_ConfigType* ConfigPtr);Initializes the Lin Transceiver Driver module.Std_ReturnType LinTrcv_SetOpMode (uint8 LinNetwork, LinTrcv_TrcvModeType OpMode);The internal state of the LIN transceiver driver is switched to mode given in the parameter Op Mode.Std_ReturnType LinTrcv_GetOpMode (uint8 LinNetwork, LinTrcv_TrcvModeType* OpMode);API detects the actual software state of LIN transceiver driv er.Std_ReturnType LinTrcv_GetBusWuReason (uint8 LinNetwork, LinTrcv_TrcvWakeupReasonType* Reason);This API provides the reason for the wakeup that the LIN transceiver has detected in the parameter "Reason".void LinTrcv_GetVersionInfo (Std_VersionInfoType* versioninfo);This service provides the version information of this module through the parameter "versioninfo".Std_ReturnType LinTrcv_CheckWakeup (uint8 LinNetwork);Service LinTrcv_CheckWakeup.Std_ReturnType LinTrcv_SetWakeupMode (uint8 LINNetwork, LinTrcv_TrcvWakeupModeType TrcvWakupMode);This API enables, disables and clears the notification for wakeup events on the addressed network.
Typen — Übersicht
struct LinTrcv_ConfigTypeConfiguration data structure of the Lin Trcv module.enum LinTrcv_TrcvModeTypeOperating modes of the LIN Transceiver Driverenum LinTrcv_TrcvWakeupModeTypeWake up operating modes of the LIN Transceiver Driver.enum LinTrcv_TrcvWakeupReasonTypeThis type denotes the wake up reason detected by the LIN transceiver in detail.
Funktionen & Typen — Detailansicht
function LinTrcv_Init [SWS_LinTrcv_00001] 📄 PDF
void LinTrcv_Init (const LinTrcv_ConfigType* ConfigPtr);
Initializes the Lin Transceiver Driver module.
The function LinTrcv_Init serves for the basic initialization of the LIN transceiver driver module according to the specification in [SWS_LinTrcv_00001]. The interface is declared via header file LinTrcv.h and has the numeric service ID 0x00 [SWS_LinTrcv_00001].
Usage and Parameters
The call of LinTrcv_Init is executed synchronously and has no return value (void) [SWS_LinTrcv_00001]. As the only input parameter, the input pointer ConfigPtr of type const LinTrcv_ConfigType* is passed, which points to the selected configuration data set of the LIN transceiver [SWS_LinTrcv_00001]. Further parameters such as input/output or pure output parameters do not exist for this routine [SWS_LinTrcv_00001].
Concurrency and Limitations
Regarding concurrency behavior, LinTrcv_Init is mandatorily classified as non-reentrant (Non Reentrant) [SWS_LinTrcv_00001]. Therefore, parallel or interrupting calls to this function must be excluded in the system. Moreover, no concurrent accesses may take place during initialization. Interpretation: Execution of the initialization function is likely to typically take place centrally during the system startup phase, before other services of the LIN transceiver driver are called. Question Q-9845a0c76e3146fa (open)
This text was created by an AI; all statements are based on the requirements of the AUTOSAR standard.
Implementer's Guide to follow (complexity I1)
function LinTrcv_SetOpMode [SWS_LinTrcv_00002] 📄 PDF
Std_ReturnType LinTrcv_SetOpMode (uint8 LinNetwork, LinTrcv_TrcvModeType OpMode);
The internal state of the LIN transceiver driver is switched to mode given in the parameter Op Mode.
The function LinTrcv_SetOpMode serves to switch the internal state of the LIN transceiver driver to the passed operating mode according to [SWS_LinTrcv_00002].
Usage and Semantics
- Call context and parameters: The call addresses the respective LIN network via parameter
LinNetwork, whileOpMode(typeLinTrcv_TrcvModeType) specifies the target operating mode ([SWS_LinTrcv_00002]). The interface is available viaLinTrcv.h. - Return values: The function returns
E_OKas soon as the state of the transceiver has been successfully switched to the requested mode. If the state change fails, is not accepted, or a parameter is outside the valid range,E_NOT_OKis returned ([SWS_LinTrcv_00002]). - Synchronous execution: The service operates synchronously (Sync/Async: Synchronous) under Service ID
0x01([SWS_LinTrcv_00002]).
Concurrency and Limitations
The interface is specified as non-reentrant (Non Reentrant) ([SWS_LinTrcv_00002]). Callers must therefore ensure that parallel calls for the same module or network are avoided.
This text was generated by an AI. It does not replace studying the relevant AUTOSAR specifications.
Implementer's Guide to follow (complexity I1)
function LinTrcv_GetOpMode [SWS_LinTrcv_00005] 📄 PDF
Std_ReturnType LinTrcv_GetOpMode (uint8 LinNetwork, LinTrcv_TrcvModeType* OpMode);
API detects the actual software state of LIN transceiver driv er.
function LinTrcv_GetBusWuReason [SWS_LinTrcv_00007] 📄 PDF
Std_ReturnType LinTrcv_GetBusWuReason (uint8 LinNetwork, LinTrcv_TrcvWakeupReasonType* Reason);
This API provides the reason for the wakeup that the LIN transceiver has detected in the parameter "Reason". The ability to dete ct and differentiate the possible wakeup reasons depends strongly on the LIN transceiver hardware.
function LinTrcv_GetVersionInfo [SWS_LinTrcv_00008] 📄 PDF
void LinTrcv_GetVersionInfo (Std_VersionInfoType* versioninfo);
This service provides the version information of this module through the parameter "versioninfo".
function LinTrcv_CheckWakeup [SWS_LinTrcv_00012] 📄 PDF
Std_ReturnType LinTrcv_CheckWakeup (uint8 LinNetwork);
Service LinTrcv_CheckWakeup.
The synchronous function LinTrcv_CheckWakeup serves to check whether a wakeup event was detected on an addressed LIN network [SWS_LinTrcv_00012]. It informs the calling entity directly about the presence of a corresponding wakeup condition [SWS_LinTrcv_00012].
Call and Parameters
The function has the service ID 0x07 and is provided via header file LinTrcv.h [SWS_LinTrcv_00012]:
- LinNetwork (input parameter,
uint8): Designates the LIN network to which the API call shall be applied [SWS_LinTrcv_00012].
Return Values
The return value of type Std_ReturnType signals the result of the wakeup check [SWS_LinTrcv_00012]:
E_OK: A wakeup event was successfully detected on the specified LIN network [SWS_LinTrcv_00012].E_NOT_OK: No wakeup event was identified on the specified LIN network [SWS_LinTrcv_00012].
Concurrency
The execution of LinTrcv_CheckWakeup occurs fully synchronously and is specified as reentrant [SWS_LinTrcv_00012]. The synchronous flow ensures that the result is directly available upon function return.
This usage note was generated by an AI based on the specification for the LIN Transceiver Driver in AUTOSAR CP R20-11.
function LinTrcv_SetWakeupMode [SWS_LinTrcv_00009] 📄 PDF
Std_ReturnType LinTrcv_SetWakeupMode (uint8 LINNetwork, LinTrcv_TrcvWakeupModeType TrcvWakupMode);
This API enables, disables and clears the notification for wakeup events on the addressed network. A vailable via Lin Trcv.h
The synchronous function LinTrcv_SetWakeupMode serves to enable, disable, and clear notifications for wakeup events on the addressed LIN network [SWS_LinTrcv_00009]. It is declared via header file LinTrcv.h and has the service ID 0x05 [SWS_LinTrcv_00009].
Parameters and Return Values
The function expects two input parameters [SWS_LinTrcv_00009]:
LINNetwork(uint8): Designates the concrete LIN network to which the API shall be applied [SWS_LinTrcv_00009].TrcvWakupMode(LinTrcv_TrcvWakeupModeType): Passes the requested wakeup mode or reason for the transceiver [SWS_LinTrcv_00009].
As return value, a status of type Std_ReturnType is returned [SWS_LinTrcv_00009]:
E_OK: Indicates that the state of the transceiver was successfully transitioned into the requested mode [SWS_LinTrcv_00009].E_NOT_OK: Signals that the call failed due to development errors or that the desired wakeup mode could not be set [SWS_LinTrcv_00009].
Concurrency and Limitations
The interface is specified as non-reentrant (non Reentrant) and performs the state change synchronously [SWS_LinTrcv_00009]. Calling components must therefore ensure that no parallel calls take place for the same interface.
This usage note was generated by an AI based on the AUTOSAR Classic R20-11 specification.
Implementer's Guide to follow (complexity I1)
type LinTrcv_ConfigType [SWS_LinTrcv_00172] 📄 PDF
Configuration data structure of the Lin Trcv module. AUTOSAR CP R20 - of Document ID : AUTOSAR_SWS_LINTransceiverDriver
type LinTrcv_TrcvModeType [SWS_LinTrcv_00168] 📄 PDF
Operating modes of the LIN Transceiver Driver
The enumeration type LinTrcv_TrcvModeType defines the operating modes for the LIN transceiver driver according to [SWS_LinTrcv_00168]. The type definition is located in header file Lin_GeneralTypes.h and is thus available to higher-level software layers [SWS_LinTrcv_00168].
The range of values comprises three standardized states for the transceiver [SWS_LinTrcv_00168]:
LINTRCV_TRCV_MODE_NORMAL: Identifies the regular operating mode (Transceiver mode NORMAL) of the LIN transceiver [SWS_LinTrcv_00168].LINTRCV_TRCV_MODE_STANDBY: Represents the standby mode (Transceiver mode STANDBY) of the transceiver [SWS_LinTrcv_00168].LINTRCV_TRCV_MODE_SLEEP: Describes the sleep mode (Transceiver mode SLEEP) for the LIN transceiver [SWS_LinTrcv_00168].
Regarding usage and functional interaction, this enumeration type serves for the uniform modeling of transceiver states [SWS_LinTrcv_00168]. The type is presumably used as a parameter or return value in driver functions to request or query specific state transitions between normal operation, standby, and power-saving sleep state. Question Q-8966f1299f224eff (open) Specific call contexts, error codes, and concurrency and reentrancy properties are not anchored in this data type itself, but depend on the respective APIs of the transceiver driver [SWS_LinTrcv_00168].
This text was generated by an AI and serves for technical orientation.
Implementer's Guide to follow (complexity I1)
type LinTrcv_TrcvWakeupModeType [SWS_LinTrcv_00169] 📄 PDF
Wake up operating modes of the LIN Transceiver Driver.
Usage and Value Range
The type LinTrcv_TrcvWakeupModeType is an enumeration that defines the operating modes for wakeup events of the LIN transceiver driver [SWS_LinTrcv_00169]. It is provided via header file Lin_GeneralTypes.h [SWS_LinTrcv_00169].
The enumeration comprises the following values for controlling the addressed network [SWS_LinTrcv_00169]:
LINTRCV_WUMODE_ENABLE: Enables the notification for wakeup events on the addressed network [SWS_LinTrcv_00169].LINTRCV_WUMODE_DISABLE: Disables the notification for wakeup events on the addressed network [SWS_LinTrcv_00169].LINTRCV_WUMODE_CLEAR: Clears a previously stored wakeup event on the addressed network [SWS_LinTrcv_00169].
Error Handling and Boundary Conditions
No specific error codes, return values, or DET/DEM error messages are defined in the specification for the type itself [SWS_LinTrcv_00169]. As a data type, it is not subject to any direct reentrancy or execution restrictions.
Interaction
Interpretation: The type is likely to serve as an input parameter in API functions of the LIN transceiver driver to enable or disable wakeup detection on a network-specific basis or to reset the wakeup status [SWS_LinTrcv_00169]. Question Q-cfb3e28d7baefc72 (open)
This text was created by an AI. It is based exclusively on the specification data from SWS_LinTrcv_00169.
Implementer's Guide to follow (complexity I1)
type LinTrcv_TrcvWakeupReasonType [SWS_LinTrcv_00170] 📄 PDF
This type denotes the wake up reason detected by the LIN transceiver in detail.
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/CP_MOD_LinTrcv- Status
- unspecified
- Version
AUTOSAR/AP/record/CP_MOD_LinTrcv@rel:R20-11#560801b0- Content hash
560801b0- Source
- https://www.autosar.org/fileadmin/standards/R20-11/CP/AUTOSAR_SWS_LINTransceiverDriver.pdf#nameddest=SWS_LinTrcv_00001
gemini-3.8-flash-low· 2026-10-13 · German original