1 Reply Latest reply on Nov 28, 2019 11:02 PM by RashiV_61

    How to check consumer event is generated or not?

    GiSa_4520796

      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.

        • 1. Re: How to check consumer event is generated or not?
          RashiV_61

          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