S32K118 LIN SLAVE SDK lin_slave_s32k118 IMPLEMENTATION

取消
显示结果 
搜索替代 
您的意思是: 
已解决

S32K118 LIN SLAVE SDK lin_slave_s32k118 IMPLEMENTATION

跳至解决方案
621 次查看
riglesias2021
Contributor III

Hello, I am using S32_SDK_S32K1xx_RTM_4.0.1 SDK and I want to ask a few questions about a LIN SLAVE implementation. ( lin_slave_s32k118 example )

1. It is required to use the funcion lin_lld_timeout_service() to make the lin node function properly? I see the explanation of this function in the documentation and i see that is used in a timer routine in the sdk example but i wanted to ask if there is another way to use the LIN component or if there is another methods.

2.It is required to assign a measurement callback function to timerGetTimeIntervalCallback? In the documentation i see "users shall assign..." but anyways I was wondering if this is the only way to get the component working or if there is another methods/examples.

3. After a timeout, and the lin node goes to sleep, what state would the function l_ifc_read_status return? (BUS_ACTIVITY_SET, GO_TO_SLEEP_SET, ERROR_IN_RESPONSE ... )

This questions are because i want to evaluate if using a timer is the only way to use the lin slave node or if there is another methods to get lin working properly, getting the correct states in l_ifc_read_status, etc. Thank you!

0 项奖励
1 解答
591 次查看
hungnguyenphi
NXP Employee
NXP Employee

Hello @riglesias2021 ,

I would like to answer your question:

1. It is required to use the funcion lin_lld_timeout_service() to make the lin node function properly? I see the explanation of this function in the documentation and i see that is used in a timer routine in the sdk example but i wanted to ask if there is another way to use the LIN component or if there is another methods.

[Hung] The lin_lld_timeout_service() is used for calculating timeout of Lin node (Eg: switch to SLEEP_MODE when the bus idle for too long). Then it is required to use this function. Currently, we do not have another method with the SDK LINSTACK.

2.It is required to assign a measurement callback function to timerGetTimeIntervalCallback? In the documentation i see "users shall assign..." but anyways I was wondering if this is the only way to get the component working or if there is another methods/examples.

[Hung] Yes, it is the only way to get the component working.

3. After a timeout, and the lin node goes to sleep, what state would the function l_ifc_read_status return? (BUS_ACTIVITY_SET, GO_TO_SLEEP_SET, ERROR_IN_RESPONSE ... )

[Hung] Could you please check the Lin_specification_2.2A in the link for detail information.

 

Best regards,

Hung

在原帖中查看解决方案

2 回复数
592 次查看
hungnguyenphi
NXP Employee
NXP Employee

Hello @riglesias2021 ,

I would like to answer your question:

1. It is required to use the funcion lin_lld_timeout_service() to make the lin node function properly? I see the explanation of this function in the documentation and i see that is used in a timer routine in the sdk example but i wanted to ask if there is another way to use the LIN component or if there is another methods.

[Hung] The lin_lld_timeout_service() is used for calculating timeout of Lin node (Eg: switch to SLEEP_MODE when the bus idle for too long). Then it is required to use this function. Currently, we do not have another method with the SDK LINSTACK.

2.It is required to assign a measurement callback function to timerGetTimeIntervalCallback? In the documentation i see "users shall assign..." but anyways I was wondering if this is the only way to get the component working or if there is another methods/examples.

[Hung] Yes, it is the only way to get the component working.

3. After a timeout, and the lin node goes to sleep, what state would the function l_ifc_read_status return? (BUS_ACTIVITY_SET, GO_TO_SLEEP_SET, ERROR_IN_RESPONSE ... )

[Hung] Could you please check the Lin_specification_2.2A in the link for detail information.

 

Best regards,

Hung

574 次查看
riglesias2021
Contributor III

Thank you!

0 项奖励