Specification of DIO Driver
AUTOSAR CP R20-11
5 of 56 Document ID 20: AUTOSAR_SWS_DIODriver
Table of Content
1 Introduction and functional overview ..................................................................... 7
2 Acronyms and abbreviations.................................................................................. 9
3 Related documentation ........................................................................................ 10
3.1 Deliverables of AUTOSAR ............................................................................. 10
3.2 Related specification ...................................................................................... 10
4 Constraints and assumptions ............................................................................... 11
4.1 Limitations ...................................................................................................... 11
4.2 Applicability to car domains ........................................................................... 11
5 Dependencies to other modules .......................................................................... 12
6 Requirements traceability .................................................................................... 13
7 Functional specification ........................................................................................ 19
7.1 General Behaviour ......................................................................................... 19
7.1.1 Background & Rationale ......................................................................... 19
7.1.2 Requirements .......................................................................................... 19
7.2 Initialization .................................................................................................... 21
7.2.1 Background & Rationale ......................................................................... 21
7.2.2 Requirements .......................................................................................... 21
7.3 Runtime reconfiguration ................................................................................. 22
7.3.1 Background & Rationale ......................................................................... 22
7.3.2 Requirements .......................................................................................... 22
7.4 DIO write service ............................................................................................ 22
7.4.1 Background & Rationale ......................................................................... 22
7.4.2 Requirements .......................................................................................... 22
7.5 DIO Read Service .......................................................................................... 24
7.5.1 Background & Rationale ......................................................................... 24
7.5.2 Requirements .......................................................................................... 24
7.6 Error classification .......................................................................................... 25
7.6.1 Development Errors ................................................................................ 25
7.6.2 Runtime Errors ........................................................................................ 25
7.6.3 Transient Faults ....................................................................................... 25
7.6.4 Production Errors .................................................................................... 26
7.6.5 Extended Production Errors .................................................................... 26
8 API specification ................................................................................................... 27
8.1 Imported types ............................................................................................... 27
8.2 Type definitions .............................................................................................. 27
8.2.1 Dio_ChannelType .................................................................................... 27
8.2.2 Dio_PortType .......................................................................................... 28
8.2.3 Dio_ChannelGroupType ......................................................................... 29
8.2.4 Dio_LevelType ........................................................................................ 30
8.2.5 Dio_PortLevelType .................................................................................. 30
8.3 Function definitions ........................................................................................ 31