Lines Matching +full:slave +full:- +full:mode

2 .\" Copyright (C) 2008-2009 Semihalf, Michal Hajduk and Bartlomiej Sieka
31 .Nd test I2C bus and slave devices
34 .Cm -a Ar address
44 .Cm -h
46 .Cm -i
49 .Op Ar -
51 .Cm -r
55 .Cm -s
67 .Bl -tag -width ".Fl d Ar direction"
69 7-bit address on the I2C device to operate on (hex).
71 binary mode - when performing a read operation, the data read from the device
76 transfer direction: r - read, w - write.
81 Interpreted mode
85 addressing mode, i.e., I2C bus operations performed after the offset for the
88 .Bl -tag -compact -offset indent
90 complete-transfer
99 repeat-start, and stop operations.
104 mode creates control structures describing the transfer and submits them
106 This mode works on all types of I2C hardware.
110 ([0x]xx-[0x]xx or [0x]xx..[0x]xx) separated by commas or colons.
115 .Dq -w 0
116 to disable writing of the offset to the slave.
129 to the slave.
130 Zero means that the offset is ignored and not passed to the slave at all.
131 The endianness defaults to little-endian.
133 .Sh INTERPRETED MODE
137 if the last argument is '-', or there are no arguments,
141 .Bl -tag -compact
145 Write command, hexstring (white-space is allowed) is written to device.
155 option, all errors are fatal with non-zero exit status.
165 .Bl -bullet
169 i2c -s
174 i2c -s -n 0x56,45-47
178 i2c -a 0x56 -d r -c 8
182 i2c -a 0x56 -d w -c 16 -o 0x10 -b < data.bin
186 i2c -a 0x56 -f /dev/iic1 -d r -c 0x4 -b | i2c -a 0x57 -f /dev/iic0 -d w -c 4 -b
190 i2c -f /dev/iic1 -r
194 i2c -i 'r 0 0x50 16BE 24 8'
198 echo 'r 0 0x50 16BE 48 8' | i2c -i 'r 0 0x50 16BE 24 8' -
201 Many systems store critical low-level information in I2C memories, and
215 .An -nosplit
223 .An Poul-Henning Kamp Aq Mt phk@FreeBSD.org
224 added interpreted mode.