HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

i2cdump — Dump I2C device registers. See also: `i2cdetect`, `i2cget`, `i2cset`. Note: All addresses should be

Submitted by: @import:tldr-pages··
0
Viewed 0 times
i2ccommandregistersi2cdumpclidumpdevicesee
linux

Problem

How to use the i2cdump command: Dump I2C device registers. See also: i2cdetect, i2cget, i2cset. Note: All addresses should be specified in hexadecimal. More information: <https://manned.org/i2cdump>.

Solution

i2cdump — Dump I2C device registers. See also: i2cdetect, i2cget, i2cset. Note: All addresses should be specified in hexadecimal. More information: <https://manned.org/i2cdump>.

Dump all registers of an I2C device:
i2cdump {{i2cbus}} {{device_address}}


Dump all registers of an I2C device without asking for confirmation:
i2cdump -y {{i2cbus}} {{device_address}}


Dump all registers of an I2C device using a specific mode:
i2cdump {{i2cbus}} {{device_address}} {{b|w|c|s|i}}


Dump registers from start to end of an I2C device:
i2cdump -r {{start}}-{{end}} {{i2cbus}} {{device_address}}

Code Snippets

Dump all registers of an I2C device

i2cdump {{i2cbus}} {{device_address}}

Dump all registers of an I2C device without asking for confirmation

i2cdump -y {{i2cbus}} {{device_address}}

Dump all registers of an I2C device using a specific mode

i2cdump {{i2cbus}} {{device_address}} {{b|w|c|s|i}}

Dump registers from `start` to `end` of an I2C device

i2cdump -r {{start}}-{{end}} {{i2cbus}} {{device_address}}

Context

tldr-pages: linux/i2cdump

Revisions (0)

No revisions yet.