Man page - i2c(1)
Packages contas this manual
- mdevices_info(1)
- minit(1)
- mlxphyburn(1)
- mst_ib_add.tcl(1)
- mlxvpd(1)
- mlxburn(1)
- i2c(1)
- flint(1)
- mlxmdio(1)
- mlxuptime(1)
- mlxcables(1)
- mlxconfig(1)
- mlxfwmanager(1)
- pckt_drop(1)
- fwtrace(1)
- mlxfwreset(1)
- mstop(1)
- mlxdump(1)
- mic(1)
- t2a(1)
- mlxi2c(1)
- mlxlink(1)
- mst(1)
- mlxreg(1)
- mlxtrace(1)
- mlxmcg(1)
- mcra(1)
- mtserver(1)
- mget_temp(1)
- wqdump(1)
- mremote(1)
- mstdump(1)
Package: mft
apt-get install mft
apt-get install mft
Manuals in package:
Documentations in package:
Manual
| I2C(1) | User Commands | I2C(1) |
NAME
i2c - manual page for i2c 4.19.0
DESCRIPTION
-E- Invalid switch "-help".
DESCRIPTION:
- Generates an i2c operation (read/write/get/set) using an mtusb usb to i2c adapter or using the device internal i2c compatible primary
Usage:
- i2c [OPTIONS] <device> <cmd>...
- <device>
- - Valid MST device.
- <cmd>
- - Command. May be "r[ead]" or "w[rite]" or "s[et]" or "g[et]".
For read/write commands:
Usage:
- i2c [OPTIONS] <device> <cmd> <i2c_addr> <addr> [<data>]
OPTIONS are:
-h - Print this message
-v - Print Version info
- -a <addr_width> - Set address width to specified value. May
- be 0, 1, 2 or 4. Default is 1.
- -d <data_width> - Set data width to specified value. May
- be 1, 2 or 4. Default is 1.
- -x <data_len> - Present data as two hexa digit string
- (like 01202040ac). Note that this option is mutually exclusive with "-d" option
Parameters are:
- <device>
- - Valid MST device.
- <cmd>
- - Command. May be "r[ead]" or "w[rite]".
- <i2c_addr>
- - I2C secondary address.
- <addr>
- - Address (addr_width bytes length) inside I2C
- target device to read/write operation.
- <data>
- - Data (data_width bytes length) to write to
- target device.
Note that <addr> is ignored if <addr_width> == 0
read/write commands parameters are interpreted as hexa values.
For get/set commands (supported on Linux only):
Usage:
- i2c <device> <cmd> <att> [<value>]
Parameters are:
- <device>
- - Valid MTUSB device.
- <cmd>
- - Command. May be "g[et]" or "s[et]".
- <att>
- - Attribute. May be "freq".
- <value>
- - Set <att> to the specified value.
Possible values for attributes:
- Frequency: [400, 100]
get/set commands parameters are interpreted as decimal values.
Application return code is zero only when read/write/get/set was successfully completed
SEE ALSO
The full documentation for i2c is maintained as a Texinfo manual. If the info and i2c programs are properly installed at your site, the command
- info i2c
should give you access to the complete manual.
| January 2022 | i2c 4.19.0 |