<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
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 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 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 Embedded Systems Interface Datasheet for more information.