Name

i2c-rd — Read from an I2C® device.

Synopsis

i2c-rd [--bus bus] [--help] [--version] address [length]

Options

--bus

allows the specification of which I2C® bus to use if several are available on a system. This parameter defaults to the first bus (0).

--help

display short helptext and exit

--version

display commands version and exit

address

The 7bit I2C® bus address to read from.

length

The number of bytes to read. The default is one.

Description

Read one or more bytes from an I2C® device.

Example 18.1. Using the i2c-rd command

To read a byte of data from a simtec power management unit you can execute

>i2c-rd 0x6b
Reading 1 bytes from bus 0xe0075224 at address 0x6b
53 
>

See also

i2c-scan(1).

i2c-wr(1).