Firefly开源社区

打印 上一主题 下一主题

使用i2ctool 操作i2c总线

42

积分

0

威望

0

贡献

游客

积分
42

使用i2ctool 操作i2c总线

发表于 2016-11-2 20:19:37      浏览:6478 | 回复:0        打印      只看该作者   [复制链接] 楼主
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设置里寄存器的值、读取出来为什么还是原始的值
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表