Hi Jason,
Thank you for your more details, you are using InternalI2C module, not the I2C_LDD module.
I have check the generated code, actually, the number of polling trials is just control the wait times, if the the flag is got, then the code will break from the wait for(;;).
About the data setting ,there has no detail rule, here I suggest you use the max data:65535, because it is just like the while in the polling mode, just used for wait the sent status.
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------