mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-07 10:57:09 +00:00
Update cheatsheets
This commit is contained in:
27
tldr/linux/i2cdump
Normal file
27
tldr/linux/i2cdump
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user