Set baudrate.
int32_t i2c_m_sync_set_baudrate( struct i2c_m_sync_desc * i2c, uint32_t clkrate, uint32_t baudrate )
This function sets the I2C device to the specified baudrate. It only takes effect when the hardware is disabled.
Type: struct i2c_m_sync_desc Struct *
An I2C descriptor, which is used to communicate through I2C
Type: uint32_t
Unused parameter. Should always be 0
Type: uint32_t
The baudrate value set to master
Type: int32_t
Whether successfully set the baudrate
The passed parameters were invalid or the device is already enabled
The baudrate set is completed successfully