S32k3 FreeRTOS UART RX Callback Information

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32k3 FreeRTOS UART RX Callback Information

Jump to solution
908 Views
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 Kudos
1 Solution
886 Views
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

View solution in original post

0 Kudos
2 Replies
887 Views
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 Kudos
881 Views
SL239
Contributor II

Thanks for your reply. 

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

Thanks!

0 Kudos