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

USB EZ-PD™ Type-C Forum Discussions

MaLi_3529141
Level 3
Level 3
25 replies posted 25 sign-ins 10 replies posted

Dear,

Does CYPD4236 Example have I2C_Write() but no I2C Read.

If I also need to use I2C Read, is there a reference example that I can use?

CCG4 4236 Dock example.PNG

 

Best Regards,

Manu

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

Hi Manu,

 

CYPD4236 example code do not write additional I2C read for referring to. But you can get the API of I2C Read from I2C master component datasheet. 

ShifangZ_26_0-1620955350739.png

You can use it  as per your requirements.

 

Best Regards,

Lisa

View solution in original post

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

Hi Manu,

 

CYPD4236 example code do not write additional I2C read for referring to. But you can get the API of I2C Read from I2C master component datasheet. 

ShifangZ_26_0-1620955350739.png

You can use it  as per your requirements.

 

Best Regards,

Lisa

0 Likes
MaLi_3529141
Level 3
Level 3
25 replies posted 25 sign-ins 10 replies posted

Dear Lisa,

 

1. Do I need to call the function first to enable SCB_I2CMasterReadBuf()?

2. Can MUX_CTRL_I2CMasterReadBuf() in the example code be used?

 

 

Best Regards,

Manu

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

Hello Manu,

 

You can use it directly without additional initialization. 

 

Best Regards,

Lisa

0 Likes