Firefly开源社区

标题: 使用i2ctool 操作i2c总线 [打印本页]

作者: guoshaobin    时间: 2016-11-2 20:19
标题: 使用i2ctool 操作i2c总线
127|root@rk3288:/ # i2cdump -f -y 2 0x1a
i2cdump -f -y 2 0x1a
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 c4 00 d4 00 e0 00 00 00 08 00 00 00 80 00    ..?.?.?...?...?.
10: 03 00 00 00 b0 00 00 00 00 00 df 00 df 00 88 00    ?...?.....?.?.?.
20: 88 00 44 00 30 00 88 00 d8 00 0c 00 00 00 00 00    ?.D.0.?.?.?.....
30: 00 00 00 00 80 00 80 00 10 00 00 00 00 00 00 00    ....?.?.?.......
40: 4e 00 00 00 00 00 00 00 00 00 0f 00 00 00 00 00    N.........?.....
50: 00 00 20 00 80 00 80 00 00 00 4b 00 07 00 00 00    .. .?.?...K.?...
60: 00 00 00 00 02 00 20 00 05 00 00 00 30 00 00 00    ....?. .?...0...
70: 00 00 00 00 00 00 00 00 00 00 00 00 10 00 61 00    ............?.a.
80: 00 00 c4 00 d4 00 e0 00 00 00 08 00 00 00 80 00    ..?.?.?...?...?.
90: 03 00 00 00 b0 00 00 00 00 00 df 00 df 00 88 00    ?...?.....?.?.?.
a0: 88 00 44 00 30 00 88 00 d8 00 0c 00 00 00 00 00    ?.D.0.?.?.?.....
b0: 00 00 00 00 80 00 80 00 10 00 00 00 00 00 00 00    ....?.?.?.......
c0: 4e 00 00 00 00 00 00 00 00 00 0f 00 00 00 00 00    N.........?.....
d0: 00 00 20 00 80 00 80 00 00 00 4b 00 07 00 00 00    .. .?.?...K.?...
e0: 00 00 00 00 02 00 20 00 05 00 00 00 30 00 00 00    ....?. .?...0...
f0: 00 00 00 00 00 00 00 00 00 00 00 00 10 00 61 00    ............?.a.
root@rk3288:/ # i2cset -f -y 2 0x1a 0x00 0x12
i2cset -f -y 2 0x1a 0x00 0x12
root@rk3288:/ # i2cget -f -y 2 0x1a 0x00
i2cget -f -y 2 0x1a 0x00
0x00

通过i2cset设置里寄存器的值、读取出来为什么还是原始的值




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1