工具与软件:
大家好!
我使用的是具有 Processor SDK 09.02.00版本的 AM62A7。
我想将 I2C 从器件连接到具有16位数据地址和16位数据的 I2C-1。
我曾尝试使用 SDK 中包含的 i2cget 和 i2cset、但没能了解如何使用。
root@am62axx-evm:/opt/edgeai-gst-apps# i2cdetect -y -r 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: 10 -- -- -- -- -- -- -- -- -- -- UU -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@am62axx-evm:/opt/edgeai-gst-apps#
root@am62axx-evm:/opt/edgeai-gst-apps#
root@am62axx-evm:/opt/edgeai-gst-apps# i2cget -y 1 0x10 0x01 0x00
Error: Invalid mode!
Usage: i2cget [-f] [-y] [-a] I2CBUS CHIP-ADDRESS [DATA-ADDRESS [MODE [LENGTH]]]
I2CBUS is an integer or an I2C bus name
ADDRESS is an integer (0x08 - 0x77, or 0x00 - 0x7f if -a is given)
MODE is one of:
b (read byte data, default)
w (read word data)
c (write byte/read byte)
s (read SMBus block data)
i (read I2C block data)
Append p for SMBus PEC
LENGTH is the I2C block data length (between 1 and 32, default 32)
root@am62axx-evm:/opt/edgeai-gst-apps#
如何将16位地址/数据从器件与 AM62一起使用?
此致、
SK