logo资料库

AUTOSAR_SWS_CANTransceiverDriver_merged_abroad_with_bookmark.pdf

第1页 / 共84页
第2页 / 共84页
第3页 / 共84页
第4页 / 共84页
第5页 / 共84页
第6页 / 共84页
第7页 / 共84页
第8页 / 共84页
资料共84页,剩余部分请下载后查看
1 Introduction
1.1 Goal of CAN Transceiver Driver
1.2 Explicitly uncovered CAN transceiver functionality
1.3 Single wire CAN transceivers according SAE J2411
2 Acronyms and abbreviations
3 Related documentation
3.1 Input documents
3.2 Related standards and norms
3.3 Related specification
4 Constraints and assumptions
4.1 Limitations
4.2 Applicability to car domains
5 Dependencies to other modules
5.1 File structure
5.1.1 Code file structure
6 Requirements Traceability
7 Functional specification
7.1 CAN transceiver driver operation modes
7.1.1 Operation mode switching
7.2 CAN transceiver hardware operation modes
7.2.1 Example for temporary “Go-To-Sleep” mode
7.2.2 Example for “PowerOn/ListenOnly” mode
7.3 CAN transceiver wake up types
7.4 Enabling/Disabling wakeup notification
7.5 CAN transceiver wake up modes
7.6 Error classification
7.6.1 Development Errors
7.6.2 Runtime Errors
7.6.3 Transient Faults
7.6.4 Production Errors
7.6.5 Extended Production Errors
7.7 Preconditions for driver initialization
7.8 Instance concept
7.9 Wait states
7.10 Transceivers with selective wakeup functionality
8 API specification
8.1 Imported types
8.2 Type definitions
8.3 Function definitions
8.3.1 CanTrcv_Init
8.3.2 CanTrcv_SetOpMode
8.3.3 CanTrcv_GetOpMode
8.3.4 CanTrcv_GetBusWuReason
8.3.5 CanTrcv_VersionInfo
8.3.6 CanTrcv_ SetWakeupMode
8.3.7 CanTrcv_GetTrcvSystemData
8.3.8 CanTrcv_ClearTrcvWufFlag
8.3.9 CanTrcv_ReadTrcvTimeoutFlag
8.3.10 CanTrcv_ClearTrcvTimeoutFlag
8.3.11 CanTrcv_ReadTrcvSilenceFlag
8.3.12 CanTrcv_CheckWakeup
8.3.13 CanTrcv_SetPNActivationState
8.3.14 CanTrcv_CheckWakeFlag
8.3.15 CanTrcv_DeInit
8.4 Scheduled functions
8.4.1 CanTrcv_MainFunction
8.4.2 CanTrcv_MainFunctionDiagnostics
8.5 Call-back notifications
8.6 Expected Interfaces
8.6.1 Mandatory Interfaces
8.6.2 Optional Interfaces
8.6.3 Configurable interfaces
9 Sequence diagram
9.1 Wake up with valid validation
9.2 Interaction with DIO module
9.3 De-Initialization (SPI Synchronous)
9.4 De-Initialization (SPI Asynchronous)
10 Configuration specification
10.1 How to read this chapter
10.2 Containers and configuration parameters
10.2.1 CanTrcv
10.2.2 CanTrcvGeneral
10.2.3 CanTrcvConfigSet
10.2.4 CanTrcvChannel
10.2.5 CanTrcvAccess
10.2.6 CanTrcvDioAccess
10.2.7 CanTrcvDioChannelAccess
10.2.8 CanTrcvSpiAccess
10.2.9 CanTrcvSpiSequence
10.2.10 CanTrcvDemEventParameterRefs
10.2.11 CanTrcvPartialNetwork
10.2.12 CanTrcvPnFrameDataMaskSpec
10.3 Published Information
11 Not applicable requirements
Document Title Specification of CAN Transceiver Driver AUTOSAR CP R20-11 Specification of CAN Trans- ceiver Driver Document Owner Document Responsibility Document Identification No AUTOSAR AUTOSAR 71 Document Status published Part of AUTOSAR Standard Classic Platform Part of Standard Release R21-11 Document Change History Date 2021-11-25 R21-11 AUTOSAR Release Changed by Change Description  Updated state machine behavior for Release Management CanTrcv_Init  Editorial changes 文件名 文件所有者 文件责任 文件识别号 文件状态 AUTOSAR标准的一部分 标准发布的一部分 CAN收发器驱动器规范 CAN收发器驱动器规格 AUTOSAR AUTOSAR 71 published 经典平台 R21-11 文档变更历史 发布更改者 Date 2021-11-25 R21-11 AUTOSAR 变更说明 更新了状态机行为 Release Management 编辑修改 2020-11-30 R20-11 AUTOSAR  Modeling of Development Errors, 2020-11-30 R20-11 AUTOSAR Release Management Runtime Errors, and Transient Faults.  SOME/IP transformation props miss- ing is added.  Clean up of APIs with return type void, that specify a return value.  CanTrcv Operation Mode Inconsist- encies corrected. Release Management 2019-11-28 R19-11 AUTOSAR  Sequence diagram De-Initialization 2019-11-28 R19-11 AUTOSAR Release Management (SPI Synchronous) and De- Initialization (SPI Asynchronous) split into different pages.  Minor correction in CanTrcv initializa- tion functionality.  Changed Document Status from Fi- nal to published Release Management 2018-10-31 4.4.0 AUTOSAR  Removed DET reporting behavior for 2018-10-31 4.4.0 AUTOSAR Release Management the APIs CanTrcv_MainFunctionDiagnostics and CanTrcv_MainFunction during un-initialized state. Release Management 开发错误建模, 运行时错误和瞬态错误 一些IP转型道具缺失- 添加了ing。 清理具有返回类型的API void,指定返回值。 CanTrcv操作模式不一致- 序列图去初始化 (SPI同步)和DeInitialization(S PI异步)分为不同的页面。 CanTrcv初始化中的小修正 化功能。 将文档状态从Fi-更改为 最终发布 删除了DET报告行为 未初始化状态下的APICanTrcv_Main FunctionDiagnostics和CanTrcv_Mai nFunction。 1 of 84 Document ID 71: AUTOSAR_SWS_CANTransceiverDriver 1 of 84 文档ID71:AUTOSAR_SWS_CANTransceiverDriver 趣卡翻译(fanyi.qukaa.com)
Specification of CAN Transceiver Driver AUTOSAR CP R20-11 Date 2017-12-08 Document Change History Release Changed by Change Description 4.3.1 AUTOSAR  CanTrcv_DeInit API added in state Release Management machine diagram  Editorial changes 'Runtime errors' 2016-11-30 4.3.0 AUTOSAR Re- lease Man- agement added  Added CanTrcv_DeInit API  Sequence diagram updated  CanTrcvGetVersionInfo renamed to CanTrcvVersionInfoApi  Updated Configuration class for con- figuration parameters  Minor corrections in the MainFunc- tion periods Release Management Transceiver.  Minor corrections in wait state func- tionality.  Clarification regarding the wakeup sources. CAN收发器驱动器规范 文档变更历史 发布更改者 变更说明 Date 2017-12-08 4.3.1 AUTOSAR 2016-11-30 4.3.0 Release Management AUTOSAR发布 管理 在状态中添加CanTrcv_DeInitAPI 机器图 编辑更改“运行时错误” 添加了CanTrcv_DeInitAPI更新了序列图 CanTrcvGetVersionInfo重命名为 更新了con-的配置类 MainFunc中的小修正 化时期 修改了CAN的配置 关于唤醒的澄清 修改了SPI接口的配置 修改了命名约定 收发器驱动器 从计划中删除了“计时”行 uled函数API表。 编辑性变更删除了有关变更文档的章节 2014-10-31 4.2.1 AUTOSAR  Revised the configuration of CAN 2014-10-31 4.2.1 AUTOSAR Release Management 等待状态功能的小修正 2014-03-31 4.1.3 AUTOSAR  Revised configuration for SPI inter- 2014-03-31 4.1.3 AUTOSAR Release Management face.  Revised naming convention for transceiver driver Release Management 2013-10-31 4.1.2 AUTOSAR  Removed 'Timing' row from sched- 2013-10-31 4.1.2 AUTOSAR Release Management Release Management 2013-03-15 4.1.1 AUTOSAR Administration uled functions API table.  Editorial changes  Removed chapter(s) on change doc- umentation  Updated sequence diagrams  Reworked according to the new SWS_BSWGeneral 2013-03-15 4.1.1 AUTOSAR Administration 更新了序列图根据新的序列图进行了 重新设计 SWS_BSWGeneral 2 of 84 Document ID 71: AUTOSAR_SWS_CANTransceiverDriver 2 of 84 文档ID71:AUTOSAR_SWS_CANTransceiverDriver 趣卡翻译(fanyi.qukaa.com)
Date 2011-12-22 Specification of CAN Transceiver Driver AUTOSAR CP R20-11 Document Change History Release Changed by Change Description 4.0.3 AUTOSAR Administration  Added support for Partial Networking  Implemented Production error con- cept  Updated Baud rate configuration pa- rameter handling  Added support to detect that power- on was caused by CAN communica- tion  Reentrancy attribute is corrected for APIs  Corrections in few requirements  Optional Interfaces Table is correct- ed 2009-12-18 4.0.1 AUTOSAR  CanTrcv state names changed and 2009-12-18 4.0.1 AUTOSAR Administration state diagram modified Administration  Usage of SBCs are no longer re- stricted  Mode switch requests to the current mode are allowed  CanTrvc driver has to invoke CanIf_TrcvModeIndication after each mode switch request, when the re- quested mode has been reached 2010-02-02 3.1.4 AUTOSAR  Wakeup event reporting: In R4.0, 2010-02-02 3.1.4 AUTOSAR Administration CanTrcv stores wakeup events. CanIf invokes function CanTrcv_CheckWakeup() periodical- ly to check for wakeup events.  Wakeup modes: In R4.0, wakeup through interrupt mechanism is not supported. Only POLLING and NOT_SUPPORTED wakeup modes are available in CanTrcv.  Sleep Wait Count added: Wait count for transitioning into sleep mode (CanTrcvSleepWaitCount) added.  Legal disclaimer revised Administration 2008-08-13 3.1.1 AUTOSAR  Legal disclaimer revised Administration 2008-08-13 3.1.1 AUTOSAR Administration CAN收发器驱动器规范 Date 2011-12-22 文档变更历史 发布更改者 变更说明 4.0.3 AUTOSAR Administration 增加了对部分网络的支持实施了生产错误 控制 更新了波特率配置参数 添加了对检测电源的支持 亮是由CAN通讯引起的 可重入属性已更正 修正了一些要求可选接口表是正确的- CanTrcv状态名称已更改,并且 状态图修改 SBC的使用不再重新 模式切换请求到当前 模式被允许 CanTrvc驱动程序必须调用 每次模式切换请求后,当达到所请求 的模式时,CanIf_TrcvModeInspiratio n 唤醒事件报告:在R4.0中, CanTrcv存储唤醒事件。 CanIf调用函数 CanTrcv_CheckWakeup()定期检查唤 醒事件。 唤醒模式:在R4.0中,唤醒 不支持通过中断机制。CanTrcv中仅 提供POLLING和NOT_SUPPORTED唤 醒模式。 添加睡眠等待计数:等待计数 添加了用于转换到睡眠模式(CanTr cvSleepWaitCount)的功能。 修订法律免责声明 修订法律免责声明 3 of 84 Document ID 71: AUTOSAR_SWS_CANTransceiverDriver 3 of 84 文档ID71:AUTOSAR_SWS_CANTransceiverDriver 趣卡翻译(fanyi.qukaa.com)
Specification of CAN Transceiver Driver AUTOSAR CP R20-11 Document Change History Date 2007-12-21 Release Changed by Change Description 3.0.1 AUTOSAR  Changed API name Administration CanIf_TrcvWakeupByBus to CanIf_SetWakeupEvent Date 2007-12-21 CAN收发器驱动器规范 文档变更历史 发布更改者 变更说明 3.0.1 AUTOSAR Administration  New error code CANTRCV_E_PARAM_TRCV_WAK EUP_MODE has been added.  Output parameter in the API’s CanTrcv_GetOpMode, CanTrcv_GetBusWuReason and CanTrcv_GetVersionInfo is changed to pointer type.  API CanTrcv_CB_WakeupByBus has been modified  Document meta information extend- ed  Small layout adaptations made  CAN transceiver driver is below CAN interface. All API access from higher layers are routed through CAN inter- face.  One CAN transceiver driver used per CAN transceiver hardware type. For different CAN transceiver hardware types different CAN transceiver driv- ers are used. One CAN transceiver driver supports all CAN transceiver hardware of same type  Legal disclaimer revised  Release Notes added   “Advice for users” revised “Revision Information” added  Initial release 2007-01-24 2.1.15 AUTOSAR Administration 2006-05-16 2.0 AUTOSAR Administration 更改了API名称 CanIf_SetWakeupEvent 新的错误代码 yBus to EUP_MODE已添加。 API中的输出参数 WAK CanTrcv_GetVersionInfo更改为指针 类型。  已修改 文档元信息扩展 akeupByBus 进行了小的布局调整 CAN收发器驱动程序位于CAN下面 界面。所有来自更高层的API访问均 通过CAN接口路由。 每个使用一个CAN收发器驱动程序 CAN收发器硬件类型。对于不同的C AN收发器硬件类型,使用不同的CA N收发器驱动程序。一个CAN收发器 驱动程序支持所有同类型的CAN收发 器硬件 修订了法律免责声明添加了发行 说明修订了“用户建议”添加了“修 订信息” 2007-01-24 2.1.15 AUTOSAR Administration 2006-05-16 2.0 AUTOSAR Administration 初始版本 4 of 84 Document ID 71: AUTOSAR_SWS_CANTransceiverDriver 4 of 84 文档ID71:AUTOSAR_SWS_CANTransceiverDriver 趣卡翻译(fanyi.qukaa.com)
Specification of CAN Transceiver Driver AUTOSAR CP R20-11 Disclaimer This work (specification and/or software implementation) and the material contained in it, as released by AUTOSAR, is for the purpose of information only. AUTOSAR and the companies that have contributed to it shall not be liable for any use of the work. The material contained in this work is protected by copyright and other types of intellectual property rights. The commercial exploitation of the material contained in this work requires a license to such intellectual property rights. This work may be utilized or reproduced without any modification, in any form or by any means, for informational purposes only. For any other purpose, no part of the work may be utilized or reproduced, in any form or by any means, without permission in writing from the publisher. The work has been developed for automotive applications only. It has neither been developed, nor tested for non-automotive applications. The word AUTOSAR and the AUTOSAR logo are registered trademarks. 5 of 84 Document ID 71: AUTOSAR_SWS_CANTransceiverDriver CAN收发器驱动器规范 AUTOSAR发布的本作品(规范和/或软件实现)及其中包含的材料仅供参考。AUTOSAR 和为其做出贡献的公司不对作品的任何使用承担责任。本作品中包含的材料受版权和其 他类型的知识产权保护。对本作品中包含的材料进行商业利用需要获得此类知识产权的 许可。本作品可在不作任何修改的情况下以任何形式或通过任何方式使用或复制,仅供 参考。未经出版商书面许可,不得出于任何其他目的以任何形式或通过任何方式使用或 复制作品的任何部分。该工作仅针对汽车应用而开发。它尚未针对非汽车应用进行开发 或测试。AUTOSAR一词和AUTOSAR徽标是注册商标。 5 of 84 文档ID71:AUTOSAR_SWS_CANTransceiverDriver 趣卡翻译(fanyi.qukaa.com)
Table of Content Specification of CAN Transceiver Driver AUTOSAR CP R20-11 表中的内容 CAN收发器驱动器规范 1 Introduction ............................................................................................................. 8 1 Introduction ............................................................................................................. 8 1.1 Goal of CAN Transceiver Driver ...................................................................... 9 1.2 Explicitly uncovered CAN transceiver functionality ......................................... 9 1.3 Single wire CAN transceivers according SAE J2411 ...................................... 9 2 Acronyms and abbreviations................................................................................ 10 3 Related documentation ........................................................................................ 11 3.1 Input documents ............................................................................................. 11 3.2 Related standards and norms ........................................................................ 11 3.3 Related specification ...................................................................................... 11 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 Code file structure ................................................................................... 13 1.1 1.2 1.3 CAN收发器驱动程序的目标.................................................................................9 明确公开的CAN收发器功能................................................................9 符合SAEJ2411的单线CAN收发器..................................................9 缩略语.....................................................................................10 相关文档......................................................................................................................11 3.1 3.2 3.3 输入文件......................................................................................................11 相关标准和规范......................................................................................................11 相关规格.........................................................................................................11 约束和假设......................................................................................................12 4.1 4.2 适用于汽车领域......................................................................................12 对其他模块的依赖......................................................................................................13 2 3 4 5 5.1 5.1. 文件结构......................................................................................................13 代码文件结构...................................................................................................................13 6 Requirements Traceability ................................................................................... 14 6 Requirements Traceability ................................................................................... 14 7 Functional specification ........................................................................................ 22 功能规格......................................................................................................22 7 7.1 CAN transceiver driver operation modes ....................................................... 22 7.1.1 Operation mode switching ....................................................................... 23 7.2 CAN transceiver hardware operation modes ................................................ 24 7.2.1 Example for temporary “Go-To-Sleep” mode ......................................... 24 7.2.2 Example for “PowerOn/ListenOnly” mode .............................................. 24 7.3 CAN transceiver wake up types ..................................................................... 24 7.4 Enabling/Disabling wakeup notification ......................................................... 25 7.5 CAN transceiver wake up modes .................................................................. 25 7.6 Error classification .......................................................................................... 26 7.6.1 Development Errors ................................................................................ 26 7.6.2 Runtime Errors ........................................................................................ 27 7.6.3 Transient Faults ....................................................................................... 27 7.6.4 Production Errors .................................................................................... 27 7.6.5 Extended Production Errors .................................................................... 27 7.7 Preconditions for driver initialization .............................................................. 28 7.8 Instance concept ............................................................................................ 28 7.9 Wait states ..................................................................................................... 28 Transceivers with selective wakeup functionality ..................................... 28 7.10 8 API specification ................................................................................................... 30 8.1 Imported types ............................................................................................... 30 8.2 Type definitions .............................................................................................. 30 8.3 Function definitions ........................................................................................ 33 8.3.1 CanTrcv_Init ............................................................................................ 33 8.3.2 CanTrcv_SetOpMode ............................................................................. 34 8.3.3 CanTrcv_GetOpMode ............................................................................. 37 8.3.4 CanTrcv_GetBusWuReason ................................................................... 38 7.1 7.2 7.1. 7.2. 7.2. 7.3 7.4 7.5 7.6 CAN收发器驱动器操作模式......................................................22 操作模式切换............................................................................................23 CAN收发器硬件操作模式...................................................24 临时“进入睡眠”模式示例..................................................24 “PowerOnListenOnly”模式示例...................................................24 CAN收发器唤醒类型......................................................................................24 启用禁用唤醒通知.......................................................................25 CAN收发器唤醒模式............................................................25 错误分类......................................................................................................26 开发错误......................................................................................26 瞬态故障......................................................................................................27 生产错误...................................................................................................27 长期生产错误............................................................................27 驱动程序初始化的先决条件......................................................................28 实例概念......................................................................................................28 等待状态.........................................................................................................28 具有选择性唤醒功能的收发器.......................................................28 7.6. 7.6.2 7.6.3 7.6.4 7.6. 7.7 7.8 7.9 7.10 API规范.......................................................................................................30 8 8.1 8.2 8.3 进口类型......................................................................................................30 类型定义......................................................................................................................30 函数定义......................................................................................................33 8.3. 8.3.2 CanTrcv_SetOpMode ............................................................................. 34 8.3.3 CanTrcv_GetOpMode ............................................................................. 37 8.3.4 CanTrcv_GetBusWuReason ................................................................... 38 6 of 84 Document ID 71: AUTOSAR_SWS_CANTransceiverDriver 6 of 84 文档ID71:AUTOSAR_SWS_CANTransceiverDriver 趣卡翻译(fanyi.qukaa.com)
Specification of CAN Transceiver Driver AUTOSAR CP R20-11 8.3.5 CanTrcv_VersionInfo............................................................................... 39 8.3.6 CanTrcv_ SetWakeupMode .................................................................... 40 8.3.7 CanTrcv_GetTrcvSystemData ................................................................ 41 8.3.8 CanTrcv_ClearTrcvWufFlag .................................................................... 43 8.3.9 CanTrcv_ReadTrcvTimeoutFlag ............................................................. 44 8.3.10 CanTrcv_ClearTrcvTimeoutFlag ......................................................... 45 8.3.11 CanTrcv_ReadTrcvSilenceFlag ........................................................... 46 8.3.12 CanTrcv_CheckWakeup ...................................................................... 47 8.3.13 CanTrcv_SetPNActivationState ........................................................... 47 8.3.14 CanTrcv_CheckWakeFlag ................................................................... 48 8.3.15 CanTrcv_DeInit .................................................................................... 49 8.4 Scheduled functions ....................................................................................... 50 8.4.1 CanTrcv_MainFunction ........................................................................... 50 8.4.2 CanTrcv_MainFunctionDiagnostics ........................................................ 51 8.5 Call-back notifications .................................................................................... 52 8.6 Expected Interfaces ....................................................................................... 52 8.6.1 Mandatory Interfaces............................................................................... 52 8.6.2 Optional Interfaces .................................................................................. 52 8.6.3 Configurable interfaces ........................................................................... 54 9 Sequence diagram ............................................................................................... 55 9 8.4 8.5 8.6 CAN收发器驱动器规范 8.3.5 CanTrcv_VersionInfo............................................................................... 39 8.3.6 CanTrcv_ SetWakeupMode .................................................................... 40 8.3.7 CanTrcv_GetTrcvSystemData ................................................................ 41 8.3.8 CanTrcv_ClearTrcvWufFlag .................................................................... 43 8.3.9 CanTrcv_ReadTrcvTimeoutFlag ............................................................. 44 8.3.10 CanTrcv_ClearTrcvTimeoutFlag ......................................................... 45 8.3.11 CanTrcv_ReadTrcvSilenceFlag ........................................................... 46 8.3.12 CanTrcv_CheckWakeup ...................................................................... 47 8.3.13 CanTrcv_SetPNActivationState ........................................................... 47 8.3.14 CanTrcv_CheckWakeFlag ................................................................... 48 8.3. 预定功能......................................................................................................50 8.4. 8.4.2 CanTrcv_MainFunctionDiagnostics ........................................................ 51 预期接口......................................................................................................52 强制接口......................................................................................52 可选接口......................................................................................52 8.6. 8.6.2 8.6.3 时序图......................................................................................................55 9.1 Wake up with valid validation ......................................................................... 55 9.2 Interaction with DIO module .......................................................................... 56 9.3 De-Initialization (SPI Synchronous) ............................................................... 58 9.4 De-Initialization (SPI Asynchronous) ............................................................. 60 10 Configuration specification ............................................................................... 62 10.1 10.2 How to read this chapter ........................................................................... 62 Containers and configuration parameters ................................................ 63 10.2.1 CanTrcv ................................................................................................ 63 10.2.2 CanTrcvGeneral ................................................................................... 63 10.2.3 CanTrcvConfigSet ................................................................................ 67 10.2.4 CanTrcvChannel .................................................................................. 68 10.2.5 CanTrcvAccess .................................................................................... 75 10.2.6 CanTrcvDioAccess .............................................................................. 75 10.2.7 CanTrcvDioChannelAccess ................................................................. 75 10.2.8 CanTrcvSpiAccess ............................................................................... 76 10.2.9 CanTrcvSpiSequence .......................................................................... 77 10.2.10 CanTrcvDemEventParameterRefs ...................................................... 78 10.2.11 CanTrcvPartialNetwork ........................................................................ 79 10.2.12 CanTrcvPnFrameDataMaskSpec ........................................................ 82 Published Information ............................................................................... 83 10.3 醒来时进行有效验证.......................................................................................55 与DIO模块交互......................................................................................56 9.1 9.2 9.3 9.4 De-Initialization (SPI Asynchronous) ............................................................. 60 10 配置规格......................................................................................................62 10.1 10.2 如何阅读本章............................................................................................62 容器和配置参数..................................................................63 10.2.1 10.2.2 CanTrcvGeneral ................................................................................... 63 10.2.3 CanTrcvConfigSet ................................................................................ 67 10.2.4 CanTrcvChannel .................................................................................. 68 10.2.5 CanTrcvAccess .................................................................................... 75 10.2.6 CanTrcvDioAccess .............................................................................. 75 10.2.7 CanTrcvDioChannelAccess ................................................................. 75 10.2.8 CanTrcvSpiAccess ............................................................................... 76 10.2.9 CanTrcvSpiSequence .......................................................................... 77 10.2.10 CanTrcvDemEventParameterRefs ...................................................... 78 10.2.11 CanTrcvPartialNetwork ........................................................................ 79 10.2.1 已发布信息......................................................................................83 10.3 11 Not applicable requirements ............................................................................ 84 不适用的要求......................................................................................................84 11 7 of 84 Document ID 71: AUTOSAR_SWS_CANTransceiverDriver 7 of 84 文档ID71:AUTOSAR_SWS_CANTransceiverDriver 趣卡翻译(fanyi.qukaa.com)
Specification of CAN Transceiver Driver AUTOSAR CP R20-11 CAN收发器驱动器规范 1 Introduction 1 Introduction This specification describes the functionality, APIs and configuration of CAN Trans- ceiver Driver module. The CAN Transceiver Driver module is responsible for handling the CAN transceiver hardware chips on an ECU. The CAN Transceiver is a hardware device, which adapts the signal levels that are used on the CAN bus to the logical (digital) signal levels recognised by a microcon- troller. In addition, the transceivers are able to detect electrical malfunctions like wiring is- sues, ground offsets or transmission of long dominant signals. Depending on the in- terfacing with the microcontroller, they flag the detected error summarized by a single port pin or very detailed by SPI. Some transceivers support power supply control and wake up via the CAN bus. Dif- ferent wake up/sleep and power supply concepts are usual on the market. Within the automotive environment, there are mainly three different CAN bus physics used. These are ISO11898 for high-speed CAN (up to 1Mbits/s), ISO11519 for low- speed CAN (up to 125Kbits/s) and SAE J2411 for single-wire CAN. Latest developments include System Basis Chips (SBCs) where power supply con- trol and advanced watchdogs are implemented in addition to CAN. These are en- closed in one housing and controlled through single interface (e.g. via SPI). 本规范描述了CAN收发器驱动模块的功能、API和配置。CAN收发器驱动模块负责处理E CU上的CAN收发器硬件芯片。CAN收发器是一种硬件设备,它将CAN总线上使用的信 号电平调整为微控制器识别的逻辑(数字)信号电平。此外,收发器还能够检测电气故 障,例如布线问题、接地偏移或长主导信号的传输。根据与微控制器的接口,它们会标 记检测到的错误,该错误由单个端口引脚汇总或由SPI详细记录。一些收发器支持电源 控制并通过CAN总线唤醒。市场上常见不同的唤醒睡眠和电源概念。在汽车环境中,主 要使用三种不同的CAN总线物理结构。它们是适用于高速CAN(高达1Mbits)的ISO11 898、适用于低速CAN(高达125Kbits)的ISO11519和适用于单线CAN的SAEJ2411。 最新的开发成果包括系统基础芯片(SBC),其中除了CAN之外还实现了电源控制和高级 看门狗。它们封装在一个外壳中,并通过单一接口(例如通过SPI)进行控制。 8 of 84 Document ID 71: AUTOSAR_SWS_CANTransceiverDriver 8 of 84 文档ID71:AUTOSAR_SWS_CANTransceiverDriver 趣卡翻译(fanyi.qukaa.com)
分享到:
收藏