I2C API I2C Set Bit Rate

Table 1. I2C API I2C Set Bit Rate
Routine I2C Set Bit Rate
Prototype ErrorCode_t i2c_set_bitrate(I2C_HANDLE_T*, P_clk_in_hz, bitrate_in_bps)
Input parameter I2C_HANDLE_T - Handle to the allocated SRAM area. P_clk_in_hz - unint32 variable. The Peripheral Clock in Hz. Bitrate_in_bps - unint32 variable. Requested I2C operating frequency in Hz.
Return ErrorCode.
Description Configures the I2C duty-cycle registers (SCLH and SCLL).