www.beck-ipc.com

@CHIP-RTOS C Library - I2C Bus API


Header File:         #include <I2C_API.H>

    Control     Transmit     Receive    

Here is the CLIB API for access to the IPC@CHIP®'s I2C bus.

Philips was the inventor of the Inter-IC or I²C-bus, and it is now firmly established as the worldwide de-facto solution for embedded applications. It is used extensively in a variety of microcontroller-based professional, consumer and telecommunications applications as a control, diagnostic and power management bus. As a two-wire serial bus, its inherently simple operation was crucial to its emergence as the worldwide de-facto standard.

Control Functions

I2C_initI2C Master: Initialize the I2C Bus
I2C_scanI2C Master: Scan for I2C slave devices
I2C_scan_extI2C Master: Scan for I2C slave devices (extended address)
I2C_releaseI2C Master: Release I2C bus
I2C_restartI2C Master: Restart I2C
I2C_select_clock_pinI2C Master: Select I2C Clock Pin
I2C_select_data_pinI2C Master: Select I2C Data Pin
I2C_set_speedI2C Master/Slave: Select I2C bus speed
I2C_resetI2C Master/Slave: Reset I2C bus controller
I2C_set_timeoutI2C Master: Set I2C bus timeout
I2C_bus_resetI2C Master: Reset I2C bus by clock transitions

Transmit Functions

I2C_transmit_charI2C Master: Send a single character
I2C_transmit_blockI2C Master: Send a block of characters
I2C_transmit_char_extI2C Master: Send a single character (extended address)
I2C_transmit_block_extI2C Master: Send a block of characters (extended address)

Receive Functions

I2C_receive_charI2C Master: Receive a single character
I2C_receive_blockI2C Master: Receive block of characters
I2C_receive_char_extI2C Master: Receive a single character (extended address)
I2C_receive_block_extI2C Master: Receive block of characters (extended address)

Slave Functions

I2C_slave_addressI2C Slave: Set I2C bus slave address
I2C_slave_getstateI2C Slave: Get I2C bus state
I2C_slave_sendackI2C Slave: Send a I2C bus acknowledge
I2C_slave_readbyteI2C Slave: Read byte from I2C bus
I2C_slave_sendbyteI2C Slave: Send byte to I2C bus
I2C_slave_idleI2C Slave: Set the I2C internal state back to idle

List of C Libraries
@CHIP-RTOS Main Index


End of document