Instructions

275 C-Control Pro IDE
© 2013 Conrad Electronic
length number of bytes that are transferred (exclusive header)
Return Parameter
-1 = transmission error
0 = successful
5.12.2.3 I2C_SetSpeed
I2C Functions Example
Syntax
void I2C_SetSpeed(dword I2C_BR);
Sub I2C_SetSpeed(I2C_BR As ULong)
Description
This function sets the speed of the I2C interface.
Parameter
I2C_BR Indicates the bit rate as a 32-bit value. The following values ??are already predefined:
I2C_100kHz
I2C_400kHz
Definition
Value
I2C_100kHz
100000
I2C_400kHz
400000
Return Parameter
-8 = transmission error
0 = successful
5.12.2.4 I2C_Write
I2C Functions
Syntax
byte I2C_Write(byte addr, dword hdr, byte hdr_len, byte mem_addr[],
word length);