maybe error in AN75779

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

/* 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*/

0 Likes
1 Solution
YangyangC_06
Employee
Employee
750 replies posted 500 replies posted 250 replies posted

In USB system, the direction "IN" means going towards host and "Out" means leaving from host.

View solution in original post

0 Likes
1 Reply
YangyangC_06
Employee
Employee
750 replies posted 500 replies posted 250 replies posted

In USB system, the direction "IN" means going towards host and "Out" means leaving from host.

0 Likes