How kI2C_TransferDefaultFlag works for I2C?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How kI2C_TransferDefaultFlag works for I2C?

1,392件の閲覧回数
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,378件の閲覧回数
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,362件の閲覧回数
cavinlong
Contributor I
hi, LP55S28
0 件の賞賛
返信

1,351件の閲覧回数
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 件の賞賛
返信