<i2c_write addr="addr" count="count" nostop="nostop" ten_bit_addr="ten_bit_addr" combined_fmt="combined_fmt" radix="radix"> message </i2c_write>
Write a stream of bytes to 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. There is a limitation that a maximum of only 65534 bytes can be written in a single transaction if the 10-bit addressing mode is used.
The slave_addr 0x00 has been reserved in the I2C protocol specification for general call addressing. I2C slaves that are enabled to respond to a general call will acknowledge this address. The general call is not treated specially in the Aardvark I2C master. The user of this API can manually assemble the first data byte if the hardware address programming feature with general call is required.
Please see the Aardvark I2C/SPI Embedded Systems Interface Datasheet for more information.