IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page

void i2cSlaveAddress ( BYTE  idx,
unsigned int  addr,
BOOLEAN  genCallAddr 

This function sets the I2C bus slave address and initializes the I2C bus slave interface. To use the I2C slave interface the user has to install an interrupt service routine for the I2C interrupt. An interrupt occurs when the I2C state changes. The user should than read the I2C state with function i2cSlaveGetState().

The i2cInit() function must be called previously.

idx I2C bus interface index (0=I2C1 or 1=I2C2)
addr Own slave address
Bit0 is don't care, Bit7-1: slave address
genCallAddr Not supported on SC2x3
SC2x3 V1.00 - CLIB V1.00
See also:
i2cSlaveReadByte(), i2cSlaveSendByte()

Top of page | Main page

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