Mikroc, I2c_start, I2c_repeated_start – ABL electronic PIC Microcontrollers PIC16 User Manual

Page 197: I2c_is_idle

Advertising
background image

MikroElektronika: Development tools - Books - Compilers

189

page

mikroC - C Compiler for Microchip PIC microcontrollers

mikroC

making it simple...

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();

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_Repeated_Start

Prototype

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()) {...}

I2C_Is_Idle

Advertising
This manual is related to the following products: