dose CCG3PA SDK have any API to read VBUS current Or there is another way?

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
Ivan_Lee
Level 5
Level 5
Distributor - Zenitron(GC)
100 replies posted 5 likes given 100 sign-ins

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
Moderator
1000 replies posted 750 replies posted 500 replies posted

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
Moderator
1000 replies posted 750 replies posted 500 replies posted

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

0 Likes
Ivan_Lee
Level 5
Level 5
Distributor - Zenitron(GC)
100 replies posted 5 likes given 100 sign-ins

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

0 Likes
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

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

Regards,
Eddie

0 Likes