|
发表于 2019-10-14 23:54:10
|
显示全部楼层
root@catdriver1:/# i2cset -y -f pxa_i2c-i2c 0x45 0x01 0x01
0 @: J# S s, x2 u& MError: I2C bus name is not unique!
3 W% A- b4 z: G9 ^Usage: i2cset [-f] [-y] [-m MASK] [-r] I2CBUS CHIP-ADDRESS DATA-ADDRESS [VALUE] ... [MODE]
% {1 n4 E- G6 N8 `5 e4 d# P I2CBUS is an integer or an I2C bus name4 P4 w: J+ a' h1 F. t2 ]5 p6 [
ADDRESS is an integer (0x03 - 0x77). T T3 E4 i4 R% O
MODE is one of:# e1 d1 n" `: k& h
c (byte, no value)2 i. G0 Y0 b1 d' @$ G
b (byte data, default)! A/ [+ W, U) v- s, w
w (word data)
" f7 t1 V, Q$ B/ I i (I2C block data)
' O' ^( I( c& g+ H& c6 W s (SMBus block data)
. j! e! D @- r4 q- l Append p for SMBus PEC( f8 @$ c( F$ y# v5 ~! L
|
|