S32k3 FreeRTOS UART RX Callback Information

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

S32k3 FreeRTOS UART RX Callback Information

跳至解决方案
2,410 次查看
SL239
Contributor II

Hello,

I am trying to use one callback function to receive RX events using all 4 UART channels on the S32k3X4EVB-Q257.

I then need to determine which channel the message came in on.

Has anyone done this? Possibly using the void userData pointer parameter?

Or any other way. 

I cannot use separate callbacks.

 

Thanks in advance,

-Sean L

0 项奖励
回复
1 解答
2,388 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Sean,

I can see in the callback typedef that there's HwInstance parameter, so you should have information about the channel:

lukaszadrapa_0-1651224171772.png

Regards,

Lukas

在原帖中查看解决方案

0 项奖励
回复
2 回复数
2,389 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Sean,

I can see in the callback typedef that there's HwInstance parameter, so you should have information about the channel:

lukaszadrapa_0-1651224171772.png

Regards,

Lukas

0 项奖励
回复
2,383 次查看
SL239
Contributor II

Thanks for your reply. 

I was able to accomplish this by using the HwInstance, and the Event type.

Thanks!

0 项奖励
回复