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

USB superspeed peripherals Forum Discussions

GiSa_4520796
Level 4
Level 4
First like received

Hi,

I want to check whether the consumer event is generated or not while transferring data from P-Port of FX3 to S0-Port of FX3.Can anyone help me to do this?

Regards,

Srujana.

0 Likes
1 Solution
Rashi_Vatsa
Moderator
Moderator
Moderator
5 likes given 500 solutions authored 1000 replies posted

Hello Srujana,

In the DMA channel configuration register for notification for CONS_EVENT.

For DMA channel configuration-  PIB to SIB, the CONS event will be generated when buffer which was committed by PIB   to SIB is consumed.

And in the DMA callback, parse for the CONS_EVENT

For eg: For channel UART to USB

dma_cns.PNG

In the Callback function increment a variable when you receive CONS event

conss.PNG

Similarly, you need to add these changes to your firmware.

Regards,

Rashi

Regards,
Rashi

View solution in original post

0 Likes
1 Reply
Rashi_Vatsa
Moderator
Moderator
Moderator
5 likes given 500 solutions authored 1000 replies posted

Hello Srujana,

In the DMA channel configuration register for notification for CONS_EVENT.

For DMA channel configuration-  PIB to SIB, the CONS event will be generated when buffer which was committed by PIB   to SIB is consumed.

And in the DMA callback, parse for the CONS_EVENT

For eg: For channel UART to USB

dma_cns.PNG

In the Callback function increment a variable when you receive CONS event

conss.PNG

Similarly, you need to add these changes to your firmware.

Regards,

Rashi

Regards,
Rashi
0 Likes