cancel
Showing results for 
Search instead for 
Did you mean: 

USB EZ-PD Type-C

Ivan_Lee
Contributor

Dose CCG3PA SDK have any API to read VBUS current ( mA ) Or there is another way?

I check "pd_hal_measure_vbus_cur(port)” function, it seems just a empty function.

0 Likes
1 Solution
YiZ_31
Moderator
Moderator

Hi,

Have CCG_CABLE_COMP_ENABLE been defined in your project?

If it's not enabled, then pd_hal_measure_vbus_cur could be empty. You can comment out #if CCG_CABLE_COMP_ENABLE to enable its feature.

Regards,
Eddie

View solution in original post

0 Likes
3 Replies
YiZ_31
Moderator
Moderator

Hi,

Have CCG_CABLE_COMP_ENABLE been defined in your project?

If it's not enabled, then pd_hal_measure_vbus_cur could be empty. You can comment out #if CCG_CABLE_COMP_ENABLE to enable its feature.

Regards,
Eddie

View solution in original post

0 Likes
Ivan_Lee
Contributor

Sorry, i want the API to read current, not voltage.

0 Likes
YiZ_31
Moderator
Moderator

Sorry, my former answer was incorrect. So I modified the answer.

Regards,
Eddie

0 Likes