How kI2C_TransferDefaultFlag works for I2C?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How kI2C_TransferDefaultFlag works for I2C?

1,421 Views
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.

Labels (1)
0 Kudos
Reply
3 Replies

1,407 Views
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 Kudos
Reply

1,391 Views
cavinlong
Contributor I
hi, LP55S28
0 Kudos
Reply

1,380 Views
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 Kudos
Reply