Monitor CC line status in CYPD_3125 Notebook application SDK code

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
Anonymous
Not applicable

HI,

Need to know within CYPD-3125 SDK code where exactly CC line status can be well monitor to know the correct status i.e orientation.

I used dpm_get_polarity() in one of the application handler where device connect message is captured. but  dpm_get_polarity() return always zero.

Thank you,

0 Likes
1 Solution
RajathB_01
Moderator
Moderator
Moderator
250 replies posted 100 replies posted 50 replies posted

Hi Arun,

dpm_get_polarity() returns 0 if CC1 is used. If CC2 is used it should return 1. Do you get 0 even after flipping the plug?

For such information, please refer the CCGX SDK Firmware API Guide: http://www.cypress.com/file/315266/download

Regards,

Rajath

View solution in original post

0 Likes
2 Replies
RajathB_01
Moderator
Moderator
Moderator
250 replies posted 100 replies posted 50 replies posted

Hi Arun,

dpm_get_polarity() returns 0 if CC1 is used. If CC2 is used it should return 1. Do you get 0 even after flipping the plug?

For such information, please refer the CCGX SDK Firmware API Guide: http://www.cypress.com/file/315266/download

Regards,

Rajath

0 Likes
Anonymous
Not applicable

HI Rajath,

From app handler, i am able to read CC status, issue is resolved.

Thank you,

0 Likes