没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
CAN Interface
Technical Reference
Version 6.13.00
Authors
Rüdiger Naas, Eugen Stripling, Carsten Gauglitz
Versions:
6.13.00
Status:
Released
Technical Reference CAN Interface
© 2019 Vector Informatik GmbH Version 6.13.00 2
1 Document Information
1.1 History
Author
Date
Version
Remarks
Eugen Stripling
Rüdiger Naas
2012-07-17
5.00
ASR R4.0 Rev 3
Eugen Stripling
2013-04-03
5.01.00
ESCAN00065368
ESCAN00066338
ESCAN00066340
Adapted according to ESCAN00066285
Adapted according to ESCAN00065289
ESCAN00066396
Adapted according to ESCAN00064304
Rüdiger Naas
2013-07-24
5.01.01
ESCAN00066794
Eugen Stripling
2013-09-27
6.00.00
Adapted due to:
AR4-307: J1939 support
AR4-438: Dynamic address lookup table
AR4-397: CAN FD support
Eugen Stripling
2014-05-19
6.01.00
CAN FD support extended: Rx-FD and Rx- and
Tx-PDUs with up to 64 bytes payload
Rüdiger Naas
2014-07-10
6.02.00
Multiple CAN driver support
Eugen Stripling
2014-08-25
6.02.00
ESCAN00077304, Restriction concerning the
handling of FD/Not-FD FullCAN-Rx-PDUs added
Eugen Stripling
2014-09-22
6.02.00
ESCAN00078524, CanTSyn added,
Post-build selectable
Eugen Stripling
2014-11-25
6.03.00
Channel specific J1939 dynamic address
Eugen Stripling
2015-01-26
6.04.00
Chapter 0 adapted to changed implementation
Eugen Stripling
2015-05-18
6.05.00
Adapted due to FEAT-366
Eugen Stripling
2015-11-20
6.06.00
Adapted due to FEAT-1429
Eugen Stripling
2016-01-09
6.06.00
ESCAN00087340
Eugen Stripling
2016-02-22
6.07.00
Feature Extended RAM-check added,
ESCAN00087587
Eugen Stripling
2016-06-24
6.08.00
Feature: Data checksum added
Eugen Stripling
2016-09-14
6.09.00
Adapted due to FEAT-2076: Behavior of Tx-PDU
filter extended
Eugen Stripling
2016-09-26
6.09.00
Adapted due to FEAT-2024: Set reception mode
Eugen Stripling
2017-01-09
6.10.00
Improved due to ESCAN00093454
Eugen Stripling
2017-02-13
Adapted due to: FEAT-2140: TMC Checksum -
Release feature FEAT-1914
Eugen Stripling
2017-02-28
ESCAN00094196, deviation from AUTOSAR
documented by ESCAN00094121 added
Eugen Stripling
2017-08-04
6.11.00
ESCAN00096181
Technical Reference CAN Interface
© 2019 Vector Informatik GmbH Version 6.13.00 3
Author
Date
Version
Remarks
Eugen Stripling
2017-08-30
6.11.01
Typos corrected
Carsten Gauglitz
2018-07-11
6.12.00
Added API description for CanIf_CheckBaudrate()
(ESCAN00094506),
extended Service IDs in Table 3-2,
extended error codes in Table 3-3,
removed CanIf_InitController() in chapter 3.6.1,
removed CanIf_Hooks.h in Table 4-1
Carsten Gauglitz
2019-02-04
6.13.00
Removed obsolete Service ID in Table 3-2,
replaced CAN channel with CAN controller in
Table 3-3,
reworked Chapter 7,
added BusMirroring feature
Table 1-1 History of the Document
1.2 Reference Documents
No.
Title
Version
[1]
AUTOSAR_SWS_CANInterface.pdf
4.2.2
4.4.0
5.0.0
6.0.0
[2]
AUTOSAR_SWS_DevelopmentErrorTracer.pdf
3.2.0
[3]
AUTOSAR_SRS_BSWGeneral.pdf
3.2.0
Table 1-2 References Documents
Please note
We have configured the programs in accordance with your specifications in the
questionnaire. Whereas the programs do support other configurations than the one
specified in your questionnaire, Vector’s release of the programs delivered to your
company is expressly restricted to the configuration you have specified in the
questionnaire.
Technical Reference CAN Interface
© 2019 Vector Informatik GmbH Version 6.13.00 4
Contents
1 Document Information ................................................................................................. 2
1.1 History ............................................................................................................... 2
1.2 Reference Documents ....................................................................................... 3
2 Introduction................................................................................................................... 9
2.1 Architecture Overview ........................................................................................ 9
3 Functional Description ............................................................................................... 11
3.1 Deviations regarding AUTOSAR standard ........................................................ 11
3.2 Feature List ...................................................................................................... 11
3.3 Initialization ...................................................................................................... 12
3.4 Transmission.................................................................................................... 14
3.4.1 Dynamic transmission ...................................................................... 14
3.4.2 Transmit-buffer ................................................................................. 14
3.4.3 Multiple Transmit-buffers .................................................................. 16
3.4.4 Tx confirmation polling support ........................................................ 16
3.4.5 Data checksum Tx ........................................................................... 17
3.5 Reception ........................................................................................................ 17
3.5.1 Ranges ............................................................................................ 18
3.5.2 DLC check ....................................................................................... 19
3.5.3 Data checksum Rx ........................................................................... 19
3.5.4 Control of reception mode of a Rx-PDU ........................................... 20
3.6 Communication Modes .................................................................................... 21
3.6.1 Controller Mode ............................................................................... 21
3.6.2 PDU Mode ....................................................................................... 21
3.7 Polling .............................................................................................................. 22
3.8 CAN FD ........................................................................................................... 23
3.9 Meta data Rx- / Tx-support .............................................................................. 23
3.10 J1939 dynamic address support ...................................................................... 23
3.11 Error Notification .............................................................................................. 24
3.12 Transceiver handling ........................................................................................ 31
3.13 Sleep / WakeUp ............................................................................................... 32
3.14 Bus Off ............................................................................................................. 35
3.15 Version Info ...................................................................................................... 35
3.16 Partial Networking ............................................................................................ 36
3.17 Bus Mirroring ................................................................................................... 37
3.18 Services used by the CAN Interface................................................................. 38
3.19 Multiple CAN drivers ........................................................................................ 38
3.20 Extended RAM-check ...................................................................................... 39
Technical Reference CAN Interface
© 2019 Vector Informatik GmbH Version 6.13.00 5
3.21 Critical Sections ............................................................................................... 40
4 Integration ................................................................................................................... 42
4.1 Files and include structure ............................................................................... 42
4.1.1 Static Files ....................................................................................... 42
4.1.2 Dynamic Files .................................................................................. 42
4.1.3 Include structure .............................................................................. 43
4.2 Compiler Abstraction and Memory Mapping ..................................................... 44
5 Configuration .............................................................................................................. 45
5.1 Configuration of Post-Build .............................................................................. 45
6 API Description ........................................................................................................... 46
6.1 Services provided by the CAN Interface ........................................................... 46
6.1.1 CanIf_GetVersionInfo ....................................................................... 46
6.1.2 CanIf_Init ......................................................................................... 46
6.1.3 CanIf_SetControllerMode ................................................................. 47
6.1.4 CanIf_GetControllerMode ................................................................ 47
6.1.5 CanIf_Transmit................................................................................. 48
6.1.6 CanIf_TxConfirmation ...................................................................... 48
6.1.7 CanIf_RxIndication ........................................................................... 49
6.1.8 CanIf_ControllerBusOff .................................................................... 49
6.1.9 CanIf_SetPduMode .......................................................................... 50
6.1.10 CanIf_GetPduMode ......................................................................... 50
6.1.11 CanIf_InitMemory ............................................................................. 51
6.1.12 CanIf_CancelTxConfirmation ........................................................... 51
6.1.13 CanIf_SetTrcvMode ......................................................................... 52
6.1.14 CanIf_GetTrcvMode ......................................................................... 52
6.1.15 CanIf_GetTrcvWakeupReason ......................................................... 53
6.1.16 CanIf_SetTrcvWakeupMode ............................................................ 53
6.1.17 CanIf_CheckWakeup ....................................................................... 54
6.1.18 CanIf_CheckValidation ..................................................................... 54
6.1.19 CanIf_CancelTransmit...................................................................... 55
6.1.20 CanIf_CancelTxNotification .............................................................. 55
6.1.21 CanIf_SetDynamicTxId .................................................................... 56
6.1.22 CanIf_ControllerModeIndication ....................................................... 56
6.1.23 CanIf_TrcvModeIndication ............................................................... 57
6.1.24 CanIf_ConfirmPnAvailability ............................................................. 57
6.1.25 CanIf_ClearTrcvWufFlagIndication ................................................... 58
6.1.26 CanIf_CheckTrcvWakeFlagIndication ............................................... 58
6.1.27 CanIf_SetBaudrate .......................................................................... 59
剩余72页未读,继续阅读
资源评论
&春风有信
- 粉丝: 1w+
- 资源: 37
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功