IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


I2C Legacy API


Detailed Description

The following definitions are provided to assure a compatibility to previous @CHIP-RTOS operation systems and targets.

Note: The I2C_set_speed() function of the SC1x, SC2x and SC1x3 systems is not supported by the SC2x3 I2C Legacy API due to the differences in the I2C hardware interfaces.

Defines

#define I2C_init()   i2cInit(0)
 Legacy API, mapped to first I2C bus (index 0).
#define I2C_reset()   i2cReset(0)
 Legacy API, mapped to first I2C bus (index 0).
#define I2C_release()   i2cRelease(0)
 Legacy API, mapped to first I2C bus (index 0).
#define I2C_restart()
 This function has no effect.
#define I2C_select_clock_pin(a)
 This function has no effect.
#define I2C_select_data_pin(a)
 This function has no effect.
#define I2C_set_timeout()   i2cSetTimeout(0)
 Legacy API, mapped to first I2C bus (index 0).
#define I2C_scan(a, b)   i2cScan(0, (unsigned int)(a), (unsigned int)(b), FALSE)
 Legacy API, mapped to first I2C bus (index 0).
#define I2C_scan_ext(a, b)   i2cScan(0, (a), (b), TRUE)
 Legacy API, mapped to first I2C bus (index 0).
#define I2C_transmit_char(a, b)   i2cTransmitChar(0, (unsigned int)(a), (BYTE)(b), FALSE)
 Legacy API, mapped to first I2C bus (index 0).
#define I2C_transmit_char_ext(a, b)   i2cTransmitChar(0, (a), (BYTE)(b), TRUE)
 Legacy API, mapped to first I2C bus (index 0).
#define I2C_transmit_block(a, b, c)   i2cTransmitBlock(0, (unsigned int)(a), (BYTE*)(b), (c), FALSE)
 Legacy API, mapped to first I2C bus (index 0).
#define I2C_transmit_block_ext(a, b, c)   i2cTransmitBlock(0, (a), (BYTE*)(b), (c), TRUE)
 Legacy API, mapped to first I2C bus (index 0).
#define I2C_receive_char(a, b, c)   i2cReceiveChar(0, (unsigned int)(a), (BYTE*)(b), (BOOLEAN)(c), FALSE)
 Legacy API, mapped to first I2C bus (index 0).
#define I2C_receive_char_ext(a, b, c)   i2cReceiveChar(0, (a), (BYTE*)(b), (BOOLEAN)(c), TRUE)
 Legacy API, mapped to first I2C bus (index 0).
#define I2C_receive_block(a, b, c)   i2cReceiveBlock(0, (unsigned int)(a), (BYTE*)(b), (c), FALSE)
 Legacy API, mapped to first I2C bus (index 0).
#define I2C_receive_block_ext(a, b, c)   i2cReceiveBlock(0, (a), (BYTE*)(b), (c), TRUE)
 Legacy API, mapped to first I2C bus (index 0).
#define I2C_slave_address(a, b)   i2cSlaveAddress(0, (a), (BOOLEAN)(b))
 Legacy API, mapped to first I2C bus (index 0).
#define I2C_slave_getstate()   i2cSlaveGetState(0)
 Legacy API, mapped to first I2C bus (index 0).
#define I2C_slave_sendack(a)   i2cSlaveSendAck(0, (BOOLEAN)(a))
 Legacy API, mapped to first I2C bus (index 0).
#define I2C_slave_readbyte()   i2cSlaveReadByte(0, 1)
 Legacy API, mapped to first I2C bus (index 0).
#define I2C_slave_sendbyte(a, b)   i2cSlaveSendByte(0, (BYTE)(a))
 Legacy API, mapped to first I2C bus (index 0).





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Jan 26 16:21:36 2017 by Doxygen 1.6.1