E2EL

缩写词注解 (Abbreviation Notes):

缩写词 (Abbreviation)

解释/描述 (Explanation/Description)

中文解释 (Chinese explanation)

E2ELibrary

End to End library

端到端通讯保护库 (End-to-end communication protection library)

Data ID

Data Identification

一段数据/消息的标识 (An identifier for a piece of data/message)

E2Eprofile

E2E profile

E2E算法 (End-to-End algorithm)

CRC

Cyclic Redundancy Check

循环冗余校验 (Cyclic Redundancy Check)

E2E XF

End to End Transformer

端到端转换器 (End-to-end Converter)

E2EL模块简介 (Overview of E2EL Module)

E2EL架构图 (End-to-End Architecture Diagram)

E2EL在架构上属于AUTOSAR静态库代码,使用同样属于静态库代码的CRC模块来进行安全数据的保护,E2E XF通过把E2EL的相关算法抽象成用户易操作的配置项和配置界面,并根据用户的属于生成代码,来帮助用户更好的使用E2EL来保护数据。

E2EL is architecturally part of the AUTOSAR static library code, using the same static library code CRC module for protecting secure data. E2E XF abstracts related algorithms of E2EL into user-friendly configuration items and interfaces, generating code based on user specifications to help users better utilize E2EL for data protection.

参考资料 (Reference materials)

[1] AUTOSAR_SWS_E2ELibrary.pdf,R19-11

[2] AUTOSAR_SWS_CRCLibrary.pdf,R19-11

功能描述 (Function Description)

E2EL功能 (End-to-End Function)

E2EL功能介绍 (End-to-End Function Introduction)

E2EL的各个profile提供了一种可以满足功能安全目标的数据保护机制,各个E2E profile通过不同的算法和API完成以下类型的数据保护机制:

E2EL's various profiles provide a data protection mechanism that can meet functional safety goals. Different E2E profiles accomplish the following types of data protection mechanisms through different algorithms and APIs:

  • 集成CRC库的CRC保护机制;

  • CRC protection mechanism with integrated CRC library;

  • 接收端检测接收报文的递增计数器,判断接收数据是否有序递增;

  • The receiver checks the incrementing counter of received packets to determine if the received data is ordered and incremental;

  • 接收端通过检测心跳计数器判断数据是否发生改变;

  • The receiver determines whether data has changed by detecting heartbeat counters;

  • 通过特定的ID来区分不同的I-PDU组;

  • Distinguish different I-PDU groups through specific IDs;

  • 超时检测机制(接收报文超时和发送确认超时);

  • Timeout detection mechanism (message reception timeout and send acknowledgment timeout);

  • E2E profiles的用户需要根据自己的应用场景决定选用哪种类型的E2E profile;

  • E2E profiles users need to choose which type of E2E profile to use based on their own application scenarios;

  • E2E支持的profile有profile1、profile2、profile4、profile5、profile6、profile7、profile11、profile22。

  • E2E supported profiles include profile1, profile2, profile4, profile5, profile6, profile7, profile11, profile22.

源文件描述 (Source file description)

表 E2EL组件文件描述 (Table E2EL Component File Description)

文件 (Files)

说明 (Description)

E2E_P01.c

E2E Profile1算法库源文件 (End-to-End Profile1 Algorithm Library Source File)

E2E_P01.h

E2E Profile1算法库头文件 (E2E Profile1 Algorithm Library Header File)

E2E_P02.c

E2E Profile2算法库源文件 (E2E Profile2 Algorithm Library Source File)

E2E_P02.h

E2E Profile2算法库头文件 (End-to-End Profile2 Algorithm Library Header File)

E2E_P04.c

E2E Profile4算法库源文件 (E2E Profile4 Algorithm Library Source File)

E2E_P04.h

E2E Profile4算法库头文件 (E2E Profile4 Algorithm Library Header File)

E2E_P05.c

E2E Profile5算法库源文件 (E2E Profile5 Algorithm Library Source File)

E2E_P05.h

E2E Profile5算法库头文件 (End-to-End Profile5 Algorithm Library Header File)

E2E_P06.c

E2E Profile6算法库源文件 (End-to-End Profile6 Algorithm Library Source File)

E2E_P06.h

E2E Profile6算法库头文件 (E2E Profile6 Algorithm Library Header File)

E2E_P07.c

E2E Profile7算法库源文件 (End-to-End Profile7 Algorithm Library Source File)

E2E_P07.h

E2E Profile7算法库头文件 (E2E Profile7 Algorithm Library Header File)

E2E_P11.c

E2E Profile11算法库源文件 (End-to-End Profile11 Algorithm Library Source File)

E2E_P11.h

E2E Profile11算法库头文件 (E2E Profile11 Algorithm Library Header File)

E2E_P22.c

E2E Profile22算法库源文件 (End-to-End Profile22 Algorithm Library Source File)

E2E_P22.h

E2E Profile22算法库头文件 (E2E Profile22 Algorithm Library Header File)

E2E.c

