s_i2c_write_command() function
This function is used to send I2C write command, which is divided in two parts. -1. If write buffer is smaller than hardware fifo, it can be sent out in one single time, so the hardware command(step) is simply like start(1)->write(2)->end(3) -2. If write buffer is larger than hardware fifo, it cannot be sent out in one time, so it needs to be separated in to different transactions by interrupt. In this time, the hardware command(step) simply looks like start(1)->write_part(2)--interrupt--...--write(1)->end(2).
Arguments
i2c_master
I2C master handle
i2c_operation
Pointer to I2C trans operation structure.
fifo_fill
will be populated with the number of bytes written to the hardware FIFO by this function
address_fill
I2C device address with read or write information.