- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi to all,
after reading forum and examples and after a couple of problems regarding USB drivers, now I am able to use USBUART (CDC) interface with PSoC5LP!
It remains only a problem: manage the connection/disconnection of the USB cable.
I read KBA210620:
This document suggest to monitor the VBUS line to detect the disconnection event.
But, in my current design, I cannot monitor the VBUS line (SELF POWERED - NO VBUS).
I did a bit of experiments but I was not lucky.
There is someone that knows a solution to detect USB disconnection (USBUART - CDC) without monitoring the VBUS line?
Thank you in advance to all 😉
PS: UBUART component datasheet v.3.20 does not define USBUART_GetConfiguration() API
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
USBUART_CheckActivity() function returns the activity status of the bus. It clears the hardware status to provide updated status on the next call of this function. It provides a way to determine whether any USB bus activity occurred. The application should use this function to determine if the USB suspend conditions are met.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use the USBFS_CheckActivity().
Thanks,
Hima
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi hima,
thank you very much for your reply.
But, unfortunately, the function USBFS_CheckActivity() does not exist in my environment because I am using USBUART.
Instead it exists the function USBUART_CheckActivity() but it is not documented inside the datasheet!!!
Why this function is not documented?
However, now I will try to test this function.
Thanks,
Graziano.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
USBUART_CheckActivity() function returns the activity status of the bus. It clears the hardware status to provide updated status on the next call of this function. It provides a way to determine whether any USB bus activity occurred. The application should use this function to determine if the USB suspend conditions are met.