Get current PD voltage out of API

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
mvic_2509051
Level 1
Level 1

Working with the CYPD3125 and SDK Version 3.0.2 (build 905), just implemented a I2C slave which will be used with an external controller. Can somebody explain where the active PD voltage can be found with the API. Tried dpm_status_t and app_status_t structs but seem to find the correct info?

Any help would be appreciated

0 Likes
1 Solution

Hi M Vissers,

Ops, I should say contract.field.max_volt. CCG3 will set voltage with this parameter.

Best Regards,

Lisa

View solution in original post

0 Likes
4 Replies
ShifangZ_26
Moderator
Moderator
Moderator
10 likes given 250 sign-ins 1000 replies posted

Hi M Vissers,

The relevant variable for your check current of PDO contract is:

Check the current of contract: contract.field. cur_pwr.

Best Regards,

Lisa

0 Likes

I already looked into this value. For a contract this only gives me the Operational current (mA) as specified in the Sink PDO in the EZ-PD configuration utility. Is it also possible to get the Voltage (mV)?

0 Likes

It was not clear to me that the cur_pwr field is in 10mA units and the max_volt and min_volt fields are in 50mV units

0 Likes

Hi M Vissers,

Ops, I should say contract.field.max_volt. CCG3 will set voltage with this parameter.

Best Regards,

Lisa

0 Likes