E2E状态机管理 (End-to-End State Machine Management)

E2E.h

E2E的共有头文件 (End-to-End common header file)

E2EL组件文件交互关系图 (E2EL Component File Interactions Diagram)

API接口 (API Interface)

类型定义 (Type definition)

E2E_P01ConfigType类型定义 (E2E_P01ConfigType Configuration Type Definition)

名称 (Name)

E2E_P01ConfigType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile1的传输数据配置实例 (An instance of Profile1's Transmission Data Configuration)

E2E_P01DataIDMode类型定义 (E2E_P01DataIDMode Type Definition)

名称 (Name)

E2E_P01DataIDMode

类型 (Type)

Enumeration

范围 (Range)

E2E_P01_DATAID_BOTH, E2E_P01_DATAID_ALT, E2E_P01_DATAID_LOW, E2E_P01_DATAID_NIBBLE

描述 (Description)

DataID模式 (DataID Mode)

E2E_P01ProtectStateType类型定义 (E2E_P01ProtectStateType Type Definition)

名称 (Name)

E2E_P01ProtectStateType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile1发送端保护状态类型 (Profile1 Sender Protection State Type)

E2E_P01CheckStateType类型定义 (E2E_P01CheckStateType Type Definition)

名称 (Name)

E2E_P01CheckStateType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile1接收端保护状态类型 (Profile1 Receiver Protection Status Type)

E2E_P01CheckStatusType类型定义 (E2E_P01CheckStatusType Type Definition)

名称 (Name)

E2E_P01CheckStatusType

类型 (Type)

Enumeration

范围 (Range)

E2E_P01STATUS_OK

E2E_P01STATUS_NONEWDATA

E2E_P01STATUS_WRONGCRC

E2E_P01STATUS_SYNC

E2E_P01STATUS_INITIAL

E2E_P01STATUS_REPEATED

E2E_P01STATUS_OKSOMELOST

E2E_P01STATUS_WRONGSEQUENCE

描述 (Description)

profile1中数据的校验结果。 (Validation results of data in profile1.)

E2E_P02ConfigType类型定义 (E2E_P02ConfigType Type Definition)

名称 (Name)

E2E_P02ConfigType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile2的传输数据配置实例 (An instance of Profile2's Transmission Data Configuration)

E2E_P02ProtectStateType类型定义 (E2E_P02ProtectStateType Type Definition)

名称 (Name)

E2E_P02ProtectStateType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile2发送端保护状态类型 (Profile2 Sender Protection Status Type)

E2E_P02CheckStateType类型定义 (E2E_P02CheckStateType Type Definition)

名称 (Name)

E2E_P02CheckStateType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile2接收端保护状态类型 (Profile2 Receiver Protection Status Type)

E2E_P02CheckStatusType类型定义 (E2E_P02CheckStatusType Type Definition)

名称 (Name)

E2E_P01CheckStatusType

类型 (Type)

Enumeration

范围 (Range)

E2E_P02STATUS_OK

E2E_P02STATUS_NONEWDATA

E2E_P02STATUS_WRONGCRC

E2E_P02STATUS_SYNC

E2E_P02STATUS_INITIAL

E2E_P02STATUS_REPEATED

E2E_P02STATUS_OKSOMELOST

E2E_P02STATUS_WRONGSEQUENCE

描述 (Description)

Profile2中数据的校验结果。 (Validation results of data in Profile2.)

E2E_P04ConfigType类型定义 (E2E_P04ConfigType Type Definition)

名称 (Name)

E2E_P04ConfigType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile4的传输数据配置实例 (An instance of data configuration for Profile4 transmission.)

E2E_P04ProtectStateType类型定义 (E2E_P04 ProtectStateType Type Definition)

名称 (Name)

E2E_P04ProtectStateType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile4发送端保护状态类型 (Profile4 Sending End Protection Status Type)

E2E_P04CheckStateType类型定义 (E2E_P04CheckStateType Type Definition)

名称 (Name)

E2E_P04CheckStateType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile4接收端保护状态类型 (Profile4 Receiver Protection State Type)

E2E_P04CheckStatusType类型定义 (E2E_P04CheckStatusType Type Definition)

名称 (Name)

E2E_P04CheckStatusType

类型 (Type)

Enumeration

范围 (Range)

E2E_P04STATUS_OK

E2E_P04STATUS_NONEWDATA

E2E_P04STATUS_ ERROR

E2E_P04STATUS_REPEATED

E2E_P04STATUS_OKSOMELOST

E2E_P04STATUS_WRONGSEQUENCE

描述 (Description)

Profile4中数据的校验结果。 (Validation results of data in Profile4.)

E2E_P05ConfigType类型定义 (E2E_P05ConfigType Type Definition)

名称 (Name)

E2E_P05ConfigType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile5的传输数据配置实例 (An instance of Profile5's Transmission Data Configuration)

E2E_P05ProtectStateType类型定义 (E2E_P05ProtectStateType Type Definition)

名称 (Name)

E2E_P05ProtectStateType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile5发送端保护状态类型 (Profile5 Sender Protection Status Type)

E2E_P05CheckStateType类型定义 (E2E_P05CheckStateType Type Definition)

名称 (Name)

E2E_P05CheckStateType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile5接收端保护状态类型 (Profile5 Receiver Protection Status Type)

E2E_P05CheckStatusType类型定义 (E2E_P05CheckStatusType Type Definition)

名称 (Name)

E2E_P05CheckStatusType

类型 (Type)

Enumeration

范围 (Range)

E2E_P05STATUS_OK

E2E_P05STATUS_NONEWDATA

E2E_P05STATUS_ ERROR

E2E_P05STATUS_REPEATED

E2E_P05STATUS_OKSOMELOST

E2E_P05STATUS_WRONGSEQUENCE

描述 (Description)

Profile5中数据的校验结果。 (Validation results of data in Profile5.)

E2E_P06ConfigType类型定义 (E2E_P06ConfigType Configuration Type Definition)

名称 (Name)

E2E_P06ConfigType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile6的传输数据配置实例 (An instance of Profile6's Transmission Data Configuration)

E2E_P06ProtectStateType类型定义 (E2E_P06ProtectStateType Type Definition)

名称 (Name)

E2E_P06ProtectStateType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile6发送端保护状态类型 (Profile6 Sender Protection State Type)

E2E_P06CheckStateType类型定义 (E2E_P06CheckStateType Type Definition)

名称 (Name)

E2E_P06CheckStateType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile6接收端保护状态类型 (Profile6 Receiver Protection Status Type)

E2E_P06CheckStatusType类型定义 (E2E_P06CheckStatusType Type Definition)

名称 (Name)

E2E_P06CheckStatusType

类型 (Type)

Enumeration

范围 (Range)

E2E_P06STATUS_OK

E2E_P06STATUS_NONEWDATA

E2E_P06STATUS_ ERROR

E2E_P06STATUS_REPEATED

E2E_P06STATUS_OKSOMELOST

E2E_P06STATUS_WRONGSEQUENCE

描述 (Description)

Profile6中数据的校验结果。 (Validation results of data in Profile6.)

E2E_P07ConfigType类型定义 (E2E_P07ConfigType Configuration Type Definition)

名称 (Name)

E2E_P07ConfigType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile7的传输数据配置实例 (An instance of Profile7's Transmission Data Configuration)

E2E_P07ProtectStateType类型定义 (E2E_P07ProtectStateType Type Definition)

名称 (Name)

E2E_P07ProtectStateType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile7发送端保护状态类型 (Profile7 Sending End Protection Status Type)

E2E_P07CheckStateType类型定义 (E2E_P07CheckStateType Type Definition)

名称 (Name)

E2E_P07CheckStateType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile7接收端保护状态类型 (Profile7 Receiver Protection Status Type)

E2E_P07CheckStatusType类型定义 (E2E_P07CheckStatusType Type Definition)

名称 (Name)

E2E_P07CheckStatusType

类型 (Type)

Enumeration

范围 (Range)

E2E_P07STATUS_OK

E2E_P07STATUS_NONEWDATA

E2E_P07STATUS_ ERROR

E2E_P07STATUS_REPEATED

E2E_P07STATUS_OKSOMELOST

E2E_P07STATUS_WRONGSEQUENCE

描述 (Description)

Profile7中数据的校验结果。 (Validation results of data in Profile7.)

E2E_P11ConfigType类型定义 (E2E_P11ConfigType Type Definition)

名称 (Name)

E2E_P11ConfigType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile11的传输数据配置实例 (An instance of Profile11's Transmission Data Configuration)

E2E_P11ProtectStateType类型定义 (E2E_P11ProtectStateType Type Definition)

名称 (Name)

E2E_P11ProtectStateType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile11发送端保护状态类型 (Profile11 Sender Protection State Type)

E2E_P11CheckStateType类型定义 (E2E_P11CheckStateType Type Definition)

名称 (Name)

E2E_P11CheckStateType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile11接收端保护状态类型 (Profile11 Receiver Protection Status Type)

E2E_P11CheckStatusType类型定义 (E2E_P11CheckStatusType Type Definition)

名称 (Name)

E2E_P11CheckStatusType

类型 (Type)

Enumeration

范围 (Range)

E2E_P11STATUS_OK

E2E_P11STATUS_NONEWDATA

E2E_P11STATUS_ ERROR

E2E_P11STATUS_REPEATED

E2E_P11STATUS_OKSOMELOST

E2E_P11STATUS_WRONGSEQUENCE

描述 (Description)

Profile11中数据的校验结果。 (Validation results of data in Profile11.)

E2E_P22ConfigType类型定义 (E2E_P22ConfigType Type Definition)

名称 (Name)

E2E_P22ConfigType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile22的传输数据配置实例 (An instance of Profile22's Transmission Data Configuration)

E2E_P22ProtectStateType类型定义 (E2E_P22ProtectStateType Type Definition)

名称 (Name)

E2E_P22ProtectStateType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile22发送端保护状态类型 (Profile22 Send End Protection Status Type)

E2E_P22CheckStateType类型定义 (E2E_P22CheckStateType Type Definition)

名称 (Name)

E2E_P22CheckStateType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

Profile22接收端保护状态类型 (Profile22 Receiver Protection Status Type)

E2E_P22CheckStatusType类型定义 (E2E_P22CheckStatusType Type Definition)

名称 (Name)

E2E_P22CheckStatusType

类型 (Type)

Enumeration

范围 (Range)

E2E_P22STATUS_OK

E2E_P22STATUS_NONEWDATA

E2E_P22STATUS_ ERROR

E2E_P22STATUS_REPEATED

E2E_P22STATUS_OKSOMELOST

E2E_P22STATUS_WRONGSEQUENCE

描述 (Description)

Profile22中数据的校验结果。 (Validation results of data in Profile22.)

E2E_PCheckStatusType类型定义 (E2E_PCheckStatusType Type Definition)

名称 (Name)

E2E_PCheckStatusType

类型 (Type)

Enumeration

范围 (Range)

E2E_P_OK

E2E_P_REPEATED

E2E_P_WRONGSEQUENCE

E2E_P_ERROR

E2E_P_NOTAVAILABLE

E2E_P_NONEWDATA

reserved

描述 (Description)

一个周期内单个数据的接收状态,和profile无关 (The reception status of a single data within a cycle, unrelated to the profile.)

E2E_SMConfigType类型定义 (E2E_SMConfigType Type Definition)

名称 (Name)

E2E_SMConfigType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

E2E状态的总体初始化配置 (Overall initialization configuration for E2E status)

E2E_SMCheckStateType类型定义 (E2E_SMCheckStateType Type Definition)

名称 (Name)

E2E_SMCheckStateType

类型 (Type)

Structure

范围 (Range)

无(None)

描述 (Description)

接收端的检查状态 (The reception check status)

E2E_SMStateType类型定义 (E2E_SMStateType Type Definition)

名称 (Name)

E2E_SMStateType

类型 (Type)

Enumeration

范围 (Range)

E2E_SM_VALID

E2E_SM_DEINIT

E2E_SM_NODATA

E2E_SM_INIT

E2E_SM_INVALID

reserved

描述 (Description)

整个系统的E2E检查状态,只有为E2E_SM_VALID时数据才可信 (The E2E check status of the entire system is only credible when it is E2E_SM_VALID)

输入函数描述 (the input function description:)

输入模块 (Input Module)

API

CRC

Crc_CalculateCRC8

Crc_CalculateCRC16

Crc_CalculateCRC32P4

Crc_CalculateCRC8H2F

Crc_CalculateCRC64

静态接口函数定义 (Static interface function definition)

E2E_P01Protect函数定义 (End-to-End_P01Protect function definition)

函数名称: (Function Name:)

E2E_P01Protect

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P01Protect(E2E_P01ConfigType*ConfigPtr, E2E_P01ProtectStateType*StatePtr, uint8*DataPtr )

服务编号: (Service Number:)

0x01

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

ConfigPtr

值域: (Domain:)

Pointer to static configuration.

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

DataPtr:Pointer to Data to betransmitted.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_INPUTERR_WRONG, E2E_E_INTERR, E2E_E_OK

功能概述: (Function Overview:)

通过本API实现传输数据基于Profile1算法的保护。包含了校验值计算、couter和DataID的处理操作。 (This API implements data protection based on Profile1 algorithm for transmission. It includes operations such as checksum calculation, counter, and DataID processing.)

E2E_P01ProtectInit函数定义 (Define of ProtectInit function)

函数名称: (Function Name:)

E2E_P01ProtectInit

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P01ProtectInit(E2E_P01ProtectStateType*StatePtr )

服务编号: (Service Number:)

0x1b

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

无(None)

值域: (Domain:)

无(None)

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_OK

功能概述: (Function Overview:)

初始化ProtectState (Initialize ProtectState)

E2E_P01Check函数定义 (EndToEnd_P01Check function definition)

函数名称: (Function Name:)

E2E_P01Check

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P01Check(E2E_P01ConfigType*Config, E2E_P01CheckStateType*State, uint8*Data )

服务编号: (Service Number:)

0x02

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

Config

值域: (Domain:)

Pointer to staticconfiguration.

Data

值域: (Domain:)

Pointer to receiveddata.

输入输出参数: (Input Output Parameters:)

State:Pointer toport/datacommunicationstate.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_INPUTERR_WRONG, E2E_E_INTERR, E2E_E_OK

功能概述: (Function Overview:)

通过Profile1算法检查接收数据,包括CRC计算、Counter和DataID的处理 (Check received data through Profile1 algorithm, including CRC calculation, Counter, and DataID processing.)

E2E_P01CheckInit函数定义 (Definition of E2E_P01CheckInit function)

函数名称: (Function Name:)

E2E_P01CheckInit

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P01CheckInit(E2E_P01CheckStateType*State )

服务编号: (Service Number:)

0x1c

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

无(None)

值域: (Domain:)

无(None)

输入输出参数: (Input Output Parameters:)

State:Pointer toport/datacommunicationstate.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_OK

功能概述: (Function Overview:)

初始化Check State (Initialize Check State)

E2E_P02Protect函数定义 (End_to_End_P02Protect function definition)

函数名称: (Function Name:)

E2E_P02Protect

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P02Protect(E2E_P02ConfigType*ConfigPtr, E2E_P02ProtectStateType*StatePtr, uint8*DataPtr )

服务编号: (Service Number:)

0x03

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

ConfigPtr

值域: (Domain:)

Pointer to staticconfiguration.

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

DataPtr:Pointerto Data to betransmitted.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_INPUTERR_WRONG, E2E_E_INTERR, E2E_E_OK

功能概述: (Function Overview:)

通过本API实现传输数据基于Profile2算法的保护。包含了校验值计算、couter和DataID的处理操作。 (This API implements data protection based on Profile2 algorithm for transmission. It includes operations such as checksum calculation, counter, and DataID processing.)

E2E_P02ProtectInit函数定义 (Define E2E_P02ProtectInit Function)

函数名称: (Function Name:)

E2E_P02ProtectInit

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P02ProtectInit(E2E_P02ProtectStateType*StatePtr )

服务编号: (Service Number:)

0x1e

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

无(None)

值域: (Domain:)

无(None)

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_OK

功能概述: (Function Overview:)

初始化ProtectState (Initialize ProtectState)

E2E_P02Check函数定义 (E2E_P02Check function definition)

函数名称: (Function Name:)

E2E_P02Check

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P02Check(E2E_P02ConfigType*ConfigPtr, E2E_P02CheckStateType*StatePtr, uint8*DataPtr )

服务编号: (Service Number:)

0x04

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

ConfigPtr

值域 (Range)

Pointer to staticconfiguration.

DataPtr

值域 (Range)

Pointer to receiveddata.

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_INPUTERR_WRONG, E2E_E_INTERR, E2E_E_OK

功能概述: (Function Overview:)

通过Profile2算法检查接收数据,包括CRC计算、Counter和DataID的处理 (Check received data through the Profile2 algorithm, including CRC calculation and processing of Counter and DataID.)

E2E_P02CheckInit函数定义 (Definition of E2E_P02CheckInit function)

函数名称: (Function Name:)

E2E_P02CheckInit

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P02CheckInit(E2E_P02CheckStateType*StatePtr )

服务编号: (Service Number:)

0x1f

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

无(None)

值域: (Domain:)

无(None)

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

输出参数: (Output Parameters:)

NA

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_OK

功能概述: (Function Overview:)

初始化Check State (Initialize Check State)

E2E_P04Protect函数定义 (End_to_End_Protect_function_definition)

函数名称: (Function Name:)

E2E_P04Protect

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P04Protect(E2E_P04ConfigType*ConfigPtr, E2E_P04ProtectStateType*StatePtr, uint8*DataPtr, uint16Length )

服务编号: (Service Number:)

0x21

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

ConfigPtr

值域: (Domain:)

Pointer to staticconfiguration.

Length

Length of the data inbytes.

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

DataPtr:Pointerto Data to betransmitted.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_INPUTERR_WRONG, E2E_E_INTERR, E2E_E_OK

功能概述: (Function Overview:)

通过本API实现传输数据基于Profile4算法的保护。包含了校验值计算、couter和DataID的处理操作。 (This API realizes data transmission with protection based on Profile4 algorithm. It includes operations such as checksum calculation, counter, and DataID processing.)

E2E_P04ProtectInit函数定义 (Define E2E_P04ProtectInit Function)

函数名称: (Function Name:)

E2E_P04ProtectInit

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P04ProtectInit(E2E_P04ProtectStateType*StatePtr )

服务编号: (Service Number:)

0x22

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

无(None)

值域: (Domain:)

无(None)

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_OK

功能概述: (Function Overview:)

初始化ProtectState (Initialize ProtectState)

E2E_P04Check函数定义 (E2E_P04Check function definition)

函数名称: (Function Name:)

E2E_P04Check

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P04Check(E2E_P04ConfigType*ConfigPtr, E2E_P04CheckStateType*StatePtr, uint8*DataPtr, uint16Length )

服务编号: (Service Number:)

0x23

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

ConfigPtr

值域: (Domain:)

Pointer to staticconfiguration.

DataPtr

Pointer to receiveddata.

Length

Length of the data inbytes.

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_INPUTERR_WRONG, E2E_E_INTERR, E2E_E_OK

功能概述: (Function Overview:)

通过Profile4算法检查接收数据,包括CRC计算、Counter和DataID的处理 (Check received data using Profile4 algorithm, including CRC calculation, Counter, and DataID processing.)

E2E_P04CheckInit函数定义 (Definition of E2E_P04CheckInit function)

函数名称: (Function Name:)

E2E_P04CheckInit

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P04CheckInit(E2E_P04CheckStateType*StatePtr )

服务编号: (Service Number:)

0x24

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

无(None)

值域: (Domain:)

无(None)

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_OK

功能概述: (Function Overview:)

初始化Check State (Initialize Check State)

E2E_P05Protect函数定义 (End_to_End_Pro05Protect function definition)

函数名称: (Function Name:)

E2E_P05Protect

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P05Protect(E2E_P05ConfigType*ConfigPtr, E2E_P05ProtectStateType*StatePtr, uint8*DataPtr, uint16Length )

服务编号: (Service Number:)

0x26

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

ConfigPtr

值域: (Domain:)

Pointer to staticconfiguration.

Length

Length of the data inbytes.

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

DataPtr:Pointerto Data to betransmitted.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_INPUTERR_WRONG, E2E_E_INTERR, E2E_E_OK

功能概述: (Function Overview:)

通过本API实现传输数据基于Profile5算法的保护。包含了校验值计算、couter和DataID的处理操作。 (This API implements data transmission with protection based on Profile5 algorithm. It includes operations for calculating checksums, counter, and DataID processing.)

E2E_P05ProtectInit函数定义 (Define of E2E_P05ProtectInit function)

函数名称: (Function Name:)

E2E_P05ProtectInit

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P05ProtectInit(E2E_P05ProtectStateType*StatePtr )

服务编号: (Service Number:)

0x27

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

无(None)

值域: (Domain:)

无(None)

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_OK

功能概述: (Function Overview:)

初始化ProtectState (Initialize ProtectState)

E2E_P05Check函数定义 (EndToEnd_P05Check function definition)

函数名称: (Function Name:)

E2E_P05Check

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P05Check(E2E_P05ConfigType*ConfigPtr, E2E_P05CheckStateType*StatePtr, uint8*DataPtr, uint16Length )

服务编号: (Service Number:)

0x28

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

ConfigPtr

值域: (Domain:)

Pointer to staticconfiguration.

DataPtr

Pointer to receiveddata.

Length

Length of the data inbytes.

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_INPUTERR_WRONG, E2E_E_INTERR, E2E_E_OK

功能概述: (Function Overview:)

通过Profile5算法检查接收数据,包括CRC计算、Counter和DataID的处理 (Check received data using Profile5 algorithm, including CRC calculation, Counter and DataID processing)

E2E_P05CheckInit函数定义 (Definition of E2E_P05CheckInit function)

函数名称: (Function Name:)

E2E_P05CheckInit

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P05CheckInit(E2E_P04CheckStateType*StatePtr )

服务编号: (Service Number:)

0x29

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

无(None)

值域: (Domain:)

无(None)

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_OK

功能概述: (Function Overview:)

初始化Check State (Initialize Check State)

E2E_P06Protect函数定义 (E2E_P06Protect Function Definition)

函数名称: (Function Name:)

E2E_P06Protect

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P06Protect(E2E_P06ConfigType*ConfigPtr, E2E_P06ProtectStateType*StatePtr, uint8*DataPtr, uint16Length )

服务编号: (Service Number:)

0x2b

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

ConfigPtr

值域: (Domain:)

Pointer to staticconfiguration.

Length

Length of the data inbytes.

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

DataPtr:Pointerto Data to betransmitted.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_INPUTERR_WRONG, E2E_E_INTERR, E2E_E_OK

功能概述: (Function Overview:)

通过本API实现传输数据基于Profile6算法的保护。包含了校验值计算、couter和DataID的处理操作。 (This API realizes the transmission of data protected based on Profile6 algorithm. It includes operations such as checksum calculation, counter, and DataID processing.)

E2E_P06ProtectInit函数定义 (Define E2E_P06ProtectInit Function)

函数名称: (Function Name:)

E2E_P06ProtectInit

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P06ProtectInit(E2E_P06ProtectStateType*StatePtr )

服务编号: (Service Number:)

0x2c

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

无(None)

值域: (Domain:)

无(None)

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_OK

功能概述: (Function Overview:)

初始化ProtectState (Initialize ProtectState)

E2E_P06Check函数定义 (E2E_P06Check Function Definition)

函数名称: (Function Name:)

E2E_P06Check

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P06Check(E2E_P06ConfigType*ConfigPtr, E2E_P06CheckStateType*StatePtr, uint8*DataPtr, uint16Length )

服务编号: (Service Number:)

0x2d

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

ConfigPtr

值域: (Domain:)

Pointer to staticconfiguration.

DataPtr

Pointer to receiveddata.

Length

Length of the data inbytes.

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_INPUTERR_WRONG, E2E_E_INTERR, E2E_E_OK

功能概述: (Function Overview:)

通过Profile6算法检查接收数据,包括CRC计算、Counter和DataID的处理 (Check received data through Profile6 algorithm, including CRC calculation and processing of Counter and DataID.)

E2E_P06CheckInit函数定义 (Definition of E2E_P06CheckInit function)

函数名称: (Function Name:)

E2E_P06CheckInit

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P06CheckInit(E2E_P06CheckStateType*StatePtr )

服务编号: (Service Number:)

0x2e

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

无(None)

值域: (Domain:)

无(None)

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_OK

功能概述: (Function Overview:)

初始化Check State (Initialize Check State)

E2E_P07Protect函数定义 (EndToEnd_ProtectFunctionDefinition)

函数名称: (Function Name:)

E2E_P07Protect

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P07Protect (constE2E_P07ConfigType*ConfigPtr, E2E_P07ProtectStateType*StatePtr, uint8*DataPtr, uint32Length )

服务编号: (Service Number:)

0x21

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

ConfigPtr

值域: (Domain:)

Pointer to staticconfiguration.

Length

Length of the data inbytes.

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

DataPtr:Pointerto Data to betransmitted.

输出参数: (Output Parameters:)

NA

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_INPUTERR_WRONG, E2E_E_INTERR, E2E_E_OK

功能概述: (Function Overview:)

通过本API实现传输数据基于Profile7算法的保护。包含了校验值计算、couter和DataID的处理操作。 (This API realizes data transmission with protection based on Profile7 algorithm. It includes operations such as checksum calculation, counter, and DataID processing.)

E2E_P07ProtectInit函数定义 (EndToEnd_ProtectInit Function Definition)

函数名称: (Function Name:)

E2E_P07ProtectInit

函数原型: (Function prototype:)

Std_ReturnType E2E_P07ProtectInit (E2E_P07ProtectStateType* StatePtr )

服务编号: (Service Number:)

0x22

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

无(None)

输入输出参数: (Input Output Parameters:)

无(None)

输出参数: (Output Parameters:)

StatePtr:Pointer to port/data communication state.

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_INPUTERR_WRONG, E2E_E_INTERR, E2E_E_OK

功能概述: (Function Overview:)

初始化Protect State (Initialize Protect State)

E2E_P07Check函数定义 (E2E_P07Check Function Definition)

函数名称: (Function Name:)

E2E_P07Check

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P07Check(E2E_P07ConfigType*ConfigPtr, E2E_P07CheckStateType*StatePtr, constuint8* DataPtr,uint32 Length )

服务编号: (Service Number:)

0x23

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

ConfigPtr

值域: (Domain:)

Pointer to staticconfiguration.

DataPtr

Pointer to receiveddata.

Length

Length of the data inbytes.

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_INPUTERR_WRONG, E2E_E_INTERR, E2E_E_OK

功能概述: (Function Overview:)

通过Profile7算法检查接收数据,包括CRC计算、Counter和DataID的处理 (Check received data using Profile7 algorithm, including CRC calculation and handling of Counter and DataID.)

E2E_P07CheckInit函数定义 (Definition of E2E_P07CheckInit function)

函数名称: (Function Name:)

E2E_P07CheckInit

函数原型: (Function prototype:)

Std_ReturnType E2E_P07CheckInit(E2E_P07CheckStateType* StatePtr )

服务编号: (Service Number:)

0x24

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

无(None)

输入输出参数: (Input Output Parameters:)

无(None)

输出参数: (Output Parameters:)

StatePtr:Pointer to port/data communication state.

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_INPUTERR_WRONG, E2E_E_INTERR, E2E_E_OK

E2E_E_OK

功能概述: (Function Overview:)

初始化Check State (Initialize Check State)

E2E_P11Protect函数定义 (EndToEnd_ProtectFunctionDefinition)

函数名称: (Function Name:)

E2E_P11Protect

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P11Protect (constE2E_P11ConfigType*ConfigPtr, E2E_P11ProtectStateType*StatePtr, uint8*DataPtr, uint16Length )

服务编号: (Service Number:)

0x3b

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

ConfigPtr

值域: (Domain:)

Pointer to staticconfiguration.

Length

Length of the data inbytes.

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

DataPtr:Pointerto Data to betransmitted.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_INPUTERR_WRONG, E2E_E_INTERR, E2E_E_OK

功能概述: (Function Overview:)

通过本API实现传输数据基于Profile11算法的保护。包含了校验值计算、couter处理操作。 (This API achieves the protection of transmitting data based on Profile11 algorithm, including check value calculation and counter processing operations.)

E2E_P11ProtectInit函数定义 (Define E2E_P11ProtectInit Function)

函数名称: (Function Name:)

E2E_P11ProtectInit

函数原型: (Function prototype:)

Std_ReturnType E2E_P11ProtectInit (E2E_P11ProtectStateType* StatePtr )

服务编号: (Service Number:)

0x3c

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

无(None)

输入输出参数: (Input Output Parameters:)

无(None)

输出参数: (Output Parameters:)

StatePtr:Pointer to port/data communication state.

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_INPUTERR_WRONG, E2E_E_INTERR, E2E_E_OK

功能概述: (Function Overview:)

初始化Protect State (Initialize Protect State)

E2E_P11Check函数定义 (E2E_P11Check function definition)

函数名称: (Function Name:)

E2E_P11Check

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P11Check(E2E_P11ConfigType*ConfigPtr, E2E_P11CheckStateType*StatePtr, constuint8* DataPtr,uint16 Length )

服务编号: (Service Number:)

0x38

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

ConfigPtr

值域: (Domain:)

Pointer to staticconfiguration.

DataPtr

Pointer to receiveddata.

Length

Length of the data inbytes.

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_INPUTERR_WRONG, E2E_E_INTERR, E2E_E_OK

功能概述: (Function Overview:)

通过Profile11算法检查接收数据,包括CRC计算、Counter的处理 (Check received data through Profile11 algorithm, including CRC calculation and Counter processing)

E2E_P11CheckInit函数定义 (The definition of E2E_P11CheckInit function)

函数名称: (Function Name:)

E2E_P11CheckInit

函数原型: (Function prototype:)

Std_ReturnType E2E_P11CheckInit(E2E_P11CheckStateType* StatePtr )

服务编号: (Service Number:)

0x39

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

无(None)

输入输出参数: (Input Output Parameters:)

无(None)

输出参数: (Output Parameters:)

StatePtr:Pointer to port/data communication state.

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_INPUTERR_WRONG, E2E_E_INTERR, E2E_E_OK

功能概述: (Function Overview:)

初始化Check State (Initialize Check State)

E2E_P22Protect函数定义 (E2E_P22Protect Function Definition)

函数名称: (Function Name:)

E2E_P22Protect

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P22Protect (constE2E_P22ConfigType*ConfigPtr, E2E_P22ProtectStateTypeStatePtr, uint8DataPtr, uint16Length )

服务编号: (Service Number:)

0x40

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

ConfigPtr

值域: (Domain:)

Pointer to staticconfiguration.

Length

Length of the data inbytes.

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

DataPtr:Pointerto Data to betransmitted.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_INPUTERR_WRONG, E2E_E_INTERR, E2E_E_OK

功能概述: (Function Overview:)

通过本API实现传输数据基于Profile22算法的保护。包含了校验值计算、couter处理操作。 (This API implements data transmission protection based on Profile22 algorithm. It includes check value calculation and counter processing operations.)

E2E_P22ProtectInit函数定义 (E2E_P22ProtectInit Function Definition)

函数名称: (Function Name:)

E2E_P22ProtectInit

函数原型: (Function prototype:)

Std_ReturnType E2E_P22ProtectInit (E2E_P22ProtectStateType* StatePtr )

服务编号: (Service Number:)

0x41

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

无(None)

输入输出参数: (Input Output Parameters:)

无(None)

输出参数: (Output Parameters:)

StatePtr:Pointer to port/data communication state.

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_INPUTERR_WRONG, E2E_E_INTERR, E2E_E_OK

功能概述: (Function Overview:)

初始化Protect State (Initialize Protect State)

E2E_P22Check函数定义 (E2E_P22Check function definition)

函数名称: (Function Name:)

E2E_P22Check

函数原型: (Function prototype:)

Std_ReturnTypeE2E_P22Check (constE2E_P22ConfigType*ConfigPtr, E2E_P22CheckStateTypeStatePtr, constuint8* DataPtr,uint16 Length )

服务编号: (Service Number:)

0x3d

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

ConfigPtr

值域: (Domain:)

Pointer to staticconfiguration.

DataPtr

Pointer to receiveddata.

Length

Length of the data inbytes.

输入输出参数: (Input Output Parameters:)

StatePtr:Pointerto port/datacommunicationstate.

输出参数: (Output Parameters:)

无(None)

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_INPUTERR_WRONG, E2E_E_INTERR, E2E_E_OK

功能概述: (Function Overview:)

通过Profile22算法检查接收数据,包括CRC计算、Counter的处理 (Through Profile22 algorithm to check received data, including CRC calculation and Counter processing.)

E2E_P22CheckInit函数定义 (E2E_P22CheckInit function definition)

函数名称: (Function Name:)

E2E_P22CheckInit

函数原型: (Function prototype:)

Std_ReturnType E2E_P22CheckInit(E2E_P22CheckStateType* StatePtr )

服务编号: (Service Number:)

0x3e

同步/异步: (Synchronous/asynchronous:)

同步 (Sync)

是否可重入: (Is Reentrant:)

可重入 (Reentrant)

输入参数: (Input parameters:)

无(None)

输入输出参数: (Input Output Parameters:)

无(None)

输出参数: (Output Parameters:)

StatePtr:Pointer to port/data communication state.

返回值: (Return Value:)

Std_ReturnType:E2E_E_INPUTERR_NULL, E2E_E_INPUTERR_WRONG, E2E_E_INTERR, E2E_E_OK

功能概述: (Function Overview:)

初始化Check State (Initialize Check State)