没有合适的资源?快使用搜索试试~ 我知道了~
AUTOSAR_SWS_CRCLibrary.pdf
需积分: 9 19 下载量 12 浏览量
2014-08-13
09:38:39
上传
评论 1
收藏 210KB PDF 举报
温馨提示
试读
34页
AUTOSAR_SWS_CRCLibrary.pdf,是autosar中的重要一部分。
资源推荐
资源详情
资源评论
Specification of CRC Routines
V4.0.0
R4.0 Rev 1
Document Title Specification of CRC Routines
AUTOSAR
Document Owner
AUTOSAR
Document Responsibility
016
Document Identification No
Standard
Document Classification
4.0.0
Document Version
Final
Document Status
4.0
Part of Release
1
Revision
Document Change History
Date Version Changed by Change Description
02.12.2009 4.0.0 AUTOSAR
Administration
Introduction of a new CRC-8 with the
polynomial 2Fh
CRC-8 is now compliant to SAE J1850
Legal disclaimer revised
23.06.2008 3.0.1 AUTOSAR
Administration
Separated CRC requirements from
Memory Services Requirements
CRC8 management added
22.01.2008 3.0.0 AUTOSAR
Administration
Separated CRC requirements from
Memory Services Requirements
CRC8 management added
31.10.2007 2.1.2 AUTOSAR
Administration
Document meta information extended
Small layout adaptations made
24.01.2007 2.1.1 AUTOSAR
Administration
“Advice for users” revised
“Revision Information” added
15.12.2006 2.1.0 AUTOSAR
Administration
Crc_CalculateCRC16 and
Crc_CalculateCRC32 APIs,
Crc_DataPtr parameter : void pointer
changed to uint8 pointer
Legal disclaimer revised
28.04.2006 2.0.0 AUTOSAR
Administration
Document structure adapted to common
Release 2.0 SWS Template.
UML model introduction
Requirements traceability update
Reentrancy at calculating CRC with
hardware support
31.05.2005 1.0.0 AUTOSAR
Administration
Initial Release
1 of 34 Document ID 016: AUTOSAR_SWS_CRCLibrary
- AUTOSAR confidential -
Specification of CRC Routines
V4.0.0
R4.0 Rev 1
Disclaimer
This specification 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 specification.
The material contained in this specification is protected by copyright and other types
of Intellectual Property Rights. The commercial exploitation of the material contained
in this specification requires a license to such Intellectual Property Rights.
This specification 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 specification may be utilized or reproduced, in
any form or by any means, without permission in writing from the publisher.
The AUTOSAR specifications have been developed for automotive applications only.
They have neither been developed, nor tested for non-automotive applications.
The word AUTOSAR and the AUTOSAR logo are registered trademarks.
Advice for users
AUTOSAR specifications may contain exemplary items (exemplary reference mod-
els, "use cases", and/or references to exemplary technical solutions, devices, proc-
esses or software).
Any such exemplary items are contained in the specifications for illustration purposes
only, and they themselves are not part of the AUTOSAR Standard. Neither their pre-
sence in such specifications, nor any later documentation of AUTOSAR conformance
of products actually implementing such exemplary items, imply that intellectual prop-
erty rights covering such exemplary items are licensed under the same rules as ap-
plicable to the AUTOSAR Standard.
2 of 34 Document ID 016: AUTOSAR_SWS_CRCLibrary
- AUTOSAR confidential -
Specification of CRC Routines
V4.0.0
R4.0 Rev 1
Table of Contents
1 Introduction and functional overview ................................................................... 5
2 Acronyms and abbreviations ............................................................................... 6
3 Related documentation........................................................................................ 7
3.1 Input documents........................................................................................... 7
3.2 Related standards and norms ...................................................................... 7
4 Constraints and assumptions .............................................................................. 8
4.1 Limitations.................................................................................................... 8
4.2 Applicability to car domains.......................................................................... 8
5 Dependencies to other modules.......................................................................... 9
5.1 File structure ................................................................................................ 9
6 Requirements traceability.................................................................................. 10
7 Functional specification ..................................................................................... 15
7.1 Basic Concepts of CRC Codes .................................................................. 15
7.1.1 Mathematical Description ....................................................................... 15
7.1.2 Euclidian Algorithm for Binary Polynomials and Bit-Sequences ............. 17
7.1.3 CRC calculation, Variations and Parameter ........................................... 18
7.2 Standard parameters.................................................................................. 18
7.2.1 8-bit CRC calculation.............................................................................. 19
7.2.1.1 8-bit SAE J1850 CRC Calculation................................................ 19
7.2.1.2 8-bit 0x2F polynomial CRC Calculation ....................................... 19
7.2.2 16-bit CRC calculation............................................................................ 20
7.2.3 32-bit CRC calculation............................................................................ 20
7.3 General behavior........................................................................................ 21
7.4 Error classification...................................................................................... 21
7.5 Error detection............................................................................................ 21
7.6 Error notification ......................................................................................... 21
7.7 Version check............................................................................................. 21
7.8 Debugging concept .................................................................................... 21
8 API specification................................................................................................ 22
8.1 Imported types............................................................................................ 22
8.2 Type definitions .......................................................................................... 22
8.3 Function definitions .................................................................................... 22
8.3.1 8-bit CRC Calculation ............................................................................. 22
8.3.1.1 8-bit SAE J1850 CRC Calculation................................................ 22
8.3.1.2 8-bit 0x2F polynomial CRC Calculation ....................................... 23
8.3.2 16-bit CRC Calculation ........................................................................... 24
8.3.3 32-bit CRC Calculation ........................................................................... 25
8.3.4 Crc_GetVersionInfo ................................................................................ 25
8.4 Call-back notifications ................................................................................ 26
8.5 Scheduled functions................................................................................... 26
8.6 Expected Interfaces.................................................................................... 26
8.6.1 Mandatory Interfaces.............................................................................. 26
3 of 34 Document ID 016: AUTOSAR_SWS_CRCLibrary
- AUTOSAR confidential -
Specification of CRC Routines
V4.0.0
R4.0 Rev 1
8.6.2 Optional Interfaces.................................................................................. 26
8.6.3 Configurable interfaces........................................................................... 27
9 Sequence diagrams .......................................................................................... 28
9.1 Crc_CalculateCRC8 ()................................................................................ 28
9.2 Crc_CalculateCRC8H2F ()......................................................................... 28
9.3 Crc_CalculateCRC16()............................................................................... 28
9.4 Crc_CalculateCRC32()............................................................................... 29
10 Configuration specification............................................................................. 30
10.1 How to read this chapter ............................................................................ 30
10.1.1 Configuration and configuration parameters........................................... 30
10.1.2 Variants .................................................................................................. 30
10.1.3 Containers .............................................................................................. 30
10.2 Containers and configuration parameters .................................................. 31
10.2.1 Variants .................................................................................................. 31
10.2.2 Crc.......................................................................................................... 31
10.3 Published Information................................................................................. 33
11 Changes to Release 3 ................................................................................... 34
11.1 Deleted SWS Items.................................................................................... 34
11.2 Replaced SWS Items ................................................................................. 34
11.3 Changed SWS Items.................................................................................. 34
11.4 Added SWS Items...................................................................................... 34
4 of 34 Document ID 016: AUTOSAR_SWS_CRCLibrary
- AUTOSAR confidential -
Specification of CRC Routines
V4.0.0
R4.0 Rev 1
1 Introduction and functional overview
This specification specifies the functionality, API and the configuration of the AUTO-
SAR Basic Software module CRC.
The CRC library contains the following routines for CRC calculation:
CRC8 SAEJ1850
CRC8 0x2F polynomial
CRC16
CRC32
For all routines (CRC8, CRC8H2F, CRC16 and CRC32), the following calculation
methods are possible:
Table based calculation:
Fast execution, but larger code size (ROM table)
Runtime calculation:
Slower execution, but small code size (no ROM table)
Hardware supported CRC calculation (device specific):
Fast execution, less CPU time
All routines are re-entrant and can be used by multiple applications at the same time.
Hardware supported CRC calculation may be supported by some devices in the fu-
ture.
5 of 34 Document ID 016: AUTOSAR_SWS_CRCLibrary
- AUTOSAR confidential -
剩余33页未读,继续阅读
资源评论
lxc_123
- 粉丝: 4
- 资源: 26
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功