IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


Macros
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 SC1x8 and SC1x5 I2C Legacy API due to the differences in the I2C hardware interfaces.

Macros

#define I2C_LEGACY_BUS   (0)
 Legacy API, select the I2C bus interface for the legacy API. More...
 
#define I2C_init()   i2cInit(I2C_LEGACY_BUS)
 Legacy API, by default mapped to first I2C bus (index 0) More...
 
#define I2C_reset()   i2cReset(I2C_LEGACY_BUS)
 Legacy API, by default mapped to first I2C bus (index 0) More...
 
#define I2C_release()   i2cRelease(I2C_LEGACY_BUS)
 Legacy API, by default mapped to first I2C bus (index 0) More...
 
#define I2C_restart()
 This function has no effect. More...
 
#define I2C_select_clock_pin(a)
 This function has no effect. More...
 
#define I2C_select_data_pin(a)
 This function has no effect. More...
 
#define I2C_set_timeout(a)   i2cSetTimeout(I2C_LEGACY_BUS, (unsigned int)(a))
 Legacy API, by default mapped to first I2C bus (index 0) More...
 
#define I2C_scan(a, b)   i2cScan(I2C_LEGACY_BUS, (unsigned int)(a), (unsigned int)(b), FALSE)
 Legacy API, by default mapped to first I2C bus (index 0) More...
 
#define I2C_scan_ext(a, b)   i2cScan(I2C_LEGACY_BUS, (a), (b), TRUE)
 Legacy API, by default mapped to first I2C bus (index 0) More...
 
#define I2C_transmit_char(a, b)   i2cTransmitChar(I2C_LEGACY_BUS, (unsigned int)(a), (BYTE)(b), FALSE)
 Legacy API, by default mapped to first I2C bus (index 0) More...
 
#define I2C_transmit_char_ext(a, b)   i2cTransmitChar(I2C_LEGACY_BUS, (a), (BYTE)(b), TRUE)
 Legacy API, by default mapped to first I2C bus (index 0) More...
 
#define I2C_transmit_block(a, b, c)   i2cTransmitBlock(I2C_LEGACY_BUS, (unsigned int)(a), (BYTE*)(b), (c), FALSE)
 Legacy API, by default mapped to first I2C bus (index 0) More...
 
#define I2C_transmit_block_ext(a, b, c)   i2cTransmitBlock(I2C_LEGACY_BUS, (a), (BYTE*)(b), (c), TRUE)
 Legacy API, by default mapped to first I2C bus (index 0) More...
 
#define I2C_receive_char(a, b, c)   i2cReceiveChar(I2C_LEGACY_BUS, (unsigned int)(a), (BYTE*)(b), (BOOLEAN)(c), FALSE)
 Legacy API, by default mapped to first I2C bus (index 0) More...
 
#define I2C_receive_char_ext(a, b, c)   i2cReceiveChar(I2C_LEGACY_BUS, (a), (BYTE*)(b), (BOOLEAN)(c), TRUE)
 Legacy API, by default mapped to first I2C bus (index 0) More...
 
#define I2C_receive_block(a, b, c)   i2cReceiveBlock(I2C_LEGACY_BUS, (unsigned int)(a), (BYTE*)(b), (c), FALSE)
 Legacy API, by default mapped to first I2C bus (index 0) More...
 
#define I2C_receive_block_ext(a, b, c)   i2cReceiveBlock(I2C_LEGACY_BUS, (a), (BYTE*)(b), (c), TRUE)
 Legacy API, by default mapped to first I2C bus (index 0) More...
 





Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Fri Jun 8 2018 12:48:20 by Doxygen 1.8.13