Chinese translated version of Documentation\Documentation/i2c/ten-bit-addresses
If you have any comment or update to the content, please contact the
original document maintainer directly. However, if you have a problem
communicating in English you can also ask the Chinese maintainer for
help. Contact the Chinese maintainer if this translation is outdated
or if there is a problem with the translation.
Chinese maintainer:朱伟婧 <313997199@qq.com>
---------------------------------------------------------------------
Documentation/i2c/ten-bit-addresses的中文翻译
如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文
交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻
译存在问题,请联系中文版维护者。
中文版维护者: 朱伟婧 <313997199@qq.com>
中文版翻译者: 朱伟婧 <313997199@qq.com>
中文版校译者: 朱伟婧 <313997199@qq.com>
以下为正文
The I2C protocol knows about two kinds of device addresses: normal 7 bit
addresses, and an extended set of 10 bit addresses. The sets of addresses
do not intersect: the 7 bit address 0x10 is not the same as the 10 bit
address 0x10 (though a single device could respond to both of them).
I2C messages to and from 10-bit address devices have a different format.
See the I2C specification for the details.
I2C协议有两种设备地址:正常的7位地址,和一组扩展的10位地址。
地址集不相交:7位地址0x10和10位的地址0x10不一样(虽然一个单一的设备可以满足两个)
I2C消息以及来自10位地址的设备具有不同的格式。
详见I2C
The current 10 bit address support is minimal. It should work, however
you can expect some problems along the way:
* Not all bus drivers support 10-bit addresses. Some don't because the
hardware doesn't support them (SMBus doesn't require 10-bit address
support for example), some don't because nobody bothered adding the
code (or it's there but not working properly.) Software implementation
(i2c-algo-bit) is known to work.
* Some optional features do not support 10-bit addresses. This is the
case of automatic detection and instantiation of devices by their,
drivers, for example.
* Many user-space packages (for example i2c-tools) lack support for
10-bit addresses.
目前的10位地址支持最小的,它应该运作,但是你可以预料一些问题:
*不支持10位地址总线驱动。一些是因为硬件不支持(SMBus并不需要10位地址支持),
一些是因为没有人添加代码(或它存在,但不能正常工作)软件实现(i2c-algo-bit)是已知的工作。
*一些可选功能不支持10位地址。这是自动检测和实例化的设备的情况下,例如,驱动程序。
*许多用户空间的包(例如I2C工具)缺乏10位地址支持。
Note that 10-bit address devices are still pretty rare, so the limitations
listed above could stay for a long time, maybe even forever if nobody
needs them to be fixed.
请注意,10位地址的设备仍然相当罕见,因此上述限制可能会停留一段时间,甚至永远如果没人需要被固定。