FlexCAN Polling

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

FlexCAN Polling

Jump to solution
1,245 Views
Samuel_DCosta
Contributor III

Hi,

Is there an example of using the FlexCAN APIs for polling?

How do I use the following APIs:

- FlexCAN_Ip_MainFunctionWrite

- FlexCAN_Ip_MainFunctionRead

- FlexCAN_Ip_Send

- FlexCAN_Ip_Receive

Could you provide an example using the APIs, with the configuration set for CAN FD by using the polling method?

0 Kudos
Reply
1 Solution
1,230 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Samuel_DCosta,

You can find a reference example for normal/user mode in polling mode for the S32K312 derivative: Example S32K312 CAN Transmit & Receive Using Polling mode DS3.5 RTD300 - NXP Community.

The FlexCAN_Ip_Example from the RTD package uses the APIs as well (FlexCAN_Ip_Init will configure for loopback the FlexCAN0 and then application will send through ISR and receive as polling.).

Best regards,
Julián

View solution in original post

0 Kudos
Reply
1 Reply
1,231 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Samuel_DCosta,

You can find a reference example for normal/user mode in polling mode for the S32K312 derivative: Example S32K312 CAN Transmit & Receive Using Polling mode DS3.5 RTD300 - NXP Community.

The FlexCAN_Ip_Example from the RTD package uses the APIs as well (FlexCAN_Ip_Init will configure for loopback the FlexCAN0 and then application will send through ISR and receive as polling.).

Best regards,
Julián

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1902313%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFlexCAN%20Polling%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1902313%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3EIs%20there%20an%20example%20of%20using%20the%20FlexCAN%20APIs%20for%20polling%3F%3CBR%20%2F%3E%3CBR%20%2F%3EHow%20do%20I%20use%20the%20following%20APIs%3A%3C%2FP%3E%3CP%3E-%26nbsp%3BFlexCAN_Ip_MainFunctionWrite%3C%2FP%3E%3CP%3E-%26nbsp%3BFlexCAN_Ip_MainFunctionRead%3C%2FP%3E%3CP%3E-%26nbsp%3BFlexCAN_Ip_Send%3C%2FP%3E%3CP%3E-%26nbsp%3BFlexCAN_Ip_Receive%3CBR%20%2F%3E%3CBR%20%2F%3ECould%20you%20provide%20an%20example%20using%20the%20APIs%2C%20with%20the%20configuration%20set%20for%20CAN%20FD%20by%20using%20the%20polling%20method%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1902921%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20FlexCAN%20Polling%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1902921%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F221691%22%20target%3D%22_blank%22%3E%40Samuel_DCosta%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EYou%20can%20find%20a%20reference%20example%20for%20normal%2Fuser%20mode%20in%20polling%20mode%20for%20the%20S32K312%20derivative%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FExample-S32K312-CAN-Transmit-amp-Receive-Using-Polling-mode-DS3%2Fta-p%2F1789191%22%20target%3D%22_blank%22%3EExample%20S32K312%20CAN%20Transmit%20%26amp%3B%20Receive%20Using%20Polling%20mode%20DS3.5%20RTD300%20-%20NXP%20Community%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EThe%20FlexCAN_Ip_Example%20from%20the%20RTD%20package%20uses%20the%20APIs%20as%20well%20(%3CSTRONG%3EFlexCAN_Ip_Init%3C%2FSTRONG%3E%20will%20configure%20for%20loopback%20the%20FlexCAN0%20and%20then%20application%20will%20send%20through%20ISR%20and%20receive%20as%20polling.).%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EJuli%C3%A1n%3C%2FP%3E%3C%2FLINGO-BODY%3E