## Control Center Serial

#### I2C Read Command

    <i2c_read addr="addr"
              count="count"
              nostop="nostop"
              ten_bit_addr="ten_bit_addr"
              combined_fmt="combined_fmt"/>

Read a stream of bytes from the I2C slave device.

Parameters

addr
  The slave from which to read. The slave address can be specified in decimal or hexadecimal notation.
count
  The number of bytes to write (maximum 65535).
nostop
  Request that no stop condition is issued on the I2C bus after the transaction completes.
ten_bit_addr
  Request that the provided address is treated as a 10-bit address.
combined_fmt
  Request that the Philips combined format is followed during a I2C read operation. This only has an effect when used in conjunction with 10-bit addressing.

Details

For ordinary 7-bit addressing, the lower 7 bits of the addr should correspond to the slave address. The topmost bits are ignored. The Aardvark I2C subsystem or the Promira I2C subsystem will assemble the address along with the R/W bit after grabbing the bus. For 10- bit addressing, the lower 10 bits of addr should correspond to the slave address. The Aardvark adapter or the Promira Serial Platform will then assemble the address into the proper format as described in the Philips specification, namely by first issuing an write transaction on the bus to specify the 10-bit slave and then a read transaction to read the requested number of bytes. The initial write transaction can be skipped if the Combined Format feature is requested in conjunction with the 10-bit addressing functionality.

Please see the Aardvark I2C/SPI Adapter User Manual or the Promira Serial Platform User Manual for more information.