mikroC
making it simple...
I2C_StartmikroC - C Compiler for Microchip PIC microcontrollers
Prototype | char I2C_Start(void); |
|
|
Returns | If there is no error, function returns 0. |
|
|
Description | Determines if I²C bus is free and issues START signal. |
|
|
Requires | I²C must be configured before using this function. See I2C_Init. |
|
|
Example | I2C_Start(); |
|
|
Prototype | void I2C_Repeated_Start(void); |
Description Issues repeated START signal.
Requires I²C must be configured before using this function. See I2C_Init.
Example I2C_Repeated_Start();
I2C_Is_IdlePrototype | char I2C_Is_Idle(void); |
|
|
Returns | Returns 1 if I²C bus is free, otherwise returns 0. |
|
|
Description | Tests if I²C bus is free. |
|
|
Requires | I²C must be configured before using this function. See I2C_Init. |
|
|
Example | if (I2C_Is_Idle()) {...} |
|
|
|
| page |
|
MikroElektronika: Development tools - Books - Compilers | 189 | ||
|
|