Source Capability Mask Update at runtime on CCG2 devices

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
KyleL
Level 1
Level 1
5 sign-ins First reply posted First question asked

Hello,

I have a question regarding CCG2 APIs.

I am currently using the SDK version 3.0.2, April 10, 2017.
The stack version for CCG2 is 2.3.1 Build 306.
The stack version for CCG3 device is 3.0.2 Build 905.

EZ PD part numbers are as below.
- CCG2: CYPD2122-24LQXI
- CCG3: CYPD3125-40LQXI


There is an API to change source capability mask for CCG3.
-------------------------------------------------------------------------------------------------------------------------------
ccg_status_t dpm_update_src_cap(uint8_t port, uint8_t count, pd_do_t* pdo)
-------------------------------------------------------------------------------------------------------------------------------

Here is the comment about this API.
-------------------------------------------------------------------------------------------------------------------------------
@brief This function updates the source PDOs at runtime thereby overriding the source PDOs in the config table.
@param port Port index.
@param count Count of PDOs.
@param pdo Pointer to the PDO array.
@return CCG_STAT_SUCCESS if operation is successful, CCG_STAT_BAD_PARAM otherwise.
-------------------------------------------------------------------------------------------------------------------------------

I am looking for an equivalent API to it for CCG2 devices.
It seems that there is no information about it in the API guide.
Could anyone please let me know APIs to change source capability mask at runtime for CCG2 devices?
If there is no API to do that, could you please let me know the way to produce the same result?


Thank you.

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

Hello ,

Your understand is correct, CCG2 is not supported by the API: ccg_status_t dpm_update_src_cap(uint8_t port, uint8_t count, pd_do_t* pdo).  Updates CCG2 firmware's PDO, PDO Mask Selection have to via Ez-PD configuration Table. 

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

Hello ,

Your understand is correct, CCG2 is not supported by the API: ccg_status_t dpm_update_src_cap(uint8_t port, uint8_t count, pd_do_t* pdo).  Updates CCG2 firmware's PDO, PDO Mask Selection have to via Ez-PD configuration Table. 

Best Regards,

Lisa

 

0 Likes

So, does it mean there is no way to change source capability at runtime for CCG2?

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

Hello ,

Your understand is correct.

Best Regards,

Lisa

 

0 Likes

Thank you, Lisa.

0 Likes