Motorola IXP-9120 Reference Manual page 153

Table of Contents

Advertisement

Introduction
S
YNTAX
phyra
phyw
Example:
phyra
phyw
I2Cread
D
ESCRIPTION
Reads from an I2C device and displays the results. The valid I2C addresses are a0, a2, a4, a8,
ae and ac
.
S
YNTAX
i2cread <slave_addr> <offset_addr> <count>
P
ARAMETERS
slave_addr -
offset_addr
- number of bytes read (decimal format)
count
Example:
i2cread A2 0 10
I2cwrite
D
ESCRIPTION
Writes string data into the memory of an I2C device. The valid addresses are a0, a2, a4, a6, a8,
ae and ac.
Caution
Note: The device is capable of a limited number of writes. Use only as needed.
S
he
YNTAX
i2cwrite <slave_addr> <offset_addr> <data>
P
ARAMETERS
slave_addr
offset_addr
- hexadecimal string to write to I2C device memory
data
Example:
i2write
152
address of the I2C device on the bus
- memory address inside the I2C device
- address of the I2C device on the bus
- memory address inside the I2C device
a4 30 123456789
Diagnostics
IXP/CPCI-9120

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpci-9120

Table of Contents