Deleted Added
full compact
i2c.8 (213573) i2c.8 (233648)
1.\"
2.\" Copyright (C) 2008-2009 Semihalf, Michal Hajduk and Bartlomiej Sieka
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
1.\"
2.\" Copyright (C) 2008-2009 Semihalf, Michal Hajduk and Bartlomiej Sieka
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
26.\" $FreeBSD: head/usr.sbin/i2c/i2c.8 213573 2010-10-08 12:40:16Z uqs $
26.\" $FreeBSD: head/usr.sbin/i2c/i2c.8 233648 2012-03-29 05:02:12Z eadler $
27.\"
28.Dd January 23, 2009
29.Dt I2C 8
30.Os
31.Sh NAME
32.Nm i2c
27.\"
28.Dd January 23, 2009
29.Dt I2C 8
30.Os
31.Sh NAME
32.Nm i2c
33.Nd test I2C bus and slave devices
33.Nd test I2C bus and slave devices
34.Sh SYNOPSIS
35.Nm
36.Cm -a Ar address
37.Op Fl f Ar device
38.Op Fl d Ar r|w
39.Op Fl w Ar 0|8|16
40.Op Fl o Ar offset
41.Op Fl c Ar count

--- 73 unchanged lines hidden (view full) ---

115and there's great potential for corruption if such a write is performed.
116.Sh EXAMPLES
117.Bl -bullet
118.It
119Scan the default bus (/dev/iic0) for devices:
120.Pp
121i2c -s
122.It
34.Sh SYNOPSIS
35.Nm
36.Cm -a Ar address
37.Op Fl f Ar device
38.Op Fl d Ar r|w
39.Op Fl w Ar 0|8|16
40.Op Fl o Ar offset
41.Op Fl c Ar count

--- 73 unchanged lines hidden (view full) ---

115and there's great potential for corruption if such a write is performed.
116.Sh EXAMPLES
117.Bl -bullet
118.It
119Scan the default bus (/dev/iic0) for devices:
120.Pp
121i2c -s
122.It
123Scan the default bus (/dev/iic0) for devices and skip addresses 0x56 and
123Scan the default bus (/dev/iic0) for devices and skip addresses 0x56 and
1240x45.
125.Pp
126i2c -s -n 0x56:0x45
127.It
1240x45.
125.Pp
126i2c -s -n 0x56:0x45
127.It
128Scan the default bus (/dev/iic0) for devices and skip address range
128Scan the default bus (/dev/iic0) for devices and skip address range
1290x34 to 0x56.
130.Pp
131i2c -s -n 0x34..0x56
132.It
133Read 8 bytes of data from device at address 0x56 (e.g., an EEPROM):
134.Pp
135i2c -a 0x56 -d r -c 8
136.It

--- 19 unchanged lines hidden (view full) ---

156.Fx 8.0 .
157.Sh AUTHORS
158.An -nosplit
159The
160.Nm
161utility and this manual page were written by
162.An Bartlomiej Sieka
163.Aq tur@semihalf.com
1290x34 to 0x56.
130.Pp
131i2c -s -n 0x34..0x56
132.It
133Read 8 bytes of data from device at address 0x56 (e.g., an EEPROM):
134.Pp
135i2c -a 0x56 -d r -c 8
136.It

--- 19 unchanged lines hidden (view full) ---

156.Fx 8.0 .
157.Sh AUTHORS
158.An -nosplit
159The
160.Nm
161utility and this manual page were written by
162.An Bartlomiej Sieka
163.Aq tur@semihalf.com
164and
164and
165.An Michal Hajduk
166.Aq mih@semihalf.com .
165.An Michal Hajduk
166.Aq mih@semihalf.com .