cancel
Showing results for 
Search instead for 
Did you mean: 

USB EZ-PD Type-C

New Contributor

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
Reply
1 Solution
Moderator
Moderator

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
Moderator
Moderator

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