1 Reply Latest reply on Nov 22, 2018 10:34 PM by srnt

    End point adress definition

    ThrimurthiM

      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

        • 1. Re: End point adress definition
          srnt

          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_[x] or CY_U3P_UIB_SOCKET_CONS_[x] 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