Specification of OCU Driver
AUTOSAR CP R21-11
5 of 76 Document ID 615: AUTOSAR_SWS_OCUDriver
Table of Contents
1 Introduction and functional overview ..................................................................... 7
2 Acronyms and abbreviations.................................................................................. 8
3 Related documentation .......................................................................................... 9
3.1 Input documents ............................................................................................... 9
4 Constraints and assumptions ............................................................................... 10
4.1 Assumptions ................................................................................................... 10
4.1.1 Clock ........................................................................................................ 10
4.1.2 Resources ............................................................................................... 10
4.1.3 Counting and comparing ......................................................................... 10
4.2 Limitations ...................................................................................................... 11
4.3 Applicability to car domains ........................................................................... 11
5 Dependencies to other modules .......................................................................... 12
5.1 File structure .................................................................................................. 12
5.1.1 Code file structure ................................................................................... 12
5.1.2 Header file structure ................................................................................ 12
6 Requirements traceability .................................................................................... 13
7 Functional specification ........................................................................................ 22
7.1 General behavior............................................................................................ 22
7.2 Version check ................................................................................................. 23
7.2.1 Background & Rationale ......................................................................... 23
7.3 Time Unit Ticks .............................................................................................. 23
7.3.1 Background & Rationale ......................................................................... 23
7.3.2 Requirements .......................................................................................... 23
7.4 Error classification .......................................................................................... 24
7.4.1 Development Errors ................................................................................ 24
7.4.2 Runtime Errors ........................................................................................ 25
7.4.3 Transient Faults ....................................................................................... 25
7.4.4 Production Errors .................................................................................... 25
7.4.5 Extended Production Errors .................................................................... 25
7.5 Error Detection ............................................................................................... 25
7.6 Error Notification ............................................................................................ 25
7.7 Debug Support ............................................................................................... 26
8 API specification ................................................................................................... 27
8.1 Imported types ............................................................................................... 27
8.2 Type definitions .............................................................................................. 27
8.2.1 Ocu_ChannelType .................................................................................. 27
8.2.2 Ocu_ValueType ....................................................................................... 27
8.2.3 Ocu_PinStateType .................................................................................. 28
8.2.4 Ocu_PinActionType................................................................................. 28
8.2.5 Ocu_ConfigType ..................................................................................... 28
8.2.6 Ocu_ReturnType ..................................................................................... 29