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