Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

USB EZ-PD™ Type-C Forum Discussions

TeIk_3653391
Level 2
Level 2
10 replies posted 10 sign-ins 5 replies posted

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
Moderator
500 replies posted 250 solutions authored 50 likes received

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
Moderator
500 replies posted 250 solutions authored 50 likes received

Hi,

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

Best regards,
Pranava
0 Likes

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