3 Replies Latest reply on Oct 23, 2018 11:21 PM by srnt

    CYAPI library suspend and resume function is support fx2lp

    darren.chen_3214351

      the suspend, resume function is support fx2lp.

      using  suspend funcrion does not into suspend in fx2lp.

        • 1. Re: CYAPI library suspend and resume function is support fx2lp
          srnt

          Hello,

           

          - FX2LP supports Suspend and Resume operation.

          - The Suspend() function in the CyAPI library is no longer supported. Please refer to section 6.21 of the attached CyUSB.PDF document.

          - The CYUSB3 driver puts the device into suspend state after around 10 seconds of inactivity on the bus. Before the device enters the suspend state, the TD_Suspend() function block gets executed.

          NOTE: The configuration descriptor should indicate that the device is capable of remote-wakeup. Only, when this is enabled, the driver suspends the device.

           

          Code Snippet:

          HighSpeedConfigDscr:  

                db   DSCR_CONFIG_LEN               ;; Descriptor length

                db   DSCR_CONFIG                  ;; Descriptor type

                db   (HighSpeedConfigDscrEnd-HighSpeedConfigDscr) mod 256 ;; Total Length (LSB)

                db   (HighSpeedConfigDscrEnd-HighSpeedConfigDscr)  /  256 ;; Total Length (MSB)

                db   1      ;; Number of interfaces

                db   1      ;; Configuration number

                db   0      ;; Configuration string

                db   10100000b   ;; Attributes (b7 - buspwr, b6 - selfpwr, b5 - rwu)

                db   50      ;; Power requirement (div 2 ma)

           

          Best regards,

          Srinath S

          • 2. Re: CYAPI library suspend and resume function is support fx2lp
            darren.chen_3214351

            Hello,

             

            Thank you for your reply.

             

            I follow your suggestion, the system can into suspend and resume.

             

            The CYUSB3 driver puts the device into suspend state after around 10 seconds of inactivity on the bus.

             

            Can I adjust more longer time to entry suspend state? maybe oen minute or more.

             

             

            • 3. Re: CYAPI library suspend and resume function is support fx2lp
              srnt

              Hello,

               

              This value has been set at the driver level and hence cannot be modified.

               

              Best regards,

              Srinath S