E2E¶
文档信息(Document Information)¶
版本历史(Version History)¶
日期(Date) |
作者(Author) |
版本(Version) |
状态(Status) |
说明(Description) |
|---|---|---|---|---|
2024/12/5 |
qinmei.chen |
V0.1 |
发布(Release) |
首次发布(First release) |
2025/04/04 |
qinmei.chen |
V1.0 |
发布(Release) |
正式发布(Official release) |
参考文档(Reference Document)¶
编号(Number) |
分类(Classification) |
标题(Title) |
版本(Version) |
|---|---|---|---|
1 |
Autosar |
AUTOSAR_SWS_E2ELibrary.pdf |
R23-11 |
2 |
Autosar |
AUTOSAR_FO_PRS_E2EProtocol.pdf |
R23-11 |
术语与简写(Terms and Abbreviations)¶
术语(Term)¶
术语(Term) |
解释(Explanation) |
|---|---|
E2E Library |
端到端通信保护库的简称 End-to-End Communication Protection Library |
Data ID |
一个用于唯一标识信息/数据/数据元素的标识符 An identifier used to uniquely identify information/data/data elements |
Source ID |
一个用于唯一标识源信息/数据/数据元素的标识符 An identifier used to uniquely identify the source of information/data/data elements |
Repetition |
信息的重复 Duplication of information |
Loss |
信息的丢失 Loss of information |
Delay |
信息的延迟 Delay of information |
Insertion |
信息的插入 Insertion of information |
Masquerade |
伪装 Disguise |
Incorrect addressing |
信息的不正确地址 Incorrect addressing of information |
Incorrect sequence |
信息的不正确序列 Incorrect sequence of information |
Corruption |
信息损坏 Corruption of information |
Asymmetric information |
从一个发送者发送到多个接收者的不对称信息 Asymmetric information sent from one sender to multiple recipients |
Subset |
仅由接收方的一部分接受的来自一个发送方的信息 Information from a single sender that is only accepted by a portion of the recipients |
Blocking |
阻止对通信通道的访问 Blocking access to the communication channel |
简写(Abbreviation)¶
简写(Abbreviation) |
全称(Full name) |
解释(Explanation) |
|---|---|---|
E2E |
End to End Communication Protection |
端到端的通信保护 |
Data ID |
Data Identification |
一段数据/消息的标识 |
简介(Introduction)¶
E2EL在架构上属于AUTOSAR静态库代码,使用同样属于静态库代码的CRC模块来进行安全数据的保护,E2E XF通过把E2EL的相关算法抽象成用户易操作的配置项和配置界面,并根据用户的属于生成代码,来帮助用户更好的使用E2EL来保护数据。
Architecturally, the E2E Library (E2EL) is implemented as an AUTOSAR static library. It utilizes the CRC module—also a static library component—to protect safety-critical data. The E2E Transformer (E2E XF) abstracts E2EL’s complex algorithms into user-configurable parameters and interfaces. Based on user inputs, it auto-generates code to simplify the adoption of E2EL for robust data protection.
E2EL架构图¶
E2EL Architecture Diagram
功能描述(Functional Description)¶
特性(Features)¶
E2EL的各个profile提供了一种可以满足功能安全目标的数据保护机制,各个E2E profile通过不同的算法和API完成以下类型的数据保护机制:
Each profile of E2EL provides a data protection mechanism that can meet functional safety goals. Each E2E profile accomplishes the following types of data protection mechanisms through different algorithms and APIs:
集成CRC库的CRC保护机制;
A CRC, provided by CRC Supervision;
接收端检测接收报文的递增计数器,判断接收数据是否有序递增;
A Sequence Counter incremented at every transmission request, the value is checked at receiver side for correct incrementation;
接收端通过检测心跳计数器判断数据是否发生改变;
An Alive Counter incremented at every transmission request, the value checked at the receiver side if it changes at all;
通过特定的ID来区分不同的I-PDU组;
A specific ID for different I-PDU groups;
超时检测机制(接收报文超时和发送确认超时);
Timeout detection (Receiver communication timeout and Sender acknowledgement timeout);
E2E profiles的用户需要根据自己的应用场景决定选用哪种类型的E2E profile;
Users of E2E profiles need to decide which type of E2E profile to use according to their own application scenarios;
E2E支持的profile有profile1、profile2、profile4、profile4m、profile5、profile6、profile7、profile7m、profile8、profile8m、profile11、profile22、profile44、profile44m。
The profiles supported by E2E include profile1, profile2, profile4, profile4m, profile5, profile6, profile7, profile7m, profile8, profile8m, profile11, profile22, profile44, and profile44m.
以下为E2EL各Profile功能介绍。
The following is an introduction to the functions of each E2EL Profile.
Profile1¶
CRC保护(CRC Protection)
Profile1使用CRC-8-SAE J1850算法对数据的完整性进行校验。
Profile 1 uses the CRC-8-SAE J1850 algorithm to verify the integrity of data.
DataID
Profile1通过特定的ID来区分不同的I-PDU组,它分为了四种ID模式。
Profile 1 distinguishes different I-PDU groups through specific IDs, and it is divided into four ID modes.
Both bytes (dataIdMode=0):16位数据ID的两个字节都附加在安全数据上用于CRC计算,但没有显式发送。
Both bytes (dataIdMode=0): Both bytes of the 16 bit Data ID are used in the CRC calculation but are not explicitly transmitted.
ALT bytes (dataIdMode=1):根据counter的基偶性,来选择高字节还是低字节进行CRC计算。
ALT bytes (dataIdMode=1): Depending on parity of the counter the high and the low byte is included. For even counter values the low byte is included and for odd counter values the high byte is included.
Low byte only (dataIdMode=2):只有16位数据ID的低字节附加到安全数据进行CRC计算,但不显式发送,高字节设置为0。
Low byte only (dataIdMode=2): Only the low byte is included, while the high byte is set to 0 and neither is explicitly transmitted.
显式传输数据ID nibble (dataIdMode=3): 16位数据ID的两个字节都附加在安全数据上进行CRC计算,但数据ID高字节的低字节显式传输。在这个16位的数据ID中只使用了12位。
Explicit transmission of data ID nibble (dataIdMode=3): Both bytes of the 16-bit data ID are used in the CRC calculation, but the low nibble of the high byte of the data ID is transmitted explicitly. the DataID is limited to 12 bits.
Profile2¶
CRC保护(CRC Protection)
Profile2使用8bit Polynomial为0x2f的算法对数据的完整性进行校验。
Profile2 uses an algorithm with an 8-bit Polynomial of 0x2f to verify the integrity of data.
Sequence counter/alive counter
4-bit的Sequence counter/alive counter在0-15之间依次递增, 递增计数器用来判断接收数据是否有序递增,心跳计数器用来判断数据是否发生改变。
A 4-bit Sequence counter/alive counter increments sequentially between 0 and 15, used to determine if the received data is incrementing in order; The alive counter (also 4-bit) detects if the data has changed.
DataID
DataID使用特定的ID来区分不同的I-PDU组,Profile2使用了一个预设的DataID列表,并通过Counter的值来选择DataID列表里的特定的DataID。
DataID uses a specific ID to distinguish different I-PDU groups. Profile2 uses a preset DataID list and selects a specific DataID from the DataID list based on the current Counter value.
Profile4¶
CRC保护(CRC Protection)
Profile4使用32 bit polynomial为0x1F4ACFB13的算法对数据的完整性进行校验。
Profile4 uses an algorithm with a 32-bit polynomial of 0x1F4ACFB13 to verify the integrity of data.
Sequence counter/alive counter
16-bit的Sequence counter/alive counter, 递增计数器用来判断接收数据是否有序递增,心跳计数器用来判断数据是否发生改变。
A 16-bit Sequence counter/alive counter, used to determine whether the received data is incrementing in order; The alive counter is used to determine whether the data has changed.
Data Length
Profile4使用16bit的Data Length来支持动态大小的输入数据。
Profile4 uses a 16-bit Data Length to support dynamic-size input data.
DataID
DataID使用特定的ID来区分不同的I-PDU组,Profile4使用了全局唯一的32bit的DataID进行显式发送。
DataID uses a specific ID to distinguish different I-PDU groups. Profile4 uses a globally unique 32-bit DataID for explicit transmission.
Profile4m¶
CRC保护(CRC Protection)
Profile4使用32 bit polynomial为0x1F4ACFB13的算法对数据的完整性进行校验。
Profile4 uses an algorithm with a 32-bit polynomial of 0x1F4ACFB13 to verify the integrity of data.
Sequence counter/alive counter
16-bit的Sequence counter/alive counter, 递增计数器用来判断接收数据是否有序递增,心跳计数器用来判断数据是否发生改变。
A 16-bit Sequence counter/alive counter, used to determine whether the received data is incrementing in order; The alive counter is used to determine whether the data has changed.
Data Length
Profile4使用16bit的Data Length来支持动态大小的输入数据。
Profile4 uses a 16-bit Data Length to support dynamic-size input data.
DataID
DataID使用特定的ID来区分不同的I-PDU组,Profile4使用了全局唯一的32bit的DataID进行显式发送。
DataID uses a specific ID to distinguish different I-PDU groups. Profile4 uses a globally unique 32-bit DataID for explicit transmission.
Message Type
Message Type是用于区分请求和回复信息的2bits值,显式发送。
Message Type is a 2-bit value used to distinguish between request and reply information, and is explicitly transmitted.
Message Result
Message Result是用于区分正常回复和错误回复的2bits值,显式发送。
Message Result is a 2-bit value used to distinguish between normal replies and error replies, and is explicitly transmitted.
Source ID
Source ID是用于区分不同的源的身份的全局唯一的28bits值,显式发送。
Source ID is a globally unique 28-bit value used to distinguish the identities of different sources, and is explicitly transmitted.
Profile5¶
CRC保护(CRC Protection)
Profile5使用16 bit polynomial为0x1021的算法对数据的完整性进行校验。
Profile5 uses an algorithm with a 16-bit polynomial of 0x1021 to verify the integrity of data.
Sequence counter/alive counter
8-bit的Sequence counter/alive counter, 递增计数器用来判断接收数据是否有序递增,心跳计数器用来判断数据是否发生改变。
An 8-bit Sequence counter/alive counter, used to determine whether the received data is incrementing in order; The alive counter is used to determine whether the data has changed.
DataID
DataID使用特定的ID来区分不同的I-PDU组,Profile5使用了全局唯一的16bit的DataID进行隐式发送。
DataID uses a specific ID to distinguish different I-PDU groups. Profile5 uses a globally unique 16-bit DataID for implicit transmission.
Profile6¶
CRC保护(CRC Protection)
Profile6使用16 bit polynomial为0x1021的算法对数据的完整性进行校验。
Profile6 uses an algorithm with a 16-bit polynomial of 0x1021 to verify the integrity of data.
Sequence counter/alive counter
8-bit的Sequence counter/alive counter, 递增计数器用来判断接收数据是否有序递增,心跳计数器用来判断数据是否发生改变。
An 8-bit Sequence counter/alive counter, used to determine whether the received data is incrementing in order, The alive counter is used to determine whether the data has changed.
DataID
DataID使用特定的ID来区分不同的I-PDU组,Profile5使用了全局唯一的16bit的DataID进行隐式发送。
DataID uses a specific ID to distinguish different I-PDU groups. Profile5 uses a globally unique 16-bit DataID for implicit transmission.
Data Length
Profile6使用16bit的Data Length来支持动态大小的输入数据。
Profile6 uses a 16-bit Data Length to support dynamic-size input data.
Profile7¶
CRC保护(CRC Protection)
Profile7使用64 bit polynomial为0x42F0E1EBA9EA3693的算法对数据的完整性进行校验。
Profile7 uses an algorithm with a 64-bit polynomial of 0x42F0E1EBA9EA3693 to verify the integrity of data.
Sequence counter/alive counter
32-bit的Sequence counter/alive counter, 递增计数器用来判断接收数据是否有序递增,心跳计数器用来判断数据是否发生改变。
A 32-bit Sequence counter/alive counter, used to determine whether the received data is incrementing in order; The alive counter is used to determine whether the data has changed.
DataID
DataID使用特定的ID来区分不同的I-PDU组,Profile7使用了全局唯一的32bit的DataID进行隐式发送。
DataID uses a specific ID to distinguish different I-PDU groups. Profile7 uses a globally unique 32-bit DataID for implicit transmission.
Data Length
Profile7使用32bit的Data Length来支持动态大小的输入数据。
Profile7 uses a 32-bit Data Length to support dynamic-size input data.
Profile7m¶
CRC保护(CRC Protection)
Profile7m使用64 bit polynomial为0x42F0E1EBA9EA3693的算法对数据的完整性进行校验。
Profile7m uses an algorithm with a 64-bit polynomial of 0x42F0E1EBA9EA3693 to verify the integrity of data.
Sequence counter/alive counter
32-bit的Sequence counter/alive counter, 递增计数器用来判断接收数据是否有序递增,心跳计数器用来判断数据是否发生改变。
A 32-bit Sequence counter/alive counter, used to determine whether the received data is incrementing in order; The alive counter is used to determine whether the data has changed.
DataID
DataID使用特定的ID来区分不同的I-PDU组,Profile7m使用了全局唯一的32bit的DataID进行隐式发送。
DataID uses a specific ID to distinguish different I-PDU groups. Profile7m uses a globally unique 32-bit DataID for implicit transmission.
Data Length
Profile7m使用32bit的Data Length来支持动态大小的输入数据。
Profile7m uses a 32-bit Data Length to support dynamic-size input data.
Message Type
Message Type是用于区分请求和回复信息的2bits值,显式发送。
Message Type is a 2-bit value used to distinguish between request and reply information, and is explicitly transmitted.
Message Result
Message Result是用于区分正常回复和错误回复的2bits值,显式发送。
Message Result is a 2-bit value used to distinguish between normal replies and error replies, and is explicitly transmitted.
Source ID
Source ID是用于区分不同的源的身份的全局唯一的28bits值,显式发送。
Source ID is a globally unique 28-bit value used to distinguish the identities of different sources, and is explicitly transmitted.
Profile8¶
CRC保护
Profile8使用32 bit polynomial为0xF4ACFB13的算法对数据的完整性进行校验。
Profile8 uses an algorithm with a 32-bit polynomial of 0xF4ACFB13 to verify the integrity of data.
Sequence counter/alive counter
32-bit的Sequence counter/alive counter, 递增计数器用来判断接收数据是否有序递增,心跳计数器用来判断数据是否发生改变。
A 32-bit Sequence counter/alive counter, used to determine whether the received data is incrementing in order; The alive counter is used to determine whether the data has changed.
DataID
DataID使用特定的ID来区分不同的I-PDU组,Profile8使用了全局唯一的32bit的DataID进行显式发送。
DataID uses a specific ID to distinguish different I-PDU groups, and Profile8 uses a globally unique 32-bit DataID for explicit transmission.
Data Length
Profile8使用32bit的Data Length来支持动态大小的输入数据。
Profile8 uses a 32-bit Data Length to support dynamic-size input data.
Profile8m¶
CRC保护(CRC Protection)
Profile8m使用32 bit polynomial为0xF4ACFB13的算法对数据的完整性进行校验。
Profile8m uses an algorithm with a 32-bit polynomial of 0xF4ACFB13 to verify the integrity of data.
Sequence counter/alive counter
32-bit的Sequence counter/alive counter, 递增计数器用来判断接收数据是否有序递增,心跳计数器用来判断数据是否发生改变。
A 32-bit Sequence counter/alive counter, used to determine whether the received data is incrementing in order; The alive counter is used to determine whether the data has changed.
DataID
DataID使用特定的ID来区分不同的I-PDU组,Profile8使用了全局唯一的32bit的DataID进行显式发送。
DataID uses a specific ID to distinguish different I-PDU groups, and Profile8 uses a globally unique 32-bit DataID for explicit transmission.
Data Length
Profile8m使用32bit的Data Length来支持动态大小的输入数据。
Profile8m uses a 32-bit Data Length to support dynamic-size input data.
Message Type
Message Type是用于区分请求和回复信息的2bits值,显式发送。
Message Type is a 2-bit value used to distinguish between request and reply information, and is explicitly transmitted.
Message Result
Message Result是用于区分正常回复和错误回复的2bits值,显式发送。
Message Result is a 2-bit value used to distinguish between normal replies and error replies, and is explicitly transmitted.
Source ID
Source ID是用于区分不同的源的身份的全局唯一的28bits值,显式发送。
Source ID is a globally unique 28-bit value used to distinguish the identities of different sources, and is explicitly transmitted.
Profile11¶
CRC保护
Profile11使用CRC-8-SAE J1850的算法对数据的完整性进行校验。
Profile11 uses the CRC-8-SAE J1850 algorithm to verify the integrity of data.
Sequence counter/alive counter
4-bit的Sequence counter/alive counter, 递增计数器用来判断接收数据是否有序递增,心跳计数器用来判断数据是否发生改变。
A 4-bit Sequence counter/alive counter, used to determine whether the received data is incrementing in order; The alive counter is used to determine whether the data has changed.
DataID
Profile11通过特定的ID来区分不同的I-PDU组,它分为了两种ID模式:
Profile11 distinguishes different I-PDU groups through specific IDs, and it is divided into two ID modes:
Both bytes (dataIdMode=0):16位数据ID的两个字节都附加在安全数据上用于CRC计算,但没有显式发送。
Both bytes (dataIdMode=0): Both bytes of the 16-bit data ID are appended to the secure data for CRC calculation but are not explicitly transmitted.
显式传输数据ID nibble (dataIdMode=3): 16位数据ID的两个字节都附加在安全数据上进行CRC计算,但数据ID高字节的低字节显式传输。在这个16位的数据ID中只使用了12位。
Explicit transmission of data ID nibble (dataIdMode=3): Both bytes of the 16-bit data ID are appended to the secure data for CRC calculation, but the low nibble of the high byte of the data ID is explicitly transmitted. Only 12 bits are used in this 16-bit data ID.
Profile22¶
CRC保护(CRC Protection)
Profile22使用8bit Polynomial为0x2f的算法对数据的完整性进行校验。
Profile22 uses an algorithm with an 8-bit Polynomial of 0x2f to verify the integrity of data.
DataID
DataID使用特定的ID来区分不同的I-PDU组,Profile22使用了一个预设的DataID列表,并通过Counter的值来选择DataID列表里的特定的DataID。
DataID uses a specific ID to distinguish different I-PDU groups. Profile22 uses a preset DataID list and selects a specific DataID from the DataID list based on the current Counter value.
Profile44¶
CRC保护(CRC Protection)
Profile44使用32 bit polynomial为0x1F4ACFB13的算法对数据的完整性进行校验。
Profile44 uses an algorithm with a 32-bit polynomial of 0x1F4ACFB13 to verify the integrity of data.
Sequence counter/alive counter
16-bit的Sequence counter/alive counter, 递增计数器用来判断接收数据是否有序递增,心跳计数器用来判断数据是否发生改变。
A 16-bit Sequence counter/alive counter, used to determine whether the received data is incrementing in order; The alive counter is used to determine whether the data has changed.
Data Length
Profile44使用16bit的Data Length来支持动态大小的输入数据。
Profile44 uses a 16-bit Data Length to support dynamic-size input data.
DataID
DataID使用特定的ID来区分不同的I-PDU组,Profile44使用了全局唯一的32bit的DataID进行显式发送。
DataID uses a specific ID to distinguish different I-PDU groups. Profile44 uses a globally unique 32-bit DataID for explicit transmission.
Profile44m¶
CRC保护( CRC Protection)
Profile44m使用32 bit polynomial为0x1F4ACFB13的算法对数据的完整性进行校验。
Profile44m uses an algorithm with a 32-bit polynomial of 0x1F4ACFB13 to verify the integrity of data.
Sequence counter/alive counter
16-bit的Sequence counter/alive counter, 递增计数器用来判断接收数据是否有序递增,心跳计数器用来判断数据是否发生改变。
A 16-bit Sequence counter/alive counter, used to determine whether the received data is incrementing in order; The alive counter is used to determine whether the data has changed.
Data Length
Profile44m使用16bit的Data Length来支持动态大小的输入数据。
Profile44m uses a 16-bit Data Length to support dynamic-size input data.
DataID
DataID使用特定的ID来区分不同的I-PDU组,Profile44使用了全局唯一的32bit的DataID进行显式发送。
DataID uses a specific ID to distinguish different I-PDU groups. Profile44 uses a globally unique 32-bit DataID for explicit transmission.
Message Type
Message Type是用于区分请求和回复信息的2bits值,显式发送。
Message Type is a 2-bit value used to distinguish between request and reply information, and is explicitly transmitted.
Message Result
Message Result是用于区分正常回复和错误回复的2bits值,显式发送。
Message Result is a 2-bit value used to distinguish between normal replies and error replies, and is explicitly transmitted.
Source ID
Source ID是用于区分不同的源的身份的全局唯一的28bits值,显式发送。
Source ID is a globally unique 28-bit value used to distinguish the identities of different sources, and is explicitly transmitted.
偏差(Deviation)¶
E2E Wrapper未实现(E2E Wrapper is not implemented)
因为我们E2E的调用均通过RTE的transformer进行实现
Because our E2E calls are all implemented through the RTE transformer
forward未实现(forward is not implemented)
因为暂无需求
扩展¶
None
集成(Integration)¶
文件列表(File list)¶
静态文件(Static files)¶
文件(File) |
描述(Description) |
|---|---|
E2E_P01.c |
E2E Profile1算法库源文件 Source file of E2E Profile1 algorithm library |
E2E_P01.h |
E2E Profile1算法库头文件 Header file of E2E Profile1 algorithm library |
E2E_P02.c |
E2E Profile2算法库源文件 Source file of E2E Profile2 algorithm library |
E2E_P02.h |
E2E Profile2算法库头文件 Header file of E2E Profile2 algorithm library |
E2E_P04.c |
E2E Profile4算法库源文件 Source file of E2E Profile4 algorithm library |
E2E_P04.h |
E2E Profile4算法库头文件 Header file of E2E Profile4 algorithm library |
E2E_P04m.c |
E2E Profile4m算法库源文件 Source file of E2E Profile4m algorithm library |
E2E_P04m.h |
E2E Profile4m算法库头文件 Header file of E2E Profile4m algorithm library |
E2E_P05.c |
E2E Profile5算法库源文件 Source file of E2E Profile5 algorithm library |
E2E_P05.h |
E2E Profile5算法库头文件 Header file of E2E Profile5 algorithm library |
E2E_P06.c |
E2E Profile6算法库源文件 Source file of E2E Profile6 algorithm library |
E2E_P06.h |
E2E Profile6算法库头文件 Header file of E2E Profile6 algorithm library |
E2E_P07.c |
E2E Profile7算法库源文件 Source file of E2E Profile7 algorithm library |
E2E_P07.h |
E2E Profile7算法库头文件 Header file of E2E Profile7 algorithm library |
E2E_P07m.c |
E2E Profile7m算法库源文件 Source file of E2E Profile7m algorithm library |
E2E_P07m.h |
E2E Profile7m算法库头文件 Header file of E2E Profile7m algorithm library |
E2E_P08.c |
E2E Profile8算法库源文件 Source file of E2E Profile8 algorithm library |
E2E_P08.h |
E2E Profile8算法库头文件 Header file of E2E Profile8 algorithm library |
E2E_P08m.c |
E2E Profile8m算法库源文件 Source file of E2E Profile8m algorithm library |
E2E_P08m.h |
E2E Profile08m算法库头文件 Header file of E2E Profile8m algorithm library |
E2E_P11.c |
E2E Profile11算法库源文件 Source file of E2E Profile11 algorithm library |
E2E_P11.h |
E2E Profile11算法库头文件 Header file of E2E Profile11 algorithm library |
E2E_P22.c |
E2E Profile22算法库源文件 Source file of E2E Profile22 algorithm library |
E2E_P22.h |
E2E Profile22算法库头文件 Header file of E2E Profile22 algorithm library |
E2E_P44.c |
E2E Profile44算法库源文件 Source file of E2E Profile44 algorithm library |
E2E_P44.h |
E2E Profile44算法库头文件 Header file of E2E Profile44 algorithm library |
E2E_P44m.c |
E2E Profile44m算法库源文件 Source file of E2E Profile44m algorithm library |
E2E_P44m.h |
E2E Profile44m算法库头文件 Header file of E2E Profile44m algorithm library |
E2E.c |
E2E状态机管理 E2E state machine management |
E2E.h |
E2E的共有头文件 Common header file of E2E |
E2EL组件文件交互关系图¶
Interaction Diagram of E2EL Component Files
动态文件 (Dynamic files)¶
None
错误处理(Error handling)¶
开发错误(Development errors)¶
None
产品错误(Product error)¶
None
运行时错误(Runtime error)¶
Error code |
Value[hex] |
Description |
|---|---|---|
E2E_E_INPUTERR_NULL |
0x13 |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
0x17 |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
0x19 |
An internal library error has occurred (e.g. error detected by program flow monitoring, violated invariant or postcondition) |
E2E_E_WRONGSTATE |
0x1A |
Function executed in wrong state |
E2E接口描述(E2E Interface Description)¶
类型定义(type definition)¶
Type Name |
Type |
Description |
|---|---|---|
E2E_PCheckStatusType |
uint8 |
Profile-independent status of the reception on one single Data in one cycle. |
E2E_SMStateType |
uint8 |
Status of the communication channel exchanging the data. If the status is OK, then the data may be used. |
E2E_SMConfigType |
struct E2E_SMConfigType |
Configuration of a communication channel for exchanging Data. |
E2E_SMCheckStateType |
struct E2E_SMCheckStateType |
State of the protection of a communication channel. |
提供的服务(Provided Services)¶
E2E_GetVersionInfo¶
void E2E_GetVersionInfo(Std_VersionInfoType *versionInfo)
This service returns the version information of this module.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
versionInfo |
Pointer to where to store the version |
- Return type
void
E2E_SMCheck¶
Std_ReturnType E2E_SMCheck(E2E_PCheckStatusType ProfileStatus, const E2E_SMConfigType *ConfigPtr, E2E_SMCheckStateType *StatePtr)
Checks the communication channel. It determines if the data can be used for safety-related application, based on history of checks performed by a corresponding E2E_P0XCheck() function.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ProfileStatus |
Profile-independent status of the reception on one single Data in one cycle. |
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_E_WRONGSTATE |
Function executed in wrong state |
E2E_SMCheckInit¶
Std_ReturnType E2E_SMCheckInit(E2E_SMCheckStateType *StatePtr, const E2E_SMConfigType *ConfigPtr)
Initializes the state machine.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
[in] |
ConfigPtr |
Pointer to static configuration. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P01接口描述(E2E_P01 Interface Description)¶
类型定义(Type Definitions)¶
Type Name |
Type |
Description |
|---|---|---|
E2E_P01ConfigType |
struct E2E_P01ConfigType |
Configuration of transmitted Data (Data Element or I-PDU),for E2E Profile 1. For each transmitted Data, there is an instance of this typedef. |
E2E_P01ProtectStateType |
struct E2E_P01ProtectStateType |
State of the sender for a Data protected with E2E Profile 1. |
E2E_P01CheckStateType |
struct E2E_P01CheckStateType |
State of the reception on one single Data protected with E2E Profile 1. |
E2E_P01DataIDMode |
enum |
E2E P01 DataID mode. |
E2E_P01CheckStatusType |
enum |
Status of the reception on one single Data in one cycle, protected with E2E Profile1. |
提供的服务(Provided Services)¶
E2E_P01Protect¶
Std_ReturnType E2E_P01Protect(const E2E_P01ConfigType *ConfigPtr, E2E_P01ProtectStateType *StatePtr, uint8 *DataPtr)
Protects the array/buffer to be transmitted using the E2E profile 1. This includes checksum calculation, handling of counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[inout] |
DataPtr |
Pointer to Data to be transmitted. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P01ProtectInit¶
Std_ReturnType E2E_P01ProtectInit(E2E_P01ProtectStateType *StatePtr)
Initializes the protection state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P01Check¶
Std_ReturnType E2E_P01Check(const E2E_P01ConfigType *Config, E2E_P01CheckStateType *State, const uint8 *Data)
Checks the Data received using the E2E profile 1. This includes CRC calculation, handling of Counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
Config |
Pointer to static configuration. |
[inout] |
State |
Pointer to port/data communication state. |
[in] |
Data |
Pointer to received data. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P01CheckInit¶
Std_ReturnType E2E_P01CheckInit(E2E_P01CheckStateType *State)
Initializes the check state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
State |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P01MapStatusToSM¶
E2E_PCheckStatusType E2E_P01MapStatusToSM(Std_ReturnType CheckReturn, E2E_P01CheckStatusType Status, boolean ProfileBehavior)
The function maps the check status of Profile 1 to a generic check status, which can be used by E2E state machine check function. The E2E Profile 1 delivers a more fine-granular status, but this is not relevant for the E2E state machine.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
CheckReturn |
Return value of the E2E_P01Check function. |
[in] |
Status |
Status determined by E2E_P01Check function. |
[in] |
ProfileBehavior |
FALSE : check has the legacy behavior, before R4.2 TRUE : check behaves like new P4/P5/P6 profiles introduced in R4.2 |
- Return type
E2E_PCheckStatusType
E2E_P02接口描述(E2E_P02 Interface Description)¶
类型定义(Type Definitions)¶
Type Name |
Type |
Description |
|---|---|---|
E2E_P02ConfigType |
struct E2E_P02ConfigType |
Configuration of transmitted Data (Data Element or I-PDU), for E2E Profile 2. For each transmitted Data, there is an instance of this typedef. |
E2E_P02ProtectStateType |
struct E2E_P02ProtectStateType |
State of the sender for a Data protected with E2E Profile 2. |
E2E_P02CheckStateType |
struct E2E_P02CheckStateType |
State of the reception on one single Data protected with E2E Profile 2. |
E2E_P02CheckStatusType |
enum |
Status of the reception on one single Data in one cycle, protected with E2E Profile2. |
提供的服务(Provided Services)¶
E2E_P02Protect¶
Std_ReturnType E2E_P02Protect(const E2E_P02ConfigType *ConfigPtr, E2E_P02ProtectStateType *StatePtr, uint8 *DataPtr)
Protects the array/buffer to be transmitted using the E2E profile 2. This includes checksum calculation, handling of counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[inout] |
DataPtr |
Pointer to Data to be transmitted. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P02ProtectInit¶
Std_ReturnType E2E_P02ProtectInit(E2E_P02ProtectStateType *StatePtr)
Initializes the protection state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P02Check¶
Std_ReturnType E2E_P02Check(const E2E_P02ConfigType *ConfigPtr, E2E_P02CheckStateType *StatePtr, const uint8 *DataPtr)
Checks the Data received using the E2E profile 2. This includes CRC calculation, handling of Counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[in] |
DataPtr |
Pointer to received data. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P02CheckInit¶
Std_ReturnType E2E_P02CheckInit(E2E_P02CheckStateType *StatePtr)
Initializes the check state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P02MapStatusToSM¶
E2E_PCheckStatusType E2E_P02MapStatusToSM(Std_ReturnType CheckReturn, E2E_P02CheckStatusType Status, boolean ProfileBehavior)
The function maps the check status of Profile 2 to a generic check status, which can be used by E2E state machine check function. The E2E Profile 2 delivers a more fine-granular status, but this is not relevant for the E2E state machine.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
CheckReturn |
Return value of the E2E_P02Check function. |
[in] |
Status |
Status determined by E2E_P02Check function. |
[in] |
ProfileBehavior |
FALSE : check has the legacy behavior, before R4.2 TRUE : check behaves like new P4/P5/P6 profiles introduced in R4.2 |
- Return type
E2E_PCheckStatusType
E2E_P04接口描述(E2E_P04 Interface Description)¶
类型定义(Type Definitions)¶
Type Name |
Type |
Description |
|---|---|---|
E2E_P04ConfigType |
struct E2E_P04ConfigType |
Configuration of transmitted Data (Data Element or I-PDU), for E2E Profile 4. For each transmitted Data, there is an instance of this typedef. |
E2E_P04ProtectStateType |
struct E2E_P04ProtectStateType |
State of the sender for a Data protected with E2E Profile 4. |
E2E_P04CheckStateType |
struct E2E_P04CheckStateType |
State of the reception on one single Data protected with E2E Profile 4. |
E2E_P04CheckStatusType |
enum |
Status of the reception on one single Data in one cycle, protected with E2E Profile4. |
提供的服务(Provided Services)¶
E2E_P04Protect¶
Std_ReturnType E2E_P04Protect(const E2E_P04ConfigType *ConfigPtr, E2E_P04ProtectStateType *StatePtr, uint8 *DataPtr, uint16 Length)
Protects the array/buffer to be transmitted using the E2E profile 4. This includes checksum calculation, handling of counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[inout] |
DataPtr |
Pointer to Data to be transmitted. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P04ProtectInit¶
Std_ReturnType E2E_P04ProtectInit(E2E_P04ProtectStateType *StatePtr)
Initializes the protection state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P04Check¶
Std_ReturnType E2E_P04Check(const E2E_P04ConfigType *ConfigPtr, E2E_P04CheckStateType *StatePtr, const uint8 *DataPtr, uint16 Length)
Checks the Data received using the E2E profile 4. This includes CRC calculation, handling of Counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[in] |
DataPtr |
Pointer to received data. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P04CheckInit¶
Std_ReturnType E2E_P04CheckInit(E2E_P04CheckStateType *StatePtr)
Initializes the check state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P04MapStatusToSM¶
E2E_PCheckStatusType E2E_P04MapStatusToSM(Std_ReturnType CheckReturn, E2E_P04CheckStatusType Status)
The function maps the check status of profile 4 to a generic check status, which can be used by E2E state machine check function. The E2E profile 4 delivers a more fine-granular status, but this is not relevant for the E2E state machine.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
CheckReturn |
Return value of the E2E_P01Check function. |
[in] |
Status |
Status determined by E2E_P01Check function. |
- Return type
E2E_PCheckStatusType
E2E_P04m接口描述(E2E_P04m Interface Description)¶
类型定义(Type Definitions)¶
Type Name |
Type |
Description |
|---|---|---|
E2E_P04mConfigType |
struct E2E_P04mConfigType |
Configuration of transmitted Data (Data Element or I-PDU), for E2E Profile 4m. For each transmitted Data, there is an instance of this typedef. |
E2E_P04mProtectStateType |
struct E2E_P04mProtectStateType |
State of the sender for a Data protected with E2E Profile 4m. |
E2E_P04mCheckStateType |
struct E2E_P04mCheckStateType |
State of the reception on one single Data protected with E2E Profile 4m. |
E2E_P04mCheckStatusType |
enum |
Status of the reception on one single Data in one cycle, protected with E2E Profile 4m. |
提供的服务(Provided Services)¶
E2E_P04mProtect¶
Std_ReturnType E2E_P04mProtect(const E2E_P04mConfigType *ConfigPtr, E2E_P04mProtectStateType *StatePtr, uint32 SourceID, Std_MessageTypeType MessageType, Std_MessageResultType MessageResult, uint8 *DataPtr, uint16 Length)
Protects the array/buffer to be transmitted using the E2E profile 4m. This includes checksum calculation, handling of counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[in] |
SourceID |
A system-unique identifier of the Data Source. |
[in] |
MessageType |
Type of the message (request/response) |
[in] |
MessageResult |
Result of the message (OK/ERROR) |
[inout] |
DataPtr |
Pointer to Data to be transmitted. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P04mProtectInit¶
Std_ReturnType E2E_P04mProtectInit(E2E_P04mProtectStateType *StatePtr)
Initializes the protection state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P04mSourceCheck¶
Std_ReturnType E2E_P04mSourceCheck(const E2E_P04mConfigType *ConfigPtr, E2E_P04mCheckStateType *StatePtr, uint32 SourceID, Std_MessageTypeType MessageType, Std_MessageResultType MessageResult, const uint8 *DataPtr, uint16 Length)
Checks the Data received using the E2E profile 4m. This includes CRC calculation, handling of Counter, Data ID, Message Type, Message Result, and Source ID.This function is intended for usage at the data source.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to received data. |
[in] |
SourceID |
A system-unique identifier of the Data Source. |
[in] |
MessageType |
Type of the message (request/response) |
[in] |
MessageResult |
Result of the message (OK/ERROR) |
[in] |
DataPtr |
Pointer to Data to be transmitted. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P04mSinkCheck¶
Std_ReturnType E2E_P04mSinkCheck(const E2E_P04mConfigType *ConfigPtr, E2E_P04mCheckStateType *StatePtr, uint32 *SourceID, Std_MessageTypeType MessageType, Std_MessageResultType MessageResult, const uint8 *DataPtr, uint16 Length)
Checks the Data received using the E2E profile 4m. This includes CRC calculation, handling of Counter, Data ID, Message Type, Message Result, and Source ID.This function is intended for usage at the data source.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to received data. |
[out] |
SourceID |
A system-unique identifier of the Data Source. |
[in] |
MessageType |
Type of the message (request/response) |
[in] |
MessageResult |
Result of the message (OK/ERROR) |
[in] |
DataPtr |
Pointer to Data to be transmitted. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P04mCheckInit¶
Std_ReturnType E2E_P04mCheckInit(E2E_P04mCheckStateType *StatePtr)
Initializes the check state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P04mMapStatusToSM¶
E2E_PCheckStatusType E2E_P04mMapStatusToSM(Std_ReturnType CheckReturn, E2E_P04mCheckStatusType Status)
The function maps the check status of profile 4m to a generic check status, which can be used by E2E state machine check function. The E2E profile 4m delivers a more fine-granular status, but this is not relevant for the E2E state machine.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
CheckReturn |
Return value of the E2E_P01Check function. |
[in] |
Status |
Status determined by E2E_P01Check function. |
- Return type
E2E_PCheckStatusType
E2E_P05接口描述(E2E_P05 Interface Description)¶
类型定义(Type Definitions)¶
Type Name |
Type |
Description |
|---|---|---|
E2E_P05ConfigType |
struct E2E_P05ConfigType |
Configuration of transmitted Data (Data Element or I-PDU), for E2E Profile 5. For each transmitted Data, there is an instance of this typedef. |
E2E_P05ProtectStateType |
struct E2E_P05ProtectStateType |
State of the sender for a Data protected with E2E Profile 5. |
E2E_P05CheckStateType |
struct E2E_P05CheckStateType |
State of the reception on one single Data protected with E2E Profile 5. |
E2E_P05CheckStatusType |
enum |
Status of the reception on one single Data in one cycle, protected with E2E Profile5. |
提供的服务(Provided Services)¶
E2E_P05Protect¶
Std_ReturnType E2E_P05Protect(const E2E_P05ConfigType *ConfigPtr, E2E_P05ProtectStateType *StatePtr, uint8 *DataPtr, uint16 Length)
Protects the array/buffer to be transmitted using the E2E profile 5. This includes checksum calculation, handling of counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
FALSE
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[inout] |
DataPtr |
Pointer to Data to be transmitted. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P05ProtectInit¶
Std_ReturnType E2E_P05ProtectInit(E2E_P05ProtectStateType *StatePtr)
Initializes the protection state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P05Check¶
Std_ReturnType E2E_P05Check(const E2E_P05ConfigType *ConfigPtr, E2E_P05CheckStateType *StatePtr, const uint8 *DataPtr, uint16 Length)
Checks the Data received using the E2E profile 5. This includes CRC calculation, handling of Counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[in] |
DataPtr |
Pointer to received data. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P05CheckInit¶
Std_ReturnType E2E_P05CheckInit(E2E_P05CheckStateType *StatePtr)
Initializes the check state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P05MapStatusToSM¶
E2E_PCheckStatusType E2E_P05MapStatusToSM(Std_ReturnType CheckReturn, E2E_P05CheckStatusType Status)
The function maps the check status of Profile 1 to a generic check status, which can be used by E2E state machine check function. The E2E Profile 1 delivers a more fine-granular status, but this is not relevant for the E2E state machine.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
CheckReturn |
Return value of the E2E_P01Check function. |
[in] |
Status |
Status determined by E2E_P01Check function. |
- Return type
E2E_PCheckStatusType
E2E_P06接口描述(E2E_P06 Interface Description)¶
类型定义(Type Definitions)¶
Type Name |
Type |
Description |
|---|---|---|
E2E_P06ConfigType |
struct E2E_P06ConfigType |
Configuration of transmitted Data (Data Element or I-PDU), for E2E Profile 6. For each transmitted Data, there is an instance of this typedef. |
E2E_P06ProtectStateType |
struct E2E_P06ProtectStateType |
State of the sender for a Data protected with E2E Profile 6. |
E2E_P06CheckStateType |
struct E2E_P06CheckStateType |
State of the reception on one single Data protected with E2E Profile 6. |
E2E_P06CheckStatusType |
enum |
Status of the reception on one single Data in one cycle, protected with E2E Profile 6. |
提供的服务(Provided Services)¶
E2E_P06Protect¶
Std_ReturnType E2E_P06Protect(const E2E_P06ConfigType *ConfigPtr, E2E_P06ProtectStateType *StatePtr, uint8 *DataPtr, uint16 Length)
Protects the array/buffer to be transmitted using the E2E profile 6. This includes checksum calculation, handling of counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[inout] |
DataPtr |
Pointer to Data to be transmitted. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P06ProtectInit¶
Std_ReturnType E2E_P06ProtectInit(E2E_P06ProtectStateType *StatePtr)
Initializes the protection state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P06Check¶
Std_ReturnType E2E_P06Check(const E2E_P06ConfigType *ConfigPtr, E2E_P06CheckStateType *StatePtr, const uint8 *DataPtr, uint16 Length)
Checks the Data received using the E2E profile 6. This includes CRC calculation, handling of Counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[in] |
DataPtr |
Pointer to received data. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P06CheckInit¶
Std_ReturnType E2E_P06CheckInit(E2E_P06CheckStateType *StatePtr)
Initializes the check state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P06MapStatusToSM¶
E2E_PCheckStatusType E2E_P06MapStatusToSM(Std_ReturnType CheckReturn, E2E_P06CheckStatusType Status)
The function maps the check status of Profile 1 to a generic check status, which can be used by E2E state machine check function. The E2E Profile 1 delivers a more fine-granular status, but this is not relevant for the E2E state machine.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
CheckReturn |
Return value of the E2E_P01Check function. |
[in] |
Status |
Status determined by E2E_P01Check function. |
- Return type
E2E_PCheckStatusType
E2E_P07接口描述(E2E_P07 Interface Description)¶
类型定义(Type Definitions)¶
Type Name |
Type |
Description |
|---|---|---|
E2E_P07ConfigType |
struct E2E_P07ConfigType |
Configuration of transmitted Data (Data Element or I-PDU), for E2E Profile 7. For each transmitted Data, there is an instance of this typedef. |
E2E_P07ProtectStateType |
struct E2E_P07ProtectStateType |
State of the sender for a Data protected with E2E Profile 7. |
E2E_P07CheckStateType |
struct E2E_P07CheckStateType |
State of the reception on one single Data protected with E2E Profile 7. |
E2E_P07CheckStatusType |
enum |
Status of the reception on one single Data in one cycle, protected with E2E Profile 7. |
提供的服务(Provided Services)¶
E2E_P07Protect¶
Std_ReturnType E2E_P07Protect(const E2E_P07ConfigType *ConfigPtr, E2E_P07ProtectStateType *StatePtr, uint8 *DataPtr, uint32 Length)
Protects the array/buffer to be transmitted using the E2E profile 7. This includes checksum calculation, handling of counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[inout] |
DataPtr |
Pointer to Data to be transmitted. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P07ProtectInit¶
Std_ReturnType E2E_P07ProtectInit(E2E_P07ProtectStateType *StatePtr)
Initializes the protection state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P07Check¶
Std_ReturnType E2E_P07Check(const E2E_P07ConfigType *ConfigPtr, E2E_P07CheckStateType *StatePtr, const uint8 *DataPtr, uint32 Length)
Checks the Data received using the E2E profile 7. This includes CRC calculation, handling of Counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[in] |
DataPtr |
Pointer to received data. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P07CheckInit¶
Std_ReturnType E2E_P07CheckInit(E2E_P07CheckStateType *StatePtr)
Initializes the check state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P07MapStatusToSM¶
E2E_PCheckStatusType E2E_P07MapStatusToSM(Std_ReturnType CheckReturn, E2E_P07CheckStatusType Status)
The function maps the check status of profile 7 to a generic check status, which can be used by E2E state machine check function. The E2E profile 7 delivers a more fine-granular status, but this is not relevant for the E2E state machine.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
CheckReturn |
Return value of the E2E_P01Check function. |
[in] |
Status |
Status determined by E2E_P01Check function. |
- Return type
E2E_PCheckStatusType
E2E_P07m接口描述(E2E_P07m Interface Description)¶
类型定义(Type Definitions)¶
Type Name |
Type |
Description |
|---|---|---|
E2E_P07mConfigType |
struct E2E_P07mConfigType |
Configuration of transmitted Data (Data Element or I-PDU), for E2E Profile 7m. For each transmitted Data, there is an instance of this typedef. |
E2E_P07mProtectStateType |
struct E2E_P07mProtectStateType |
State of the sender for a Data protected with E2E Profile 7m. |
E2E_P07mCheckStateType |
struct E2E_P07mCheckStateType |
State of the reception on one single Data protected with E2E Profile 7m. |
E2E_P07mCheckStatusType |
enum |
Status of the reception on one single Data in one cycle, protected with E2E Profile 7m. |
提供的服务(Provided Services)¶
E2E_P07mProtect¶
Std_ReturnType E2E_P07mProtect(const E2E_P07mConfigType *ConfigPtr, E2E_P07mProtectStateType *StatePtr, uint32 SourceID, Std_MessageTypeType MessageType, Std_MessageResultType MessageResult, uint8 *DataPtr, uint32 Length)
Protects the array/buffer to be transmitted using the E2E profile 7m. This includes checksum calculation, handling of counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[in] |
SourceID |
A system-unique identifier of the Data Source. |
[in] |
MessageType |
Type of the message (request/response) |
[in] |
MessageResult |
Result of the message (OK/ERROR) |
[inout] |
DataPtr |
Pointer to Data to be transmitted. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P07mProtectInit¶
Std_ReturnType E2E_P07mProtectInit(E2E_P07mProtectStateType *StatePtr)
Initializes the protection state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P07mSourceCheck¶
Std_ReturnType E2E_P07mSourceCheck(const E2E_P07mConfigType *ConfigPtr, E2E_P07mCheckStateType *StatePtr, uint32 SourceID, Std_MessageTypeType MessageType, Std_MessageResultType MessageResult, const uint8 *DataPtr, uint32 Length)
Checks the Data received using the E2E profile 7m. This includes CRC calculation, handling of Counter, Data ID, Message Type, Message Result, and Source ID.This function is intended for usage at the data source.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to received data. |
[in] |
SourceID |
A system-unique identifier of the Data Source. |
[in] |
MessageType |
Type of the message (request/response) |
[in] |
MessageResult |
Result of the message (OK/ERROR) |
[in] |
DataPtr |
Pointer to Data to be transmitted. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P07mSinkCheck¶
Std_ReturnType E2E_P07mSinkCheck(const E2E_P07mConfigType *ConfigPtr, E2E_P07mCheckStateType *StatePtr, uint32 *SourceID, Std_MessageTypeType MessageType, Std_MessageResultType MessageResult, const uint8 *DataPtr, uint32 Length)
Checks the Data received using the E2E profile 7m. This includes CRC calculation, handling of Counter, Data ID, Message Type, Message Result, and Source ID.This function is intended for usage at the data source.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to received data. |
[out] |
SourceID |
A system-unique identifier of the Data Source. |
[in] |
MessageType |
Type of the message (request/response) |
[in] |
MessageResult |
Result of the message (OK/ERROR) |
[in] |
DataPtr |
Pointer to Data to be transmitted. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P07mCheckInit¶
Std_ReturnType E2E_P07mCheckInit(E2E_P07mCheckStateType *StatePtr)
Initializes the check state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P07mMapStatusToSM¶
E2E_PCheckStatusType E2E_P07mMapStatusToSM(Std_ReturnType CheckReturn, E2E_P07mCheckStatusType Status)
The function maps the check status of profile 7m to a generic check status, which can be used by E2E state machine check function. The E2E profile 7m delivers a more fine-granular status, but this is not relevant for the E2E state machine.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
CheckReturn |
Return value of the E2E_P01Check function. |
[in] |
Status |
Status determined by E2E_P01Check function. |
- Return type
E2E_PCheckStatusType
E2E_P08接口描述(E2E_P08 Interface Description)¶
类型定义(Type Definitions)¶
Type Name |
Type |
Description |
|---|---|---|
E2E_P08ConfigType |
struct E2E_P08ConfigType |
Configuration of transmitted Data (Data Element or I-PDU), for E2E Profile 8. For each transmitted Data, there is an instance of this typedef. |
E2E_P08ProtectStateType |
struct E2E_P08ProtectStateType |
State of the sender for a Data protected with E2E Profile 8. |
E2E_P08CheckStateType |
struct E2E_P08CheckStateType |
State of the reception on one single Data protected with E2E Profile 8. |
E2E_P08CheckStatusType |
enum |
Status of the reception on one single Data in one cycle, protected with E2E Profile 8. |
提供的服务(Provided Services)¶
E2E_P08Protect¶
Std_ReturnType E2E_P08Protect(const E2E_P08ConfigType *ConfigPtr, E2E_P08ProtectStateType *StatePtr, uint8 *DataPtr, uint32 Length)
Protects the array/buffer to be transmitted using the E2E profile 8. This includes checksum calculation, handling of counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[inout] |
DataPtr |
Pointer to Data to be transmitted. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P08ProtectInit¶
Std_ReturnType E2E_P08ProtectInit(E2E_P08ProtectStateType *StatePtr)
Initializes the protection state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P08Check¶
Std_ReturnType E2E_P08Check(const E2E_P08ConfigType *ConfigPtr, E2E_P08CheckStateType *StatePtr, const uint8 *DataPtr, uint32 Length)
Checks the Data received using the E2E profile 8. This includes CRC calculation, handling of Counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[in] |
DataPtr |
Pointer to received data. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P08CheckInit¶
Std_ReturnType E2E_P08CheckInit(E2E_P08CheckStateType *StatePtr)
Initializes the check state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P08MapStatusToSM¶
E2E_PCheckStatusType E2E_P08MapStatusToSM(Std_ReturnType CheckReturn, E2E_P08CheckStatusType Status)
The function maps the check status of profile 8 to a generic check status, which can be used by E2E state machine check function. The E2E profile 8 delivers a more fine-granular status, but this is not relevant for the E2E state machine.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
CheckReturn |
Return value of the E2E_P01Check function. |
[in] |
Status |
Status determined by E2E_P01Check function. |
- Return type
E2E_PCheckStatusType
E2E_P08m接口描述(E2E_P08m Interface Description)¶
类型定义(Type Definitions)¶
Type Name |
Type |
Description |
|---|---|---|
E2E_P08mConfigType |
struct E2E_P08mConfigType |
Configuration of transmitted Data (Data Element or I-PDU), for E2E Profile 8m. For each transmitted Data, there is an instance of this typedef. |
E2E_P08mProtectStateType |
struct E2E_P08mProtectStateType |
State of the sender for a Data protected with E2E Profile 8m. |
E2E_P08mCheckStateType |
struct E2E_P08mCheckStateType |
State of the reception on one single Data protected with E2E Profile 8m. |
E2E_P08mCheckStatusType |
enum |
Status of the reception on one single Data in one cycle, protected with E2E Profile 8m. |
提供的服务(Provided Services)¶
E2E_P08mProtect¶
Std_ReturnType E2E_P08mProtect(const E2E_P08mConfigType *ConfigPtr, E2E_P08mProtectStateType *StatePtr, uint32 SourceID, Std_MessageTypeType MessageType, Std_MessageResultType MessageResult, uint8 *DataPtr, uint32 Length)
Protects the array/buffer to be transmitted using the E2E profile 8m. This includes checksum calculation, handling of counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[in] |
SourceID |
A system-unique identifier of the Data Source. |
[in] |
MessageType |
Type of the message (request/response) |
[in] |
MessageResult |
Result of the message (OK/ERROR) |
[inout] |
DataPtr |
Pointer to Data to be transmitted. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P08mProtectInit¶
Std_ReturnType E2E_P08mProtectInit(E2E_P08mProtectStateType *StatePtr)
Initializes the protection state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P08mSourceCheck¶
Std_ReturnType E2E_P08mSourceCheck(const E2E_P08mConfigType *ConfigPtr, E2E_P08mCheckStateType *StatePtr, uint32 SourceID, Std_MessageTypeType MessageType, Std_MessageResultType MessageResult, const uint8 *DataPtr, uint32 Length)
Checks the Data received using the E2E profile 8m. This includes CRC calculation, handling of Counter, Data ID, Message Type, Message Result, and Source ID.This function is intended for usage at the data source.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to received data. |
[in] |
SourceID |
A system-unique identifier of the Data Source. |
[in] |
MessageType |
Type of the message (request/response) |
[in] |
MessageResult |
Result of the message (OK/ERROR) |
[in] |
DataPtr |
Pointer to Data to be transmitted. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P08mSinkCheck¶
Std_ReturnType E2E_P08mSinkCheck(const E2E_P08mConfigType *ConfigPtr, E2E_P08mCheckStateType *StatePtr, uint32 *SourceID, Std_MessageTypeType MessageType, Std_MessageResultType MessageResult, const uint8 *DataPtr, uint32 Length)
Checks the Data received using the E2E profile 8m. This includes CRC calculation, handling of Counter, Data ID, Message Type, Message Result, and Source ID.This function is intended for usage at the data source.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to received data. |
[out] |
SourceID |
A system-unique identifier of the Data Source. |
[in] |
MessageType |
Type of the message (request/response) |
[in] |
MessageResult |
Result of the message (OK/ERROR) |
[in] |
DataPtr |
Pointer to Data to be transmitted. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P08mCheckInit¶
Std_ReturnType E2E_P08mCheckInit(E2E_P08mCheckStateType *StatePtr)
Initializes the check state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P08mMapStatusToSM¶
E2E_PCheckStatusType E2E_P08mMapStatusToSM(Std_ReturnType CheckReturn, E2E_P08mCheckStatusType Status)
The function maps the check status of profile 8m to a generic check status, which can be used by E2E state machine check function. The E2E profile 8m delivers a more fine-granular status, but this is not relevant for the E2E state machine.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
CheckReturn |
Return value of the E2E_P01Check function. |
[in] |
Status |
Status determined by E2E_P01Check function. |
- Return type
E2E_PCheckStatusType
E2E_P11接口描述(E2E_P11 Interface Description)¶
类型定义(Type Definitions)¶
Type Name |
Type |
Description |
|---|---|---|
E2E_P11ConfigType |
struct E2E_P11ConfigType |
Configuration of transmitted Data (Data Element or I-PDU), for E2E Profile 11. For each transmitted Data, there is an instance of this typedef. |
E2E_P11ProtectStateType |
struct E2E_P11ProtectStateType |
State of the sender for a Data protected with E2E Profile 11. |
E2E_P11CheckStateType |
struct E2E_P11CheckStateType |
State of the reception on one single Data protected with E2E Profile 11. |
E2E_P11DataIDMode |
enum |
E2E P11 DataID mode. |
E2E_P11CheckStatusType |
enum |
Status of the reception on one single Data in one cycle, protected with E2E Profile 11. |
提供的服务(Provided Services)¶
E2E_P11Protect¶
Std_ReturnType E2E_P11Protect(const E2E_P11ConfigType *ConfigPtr, E2E_P11ProtectStateType *StatePtr, uint8 *DataPtr, uint16 Length)
Protects the array/buffer to be transmitted using the E2E profile 11. This includes checksum calculation, handling of counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[inout] |
DataPtr |
Pointer to Data to be transmitted. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P11ProtectInit¶
Std_ReturnType E2E_P11ProtectInit(E2E_P11ProtectStateType *StatePtr)
Initializes the protection state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P11Check¶
Std_ReturnType E2E_P11Check(const E2E_P11ConfigType *ConfigPtr, E2E_P11CheckStateType *StatePtr, const uint8 *DataPtr, uint16 Length)
Checks the Data received using the E2E profile 11. This includes CRC calculation, handling of Counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[in] |
DataPtr |
Pointer to received data. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P11CheckInit¶
Std_ReturnType E2E_P11CheckInit(E2E_P11CheckStateType *StatePtr)
Initializes the check state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P11MapStatusToSM¶
E2E_PCheckStatusType E2E_P11MapStatusToSM(Std_ReturnType CheckReturn, E2E_P11CheckStatusType Status)
The function maps the check status of profile 11 to a generic check status, which can be used by E2E state machine check function. The E2E profile 11 delivers a more fine-granular status, but this is not relevant for the E2E state machine.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
CheckReturn |
Return value of the E2E_P01Check function. |
[in] |
Status |
Status determined by E2E_P01Check function. |
- Return type
E2E_PCheckStatusType
E2E_P22接口描述(E2E_P22 Interface Description)¶
类型定义(Type Definitions)¶
Type Name |
Type |
Description |
|---|---|---|
E2E_P22ConfigType |
struct E2E_P22ConfigType |
Configuration of transmitted Data (Data Element or I-PDU), for E2E Profile 22. For each transmitted Data, there is an instance of this typedef. |
E2E_P22ProtectStateType |
struct E2E_P22ProtectStateType |
State of the sender for a Data protected with E2E Profile 22. |
E2E_P22CheckStateType |
struct E2E_P22CheckStateType |
State of the reception on one single Data protected with E2E Profile 22. |
E2E_P22CheckStatusType |
enum |
Status of the reception on one single Data in one cycle, protected with E2E Profile 22. |
提供的服务(Provided Services)¶
E2E_P22Protect¶
Std_ReturnType E2E_P22Protect(const E2E_P22ConfigType *ConfigPtr, E2E_P22ProtectStateType *StatePtr, uint8 *DataPtr, uint16 Length)
Protects the array/buffer to be transmitted using the E2E profile 22. This includes checksum calculation, handling of counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[inout] |
DataPtr |
Pointer to Data to be transmitted. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P22ProtectInit¶
Std_ReturnType E2E_P22ProtectInit(E2E_P22ProtectStateType *StatePtr)
Initializes the protection state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P22Check¶
Std_ReturnType E2E_P22Check(const E2E_P22ConfigType *ConfigPtr, E2E_P22CheckStateType *StatePtr, const uint8 *DataPtr, uint16 Length)
Checks the Data received using the E2E profile 22. This includes CRC calculation, handling of Counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[in] |
DataPtr |
Pointer to received data. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P22CheckInit¶
Std_ReturnType E2E_P22CheckInit(E2E_P22CheckStateType *StatePtr)
Initializes the check state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P22MapStatusToSM¶
E2E_PCheckStatusType E2E_P22MapStatusToSM(Std_ReturnType CheckReturn, E2E_P22CheckStatusType Status)
The function maps the check status of profile 22 to a generic check status, which can be used by E2E state machine check function. The E2E profile 22 delivers a more fine-granular status, but this is not relevant for the E2E state machine.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
CheckReturn |
Return value of the E2E_P01Check function. |
[in] |
Status |
Status determined by E2E_P01Check function. |
- Return type
E2E_PCheckStatusType
E2E_P44接口描述(E2E_P44 Interface Description)¶
类型定义(Type Definitions)¶
Type Name |
Type |
Description |
|---|---|---|
E2E_P44ConfigType |
struct E2E_P44ConfigType |
Configuration of transmitted Data (Data Element or I-PDU), for E2E Profile 44. For each transmitted Data, there is an instance of this typedef. |
E2E_P44ProtectStateType |
struct E2E_P44ProtectStateType |
State of the sender for a Data protected with E2E Profile 44. |
E2E_P44CheckStateType |
struct E2E_P44CheckStateType |
State of the reception on one single Data protected with E2E Profile 44. |
E2E_P44CheckStatusType |
enum |
Status of the reception on one single Data in one cycle, protected with E2E Profile 44. |
提供的服务(Provided Services)¶
E2E_P44Protect¶
Std_ReturnType E2E_P44Protect(const E2E_P44ConfigType *ConfigPtr, E2E_P44ProtectStateType *StatePtr, uint8 *DataPtr, uint16 Length)
Protects the array/buffer to be transmitted using the E2E profile 44. This includes checksum calculation, handling of counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[inout] |
DataPtr |
Pointer to Data to be transmitted. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P44ProtectInit¶
Std_ReturnType E2E_P44ProtectInit(E2E_P44ProtectStateType *StatePtr)
Initializes the protection state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P44Check¶
Std_ReturnType E2E_P44Check(const E2E_P44ConfigType *ConfigPtr, E2E_P44CheckStateType *StatePtr, const uint8 *DataPtr, uint16 Length)
Checks the Data received using the E2E profile 44. This includes CRC calculation, handling of Counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[in] |
DataPtr |
Pointer to received data. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P44CheckInit¶
Std_ReturnType E2E_P44CheckInit(E2E_P44CheckStateType *StatePtr)
Initializes the check state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P44MapStatusToSM¶
E2E_PCheckStatusType E2E_P44MapStatusToSM(Std_ReturnType CheckReturn, E2E_P44CheckStatusType Status)
The function maps the check status of profile 44 to a generic check status, which can be used by E2E state machine check function. The E2E profile 44 delivers a more fine-granular status, but this is not relevant for the E2E state machine.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
CheckReturn |
Return value of the E2E_P01Check function. |
[in] |
Status |
Status determined by E2E_P01Check function. |
- Return type
E2E_PCheckStatusType
E2E_P44m接口描述(E2E_P44m Interface Description)¶
类型定义(Type Definitions)¶
Type Name |
Type |
Description |
|---|---|---|
E2E_P44mConfigType |
struct E2E_P44mConfigType |
Configuration of transmitted Data (Data Element or I-PDU), for E2E Profile 44m. For each transmitted Data, there is an instance of this typedef. |
E2E_P44mProtectStateType |
struct E2E_P44mProtectStateType |
State of the sender for a Data protected with E2E Profile 44m. |
E2E_P44mCheckStateType |
struct E2E_P44mCheckStateType |
State of the reception on one single Data protected with E2E Profile 44m. |
E2E_P44mCheckStatusType |
enum |
Status of the reception on one single Data in one cycle, protected with E2E Profile 44m. |
提供的服务(Provided Services)¶
E2E_P44mProtect¶
Std_ReturnType E2E_P44mProtect(const E2E_P44mConfigType *ConfigPtr, E2E_P44mProtectStateType *StatePtr, uint32 SourceID, Std_MessageTypeType MessageType, Std_MessageResultType MessageResult, uint8 *DataPtr, uint16 Length)
Protects the array/buffer to be transmitted using the E2E profile 44m. This includes checksum calculation, handling of counter and Data ID.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to port/data communication state. |
[in] |
SourceID |
A system-unique identifier of the Data Source. |
[in] |
MessageType |
Type of the message (request/response) |
[in] |
MessageResult |
Result of the message (OK/ERROR) |
[inout] |
DataPtr |
Pointer to Data to be transmitted. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_INPUTERR_WRONG |
At least one input parameter is erroneous, e.g. out of range |
E2E_E_INTERR |
An internal library error has occurred |
E2E_E_OK |
Function completed successfully |
E2E_P44mProtectInit¶
Std_ReturnType E2E_P44mProtectInit(E2E_P44mProtectStateType *StatePtr)
Initializes the protection state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P44mSourceCheck¶
Std_ReturnType E2E_P44mSourceCheck(const E2E_P44mConfigType *ConfigPtr, E2E_P44mCheckStateType *StatePtr, uint32 SourceID, Std_MessageTypeType MessageType, Std_MessageResultType MessageResult, const uint8 *DataPtr, uint16 Length)
Checks the Data received using the E2E profile 44m. This includes CRC calculation, handling of Counter, Data ID, Message Type, Message Result, and Source ID.This function is intended for usage at the data source.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to received data. |
[in] |
SourceID |
A system-unique identifier of the Data Source. |
[in] |
MessageType |
Type of the message (request/response) |
[in] |
MessageResult |
Result of the message (OK/ERROR) |
[in] |
DataPtr |
Pointer to Data to be transmitted. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P44mSinkCheck¶
Std_ReturnType E2E_P44mSinkCheck(const E2E_P44mConfigType *ConfigPtr, E2E_P44mCheckStateType *StatePtr, uint32 *SourceID, Std_MessageTypeType MessageType, Std_MessageResultType MessageResult, const uint8 *DataPtr, uint16 Length)
Checks the Data received using the E2E profile 44m. This includes CRC calculation, handling of Counter, Data ID, Message Type, Message Result, and Source ID.This function is intended for usage at the data source.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
ConfigPtr |
Pointer to static configuration. |
[inout] |
StatePtr |
Pointer to received data. |
[out] |
SourceID |
A system-unique identifier of the Data Source. |
[in] |
MessageType |
Type of the message (request/response) |
[in] |
MessageResult |
Result of the message (OK/ERROR) |
[in] |
DataPtr |
Pointer to Data to be transmitted. |
[in] |
Length |
Length of the data in bytes. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P44mCheckInit¶
Std_ReturnType E2E_P44mCheckInit(E2E_P44mCheckStateType *StatePtr)
Initializes the check state.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[out] |
StatePtr |
Pointer to port/data communication state. |
- Return type
Std_ReturnType
Return values
Name |
Description |
|---|---|
E2E_E_INPUTERR_NULL |
At least one pointer parameter is a NULL pointer |
E2E_E_OK |
Function completed successfully |
E2E_P44mMapStatusToSM¶
E2E_PCheckStatusType E2E_P44mMapStatusToSM(Std_ReturnType CheckReturn, E2E_P44mCheckStatusType Status)
The function maps the check status of profile 44m to a generic check status, which can be used by E2E state machine check function. The E2E profile 44m delivers a more fine-granular status, but this is not relevant for the E2E state machine.
- Sync/Async
TRUE
- Reentrancy
Non Reentrant
Parameters
Dir |
Name |
Description |
|---|---|---|
[in] |
CheckReturn |
Return value of the E2E_P01Check function. |
[in] |
Status |
Status determined by E2E_P01Check function. |
- Return type
E2E_PCheckStatusType
配置(Configuration)¶
None