Set baudrate.
int32_t i2c_m_os_set_baudrate( struct i2c_m_os_desc *const i2c, uint32_t clkrate, uint32_t baudrate )
This function sets the I2C master device to a specified baudrate, and it only takes effect when the hardware is disabled
Type: struct i2c_m_os_desc Struct *const
An I2C master 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
The status whether successfully set the baudrate
The passed parameters were invalid or the device is already enabled
The baudrate set is completed successfully