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

USB superspeed peripherals Forum Discussions

dach_3214351
Level 1
Level 1
5 replies posted 5 questions asked First like received

the suspend, resume function is support fx2lp.

using  suspend funcrion does not into suspend in fx2lp.

0 Likes
1 Solution
SrinathS_16
Moderator
Moderator
Moderator
250 solutions authored 100 solutions authored 100 likes received

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

View solution in original post

0 Likes
3 Replies
SrinathS_16
Moderator
Moderator
Moderator
250 solutions authored 100 solutions authored 100 likes received

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

0 Likes

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.

0 Likes

Hello,

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

Best regards,

Srinath S

0 Likes