Cypress技术论坛
直播中

傅利

7年用户 204经验值
私信 关注
[问答]

请问有流过等时端点的例子吗?

你好,
我已经下载了AN779示例,它是一个UVC示例,用于在USB上传输相机帧。工作很好。这个扩展是通过大量端点在高速和超高速中传输数据。
有没有流过等时端点的例子?
谢谢,
苏巴拉岛

以上来自于百度翻译


     以下为原文
  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.

回帖(2)

h1654155275.5814

2019-5-8 15:50:40
苏巴拉,
有一个使用FX3SDK使用ISO端点的UBVIEW类示例项目。
您可以将此作为项目的参考。
谢谢,
西克里希纳。

以上来自于百度翻译


     以下为原文
  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.
举报

李叱镡

2019-5-8 15:59:24
你好,
我试过这个,但它不起作用…我不确定我的代码有什么问题。
我认为端点设置必须做一些修改。
或者有其他的修改必须做吗?
我也应该改变GPIF设置吗?
谢谢,
加里
定义CyfxxEpp-BulkyVo.PktStx 16
/UVC视频流端点分组大小*/
*定义CyfxxEpp-BulkyVeloOx pktl大小(0x400)/* 1024字节*/
定义ISO-PKTA PrimMyI帧1
*视频流端点描述符*/
0x07,/*描述符大小*/
CyuU3pU***bEnpNttDESCR,/*端点描述符类型*/
CyfxxEPISOISOL视频,/*端点地址和描述*/
5,/*ISO端点:异步*//
0x00,/*EP Max PCKTHEZ:1024B*//
0x04,/*EP MPCPCKTHEZ:1024B*//
0x01,/*数据传输服务间隔*//
*超高速端点伴随描述符*/
0x06,/*描述符大小*/
CyuU3PysSpEpCopnNoDISCR,/*SS端点伴随描述符类型*/
CyfxxEpp-BulkyVeloOxpPKTSyCult-1,/*max的包中的突发:1×/
0x00,/*Mult.:最大数据包数:1×/
0x00,0x40/*每个间隔字节:1024x16*/
*视频流端点配置*/
EndotToCuff.Eng= 1;
EndotCopy.EpType=CyuU3pUsBbEpsio ISO;
端点配置.PCKTSIZE=CyfxfxEpp-BulkyVeloVo.pktz大小;
端点配置.ISOPKTs=ISOL PKTA PyrMyMyX帧;
端点配置。
EndotToCuff.Fix= 0;

以上来自于百度翻译


     以下为原文
  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 ;
            
举报

更多回帖

发帖
×
20
完善资料,
赚取积分