S32K118 LIN SLAVE SDK lin_slave_s32k118 IMPLEMENTATION

cancel
Showing results for 
Search instead for 
Did you mean: 

S32K118 LIN SLAVE SDK lin_slave_s32k118 IMPLEMENTATION

Jump to solution
306 Views
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 Kudos
1 Solution
277 Views
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

View solution in original post

2 Replies
278 Views
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

View solution in original post

259 Views
riglesias2021
Contributor III

Thank you!

0 Kudos