Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Slave FIFO Flag works as "almost full"

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Slave FIFO Flag works as "almost full"
Moderator:
RSKV

Post Reply
Follow this topic



Slave FIFO Flag works as "almost full"

Nazila posted on 17 Feb 2012 7:28 PM PST
Top Contributor
55 Forum Posts

Hi,

I would like to set up the slave fifo FLAGB so that it shows "almost full". You mentioned that we have to use CyU3PGpifSocketConfigure() function. I have some questions regarding this function and its application:

1. In the summary of the function, it mentioned that

"This function allows the user to select and configure the active socket in the case
   where software is responsible for these actions. The API will respond with an error
   if the hardware is taking care of socket configurations."

What does it mean "software" or "hardware"?

2. What number should I write for watermark if I want to support both USB2.0 and USB3.0. In other words, should I write 511 or 1023 to make the flag works as "Almost Full"?

3. What I should write instead of the burst? I would appreciate it if you could be specific and refer me to a number which I can find in the slave fifo project (*.c or *.h file).

Thanks,

Nazila




Re: Slave FIFO Flag works as "almost full"

Chris R. posted on 18 Feb 2012 11:46 PM PST
Top Contributor
135 Forum Posts

2. The watermark value is the difference to full. So you can set up the watermark to 2 samples for example, and the flag goes active 2 samples before the fifo is full, regardless of the fifo size. So you dont have to switch between 2.0 and 3.0



Re: Slave FIFO Flag works as "almost full"

jogn_li posted on 16 Apr 2012 07:29 PM PST
Top Contributor
49 Forum Posts

hello Chris R. .I use the CyU3PGpifSocketConfigure().but it seems not work.

do you know why?



Re: Slave FIFO Flag works as "almost full"

Chris R. posted on 17 Apr 2012 12:10 AM PST
Top Contributor
135 Forum Posts

Did you also modified the gpif descriptor to use the flag output as partial flag? For fully correct flag use you have to use both, the full flag and the partial full flag. Using only partial full shows not the real full status if you are transferring short packets and the DMA buffers are full. So you have to monitor both flags for reliable full flag under all conditions.



Re: Slave FIFO Flag works as "almost full"

jogn_li posted on 18 Apr 2012 11:13 PM PST
Top Contributor
49 Forum Posts

where is  gpif descriptor ?

any instruction  about that?

 






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.