- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
the suspend, resume function is support fx2lp.
using suspend funcrion does not into suspend in fx2lp.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
This value has been set at the driver level and hence cannot be modified.
Best regards,
Srinath S