cmdIIC_XMITIndex

Command Code:

The Packet:

Description:

This command is used internally by a BrainStem to queue outgoing IIC packets for transmission.  This command is not for general use.

A user should transmit arbitrary data to an IIC device by issuing a "dummy" command.  For example, to send bytes 0x41, 0x42, 0x43 (ASCII for "ABC") to an IIC LCD display with an address of 92, the user would enter the following command at the Console prompt:

The Console program automatically inserts a size byte of 3 into the command packet and sends it via the link to the Stem.  When the Stem receives a command with an address that does not match its own, it queues the data for transmission across the IIC bus by issuing an internal cmdIIC_XMIT command.  The Stem will perform a "master write" of the data once the bus is free.  If the destination device is not a BrainStem, it does not matter if the data does not have a valid BrainStem command.

When communicating with an IIC device, it may be necessary to lower the IIC baud rate setting with the cmdVAL_SET command in order to get reliable communication.


version: 1.0, build n.a.
© Copyright 1994-2012 Acroname, Inc., Boulder, Colorado.  All rights reserved.