Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

USB EZ-PD™ Type-C Forum Discussions

BhargavGolla
Level 1
10 sign-ins 5 replies posted 5 sign-ins
Level 1

Hi community ,

                I am using CCg3PA in my project, is there a way to read D+ /D- line status  or voltage from we as source and DUT as sink. Is there a specific function for this requirement.

thanks

0 Likes
1 Solution
HmdRahmathulla
Moderator
Moderator 25 replies posted 25 sign-ins 5 solutions authored
Moderator

Hi BhargavGolla,

 Thank you creating case in infineon community.

 chgb_dp_status(portnumber) is the function to check the states of D+ line

 chgb_dm_status(portnumber) is the function to check the states of D+ line

if it is High, return will be True, otherwise it will be low.

 

Regards,

Mohamed Rahmathulla

View solution in original post

0 Likes
3 Replies
HmdRahmathulla
Moderator
Moderator 25 replies posted 25 sign-ins 5 solutions authored
Moderator

Hi BhargavGolla,

 Thank you creating case in infineon community.

 chgb_dp_status(portnumber) is the function to check the states of D+ line

 chgb_dm_status(portnumber) is the function to check the states of D+ line

if it is High, return will be True, otherwise it will be low.

 

Regards,

Mohamed Rahmathulla

0 Likes
BhargavGolla
Level 1
10 sign-ins 5 replies posted 5 sign-ins
Level 1

Hi Mohamed Rahmathulla,

     Thankyou for the reply, But there was no such function as 'chgb_dp_status' in Api guide or the reference code i downloaded from website,  can you provide more  information about that specific function in detail.

Thankyou.

0 Likes
HmdRahmathulla
Moderator
Moderator 25 replies posted 25 sign-ins 5 solutions authored
Moderator

Hi BhargavGolla,

 

 You can find this function in Power SDK which will get it in below mentioned site.

 https://softwaretools.infineon.com/tools/com.ifx.tb.tool.ezpdpowersdk

please do check in pdss_mx_hal.c file for respective api.

 

Thanks  & Regards

Mohamed Rahmathulla

0 Likes