Dump i2c registers. -f Force access to busy devices -y Answer "yes" to confirmation prompts (for script use) 5. 查看指定设备地址的所有寄存器值 rk3568_r:/ # i2cdump -f -y 0 0x20 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 00: 00 00 00 00 00 00 00 00 00 00...
root@npi:/mnt/mnt# ./i2cdump -f -y -r 0x00-0x0f 1 0x39 No size specified (using byte-data access) 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 00: 00 00 00 00 03 00 00 00 70 00 00 00 00 00 00 00 ...?...p... root@npi:/mnt/mnt# 1. 2. 3. 4...
[-fy]表示可选的参数,具体含义如下: -f表示强制访问忙碌的设备,即使它们已经被内核驱动占用了。这个选项可能会导致一些设备的错误操作,所以要谨慎使用。 -y表示在执行读取之前不进行确认提示,这个选项适合脚本使用。 BUS表示要读取的I2C总线编号,如0, 1, 2等。 CHIP表示要读取的I2C设备地址,如0x20, 0x3c等。
Write an i2c register. MODE is b for byte, w for 16-bit word, i for I2C block. -f Force access to busy devices -y Answer "yes" to confirmation prompts (for script use) console:/ # console:/ # i2cset -y 3 0x1E 0x00 0x3 b 8 i2cget 读取I2C指定设备指定地址上的数据,一次只能...
问i2cdump可以工作,但i2cget不能工作ENPURGEOLDEXTRACTS /ogg/dirdat/horcl/hz*,USECHECKPOINTS,MINKEEP...
-f Force access to busy devices -y Answer "yes" to confirmation prompts (for script use) console:/ # console:/ # i2cset -y 3 0x1E 0x00 0x3 b 8 i2cget 读取I2C指定设备指定地址上的数据,一次只能读取1个字节 如下我们将楼上写入的数据又读了出来,为0x03,数据一致 ...
Command to displayi2cdumpmanual in Linux:$ man 8 i2cdump NAME SYNOPSIS i2cdump -f -r first-last -y i2cbus address mode bank bankreg i2cdump -V DESCRIPTION OPTIONS -V Display the version and exit. -f Force access to the device even if it is already busy. By default, i2cdump will re...