Lines Matching +full:no +full:- +full:1 +full:- +full:8 +full:- +full:v
2 .\" Copyright (C) 2008-2009 Semihalf, Michal Hajduk and Bartlomiej Sieka
8 .\" 1. Redistributions of source code must retain the above copyright
17 .\" ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
34 .Cm -a Ar address
37 .Op Fl w Ar 0|8|16|16LE|16BE
40 .Op Fl m Ar tr|ss|rs|no
42 .Op Fl v
44 .Cm -h
46 .Cm -i
47 .Op Fl v
49 .Op Ar -
51 .Cm -r
53 .Op Fl v
55 .Cm -s
58 .Op Fl v
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.
84 .It Fl m Ar tr|ss|rs|no
88 .Bl -tag -compact -offset indent
90 complete-transfer
95 .It Va no
99 repeat-start, and stop operations.
110 ([0x]xx-[0x]xx or [0x]xx..[0x]xx) separated by commas or colons.
115 .Dq -w 0
121 .It Fl v
123 .It Fl w Ar 0|8|16|16LE|16BE
131 The endianness defaults to little-endian.
137 if the last argument is '-', or there are no arguments,
141 .Bl -tag -compact
142 .It 'r' bus address [0|8|16|16LE|16BE] offset count
144 .It 'w' bus address [0|8|16|16LE|16BE] offset hexstring
145 Write command, hexstring (white-space is allowed) is written to device.
154 .Fl v
155 option, all errors are fatal with non-zero exit status.
158 .Fl v
159 option, no errors are fatal, and all commands will return
165 .Bl -bullet
169 i2c -s
174 i2c -s -n 0x56,45-47
176 Read 8 bytes of data from device at address 0x56 (e.g., an EEPROM):
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
192 Read 8 bytes at address 24 in an EEPROM:
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