Disabling and enabling PD port

Announcements

Live Webinar: USB-C adoption. Simple & Cost-efficient solutions | April 18th @9am or 5pm CEST. Register now !

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

cross mob
TeIk_3653391
Level 4
Level 4
25 sign-ins First like received 10 questions asked

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

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

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