Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > About AN75779 example

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



About AN75779 example
Moderator:
RSKV

Post Reply
Follow this topic



About AN75779 example

Poturaju posted on 27 Aug 2012 5:21 AM PST
Top Contributor
26 Forum Posts

Hi,

I have downloaded AN75779 example, which is a UVC example to stream the camera frames over USB. It is working fine. This exmaple is streaming the data through Bulk endpoints in both high speed and super speed.

Is there any example to stream through Isochronous endpoints?

Thanks,

Subbarao.




Re: About AN75779 example

RSKV posted on 28 Aug 2012 08:34 AM PST
Cypress Employee
655 Forum Posts

Subbarao,

There is a USBVideoClass example project that comes with the FX3 SDK uses the ISO endpoints.

You can use this as a reference for your project.

Thanks,

sai krishna.



Re: About AN75779 example

_Gary_ posted on 28 Aug 2012 07:09 PM PST
Senior Member
14 Forum Posts

Hi,

I tried this before but it did not work... I am not sure what is wrong with my code.

I think there are some modification must be done about endpoint setting.

Or is there any other modification must be done?

Should I change GPIF setting also?

Thanks,

Gary


 

#define CY_FX_EP_BULK_VIDEO_PKTS_COUNT  16

/* UVC Video Streaming Endpoint Packet Size */

#define CY_FX_EP_BULK_VIDEO_PKT_SIZE    (0x400)  /* 1024 Bytes */

#define ISO_PKT_PER_MICRO_FRAME 1

 

/* Video Streaming Endpoint descriptor */

  0x07,                           /* Descriptor size */

  CY_U3P_USB_ENDPNT_DESCR,        /* Endpoint descriptor type */

  CY_FX_EP_ISO_VIDEO,             /* Endpoint address and description */

  5,        /* ISO end point : Async */

    0x00,   /* EP MaxPcktSize: 1024B */

    0x04, /* EP MaxPcktSize: 1024B */

  0x01,                           /* Servicing interval for data transfers */

 

   /* Super speed endpoint companion descriptor */

   0x06,                           /* Descriptor size */

   CY_U3P_SS_EP_COMPN_DESCR,       /* SS endpoint companion descriptor type */

   CY_FX_EP_BULK_VIDEO_PKTS_COUNT-1, /* Max no. of packets in a burst : 1 */

   0x00,                           /* Mult.: Max number of packets : 1 */

   0x00,0x40                       /* Bytes per interval : 1024x16 */

 

 

    /* Video Streaming Endpoint configuration */

    endPointConfig.enable = 1;

    endPointConfig.epType = CY_U3P_USB_EP_ISO;

    endPointConfig.pcktSize = CY_FX_EP_BULK_VIDEO_PKT_SIZE;

    endPointConfig.isoPkts = ISO_PKT_PER_MICRO_FRAME;

    endPointConfig.burstLen = CY_FX_EP_BULK_VIDEO_PKTS_COUNT;

    endPointConfig.streams = 0 ;

 

 






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.