- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I use Reset function which is in the CyAPI to reset the endpoints, does the effect is equal to CyU3PDmaChannelReset function which is in the FX3 API?
For all I know, the FX3 API is used in EZUSB Suite and produce an image file which has to burn to the FX3, so I'm not sure about whether the function in FX3 API can be used individually by Suite just like I use CyAPI in VS.
Thanks a lot.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
From your response, I understand that you want to reset the device from the USB host.
In that case, you send a vendor command to the device over EP0 and the FX3 firmware needs to handle the request and call CYU3PDeviceReset.
Please refer USBBulkSrcSink example firmware of FX3 SDK to check the implementation of vendor commands and handling them.
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
CyU3PDmaChannelReset will reset the DMA channel inside FX3. Please refer to CyU3PDeviceReset API in the FX3 API guide for your application.
I understand that you want to know about CCyUSBDevice::Reset(). If yes, This command resets the upstream port of the device it manages. After a successful reset, the bus driver reselects the configuration and any alternative interface settings that the device had before the reset occurred. All pipe handles, configuration handles and interface handles remain valid.
CCyUSBEndPoint::Reset - This command resets an endpoint of the device, clearing any error or stall conditions on that endpoint. Pending data transfers are not canceled by this command
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for replying, but I still wondering how to use the CyU3PDeviceReset API.
Since I know how to use APIs in CyAPI such as CCyUSBDevice::Reset() in visual studio, but I'm not sure about which interface I should use to call the FX3 API such as CyU3PDeviceReset.
Is image file that created by the EZ-USB Suite the only way to control FX3?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
From your response, I understand that you want to reset the device from the USB host.
In that case, you send a vendor command to the device over EP0 and the FX3 firmware needs to handle the request and call CYU3PDeviceReset.
Please refer USBBulkSrcSink example firmware of FX3 SDK to check the implementation of vendor commands and handling them.
Rashi