DMA triggering using pdl sw trigger

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Oliver_Choe
Employee
Employee
5 questions asked 25 sign-ins First comment on KBA

Hi,

I would like to implement dma triggering using Cy_TrigMux_SwTrigger() function in pdl.

should I call the Cy_TrigMux_Connect() function in advance to use this properly?

 

Is there any pre-defined macro to use as the parameters of these functions? (trigLine, inTrig, outTrig).

 

Thanks

0 Likes
1 Solution
Ekta_N
Moderator
Moderator
Moderator
750 replies posted First like given 250 solutions authored

Hi @Oliver_Choe 

The predefined macros that can be used with these functions can be found in the following path in the mtb_shared folder: mtb_shared/mtb-pdl-cat1/release-v2.4.0/devices/COMPONENT_CAT1A/include/..

In this path open the correct file out of psoc6_01/02/03/04_config.h based on your device.

This file contains macros corresponding to different trigger input/ output groups which can be used directly in the functions mentioned by you.

Please refer to the function usage provided in the PDL API Reference Guide to see how the macros present in the above mentioned .h files can be used with the API's.

Best Regards
Ekta 

View solution in original post

0 Likes
1 Reply
Ekta_N
Moderator
Moderator
Moderator
750 replies posted First like given 250 solutions authored

Hi @Oliver_Choe 

The predefined macros that can be used with these functions can be found in the following path in the mtb_shared folder: mtb_shared/mtb-pdl-cat1/release-v2.4.0/devices/COMPONENT_CAT1A/include/..

In this path open the correct file out of psoc6_01/02/03/04_config.h based on your device.

This file contains macros corresponding to different trigger input/ output groups which can be used directly in the functions mentioned by you.

Please refer to the function usage provided in the PDL API Reference Guide to see how the macros present in the above mentioned .h files can be used with the API's.

Best Regards
Ekta 

0 Likes