
Specification of LIN Transceiver Driver
AUTOSAR CP Release 4.4.0
5 of 55 Document ID 257: AUTOSAR_SWS_LINTransceiverDriver
- AUTOSAR confidential -
Table of Contents
1 Introduction .......................................................................................................... 7
1.1 Goal of LIN transceiver driver ........................................................................ 7
1.2 Explicitly uncovered LIN transceiver functionality .......................................... 8
2 Acronyms and abbreviations ............................................................................... 9
3 Related documentation...................................................................................... 10
3.1 Input documents .......................................................................................... 10
3.2 Related standards and norms ..................................................................... 10
3.3 Related specification ................................................................................... 10
4 Constraints and assumptions ............................................................................ 12
4.1 Limitations ................................................................................................... 12
4.2 Applicability to car domains ......................................................................... 12
5 Dependencies to other modules ........................................................................ 13
5.1 File structure ................................................................................................ 13
5.1.1 Naming convention for transceiver driver implementation .................... 13
5.1.2 Code file structure ................................................................................. 13
5.1.3 Header file structure .............................................................................. 14
6 Requirements Traceability ................................................................................. 15
7 Functional specification ..................................................................................... 22
7.1 LIN transceiver driver operation modes ....................................................... 22
7.2 LIN transceiver hardware operation modes ................................................. 23
7.3 LIN transceiver wakeup types ..................................................................... 23
7.4 LIN transceiver wakeup modes ................................................................... 24
7.5 Error classification ....................................................................................... 25
7.5.1 Development Errors .............................................................................. 25
7.5.2 Runtime Errors ...................................................................................... 25
7.5.3 Transient Faults .................................................................................... 26
7.6 Error notification .......................................................................................... 26
7.7 Preconditions for driver initialization ............................................................ 27
7.8 Instance concept ......................................................................................... 27
7.9 Wait states ................................................................................................... 27
8 API specification ................................................................................................ 28
8.1 Imported types ............................................................................................. 28
8.2 Type definitions ........................................................................................... 28
8.2.1 LinTrcv_ConfigType .............................................................................. 28
8.2.2 LinTrcv_TrcvModeType ........................................................................ 28
8.2.3 LinTrcv_TrcvWakeupModeType ........................................................... 29
8.2.4 LinTrcv_TrcvWakeupReasonType ........................................................ 29
8.3 Function definitions...................................................................................... 30
8.3.1 LinTrcv_Init ........................................................................................... 30
8.3.2 LinTrcv_SetOpMode ............................................................................. 31
8.3.3 LinTrcv_GetOpMode ............................................................................. 34