Example For Registering Callbacks in Power SDK for CCG3PA

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
JoLo_4180566
Level 2
Level 2

The documentation on registering callbacks in the Power SDK is not exactly clear. I am primarily concerned with the eval_rdo callback. Any examples on how to implement?

Thanks

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

Hi ,

1. CCG3PA example firmware have already registered, you could get those in main.c file.

pastedImage_0.png

2. The details of eval_rdo function is at file pdo.c.

pastedImage_1.png

Hope above information is the one you are looking for.

Best Regards,

Lisa

View solution in original post

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

Hi ,

1. CCG3PA example firmware have already registered, you could get those in main.c file.

pastedImage_0.png

2. The details of eval_rdo function is at file pdo.c.

pastedImage_1.png

Hope above information is the one you are looking for.

Best Regards,

Lisa

0 Likes

Thanks. That is what I was looking for. I somehow missed it. Documentation should probably contain some tutorial material. It reads more like a reference manual without a lot of explanation for someone new to the SDK.

0 Likes