End point adress definition

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

cross mob
ThM_3776866
Level 4
Level 4
First like received First like given Welcome!

Hi all,

I am working on Cypress FX-3 project. I created 3 end point ( One Bulk out endpoint and 2 bulk in endpoint).

1. Bulk in end point(0x01) is socket is CY_U3P_UIB_SOCKET_PROD_1.

2. Bulk out end point(0x81) is socket is CY_U3P_UIB_SOCKET_CONS_1.

3. Bulk out end point (0x82) is socket is  CY_U3P_UIB_SOCKET_CONS_2.

is this configuration is correct ? how we can give end point address like 0x01,0x02, 0x81,0x82 etc..?.

Thank you

With Regards,

Thrimurthi M

0 Likes
1 Solution
SrinathS_16
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello Thrimurthi,

- IN endpoints have the address such that the direction bit (bmBIT7) is 1.

0x01 - OUT endpoint

0x02 - OUT endpoint

0x81 - IN endpoint.

- CY_U3P_UIB_SOCKET_PROD_ or CY_U3P_UIB_SOCKET_CONS_ is to identify the socket used in the DMA channel. The endpoints are mapped to these sockets accordingly such that 0x01 maps to CY_U3P_UIB_SOCKET_PROD_1, 0x81 maps to CY_U3P_UIB_SOCKET_CONS_1 and so on. But, for the endpoints to be configured, the CyU3PSetEpConfig() API has to be used with the endpoint number and the endpoint configuration being the API parameters. Please refer to any of the USB based examples that come with the FX3 SDK for reference code snippets.

Best regards,

Srinath S

View solution in original post

0 Likes
1 Reply
SrinathS_16
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello Thrimurthi,

- IN endpoints have the address such that the direction bit (bmBIT7) is 1.

0x01 - OUT endpoint

0x02 - OUT endpoint

0x81 - IN endpoint.

- CY_U3P_UIB_SOCKET_PROD_ or CY_U3P_UIB_SOCKET_CONS_ is to identify the socket used in the DMA channel. The endpoints are mapped to these sockets accordingly such that 0x01 maps to CY_U3P_UIB_SOCKET_PROD_1, 0x81 maps to CY_U3P_UIB_SOCKET_CONS_1 and so on. But, for the endpoints to be configured, the CyU3PSetEpConfig() API has to be used with the endpoint number and the endpoint configuration being the API parameters. Please refer to any of the USB based examples that come with the FX3 SDK for reference code snippets.

Best regards,

Srinath S

0 Likes