FX3 multi channel dma -- one to many

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

cross mob
Anonymous
Not applicable

Hi,

   

  I want to setup a multi channel DMA.One producer to multi consumers with manual mode.

   

How do I choice which consumer that I want to commit in my callback function ?

   

 

   

Producer : CY_U3P_PIB_SOCKET_0

   

Consumers : CY_U3P_UIB_SOCKET_CONS_2   CY_U3P_UIB_SOCKET_CONS_9

   

Thank you!!

0 Likes
2 Replies
Anonymous
Not applicable

You cannot choose this while committing the data. It will be done in a round robin fashion based on which socket you define as consSckId[0] and consSckId[1] in your DMA Channel create function. In the multi channel commit buffer API, you do not have the option to choose this. 

0 Likes
Anonymous
Not applicable

Hi,

   

Thank you for your reply.

   

Is there any parameter in  CyU3PDmaMultiChannel structure I can  check ? Which  consumer will be next to commit ?

   

currentConsIndex ?

   

 

   

Thank you!!

0 Likes