3 Replies Latest reply on Mar 14, 2019 10:16 PM by SrinathS_16

    Forcing Usb3 only

    nich_4061921

      Hi guys!

      So, I finally got my fx3! Super excited  and I'm designing a super speed only device.

      I know that a possible release would have compliance issues with usb, but would I assume correctly by deleting the following and keeping 1024, that would force Usb3 superspeed and fail out if it's connected to a usb2 host?

        • 1. Re: Forcing Usb3 only
          SrinathS_16

          Hello,

           

          To disable the SuperSpeed operation of FX3, the CyU3PConnectState() API should be called with its second parameter set to CyFalse.

           

          Best regards,

          Srinath S

          • 2. Re: Forcing Usb3 only
            nich_4061921

            Hi! I think you might have misunderstood me, or I was unclear.

            I want to disable all other usb configurations other than Usb3, I need it to stop working if it's not connected to superspeed.

             

            Just if I don't formulate myself well, I only want usb3

            • 3. Re: Forcing Usb3 only
              SrinathS_16

              Hello,

               

              Sorry for the misunderstanding. Please use the below code after the CyU3PConnectState() API call to disconnect the FX3 device in case it is not operating at Super Speed.

               

                  CyU3PUSBSpeed_t usbSpeed = CyU3PUsbGetSpeed();

                  CyU3PBusyWait(10);

                  if(usbSpeed != CY_U3P_SUPER_SPEED)

                  {

                      CyU3PConnectState(CyFalse, CyTrue);

                      CyFxAppErrorHandler(apiRetStatus);

                  }

               

              Best regards,

              Srinath S