|
发表于 2019-10-14 23:54:10
|
显示全部楼层
root@catdriver1:/# i2cset -y -f pxa_i2c-i2c 0x45 0x01 0x01
2 \* B: I' W1 m/ O6 n$ `Error: I2C bus name is not unique!
) n4 ]7 R! k6 N5 ~/ D9 H8 MUsage: i2cset [-f] [-y] [-m MASK] [-r] I2CBUS CHIP-ADDRESS DATA-ADDRESS [VALUE] ... [MODE]$ P2 B9 [: O& b$ g& r
I2CBUS is an integer or an I2C bus name
1 s" h N" x* S4 f ADDRESS is an integer (0x03 - 0x77)
6 w! b7 G6 J0 e f, P7 |0 {; P MODE is one of:: d# B- d1 B t9 b/ g$ I5 `/ j6 \2 m
c (byte, no value)
. C$ }! c, f4 h" B+ N8 ~ b (byte data, default)
8 e4 X8 H8 ?7 ]' V1 c1 }8 W% b. Q/ t$ ] w (word data)
% w7 v% ?( J( x; h: d6 c i (I2C block data)
4 S: W/ T/ n) X2 n- v! ] s (SMBus block data)! ]5 U/ [' ^4 B2 |1 k$ L' F
Append p for SMBus PEC
( i; b4 |- w; }$ a" j6 W |
|