CYAPI library suspend and resume function is support fx2lp

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

cross mob
dach_3214351
Level 1
Level 1
5 sign-ins 5 replies posted 5 questions asked

the suspend, resume function is support fx2lp.

using  suspend funcrion does not into suspend in fx2lp.

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
SrinathS_16
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

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
lock attach
Attachments are accessible only for community members.
SrinathS_16
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

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