Skip to content
Ken Sharp edited this page Dec 8, 2023 · 1 revision

I2cSetSpeed()

Set the clock speed of the specified I2C master channel. This function will use the highest supported clock rate that is less than or equal to the specified clock rate.

Syntax

I2cSetSpeed(unsigned char channel, unsigned long speed, unsigned long* actualSpeed);

channel
The I2C master channel to open.

speed
The desired clock rate in Hz.

actualSpeed
A pointer to an unsigned long that will be set the the actual baud used.

Returns

int status

Related Links

Clone this wiki locally