1 Reply Latest reply on Jul 15, 2018 7:19 PM by yyca

    maybe error in AN75779

    yumingfoy_3247926

      /* Configure the video streaming endpoint. */

          endPointConfig.enable   = 1;

          endPointConfig.epType   = CY_U3P_USB_EP_BULK;

          endPointConfig.pcktSize = CY_FX_EP_BULK_VIDEO_PKT_SIZE;

          endPointConfig.isoPkts  = 1;

          endPointConfig.burstLen = 16;

          endPointConfig.streams  = 0;

          apiRetStatus = CyU3PSetEpConfig (CY_FX_EP_BULK_VIDEO, &endPointConfig);

       

      1.png

      /* Endpoint definition for UVC application */

      #define CY_FX_EP_IN_TYPE                0x80    /* USB IN end points have MSB set */

      #define CY_FX_EP_BULK_VIDEO             (CY_FX_EP_VIDEO_CONS_SOCKET | CY_FX_EP_IN_TYPE)         /* EP 3 IN */

      #define CY_FX_EP_CONTROL_STATUS         (CY_FX_EP_CONTROL_STATUS_SOCKET | CY_FX_EP_IN_TYPE)     /* EP 2 IN */

       

      2.png

      I think the CY_FX_EP_BULK_VIDEO  is shoud set to out point ,why it is set to IN?

      It should like this #define CY_FX_EP_BULK_VIDEO             (CY_FX_EP_VIDEO_CONS_SOCKET )         /* EP 3 OUT*/