Mar 04, 2021
04:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 04, 2021
04:47 AM
Our firmware is monitoring a fault gpio line from a load switch that is asserted when a connected device is faulting and pulling too much current. If fault condition does not clear within certain time I call app_disable_pd_port() to disable further activity on the port.
After a delay and when the fault flag has cleared I want to enable the port again. What is the correct way to do this? There is no symmetric API call to enable the port.
We're using CYPD5225-96BZXI. Source mode only.
Solved! Go to Solution.
Labels
- Labels:
-
USB EZ-PD Type-C
- Tags:
- ing
1 Solution
Mar 05, 2021
02:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 05, 2021
02:40 AM
Hi,
You can call dpm_init and dpm_start functions to re-enable the port.
Best regards,
Pranava
Pranava
2 Replies
Mar 05, 2021
02:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 05, 2021
02:40 AM
Hi,
You can call dpm_init and dpm_start functions to re-enable the port.
Best regards,
Pranava
Pranava
Mar 05, 2021
03:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 05, 2021
03:50 AM
Thank you, we'll try something like this.
ccg_status_t app_enable_pd_port(uint8_t port)
{
ccg_status_t retval = CCG_STAT_SUCCESS;
if(dpm_init(port, app_get_callback_ptr(port)) == CCG_STAT_SUCCESS) {
retval = dpm_start(port);
}
return retval;
}