How to sense Hot Plug Detect (HPD) on USBC port using CCG3PA pa_direct_fb firmware?

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
AlMa_1521636
Level 1
Level 1
First like given Code Expert

I am using a CCG3PA CYPD3175 for a 18W power adaptor port. I need to be able to detect when a device is plugged in and unplugged from the USBC port regardless if it is a PD or non-PD. I am programming with PSoC Creator. What commands do I use to read the status of HPD? So, I need to know connect, disconnect, and contract established.

Thank you.

0 Likes
1 Solution
ShifangZ_26
Moderator
Moderator
Moderator
10 likes given 250 sign-ins 1000 replies posted

Hi Allen,

CCG3PA firmware project file app.c, function void app_event_handler(uint8_t port, app_evt_t evt, const void* dat)

1. Plug in --         case APP_EVT_TYPEC_ATTACH:

2. Plug out --       case APP_EVT_DISCONNECT:

You could take action under those cases.

Best Regards,

Lisa

View solution in original post

1 Reply
ShifangZ_26
Moderator
Moderator
Moderator
10 likes given 250 sign-ins 1000 replies posted

Hi Allen,

CCG3PA firmware project file app.c, function void app_event_handler(uint8_t port, app_evt_t evt, const void* dat)

1. Plug in --         case APP_EVT_TYPEC_ATTACH:

2. Plug out --       case APP_EVT_DISCONNECT:

You could take action under those cases.

Best Regards,

Lisa