Note: If applicative error values as specified in AUTOSAR lie in the value range 0x01 to 0x1F, the return value of a method must be converted so that it lies within the valid value range of the return code. Example: a method has the return values 0x00 = OK, 0x01 = ERROR1, and 0x02 = ERROR2.In this case OK is transmitted with Return Code 0x00, the error codes ERROR1 and ERROR2 must be transmitted with an added offset of 0x1F. The receiver must subtract the offset from the Return Code.翻译
时间: 2024-04-21 12:27:12 浏览: 163
验证选择:基于Applicative和Selective仿函数的轻量级纯验证
注意:如果按照 AUTOSAR 中指定的应用程序错误值在 0x01 到 0x1F 的值范围内,方法的返回值必须转换为在返回码的有效值范围内。例如:某个方法的返回值为 0x00 = OK,0x01 = ERROR1,0x02 = ERROR2。在这种情况下,OK 将使用返回码 0x00 传输,错误码 ERROR1 和 ERROR2 必须使用增加的偏移量 0x1F 传输。接收方必须从返回码中减去偏移量。
阅读全文