summaryrefslogtreecommitdiff
path: root/commandline/man/vusb-i2cget.1
blob: 5125783f03778674759ab6409ae43517f4e93938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
.Dd Jule 28, 2013
.Dt VUSB-I2CGET 1
.Os
.
.
.Sh NAME
.
.Nm vusb-i2cget
.Nd read byte from an I2C device
.
.
.Sh SYNOPSIS
.
.Nm
.Ar address
.Ar register
.
.
.Sh VERSION
.
This manual documents
.Nm
UNRELEASED
.
.
.Sh DESCRIPTION
.
.Nm
reads one byte from an I2C device.
It first writes
.Ar register
to the device, then starts a new read connection and reads one byte.
This byte is printed to stdout as an unsigned char.
.
.Ar address
and
.Ar register
are decimal by default, use the
.Qq 0x
prefix for hexadecimal numbers
.
.
.Sh EXIT STATUS
.
.Bl -tag -width indent
.
.It 0
.
Device queried successfully (ACK after address byte)
.
.It 1
.
Device did not respond (NAK after address byte)
.
.It 2
.
Bad input (not a number)
.
.El
.
.
.Sh AUTHOR
.
Copyright (C) 2013 by Daniel Friesel
.Aq derf@finalrewind.org
.
.
.Sh LICENSE
.
to be determined (BSD-ish)