How kI2C_TransferDefaultFlag works for I2C?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How kI2C_TransferDefaultFlag works for I2C?

1,390 次查看
cavinlong
Contributor I

Hi,

This is the sample code of the i2c_polling_b2b_master.

I do not understand why to use the TransferDefaultFlag here,as it seems like it will send the start signal again and will have multiple starts here since the line 108 already sent a start signal.

What is the purpose of having the flags here as the parameter?

cavinlong_0-1684844065775.png

cavinlong_0-1684844385797.png

 

 

Thank you in advance.

标签 (1)
0 项奖励
回复
3 回复数

1,376 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, my name es Pavel and I will be supporting your case, could you tell me what kind of MCU, or board do you have?
Pavel

0 项奖励
回复

1,360 次查看
cavinlong
Contributor I
hi, LP55S28
0 项奖励
回复

1,349 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, I reviewed the information about that example, in this case, this function is using one flag to determine if the communication continues or if this needs to be stopped.

Pavel_Hernandez_0-1684963043042.png

Best regards,
Pavel

0 项奖励
回复