## Control Center Serial

#### I2C Write Command

    <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

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.
radix
  The base of the number system of the message, with the value being 10 for decimal, or 16 for hexadecimal.
message
  The message to transmit as a space separated list of numbers.

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. 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 or the Promira 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 Adapter User Manual or the Promira Serial Platform User Manual for more information.