mikroC
making it simple...
Soft_I2C_StartmikroC - C Compiler for Microchip PIC microcontrollers
Prototype | void Soft_I2C_Start(void); |
Description Issues START signal. Needs to be called prior to sending and receiving data.
Requires Soft I²C must be configured before using this function. See Soft_I2C_Config.
Example Soft_I2C_Start();
Soft_I2C_ReadPrototype | char Soft_I2C_Read(char ack); |
|
|
Returns | Returns one byte from the slave. |
|
|
Description | Reads one byte from the slave, and sends not acknowledge signal if parameter ack is 0, |
| otherwise it sends acknowledge. |
|
|
Requires | START signal needs to be issued in order to use this function. See Soft_I2C_Start. |
|
|
Example | tmp = Soft_I2C_Read(0); //Read data, send |
|
|
|
| page |
|
MikroElektronika: Development tools - Books - Compilers | 255 | ||
|
|