S32k3 FreeRTOS UART RX Callback Information

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32k3 FreeRTOS UART RX Callback Information

ソリューションへジャンプ
955件の閲覧回数
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 解決策
933件の閲覧回数
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 返答(返信)
934件の閲覧回数
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 件の賞賛
928件の閲覧回数
SL239
Contributor II

Thanks for your reply. 

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

Thanks!

0 件の賞賛