i2cget [-f] [-y] <设备地址> <寄存器地址> [终止位] 其中,选项-f和-y是可选的。-f选项用于强制读取设备,即使它被占用。-y选项用于指定在读取之前不要询问用户确认。 在使用i2cget命令时,我们需要确保正确设置I2C总线和设备地址。通常,我们可以使用命令`i2cdetect -l`来列出系统上可用的I2C总线和各个设备...
i2cget[-f] [-y]i2cbuschip-address[data-address[mode]]i2cget-V DESCRIPTION i2cget is a small helper program to read registers visible through the I2C bus (or SMBus). OPTIONS -VDisplay the version and exit.-fForce access to the device even if it is already busy. By default, i2cget ...
usage: i2cdetect -F BUS usage: i2cdetect -l Detect i2c devices. -a All addresses (0x00-0x7f rather than 0x03-0x77) -F Show functionality -l List all buses -r Probe with SMBus Read Byte -y Answer "yes" to confirmation prompts (for script use) console:/ # i2cdetect -a i2cdetect...
-f表示强制访问忙碌的设备,即使它们已经被内核驱动占用了。这个选项可能会导致一些设备的错误操作,所以要谨慎使用。 -y表示在执行读取之前不进行确认提示,这个选项适合脚本使用。 BUS表示要读取的I2C总线编号,如0, 1, 2等。 CHIP表示要读取的I2C设备地址,如0x20, 0x3c等。 ADDR表示要读取的I2C设备寄存器地址,如0x...
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) 9. 设置设备指定寄存器地址的值 rk3568_r:/ # i2cset -fy 0 0x20 0x12 0x04 b...
问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,数据一致 ...
-y i2cbus chip-address data-address mode i2cget -V DESCRIPTION OPTIONS -V Display the version and exit. -f Force access to the device even if it is already busy. By default, i2cget will refuse to access a device which is already under the control of a kernel driver. Using this flag...