linUpdateResponse 与输出 - LIN 模拟节点有何不同?
linUpdateResponse vs Output - how are they different for LIN simulated nodes?
LIN模拟slave节点中,output
和linUpdateResponse
有什么区别?
来自 output
文档:
To reconfigure response data of LIN frame. In that case RTR selector has to be set to 0. The LIN hardware responds to the next request of the specified frame with the newly configured data.
所以,我可以重新配置输出,下次(真的?)硬件应该会说话我已经成功覆盖它,对吧?
来自 linUpdateResponse
文档:
Updates the response data of a specific LIN frame.
让我为特定帧 ID 设置数据长度 (dlc) 和数据内容。
它们有何不同,是否有可用的示例?我不太明白如何在提供的示例中使用后者。
对于LIN从节点,output
和linUpdateResponse
之间并没有真正的区别。
两者都修改(模拟)从机的内部状态并更改下次主机请求帧时将发送的帧。
正如您发布的那样,在使用 output
时,您设置了 RTR
选择器。
但除此之外,没有区别
个人觉得linUpdateResponse
用起来比较方便
LIN模拟slave节点中,output
和linUpdateResponse
有什么区别?
来自 output
文档:
To reconfigure response data of LIN frame. In that case RTR selector has to be set to 0. The LIN hardware responds to the next request of the specified frame with the newly configured data.
所以,我可以重新配置输出,下次(真的?)硬件应该会说话我已经成功覆盖它,对吧?
来自 linUpdateResponse
文档:
Updates the response data of a specific LIN frame.
让我为特定帧 ID 设置数据长度 (dlc) 和数据内容。
它们有何不同,是否有可用的示例?我不太明白如何在提供的示例中使用后者。
对于LIN从节点,output
和linUpdateResponse
之间并没有真正的区别。
两者都修改(模拟)从机的内部状态并更改下次主机请求帧时将发送的帧。
正如您发布的那样,在使用 output
时,您设置了 RTR
选择器。
但除此之外,没有区别
个人觉得linUpdateResponse
用起来比较方便