cancel
Showing results for 
Search instead for 
Did you mean: 

USB EZ-PD Type-C

TeIk_3653391
New Contributor II

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.

0 Likes
1 Solution
PranavaYN
Moderator
Moderator

Hi,

You can call dpm_init and dpm_start functions to re-enable the port.

Best regards,
Pranava

View solution in original post

0 Likes
2 Replies
PranavaYN
Moderator
Moderator

Hi,

You can call dpm_init and dpm_start functions to re-enable the port.

Best regards,
Pranava

View solution in original post

0 Likes
TeIk_3653391
New Contributor II

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;
}

 

0 Likes