Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/i2c/i2c.8
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | |||||
operation. rs - repeated start; ss - stop start; no - none. | operation. rs - repeated start; ss - stop start; no - none. | ||||
.It Fl n Ar skip_addr | .It Fl n Ar skip_addr | ||||
skip address - address(es) to be skipped during bus scan. | skip address - address(es) to be skipped during bus scan. | ||||
There are two ways to specify addresses to ignore: by range 'a..b' or | There are two ways to specify addresses to ignore: by range 'a..b' or | ||||
using selected addresses 'a:b:c'. This option is available only when "-s" is | using selected addresses 'a:b:c'. This option is available only when "-s" is | ||||
used. | used. | ||||
.It Fl o Ar offset | .It Fl o Ar offset | ||||
offset within the device for data transfer (hex). | offset within the device for data transfer (hex). | ||||
The default is zero. | |||||
Use | |||||
.Dq -w 0 | |||||
to disable writing of the offset to the slave. | |||||
.It Fl r | .It Fl r | ||||
reset the controller. | reset the controller. | ||||
.It Fl s | .It Fl s | ||||
scan the bus for devices. | scan the bus for devices. | ||||
.It Fl v | .It Fl v | ||||
be verbose. | be verbose. | ||||
.It Fl w Ar 0|8|16 | .It Fl w Ar 0|8|16 | ||||
device addressing width (in bits). | device addressing width (in bits). | ||||
This is used to determine how to pass | |||||
.Ar offset | |||||
specified with | |||||
.Fl o | |||||
to the slave. | |||||
Zero means that the offset is ignored and not passed to the slave at all. | |||||
.El | .El | ||||
.Sh WARNINGS | .Sh WARNINGS | ||||
Great care must be taken when manipulating slave I2C devices with the | Great care must be taken when manipulating slave I2C devices with the | ||||
.Nm | .Nm | ||||
utility. Often times important configuration data for the system is kept in | utility. Often times important configuration data for the system is kept in | ||||
non-volatile but write enabled memories located on the I2C bus, for example | non-volatile but write enabled memories located on the I2C bus, for example | ||||
Ethernet hardware addresses, RAM module parameters (SPD), processor reset | Ethernet hardware addresses, RAM module parameters (SPD), processor reset | ||||
configuration word etc. | configuration word etc. | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |